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 »

OK, cracked it. When $premiere is set = True it has the value of '1', not 'true' or 'True'. Also in F9 adding ' Premiere' to $genre at this point doesn't change the value in F12 so the following change to F9 works, putting 'Premiere' there where it belongs and leaving F12 unchanged.

Code: Select all

$mei_str .= "|" . ($premiere ? 'Premiere' : '');             		// 	F9: if it is a premiere
I haven't looked at other implications of using === 'True'.
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 wrote: 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?
Unfortunately, nothing has changed recently as far as the channel lineup is concerned - it's still a bit of a mess, and there are only 118 channels in total.

The main channels seem to be reasonably up-to-date, however, so from my own personal point of view, it is usable, with only a few such as Drama and CBS Action missing.

The following list is from the start of the XML file for Mendip (other regions might differ slightly, I suppose). You probably won't consider it worth your while providing a mapping function!

Code: Select all

<display-name>1 BBC ONE</display-name>
<display-name>2 BBC TWO</display-name>
<display-name>3 ITV 1</display-name>
<display-name>4 Channel 4</display-name>
<display-name>5 Five</display-name>
<display-name>6 ITV 2</display-name>
<display-name>9 BBC FOUR</display-name>
<display-name>10 ITV3</display-name>
<display-name>11 Pick</display-name>
<display-name>12 Dave</display-name>
<display-name>13 Channel 4+1</display-name>
<display-name>14 More 4</display-name>
<display-name>15 Film4</display-name>
<display-name>16 QVC</display-name>
<display-name>17 Really</display-name>
<display-name>18 4Music</display-name>
<display-name>19 Yesterday</display-name>
<display-name>20 G.O.L.D</display-name>
<display-name>21 5 USA</display-name>
<display-name>22 Ideal World</display-name>
<display-name>23 bid tv</display-name>
<display-name>24 ITV4</display-name>
<display-name>25 Dave ja vu</display-name>
<display-name>26 ITVBe</display-name>
<display-name>27 ITV2 +1</display-name>
<display-name>28 E4</display-name>
<display-name>29 E4+1</display-name>
<display-name>30 5*</display-name>
<display-name>31 Spike</display-name>
<display-name>32 Movie Mix</display-name>
<display-name>33 ITV1 +1</display-name>
<display-name>34 ESPN</display-name>
<display-name>34 ITV3+1</display-name>
<display-name>35 QVC Beauty</display-name>
<display-name>36 CreateCraf</display-name>
<display-name>37 price-drop tv</display-name>
<display-name>38 Quest</display-name>
<display-name>39 The Store</display-name>
<display-name>40 Rocks & Co</display-name>
<display-name>41 Sky Sports 1</display-name>
<display-name>42 Sky Sports 2</display-name>
<display-name>43 Gems TV</display-name>
<display-name>44 Channel 5 +1</display-name>
<display-name>46 Challenge TV</display-name>
<display-name>47 4seven</display-name>
<display-name>48 Food Network</display-name>
<display-name>49 TJC Choice</display-name>
<display-name>54 ITV4+1</display-name>
<display-name>55 Channel 5 +24</display-name>
<display-name>57 Quest +1</display-name>
<display-name>63 Community</display-name>
<display-name>70 CBBC Channel</display-name>
<display-name>71 CBeebies</display-name>
<display-name>72 CITV</display-name>
<display-name>73 CBBC HD</display-name>
<display-name>74 CBeebies HD</display-name>
<display-name>80 BBC NEWS</display-name>
<display-name>81 BBC Parliament</display-name>
<display-name>82 Sky News</display-name>
<display-name>83 AL JAZEERA</display-name>
<display-name>84 AL JAZEERA</display-name>
<display-name>85 RT English</display-name>
<display-name>92 TVX / REDHOT</display-name>
<display-name>93 Smile TV 2</display-name>
<display-name>95 Babenation</display-name>
<display-name>95 Smile TV 3</display-name>
<display-name>98 Blue Kiss TV</display-name>
<display-name>98 Babes2</display-name>
<display-name>101 BBC One HD</display-name>
<display-name>102 BBC Two HD</display-name>
<display-name>103 ITV1 HD</display-name>
<display-name>104 Channel 4 HD</display-name>
<display-name>106 BBC Four HD</display-name>
<display-name>107 BBC News HD</display-name>
<display-name>110 Vision</display-name>
<display-name>111 Connect</display-name>
<display-name>112 Stream</display-name>
<display-name>170 ADULT Section</display-name>
<display-name>171 ADULT Section</display-name>
<display-name>175 Party</display-name>
<display-name>189 ADULT Section</display-name>
<display-name>191 Red Hot TV</display-name>
<display-name>192 Filth</display-name>
<display-name>199 ADULT Section</display-name>
<display-name>202 Rabbit</display-name>
<display-name>203 Gay Rabbit</display-name>
<display-name>204 121 Dating</display-name>
<display-name>206 Sky Text</display-name>
<display-name>301 301</display-name>
<display-name>303 303</display-name>
<display-name>304 TopUp Anytime1</display-name>
<display-name>305 TopUp Anytime3</display-name>
<display-name>306 Channel Zero</display-name>
<display-name>700 BBC Radio 1</display-name>
<display-name>701 1Xtra BBC</display-name>
<display-name>702 BBC Radio 2</display-name>
<display-name>703 BBC Radio 3</display-name>
<display-name>704 BBC Radio 4</display-name>
<display-name>705 BBC R5 Live</display-name>
<display-name>706 BBC 5L SportsX</display-name>
<display-name>707 BBC 6 Music</display-name>
<display-name>708 BBC Radio 4 Extra</display-name>
<display-name>709 BBC Asian Net.</display-name>
<display-name>710 BBC World Sv.</display-name>
<display-name>711 The Hits Radio</display-name>
<display-name>712 Kiss Fresh</display-name>
<display-name>713 Kiss</display-name>
<display-name>714 Kisstory</display-name>
<display-name>715 MAGIC</display-name>
<display-name>716 heat</display-name>
<display-name>717 Kerrang!</display-name>
<display-name>718 SMOOTH RADIO</display-name>
<display-name>723 Talksport</display-name>
<display-name>724 Capital FM</display-name>
<display-name>725 Premier Radio</display-name>
<display-name>726 U105</display-name>
<display-name>727 Absolute Radio</display-name>
<display-name>728 Heart</display-name>
Hope this helps.
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
TopTapper
Frequent contributor
Posts: 237
Joined: Sun Jan 29, 2006 4:18 pm

