How to link your Toppy to a PC or Mac; networking your Toppy, Web-based EPG systems, DVD burning and file transfers

Moderators: Technical, Oz mods

Post Reply
Bizman
Frequent contributor
Posts: 1707
Joined: Tue Apr 06, 2010 2:46 pm

Post by Bizman »

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
Bizman
Frequent contributor
Posts: 1707
Joined: Tue Apr 06, 2010 2:46 pm

Post by Bizman »

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
Bizman
Frequent contributor
Posts: 1707
Joined: Tue Apr 06, 2010 2:46 pm

Post by Bizman »

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: Select all

		if &#40;stripos&#40;$line, "<date"&#41; !== False&#41;
			$year = ExtractInfoFromLine&#40;$line&#41;;	
and initialising the $year variable.

I would have like 'Premiere' & 'Black & White' too, but they are not in the XML. :D
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
EMJB
Frequent contributor
Posts: 3645
Joined: Fri Jul 08, 2005 9:43 am
Location: Maldon Essex

Post by EMJB »

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
Bizman
Frequent contributor
Posts: 1707
Joined: Tue Apr 06, 2010 2:46 pm

Post by Bizman »

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
Bizman
Frequent contributor
Posts: 1707
Joined: Tue Apr 06, 2010 2:46 pm

Post by Bizman »

Bizman wrote:I would have like 'Premiere' & 'Black & White' too, but they are not in the XML. :D
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
EMJB
Frequent contributor
Posts: 3645
Joined: Fri Jul 08, 2005 9:43 am
Location: Maldon Essex

Post by EMJB »

Bizman wrote:
Bizman wrote:I would have like 'Premiere' & 'Black & White' too, but they are not in the XML. :D
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
Bizman
Frequent contributor
Posts: 1707
Joined: Tue Apr 06, 2010 2:46 pm

Post by Bizman »

@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
EMJB
Frequent contributor
Posts: 3645
Joined: Fri Jul 08, 2005 9:43 am
Location: Maldon Essex

Post by EMJB »

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
EMJB
Frequent contributor
Posts: 3645
Joined: Fri Jul 08, 2005 9:43 am
Location: Maldon Essex

Post by EMJB »

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
Bizman
Frequent contributor
Posts: 1707
Joined: Tue Apr 06, 2010 2:46 pm

Post by Bizman »

@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
BigAl
Regular contributor
Posts: 27
Joined: Sun May 01, 2005 4:42 pm

Post by BigAl »

@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
EMJB
Frequent contributor
Posts: 3645
Joined: Fri Jul 08, 2005 9:43 am
Location: Maldon Essex

Post by EMJB »

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
Bizman
Frequent contributor
Posts: 1707
Joined: Tue Apr 06, 2010 2:46 pm

Post by Bizman »

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: Select all

if &#40;stripos&#40;$line, "<premiere />"&#41; !== False&#41;
	$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: Select all

  $mei_str .= "|" . &#40;$premiere === 'true' ?  $genre . ' Premiere' &#58; ''&#41;; 		// 	F9&#58; 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
TopTapper
Frequent contributor
Posts: 237
Joined: Sun Jan 29, 2006 4:18 pm

Post by TopTapper »

Bizman wrote:

Code: Select all

$premiere = True;
[...]

Code: Select all

$premiere === 'true' ?
The former sets a Boolean True while the latter tests for a string, (value 'true'). '$premiere === True' looks a better bet.
Post Reply