Click here to go to the forum index Click here for the home page
 
Author Message

<  Computer connections  ~  xml2mei

Page 6 of 9
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Bizman
Posted: Mon Jul 11, 2016 9:15 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
Probllem solved, I had entered my full postcode whereas only the first part was required. I now have information on some channels to 31/7 (others are 'To be announced')

_________________
TF5810, F/W: 5.15.09T 4/9/2009 -FmTe+EzHsVb
TAPs: EIT Sub (Game) v0.6; SecCache (UK) v0.4; MHEG On/Off A3; MPDisplayLITE V1.2; MyInfo B5.6; PruneEPG 1.0; EPG2MEI v0.96; QuickJump 1.72; Extend v1.7; (fsSave 1.1);
Sig generated by MyInfo on 3/8/17

Other TAPs : FsCheck, Channel Organiser. PSU Caps 7/2/2011 Tx: Mendip. TV: Samsung (32"), NSLU2, STB: Labgear FV300. PC Acer Aspire One with Win7 Starter
View user's profile Send private message
Bizman
Posted: Tue Jul 12, 2016 4:40 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
I have managed to do the 'Pick of the Week' update and a few things come to light. My software can no longer 'understand' the words & phrases used in the description, so no synopsis for films could be made (I will work on this later).

1. The schedule for ITV on LCN3 yielded 3 lots, West Country, Meridian and Wales regions
2. Accented characters and signs appear as a '?'. I will look to see if it is at source or lost on the way.
3. Although supposedly Freeview, LCN 63 has programme info beyong the Freeview hours, as does LCN17.

_________________
TF5810, F/W: 5.15.09T 4/9/2009 -FmTe+EzHsVb
TAPs: EIT Sub (Game) v0.6; SecCache (UK) v0.4; MHEG On/Off A3; MPDisplayLITE V1.2; MyInfo B5.6; PruneEPG 1.0; EPG2MEI v0.96; QuickJump 1.72; Extend v1.7; (fsSave 1.1);
Sig generated by MyInfo on 3/8/17

Other TAPs : FsCheck, Channel Organiser. PSU Caps 7/2/2011 Tx: Mendip. TV: Samsung (32"), NSLU2, STB: Labgear FV300. PC Acer Aspire One with Win7 Starter
View user's profile Send private message
Bizman
Posted: Fri Jul 15, 2016 3:29 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
Bizman wrote:
Accented characters and signs appear as a '?'. I will look to see if it is at source or lost on the way.

@EMJB I have discovered that omitting utf8_decode($mei_str) from $mei_str enables accents & the sign.
Also if you do another update could you please enable the production date so I can add it to films in 'Pick of the Week'. I think it only needs something like
Code:
      if (stripos($line, "<date") !== False)
         $year = ExtractInfoFromLine($line);   
and initialising the $year variable.

I would have like 'Premiere' & 'Black & White' too, but they are not in the XML. Very Happy

_________________
TF5810, F/W: 5.15.09T 4/9/2009 -FmTe+EzHsVb
TAPs: EIT Sub (Game) v0.6; SecCache (UK) v0.4; MHEG On/Off A3; MPDisplayLITE V1.2; MyInfo B5.6; PruneEPG 1.0; EPG2MEI v0.96; QuickJump 1.72; Extend v1.7; (fsSave 1.1);
Sig generated by MyInfo on 3/8/17

Other TAPs : FsCheck, Channel Organiser. PSU Caps 7/2/2011 Tx: Mendip. TV: Samsung (32"), NSLU2, STB: Labgear FV300. PC Acer Aspire One with Win7 Starter
View user's profile Send private message
EMJB
Posted: Fri Jul 15, 2016 7:33 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3639 Location: Maldon Essex
Bizman wrote:
1. The schedule for ITV on LCN3 yielded 3 lots, West Country, Meridian and Wales regions
Can only suggest that in the short term you try a different post code near the centre of the region you are interested.
Bizman wrote:
2. Accented characters and signs appear as a '?'. I will look to see if it is at source or lost on the way.
Will incorporate the change from your later post
Bizman wrote:
3. Although supposedly Freeview, LCN 63 has programme info beyong the Freeview hours, as does LCN17.
EPG2MEI should be able to cope with this on the Toppy if the config file is kept up to date, but that won't help you with your "Pick of the Week".

My initial reaction was to add more command line parameters to be able to limit the hours and ignore unwanted regional variants, but on reflection it will probably be too unwieldy and a config-type file is required.

Will try to get a new version out in the next week to address these and the year info as in your later post.

I note today that LCNs 9, 10, 24, 31, 55, & 62, again do not seem to have been updated with the others, so are down to 7.5 day's data.

EMJB

_________________
Silver 5800, Board Rev 1.2, MS recomm F/W, Sudbury Tx, varying TAP config
View user's profile Send private message
Bizman
Posted: Fri Jul 15, 2016 7:50 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
Many thanks, EMJB, much appreciated. My PotWk software highlights any out-of-hours entries so they don't get picked (a hang-over from past sources). I have done a software fudge to remove unwanted regions.

_________________
TF5810, F/W: 5.15.09T 4/9/2009 -FmTe+EzHsVb
TAPs: EIT Sub (Game) v0.6; SecCache (UK) v0.4; MHEG On/Off A3; MPDisplayLITE V1.2; MyInfo B5.6; PruneEPG 1.0; EPG2MEI v0.96; QuickJump 1.72; Extend v1.7; (fsSave 1.1);
Sig generated by MyInfo on 3/8/17

Other TAPs : FsCheck, Channel Organiser. PSU Caps 7/2/2011 Tx: Mendip. TV: Samsung (32"), NSLU2, STB: Labgear FV300. PC Acer Aspire One with Win7 Starter
View user's profile Send private message
Bizman
Posted: Sat Jul 16, 2016 8:01 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
Bizman wrote:
I would have like 'Premiere' & 'Black & White' too, but they are not in the XML. Very Happy
Just realised 'Premiere' is there, masquerading as <premiere /> on its own.

_________________
TF5810, F/W: 5.15.09T 4/9/2009 -FmTe+EzHsVb
TAPs: EIT Sub (Game) v0.6; SecCache (UK) v0.4; MHEG On/Off A3; MPDisplayLITE V1.2; MyInfo B5.6; PruneEPG 1.0; EPG2MEI v0.96; QuickJump 1.72; Extend v1.7; (fsSave 1.1);
Sig generated by MyInfo on 3/8/17

Other TAPs : FsCheck, Channel Organiser. PSU Caps 7/2/2011 Tx: Mendip. TV: Samsung (32"), NSLU2, STB: Labgear FV300. PC Acer Aspire One with Win7 Starter
View user's profile Send private message
EMJB
Posted: Sat Jul 16, 2016 8:19 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3639 Location: Maldon Essex
Bizman wrote:
Bizman wrote:
I would have like 'Premiere' & 'Black & White' too, but they are not in the XML. Very Happy
Just realised 'Premiere' is there, masquerading as <premiere /> on its own.

OK, will pick that up too.

I see the missing update for LCNs 9.10 etc seems tohave occurred in the last 224 hours.

EMJB

_________________
Silver 5800, Board Rev 1.2, MS recomm F/W, Sudbury Tx, varying TAP config
View user's profile Send private message
Bizman
Posted: Mon Jul 18, 2016 6:51 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
@EMJB A further thought, would you please change '{Previously shown...' to '{First shown..', the dates given will then make more sense.

_________________
TF5810, F/W: 5.15.09T 4/9/2009 -FmTe+EzHsVb
TAPs: EIT Sub (Game) v0.6; SecCache (UK) v0.4; MHEG On/Off A3; MPDisplayLITE V1.2; MyInfo B5.6; PruneEPG 1.0; EPG2MEI v0.96; QuickJump 1.72; Extend v1.7; (fsSave 1.1);
Sig generated by MyInfo on 3/8/17

Other TAPs : FsCheck, Channel Organiser. PSU Caps 7/2/2011 Tx: Mendip. TV: Samsung (32"), NSLU2, STB: Labgear FV300. PC Acer Aspire One with Win7 Starter
View user's profile Send private message
EMJB
Posted: Tue Jul 19, 2016 4:13 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3639 Location: Maldon Essex
Bizman wrote:
@EMJB A further thought, would you please change '{Previously shown...' to '{First shown..', the dates given will then make more sense.


Not keen on this change, as the field name uses "Previously" rather than "First". However to give you what you want, I am including a universal replace feature which should allow you to change this and any other heading etc or even programme name.

EMJB

_________________
Silver 5800, Board Rev 1.2, MS recomm F/W, Sudbury Tx, varying TAP config
View user's profile Send private message
EMJB
Posted: Fri Jul 22, 2016 7:48 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3639 Location: Maldon Essex
Have updated xml2mei.php and the associated pdf - now at issue X7 with the changes discussed above.

I have implemented the extra features as command line options, but you can put these in a text file rather than enter every time if you want.

EMJB

_________________
Silver 5800, Board Rev 1.2, MS recomm F/W, Sudbury Tx, varying TAP config
View user's profile Send private message
Bizman
Posted: Sat Jul 23, 2016 10:14 am Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
@EMJB: Many thanks for the update. I don't want to appear critical or ungrateful, but trying to be helpful, 'Premiere' doesn't seem to be working. The code seems to be all present (based on my rusty knowledge of php), but 'Premiere' is not appearing in the mei file. An example is 'The Imitation Game', Ch4 31/7 among others. Is it perhaps optional & I have missed it?

_________________
TF5810, F/W: 5.15.09T 4/9/2009 -FmTe+EzHsVb
TAPs: EIT Sub (Game) v0.6; SecCache (UK) v0.4; MHEG On/Off A3; MPDisplayLITE V1.2; MyInfo B5.6; PruneEPG 1.0; EPG2MEI v0.96; QuickJump 1.72; Extend v1.7; (fsSave 1.1);
Sig generated by MyInfo on 3/8/17

Other TAPs : FsCheck, Channel Organiser. PSU Caps 7/2/2011 Tx: Mendip. TV: Samsung (32"), NSLU2, STB: Labgear FV300. PC Acer Aspire One with Win7 Starter
View user's profile Send private message
BigAl
Posted: Sat Jul 23, 2016 11:42 am Reply with quote
Regular contributor Joined: 01 May 2005 Posts: 27
@EMJB: many thanks also for the latest version.

For anyone who is interested, the Microsoft legacy feed is working again. xml2mei reports the following -

Found 359 programmes on LCN 1 ending at 22:30 on 06/08/2016 i.e. for 14.5 days
Found 365 programmes on LCN 2 ending at 00:15 on 07/08/2016 i.e. for 14.6 days
etc

_________________
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -Sy+EvMPePfPsR5UUuUyVbZ
TAPs: EIT Sub v0.6; SecCache (UK) v0.4; Power Down 0.75; TF5000 Display v1.53; dog_dimmer v0.01; MHEG Control B2.1; Tap Launcher 3.10; Font Manager 1.0d; EPG2MEI v0.96; QuickJump 1.72; MyStuff 6.6; PruneEPG 1.0; fsSave 1.1; MyInfo B5.6;
Sig generated by MyInfo on 19/5/16
View user's profile Send private message
EMJB
Posted: Sun Jul 24, 2016 8:11 am Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3639 Location: Maldon Essex
Bizman wrote:
@EMJB: Many thanks for the update. I don't want to appear critical or ungrateful, but trying to be helpful
No problem - its only by use that bugs get found and then sorted.

Bizman wrote:
'Premiere' doesn't seem to be working. The code seems to be all present (based on my rusty knowledge of php), but 'Premiere' is not appearing in the mei file. An example is 'The Imitation Game', Ch4 31/7 among others. Is it perhaps optional & I have missed it?
I don't understand the code that generates this bit of the mei format - I just carried it forward from rt2mei.. Are you expecting the word "Premiere" to appear in Field 9 (Field 0 being character count, 1 start time etc)?

With regards the Microsoft data, IIRC it used to have at least one wrong LCN. Has this been corrected? Should I include a mapping function to allow LCNs to be corrected?

_________________
Silver 5800, Board Rev 1.2, MS recomm F/W, Sudbury Tx, varying TAP config
View user's profile Send private message
Bizman
Posted: Sun Jul 24, 2016 8:59 am Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
EMJB wrote:
I don't understand the code that generates this bit of the mei format - I just carried it forward from rt2mei.. Are you expecting the word "Premiere" to appear in Field 9 (Field 0 being character count, 1 start time etc)?
Yes, appended to the genre. As I see it
line 585:
Code:
if (stripos($line, "<premiere />") !== False)
   $premiere = True;
detects the presence of the 'premiere' word in the xml stream and if present $premiere is set True. That being so, field 9 then appends the word to the genre using:
Code:
  $mei_str .= "|" . ($premiere === 'true' ?  $genre . ' Premiere' : '');       //    F9: if it is a premiere
I see nothing wrong there, but when I patched things to echo the state of $premiere in the 585 coding, it never indicated true. I am at a loss how to debug php code these days.

_________________
TF5810, F/W: 5.15.09T 4/9/2009 -FmTe+EzHsVb
TAPs: EIT Sub (Game) v0.6; SecCache (UK) v0.4; MHEG On/Off A3; MPDisplayLITE V1.2; MyInfo B5.6; PruneEPG 1.0; EPG2MEI v0.96; QuickJump 1.72; Extend v1.7; (fsSave 1.1);
Sig generated by MyInfo on 3/8/17

Other TAPs : FsCheck, Channel Organiser. PSU Caps 7/2/2011 Tx: Mendip. TV: Samsung (32"), NSLU2, STB: Labgear FV300. PC Acer Aspire One with Win7 Starter
View user's profile Send private message
TopTapper
Posted: Sun Jul 24, 2016 1:53 pm Reply with quote
Frequent contributor Joined: 29 Jan 2006 Posts: 234
Bizman wrote:
Code:
$premiere = True;
[...]
Code:
$premiere === 'true' ?

The former sets a Boolean True while the latter tests for a string, (value 'true'). '$premiere === True' looks a better bet.
View user's profile Send private message

Display posts from previous:  

All times are GMT + 1 Hour
Page 6 of 9
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum