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

<  Computer connections  ~  xml2mei

Page 1 of 9
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9  Next
EMJB
Posted: Mon Jun 20, 2016 10:05 am Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3620 Location: Maldon Essex
This converts from the mc2xml output file to the mei format, and is available from here.

PLEASE NOTE THAT AT THE MOMENT:

(1) It is very crude, and depends on precise layout of the xml data. Things like additional spaces in the file may well cause havoc!

(2) It has had minimal testing.

(3) I have not tried to extract cast or repeats info

It should run on any machine with PHP installed (as required by as2mei & rt2mei). Copy the downloaded .php file to the same directory as the xmltv.xml file, go to that directory, and run with "php.exe xml2mei.php" on a Windows machine, and the MyStuff.mei file should be created in that directory.

Happy conversions!

EMJB

_________________
Silver 5800, Board Rev 1.2, MS recomm F/W, Sudbury Tx, varying TAP config
View user's profile Send private message
CharlieBoy
Posted: Mon Jun 20, 2016 12:47 pm Reply with quote
Frequent contributor Joined: 04 Mar 2006 Posts: 135
EMJB - This looks brilliant. Thank you. I've just run it, transferred the resultant file to the Toppy, and let MyStuff/epg2mei do their stuff. My EPG, both TV and radio, is now populated for a full 15 days (up to midnight on Monday 4th July) - and at first glance search timers for the second week are being correctly set.

I shall now try some editing of as2mei.bat to see if I can create an xml2mei.bat that can be scheduled to run automatically every day.

EDIT: xml2mei.bat created (running mc2xml.exe immediately before running xml2mei.php) and it appears to run successfully and copy resultant mystuff.mei to the Toppy ok. Will see how the Task Scheduler copes tomorrow.

Thanks again.
Charlie

_________________
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmSy+UUu
TAPs: PcControl B1.4; MyInfo B5.6; EPG2MEI v0.96; MHEG On/Off A3; Extend v1.7; SecCache (UK) v0.4; EIT Sub (Game) v0.6; Deepletterbox 2.44; PruneEPG 1.0; MyStuff 6.6; (StartCh); (fsSave 1.1);
Sig generated by MyInfo on 27/3/17
View user's profile Send private message
EMJB
Posted: Mon Jun 20, 2016 2:49 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3620 Location: Maldon Essex
Have uploaded version X2 to the same place - this has a few minor bug fixes and code tidy, plus options to change the source and destination file names/paths.

EMJB

_________________
Silver 5800, Board Rev 1.2, MS recomm F/W, Sudbury Tx, varying TAP config
View user's profile Send private message
TopTapper
Posted: Mon Jun 20, 2016 3:30 pm Reply with quote
Frequent contributor Joined: 29 Jan 2006 Posts: 209
Another thanks!

After aming mc2xml.exe at Freeview - Crystal Palace ...

Code:

Command line parameters were: "-v "
Read input data from 'xmltv.xml' which starts with: <?xml version="1.0"
Processing LCN 1
Found 331 programmes on LCN 1
Processing LCN 2
Found 281 programmes on LCN 2
Processing LCN 3
[...]
Processing LCN 727
Found 105 programmes on LCN 727
Processing LCN 728

Peak memory used at any time during run: 71.5 MByte
MyStuff.mei file size is 7.6 MBytes
EPG download & processing apparently completed satisfactorily
Saved log to ''

OK


