USING MC2XML TO MAKE YOUR OWN EPG - tuturial with open discussion

I am currently using kodi with PVR Stalker and am trying to use the file you provided. I downloaded the file you posted and un-zipped it, placed it on my kodi box and then went in to pvr stalker addon for kodi and setup the settings to allow this file to be used to provide the guide. I set the Scope to Local Path and put the path to the location where the file is located. Saved everything, cleared the guided data and restarted Kodi. After waiting for about 3 minutes the guided fails to load. Looking in the Kodi Log i get an error AddOnLog Stalker Client LoadEPG: XMLTV Parse Failed and Parse Failed to load XMLTV data. Is there anything I need to do to the file you posted besides unzipping it to get it to work?

Thanks for all the work.

Tim

What type of box are you trying to load it to? Do you have enough internal space & RAM to load the hefty 50 MB file? In KODI settings (TV > Guide ) how many days do you have listed to display?

In order to troubleshoot we need a bit more info for us to try and help you out.
 
Can the xml file be loaded into Ivue?
NO. That would involve working with the Ivue foks unless you already know how to use your own xml with Ivue. You could try, but for what reason? It works with the pvr already.
i understand the xml but what is the .chi and .ren?
What Ilan said...read the tutorial.

wouldnt the xml file have everything that is needed to the epg?
yes

Again, read the tutorial as it's explained. There is a separate tutorial pinned that says 'no discussion' and perhaps you will find that easier to follow. It has just 5 entries in it.
 
Ilan~Were you able to get channels from MS with just using the ID and leaving off the numbers?

I ended up choosing the MS display name that only had one "syllable" for mapping. Thus, if MS had four display names: 202 CNN, CNN News, 202 and CNN Newsroom, I chose 202 and entered

202:CNN US

in the REN file.

=======================

Ack, maybe that's not what you meant. I have always used ID's in the CHL file.
 
Last edited:
I ended up choosing the MS display name that only had one "syllable" for mapping. Thus, if MS had four display names: 202 CNN, CNN News, 202 and CNN Newsroom, I chose 202 and entered

202:CNN US

in the REN file.

=======================

Ack, maybe that's not what you meant. I have always used ID's in the CHL file.

Yeah, I just wondered if you tried just using CNN in .chl and CNN:CNN US in .ren files.
As I posted last night, I got the impression that either of the 3 listed IDs would work.
Again, more than one way to skin that poor kitty. ;)
 
Yes, I was thinking that the top most display name was the one crucial for mapping, so an entry like 202 CNN threw me for a loop and required my two-step renaming, which (despite its stupidity) actually worked quite well.
 
What type of box are you trying to load it to? Do you have enough internal space & RAM to load the hefty 50 MB file? In KODI settings (TV > Guide ) how many days do you have listed to display?

In order to troubleshoot we need a bit more info for us to try and help you out.

Here is more info. I am loading it to a windows 7 computer that i use as my storage for a Raspberry PI 3 that actually runs KODI. Raspberry PI 3 is running LibreELEC v7.0.2 Kernel 4.4.13 with a 16GB sd card. It has 736 MB Ram with 542 available. The file is shared out using a windows SMB share. The drive and file has the proper security settings and is reachable and from the kodi box.

Tim
 
I just looked in the TV settings and it was set to display 3 days. I changed it to 8 to see if that would change anything since that's how many days are in the file. No change still does not load the file. In the PVR settings should it be set to cache guide data and if so how long? Default is 24 hours.
 
I just looked in the TV settings and it was set to display 3 days. I changed it to 8 to see if that would change anything since that's how many days are in the file. No change still does not load the file. In the PVR settings should it be set to cache guide data and if so how long? Default is 24 hours.

I would think a pi doesn't have the power to load that file, sorry. And if it did, I should think you would only want it to display 1 day. From all the posts I have seen in the past, people with pis do have memory load probs sometimes.
 
I just looked in the TV settings and it was set to display 3 days. I changed it to 8 to see if that would change anything since that's how many days are in the file. No change still does not load the file. In the PVR settings should it be set to cache guide data and if so how long? Default is 24 hours.

If you COULD get it to load I would guess 24 hours. But 542 MB is probably not enough to load the file. My android box has 2 GB and it loads OK on that.

Somebody with a pi or knowledge of them would have to tell you if it could load up a 50 MB file in KODI. I think that's probably asking too much of the pi, but IDK.
 
Expatter should your xmltv.xml file work in kodi TV guide full screen or Ivue?

As long as YOU know how to setup and use those addons to use your own xmltv file, then yes. All that matters is that channel names match between pvr and guide. Personally, I don't use any of the alternative epg addons as the one provided with KODI works fine and looks good. It's basically the same one as Psyc0n's with the coloured genres.