Post by TopTapper »

Bizman wrote:When $premiere is set = True it has the value of '1', not 'true' or 'True'.
Strictly speaking it depends how you test it but, yes, the Boolean true is numeric 1 or True (bareword not 'True', 'true' or 'any-string'). PHP is less fussy with the == test but that's more likely to generate unexpected results. See the full horror at http://php.net/manual/en/types.comparisons.php ;)
EMJB
Frequent contributor
Posts: 3645
Joined: Fri Jul 08, 2005 9:43 am
Location: Maldon Essex

Post by EMJB »

I have just uploaded version X8 to here and the beginning of instructions to go with it to here. The changes since X7 are:

* Fix for Premiere indication as notified by Bizman above
*LCN correction feature added
* Warning if duplicated or invalid LCN found in input data
* Additional logic checks on commands
* Command line parameters now take priority over those in command file (which is what the pdf said, but that was wrong before this change!)

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 »

Thanks. Bug report: Underfined offset 999 ... on line 807

Code: Select all

for &#40;$s=1;$s<=MAX_LCN;$s++&#41;														
&#123;
		$output_data .= $lcn_data&#91;$s&#93;;
		$lcn_data&#91;$s&#93; = "";
&#125;
Doesn't seem to prevent it working ok. Will be using it in earnest tomorrow.
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:Thanks. Bug report: Underfined offset 999 ... on line 807
X8a with bug fix just uploaded, but as you say it had no effect.

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 »

If there is another update would you please include some formatting in lines 604 & 789 as suggested here:

Code: Select all

LogInfo&#40;"Found " . substr&#40;"  ".$prog_count,-4&#41; . " progs on LCN" . substr&#40;"  ".$last_lcn,-3&#41; . " ending at " . TdFromMei&#40;$last_start_time,  $input_file_time_date&#41; . " i.e. for ". substr&#40;"  ".$days_count,-4&#41; . " days", True&#41;;
I shortened 'programmes' to 'progs' 'cos I didn't know how to widen the DOS window to fit.
The formatting makes it easier to spot at a glance which LCNs have not had an update for some time.
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 »

For those who haven't already come across it, another source of XMLTV data is http://www.webgrabplus.com .