(I haven't looked into cutting down the mc2xml channels & days, yet).

Rain is great.
View user's profile Send private message
Bizman
Posted: Mon Jun 20, 2016 4:04 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
@CharlieBoy - which source did you use in setting up mc2xml? When I run xml2mei.php I get a ton of error messages related to undefined variables (which I ignored), but I eventually get a MyStuff.mei file where the LCNs are incorrect for the prgramme content and there are no programme descriptions.

_________________
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
CharlieBoy
Posted: Mon Jun 20, 2016 4:17 pm Reply with quote
Frequent contributor Joined: 04 Mar 2006 Posts: 135
Bizman wrote:
@CharlieBoy - which source did you use in setting up mc2xml? When I run xml2mei.php I get a ton of error messages related to undefined variables (which I ignored), but I eventually get a MyStuff.mei file where the LCNs are incorrect for the prgramme content and there are no programme descriptions.
Hi Bizman

At the first screen I used Microsoft Legacy, my FULL (not abbrieviated) UK postcode, and selected GB. At the second screen I selected "Freeview - Crystal Palace".

Running EMJB's xml2mei.php v1 yielded a MyStuff.mei file for which the LCNs are correct (at least, I assume they are, since they work in MyStuff). I don't get a host of error messages.

As you say, no programme descriptions. Yet at least - they're in the xmltv.xml file so I'm hoping they may appear with a later version of xml2mei.php.

EDIT: Appears that v2 of xml2mei.php is generating the programme descriptions. Thank you EMJB.

Charlie

_________________
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmSy+UUu
TAPs: PcControl B1.4; MyInfo B5.6; EPG2MEI v0.96; MHEG On/Off A3; Extend v1.7; SecCache (UK) v0.4; EIT Sub (Game) v0.6; Deepletterbox 2.44; PruneEPG 1.0; MyStuff 6.6; (StartCh); (fsSave 1.1);
Sig generated by MyInfo on 27/3/17
View user's profile Send private message
Bizman
Posted: Mon Jun 20, 2016 5:22 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
Thanks Charlie, am now up & running with EMJB's version 2. Am now looking forward to the rest of the as2mei functionality. 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
CharlieBoy
Posted: Mon Jun 20, 2016 5:41 pm Reply with quote
Frequent contributor Joined: 04 Mar 2006 Posts: 135
Bizman wrote:
... where the LCNs are incorrect for the prgramme content .....
Upon a closer review, I agree that some of the LCNs appear to be incorrect. For example:

The detail for LCN 20 doesn't seem to agree with Drama
For LCN 25 it's yielding Dave Ja Vu data which should be LCN 84
LCN 32 MoveiMix seems to be missing
LCN 48 Movies4Men seems ti be missing
Not sure what data it's yielding as LCN 57
It's yielding CBBC data as both LCN 70 (which should be Horror) and LCN 73 - CBBC should be LCN 120
It's yielding CBeebies data as both LCN 71 and LCN 74 - CBeebies should be LCN 121
It's yielding CITV data as LCN 72 - CITV should be LCN 122.
It's yielding BBC News 24 data as LCN 80 - should be LCN 130
Similarly it's yielding other newss channels in LCN 80s that should I think be in the LCN 130s range.

Not sure how to deal with this - except perhaps to create a mc2xml.chl text file to eliminate the incorrect channels from the download.

Charlie

_________________
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmSy+UUu
TAPs: PcControl B1.4; MyInfo B5.6; EPG2MEI v0.96; MHEG On/Off A3; Extend v1.7; SecCache (UK) v0.4; EIT Sub (Game) v0.6; Deepletterbox 2.44; PruneEPG 1.0; MyStuff 6.6; (StartCh); (fsSave 1.1);
Sig generated by MyInfo on 27/3/17
View user's profile Send private message
Bizman
Posted: Mon Jun 20, 2016 5:47 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
It also says LCN23 & 37 have ceased broadcasting, and many others are missing completely, e.g.32, 41 & 48. LCN63 says to retune!

_________________
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
CharlieBoy
Posted: Mon Jun 20, 2016 6:02 pm Reply with quote
Frequent contributor Joined: 04 Mar 2006 Posts: 135
Bizman wrote:
It also says LCN23 & 37 have ceased broadcasting, and many others are missing completely, e.g.32, 41 & 48. LCN63 says to retune!
Well, yes, I did note 32 and 48 as being missing. 23 and 41 are dross (to me) so I didn't notice.

LCN 37 (Quest) data is there, masquerading as LCN38 (which should be Quest+1). Quest+1 data is also there - but showing as LCN 57.

It may be that one can get better LCN data by subscribing to Schedules Direct (for $25pa) and using that as the source instead of Microsoft. Could be worth having a 7-day free trial to see if xml2mei.php works with an xmltv.xml file sourced from there.

Charlie

_________________
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmSy+UUu
TAPs: PcControl B1.4; MyInfo B5.6; EPG2MEI v0.96; MHEG On/Off A3; Extend v1.7; SecCache (UK) v0.4; EIT Sub (Game) v0.6; Deepletterbox 2.44; PruneEPG 1.0; MyStuff 6.6; (StartCh); (fsSave 1.1);
Sig generated by MyInfo on 27/3/17
View user's profile Send private message
Bizman
Posted: Mon Jun 20, 2016 6:09 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
I certainly agree that the error is at source and a change of source may resolve the issue.

_________________
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
CharlieBoy
Posted: Mon Jun 20, 2016 6:13 pm Reply with quote
Frequent contributor Joined: 04 Mar 2006 Posts: 135
CharlieBoy wrote:
Not sure how to deal with this - except perhaps to create a mc2xml.chl text file to eliminate the incorrect channels from the download.
This article [ http://www.birtles.org.uk/xmltv/wiki/index.php?title=Topfield_PVR ] seems to suggest that Bawbagg's MyStuff_Extended_Info converter included a mechanism to (re)allocate downloaded LCNs to accord with those on the Toppy.

Charlie

_________________
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmSy+UUu
TAPs: PcControl B1.4; MyInfo B5.6; EPG2MEI v0.96; MHEG On/Off A3; Extend v1.7; SecCache (UK) v0.4; EIT Sub (Game) v0.6; Deepletterbox 2.44; PruneEPG 1.0; MyStuff 6.6; (StartCh); (fsSave 1.1);
Sig generated by MyInfo on 27/3/17
View user's profile Send private message
EMJB
Posted: Mon Jun 20, 2016 6:20 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3620 Location: Maldon Essex
CharlieBoy wrote:
Bizman wrote:
... where the LCNs are incorrect for the prgramme content .....
Upon a closer review, I agree that some of the LCNs appear to be incorrect. For example:...


There appears to be two issues here:

(1) Some LCNs are wrong

(2) There appears to be no data for some channels.

I could address (1) with a correction look-up table (an example of the sort of complication I was half-expecting!), but (2) is somewhat beyond me.

If you view the beginning of the .xml file (e.g. with Notepad), the beginning has a list of the channels, their LCNs, and their names. This list is obviously out of date - for example:
Code:
<channel id="I20.26259.microsoft.com">
      <display-name>20 G.O.L.D</display-name>
      <display-name>20</display-name>
      <display-name>G.O.L.D</display-name>
   </channel>

These id's then appear in each programme data set, and I simply extract the LCN as the number between the "I" and the "."

I suggest you take this up with the author of mc2xml in the first place, as it would make more sense for him to make LCN/name corrections than me, and he may have a better idea as to whether one can get the missing channels by some devious route.

The term "legacy" in the data selection is a bit worrying - does that mean Microsoft have no intention of keeping this up to date, or even maintaining it for long?

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: Mon Jun 20, 2016 6:43 pm Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3620 Location: Maldon Essex
Bizman wrote:
Am now looking forward to the rest of the as2mei functionality. Very Happy
That will involve getting extra information such as series & episodes into the xml file. I am not sure whether Microsoft don't include it, mc2xml doesn't extract it, or I haven't set up mc2xml correctly.

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 Jun 20, 2016 6:44 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
EMJB wrote:
The term "legacy" in the data selection is a bit worrying - does that mean Microsoft have no intention of keeping this up to date, or even maintaining it for long?

EMJB
I think that the LCN allocation is as it was some considerable time ago (at least a year) which supports the 'legacy' label idea.

_________________
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

Display posts from previous:  

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