Feel free to figure it out how to use the other addons. I looked at the full screen addon a few months back but gave up trying to figure it out. And once I made my own xmltv file and it worked with the pvr/guide, there was no longer any reason for me to try and reinvent the wheel. The whole point of my doing this was that I got tired of being frustrated all the time. Now I'm good. But to each his own.

Cheers.
 
I was able to get most of the channels for UK and USA. I also set up a redirect to a domain I had laying around to go to the guide.xml on a github repo. I set up the guide.xml to be for 36 hours and I will share the url once I automate the call and put it on a server.

TODO:
- Automating the call to the guides
- Error Handling for failures or failed downloads
- Removing excess data i.e. credits, ratings, etc. (Not sure what is actually relevant to people and the different epgs that will use it)

Does anyone know the service to use for Latin America channels.
 
Hey Ex!

Got a question related to message #20 in the tutorial.

NOT EVERYONE WILL HAVE TO DO THIS, JUST DEPENDS ON HOW COMPLETE THE DATA FROM YOUR PULL IS!
After this is done, open freesat.xml and go down to where <channel id="blah, blah, blah", and highlight all the info down to </channel> highlight and copy the highlighted text. Close the file and open guide.xml in notepad++ and go to line 5, where <channel id="blah, blah, blah" is and insert a carriage return. Go down 1 line and paste the data in memory. Resave the file (guide.xml)

Question: You wouldn't be copying any of the freesat program information if you left out the <programme>...</programme> tags, correct? You'd be including freesat channel data but not freesat programme data, unless I'm reading something wrong...which is certainly not beyond me.
 
Last edited:
Hey Ex!

Got a question related to message #20 in the tutorial.

NOT EVERYONE WILL HAVE TO DO THIS, JUST DEPENDS ON HOW COMPLETE THE DATA FROM YOUR PULL IS!
After this is done, open freesat.xml and go down to where <channel id="blah, blah, blah", and highlight all the info down to </channel> highlight and copy the highlighted text. Close the file and open guide.xml in notepad++ and go to line 5, where <channel id="blah, blah, blah" is and insert a carriage return. Go down 1 line and paste the data in memory. Resave the file (guide.xml)

Question: You wouldn't be copying any of the freesat program information if you left out the <programme>...<programme> tags, correct. You'd be including freesat channel data but not freesat programme data, unless I'm reading something wrong...which is certainly not beyond me.

Good catch Ilan. I do highlight the entire contents down to the last line (end of file) where it says </tv> and then move up one line which ends with </programme>.

I'll edit the post. Tks.
 
Viper - these are pulled from the epg grabber that was under development

latino lineup -- mc2xml -c mx -g 10000 -R latin_tp.ren -o latin_tp.xml -D latin_tp.dat -F -s -1 -d 48 -C latin_tp.chl -f -u -a

latin_tp.chl
AZ24HD
ANTEN
GALICIA
TVEA2
CABTELE
TLNOVEL
CARA
DWLA
DISCM
DTHLAHD
DWRLDHD
DHEALM
HCLMHD
NATGEOMEX
NATWILD
APL
ESPN
ESPN2M
ESPN3N
I563.44563106.microsoft.com

FOXS3
UFCHD
TDNHD
GOLFLA
DISNEY
DISNXD
DISNJMX
NIKLAHD
NICKJLM
DKNLM
TOONS
BOOMLM
TOONCST
BABYTVL
CBEETV
SONY
BBCE
UNICABL
WBLHD
EINT
FXLHD
UNILAHD
FOXHD
SYFYLA
AEMEXHD
TRAVEL
TLCLASP
AXNHD
GOURMETN
CASACLUB
TBSESLA
GLITZ
FOXLIFE
DISTCOM
COMCLAH
TRUTVLA
EFEKTO
LIFELA
CNNHD
BTV
THITHD
MTVL
MTVHTLA
VH1CL
VH1
RITMO
CNCRTHD
HTV
BANDAMAX
DEPELHD
GOLDNHD
GOLDII
TNT
CINEPLH

SPACMHD
MGMMEX
STULM
TCML
I*SAT
EUROPA
FAMEX
FILMZONE
MOVIECITY

FOXFA
FOXCI
FOXACE
FOXACW
FOXMOHD
FOXCL
OLEENG
HBOPNHD
OLE
OLEW
HBOFAM
HBOSLA
MAXPRMH
MAXPRIME
MAXMEX

Latin_tp.ren