As the name suggests, this uses a website 'scraping' method of extracting the data, so can be very slow to run. There are a number of UK websites available, and the speed and amount of data varies considerably. With some minor 'tweaks' to the Webgrab configuration file, the output XML is compatible with xml2mei.

The software (closed source) seems to be actively maintained, and there is an active forum.

If anybody is interested, I'll provide further info and test results.


Incidentally, the mc2xml executable has been updated again during the past month or so.
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
m0beh
Posts: 11
Joined: Sat Dec 09, 2006 12:44 pm

Webgrabplus

Post by m0beh »

Hello BigAl.

I have just had a quick look at Webgrabplus and although a bit of a pain to set up I have got it working with uk-sky.com as a source. The output file is in xml format and I had to quickly write a perl script to generate a MyStuff.mei file but all looks good so for and it runs on Linux using mono. So thanks for the tip!
Bizman
Frequent contributor
Posts: 1707
Joined: Tue Apr 06, 2010 2:46 pm

Post by Bizman »

I am still grappling with the Schedules Direct .chl file. If I use 3 for ITV it retrieves the schedule not only for West Country, which I want, but also South Meridian, Wales and Wales HD. I want to replace the LCN of 3 with the unique ID, viz I3.21823.schedulesdirect.org, but that doesn't retrieve ITV at all. I have tried it within quotes and that didn't work either. Any ideas what I am doing wrong?
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:I am still grappling with the Schedules Direct .chl file. If I use 3 for ITV it retrieves the schedule not only for West Country, which I want, but also South Meridian, Wales and Wales HD. I want to replace the LCN of 3 with the unique ID, viz I3.21823.schedulesdirect.org, but that doesn't retrieve ITV at all. I have tried it within quotes and that didn't work either. Any ideas what I am doing wrong?
Sorry - I just selected Freeview Anglia and got what I wanted without having to do any manipulation of the files themselves. Have you tried creating renaming the channel file, collecting data for another region, and then merging the 2 channel files?

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 »

No I haven't, but I get data for all four regions and use a software patch to remove the unwanted ones. Ideally I would like to not have them downloaded in the first place.
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 »

BigAl wrote:the mc2xml executable has been updated again
Just for info. mc2xml.exe 1.6 (979,456 bytes) is throwing an Identity Protection alert under AVG AntiVirus defaulting to Automatic quarantine for a 'known threat'. I've asked AVG to look at it but wont hold my breath for a response. It comes up relatively clean when checked with the main av engines at virustotal.com. I'm assuming it's good but...
BigAl
Regular contributor
Posts: 27
Joined: Sun May 01, 2005 4:42 pm

Post by BigAl »

TopTapper wrote:Just for info. mc2xml.exe 1.6 (979,456 bytes) is throwing an Identity Protection alert under AVG AntiVirus defaulting to Automatic quarantine for a 'known threat'. I've asked AVG to look at it but wont hold my breath for a response. It comes up relatively clean when checked with the main av engines at virustotal.com. I'm assuming it's good but...
Thanks for the report.

Unfortunately, I can't confirm it, as I use the Linux version, and this didn't give any AV errors on my system.

As a test, I downloaded the Windows executable (from both servers) and ran a check on it, using the Linux AV program 'ClamAV' (which includes millions of Windows viruses in its DB) - for what it's worth, this gave an 'all clear'. The md5sum was OK as well.

You probably noticed this comment on the mc2xml website: "some anti-virus programs (like norton or windows defender) can view compressed executables as potential threats or trigger a false positive warning: mc2xml is compressed for size".

Still, it might be worth reporting the problem to the mc2xml team, if you haven't already done so.
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
TopTapper
Frequent contributor
Posts: 237
Joined: Sun Jan 29, 2006 4:18 pm

Post by TopTapper »

Hi BigAl
BigAl wrote:mc2xml website: "some anti-virus programs (like norton or windows defender) can view compressed executables as potential threats..."
The file passes traditional av signature tests but I suspect AVG's Identity Protection analyses behaviour. I'm only using the microsoft legacy service and see https connections to *.deploy.static.akamaitechnologies.com and 65.55.5.170. It look good to me - but I'm no expert.
BigAl wrote:Still, it might be worth reporting the problem to the mc2xml team, if you haven't already done so.
I'll do that (after dropping the whitelist and confirming it's still being flagged).

Cheers,
Martin
Post Reply