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

<  Computer connections  ~  xml2mei

Page 7 of 9
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Bizman
Posted: Sun Jul 24, 2016 4:12 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1700
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:
$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
View user's profile Send private message
BigAl
Posted: Sun Jul 24, 2016 5:35 pm Reply with quote
Regular contributor Joined: 01 May 2005 Posts: 27
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:

<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 &amp; 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
View user's profile Send private message
TopTapper
Posted: Mon Jul 25, 2016 11:20 am Reply with quote
Frequent contributor Joined: 29 Jan 2006 Posts: 208
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 Wink
View user's profile Send private message
EMJB
Posted: Wed Jul 27, 2016 11:27 am Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3620 Location: Maldon Essex
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
View user's profile Send private message
Bizman
Posted: Wed Jul 27, 2016 7:48 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1700
Thanks. Bug report: Underfined offset 999 ... on line 807
Code:
for ($s=1;$s<=MAX_LCN;$s++)                                          
{
      $output_data .= $lcn_data[$s];
      $lcn_data[$s] = "";
}
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
View user's profile Send private message
EMJB
Posted: Wed Jul 27, 2016 8:09 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3620 Location: Maldon Essex
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
View user's profile Send private message
Bizman
Posted: Wed Aug 03, 2016 6:21 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1700
If there is another update would you please include some formatting in lines 604 & 789 as suggested here:
Code:
LogInfo("Found " . substr("  ".$prog_count,-4) . " progs on LCN" . substr("  ".$last_lcn,-3) . " ending at " . TdFromMei($last_start_time,  $input_file_time_date) . " i.e. for ". substr("  ".$days_count,-4) . " days", True);

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
View user's profile Send private message
BigAl
Posted: Sun Sep 04, 2016 12:49 pm Reply with quote
Regular contributor Joined: 01 May 2005 Posts: 27
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
View user's profile Send private message
m0beh
Posted: Tue Sep 06, 2016 12:32 pm Reply with quote
Joined: 09 Dec 2006 Posts: 11
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!
View user's profile Send private message
Bizman
Posted: Sun Sep 11, 2016 3:31 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1700
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
View user's profile Send private message
EMJB
Posted: Sun Sep 11, 2016 6:38 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3620 Location: Maldon Essex
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
View user's profile Send private message
Bizman
Posted: Sun Sep 11, 2016 6:56 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1700
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
View user's profile Send private message
TopTapper
Posted: Wed Sep 21, 2016 1:12 pm Reply with quote
Frequent contributor Joined: 29 Jan 2006 Posts: 208
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...
View user's profile Send private message
BigAl
Posted: Thu Sep 22, 2016 12:14 pm Reply with quote
Regular contributor Joined: 01 May 2005 Posts: 27
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
View user's profile Send private message
TopTapper
Posted: Thu Sep 22, 2016 1:30 pm Reply with quote
Frequent contributor Joined: 29 Jan 2006 Posts: 208
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
View user's profile Send private message

Display posts from previous:  

All times are GMT + 1 Hour
Page 7 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