:Az Mundo
:Canal De Las Estrellas
:Univision
:UniMas
ANTEN:Antena 3
GALICIA:Galicia TV
TVEA2:TVE Internacional America
:GalaTV
:pasiones
:Telemundo
CABTELE:Telemundo Internacional
:RCN Novelas
TLNOVEL:Tlnovelas America
:TeleCentro
CARA:Caracol Internacional
DWLA:DW Latinoamerica
:TV Globo Internacional
:TV 5 Monde Amérique latine
DISCM:Discovery en Español
DTHLAHD:Discovery Theater
DWRLDHD:Discovery World
DHEALM:Discovery Home & Health Latinoamerica
:H2 Latinoamerica
HCLMHD:History en Español
NATGEOMEX:National Geographic Latinoamerica
NATWILD:Nat Geo Wild Latino America
APL:Animal Planet Latinoamerica
ESPN:ESPN Latinoamerica
ESPN2M:ESPN 2 Latinoamerica
ESPN3N:ESPN 3 Latinoamerica
FSALAPRM:Fox Sports Latinoamerica
:Fox Sports 2 Latinoamerica
FOXS3:Fox Sports 3 Latinoamerica
:BeinSports en Español
UFCHD:UFC Network Latinoamerica
:F1 Latinoamerica
:planeta Futbol
:Univision TDN
TDNHD:TDN Mexico
GOLFLA:Golf Channel Latinoamerica
DISNEY:Disney Channel Norte
DISNXD:Disney XD Norte
DISNJMX:Disney Junior Norte
NIKLAHD:Nickelodeon Latinoamerica
NICKJLM:Nick Jr Latinoamerica
DKNLM:Discovery Kids America Latina
TOONS:Cartoon Network Latinoamerica
BOOMLM:Boomerang Latinoamerica
TOONCST:Tooncast
:BabyFirst TV Latinoamerica
BABYTVL:Baby TV Latinoamerica
CBEETV:CBeebies Latinoamerica
SONY:Canal Sony
BBCE:BBC Entertainment Latinoamerica
UNICABL:Unicable
WBLHD:Warner Channel Latinoamerica
EINT:E! Latinoamerica
FXLHD:FX Latino
UNILAHD:Universal Channel America Latina
FOXHD:Fox Latinoamerica
SYFYLA:Syfy Latinoamerica
AEMEXHD:A&E Latinoamerica
TRAVEL:Investigation Discovery Latinoamerica
TLCLASP:TLC Latinoamerica
AXNHD:AXN Latinoamerica
:Eurochannel
:MundoFox
:Hogar Util
:TNT Series Latinoamerica
GOURMETN:Elgourmet
CASACLUB:Casa Club TV
TBSESLA:TBS America Latina
GLITZ:Glitz Latinoamerica
FOXLIFE:FOX Life
DISTCOM:Distrito Comedia
COMCLAH:Comedy Central Latinoamerica
TRUTVLA:Tru TV America Latina
EFEKTO:Efekto TV
:Multimedios Plus
LIFELA:Lifetime Latinoamerica
CNNHD:CNN en Español
BTV:El Financiero Bloomberg
:RT en Español
:NTN 24
:Azteca Noticias
:Euronews en Español
THITHD:TeleHit
MTVL:MTV Latinoamerica
MTVHTLA:MTV Hits Latinoamerica
VH1CL:VH1 Classic Europe
VH1:VH1 Latino Norte
RITMO:Ritmoson
CNCRTHD:Concert Channel
HTV:HTV
BANDAMAX:Bandamax
DEPELHD:De Pelicula
:De Pelicula Multiplex
:CineLatino
GOLDNHD:Golden
GOLDII:Golden Edge
:Golden Multiplex
:paramount Channel Latinoamerica
:Sundance Channel Latinoamerica
TNT:TNT America Latina
CINEPLH:CineCanal
:Cinemax Latinoamerica
SPACMHD:SPACE
:AMC
STULM:Studio Universal
TCML:TCM America Latina
I*SAT:I-Sat
EUROPA:Europa Europa
FAMEX:Film & Arts Latinoamerica
FILMZONE:Film Zone
:Fox 1 Este
MOVIECITY:Fox 1 Oeste
FOXFA:Fox Family
:Fox Comedy
FOXCI:Fox Cinema
FOXACE:Fox Action Este
FOXACW:Fox Action Oeste
FOXMOHD:Fox Movies Latinoamerica
FOXCL:Fox Classics Latinoamerica
OLEENG:HBO Latinoamerica
HBOPNHD:HBO 2 Latinoamerica
OLE:HBO Plus Este
OLEW:HBO Plus Oeste
HBOFAM:HBO Family Latinoamerica
HBOSLA:HBO Signature Latinoamerica
:Max UP Latinoamerica
MAXPRMH:Max Prime Este
MAXPRIME:Max Prime Oeste
MAXMEX:MAX
:Golden Premier 1
:Golden Premier 2

Like I said these are pulled from the old epg grabber files so you can see that they are incomplete but it is a better starting point then from scratch. there are also the latino skymex which have a mc2xml ren and chl files as follows

latino_skymex.chl

TLTICA
RGTI2
TVINTL

FSALAPRM
TDN2
BABY1
EURO
MFOXLA

I403.44563606.microsoft.com
I411.44563221.microsoft.com

I431.44563068.microsoft.com


CINOLE

GPREMSD
GPRD2SD
102 XEW
105 XHGC
106 XHTV
107 XHIMT
109 XEQ
111 XEIPN
113 XHDF2
120 MILENIO
121 TFORM
140 PROY40
417 MAXMEX



Latin_skymex.ren

TLTICA:Teletica
XEQDT:GalaTV

RGTI2:TV Globo Internacional
TVINTL:TV 5 Monde

FSALAPRM:Fox Sports 2 Latinoamerica

TDN2:Univision TDN
BABY1:BabyFirst TV Latinoamerica
EURO:Eurochannel
MFOXLA:MundoFox

DEPELICULA:De Pelicula Multiplex

GOLDEN:Golden Multiplex

MOVIECITY:Fox 1 Este

CINOLE:Max UP Latinoamerica

GPREMSD:Golden Premier 1
GPRD2SD:Golden Premier 2
XEW:Canal De Las Estrellas
XHGC:Mexico 2


XEQ:Gala TV
XEIPN:Mexico 4
XHDF2:Mexico 3
MILENIO:Mexico 10

PROY40:Mexico 9
MAXMEX:Cinemax Latinoamerica

hope this helps, Just remember that this list is old from when the epg grabber was being developed. I have been working on my epg for a couple of weeks, there have been to many inconsistancies with the EPG for a while now as far as up and down goes. I would rather do my own pulls and have the correct data displayed. I have about the same list up and running as expat with 48h pulls with 98% of the english channels.
 
Nice work, Issues.

Got another question for you, Ex, related to the tutorial:

mc2xml (-J user/password) -D ota.dat -C ota.chl -R ota.ren -d 200 -a -U -u -F -o ota.xml
mc2xml (-J user/password) -D us.dat -C us.chl -R us.ren -d 200 -a -U -u -F -I ota.xml -o us.xml
mc2xml (-J user/password) -D freesat.dat -C freesat.chl -R freesat.ren -d 200 -a -U -u -F -o freesat.xml
mc2xml (-J user/password) -D uk.dat -C uk.chl -R uk.ren -d 200 -a -U -u -F -I us.xml -o guide.xml

Are these individual batch files (.bat files)? If so, why did you choose to do a cut and paste with the freesat data? Couldn't you have done another include in the third batch run to get around it? I'm intrigued :)

mc2xml (-J user/password) -D freesat.dat -C freesat.chl -R freesat.ren -d 200 -a -U -u -F -I us.xml -o us_freesat.xml
mc2xml (-J user/password) -D uk.dat -C uk.chl -R uk.ren -d 200 -a -U -u -F -I us_freesat.xml -o guide.xml
 
Nice work, Issues.

Got another question for you, Ex, related to the tutorial:

mc2xml (-J user/password) -D ota.dat -C ota.chl -R ota.ren -d 200 -a -U -u -F -o ota.xml
mc2xml (-J user/password) -D us.dat -C us.chl -R us.ren -d 200 -a -U -u -F -I ota.xml -o us.xml
mc2xml (-J user/password) -D freesat.dat -C freesat.chl -R freesat.ren -d 200 -a -U -u -F -o freesat.xml
mc2xml (-J user/password) -D uk.dat -C uk.chl -R uk.ren -d 200 -a -U -u -F -I us.xml -o guide.xml

Are these individual batch files (.bat files)? If so, why did you choose to do a cut and paste with the freesat data? Couldn't you have done another include in the third batch run to get around it? I'm intrigued :)

mc2xml (-J user/password) -D freesat.dat -C freesat.chl -R freesat.ren -d 200 -a -U -u -F -I us.xml -o us_freesat.xml
mc2xml (-J user/password) -D uk.dat -C uk.chl -R uk.ren -d 200 -a -U -u -F -I us_freesat.xml -o guide.xml

No, these are not batch files. I did make some but then since I was making changes whilst getting it all figured out, etc, I didn't get around to saving the above as ???.bat files yet. I just open a command prompt (I leave it open, actually, and then I don't have to re-enter the info. I just do an F3 and use the cursor keys to change the names of files I am working with. A bat wouldn't work with highlighting and copy/paste when I have to do that since the amount of data is different every pull.

When I run my pull the whole thing takes about 8-10 minutes. It's when I add the new file to the pvr and look to see if there is missing info that I know if I need to do an ad hoc run for any channels that might not have had any info for whatever reason.

Savez vous ?