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

I do the batches somewhat similarly, but I create individual batch files for each pull then a master batch file that runs each one in sequence and deletes the intermediate xml files. Thus, if I were doing an overall pull with intermediate pulls, I would create a batch file for each and the master guide batch to run them. Contents of the master would look like this...

master_guide.bat

call ire.bat
call can.bat
call uk.bat
call miami.bat
call us.bat
del "ire.xml" "can.xml" "uk.xml" "miami.xml"
 
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

Did you ever got the bottom of it? I'm stuck at the same point, I'm pulling my own guide from Schedules Direct witch channels I only watch and the guide works fine when it's loaded from let's say a USB stick but as soon as I point the path to a SMB share on ubuntu server I'm getting that parser error.

50MB file loads fine but makes the pi slow...
 
IDK if Pendlet got it sorted but I think the android version of KODI doesn't play well with Stalker pvr. At least in my case on Minix the database resets once a week or two and danged if I don't have to spend a half hour putting it back in the order I prefer. I think I'm just going to stick with the emulator on android from now on but then there will be the guide issues. I don't find it fun to have to do this over and over. I've had this same thing happen if I use SBMC as well. Kind of defeats the purpose of having this set up. Doesn't really seem to be an issue in Windows tho.

Today I only had adult channels so I un-checked the TV and then reenabled. Then I had ALL the frickin channels back. It's maddening! This was on the Minix box.

And as far as having the guide on a Samba share, I've never gotten that to work - even in windows. If it did, it would make life a lot easier.
 
IDK if Pendlet got it sorted but I think the android version of KODI doesn't play well with Stalker pvr. At least in my case on Minix the database resets once a week or two and danged if I don't have to spend a half hour putting it back in the order I prefer. I think I'm just going to stick with the emulator on android from now on but then there will be the guide issues. I don't find it fun to have to do this over and over. I've had this same thing happen if I use SBMC as well. Kind of defeats the purpose of having this set up. Doesn't really seem to be an issue in Windows tho.

Today I only had adult channels so I un-checked the TV and then reenabled. Then I had ALL the frickin channels back. It's maddening! This was on the Minix box.

And as far as having the guide on a Samba share, I've never gotten that to work - even in windows. If it did, it would make life a lot easier.

I gave up on SMB but I finally got to work the way I want. What I did is setup a little ftp server on my Asus router, EPG is getting pulled from SD then transferred to usb stick connected to my router, all is working great. Now I just have to write a little bash script to make it all automatic with crontab.
 
Can someone elaborate more on --sdjs-images command in mc2xml? On the website it says "If you want more program icon urls (movies/shows/sports), use the --sdjs-images optional parameter; this will request more server data and take more time."
Will the guide download lat say a poster for a given movie or some other stuff? Is it worth including that command? Anyone tried it?
 
IDK if Pendlet got it sorted but I think the android version of KODI doesn't play well with Stalker pvr. At least in my case on Minix the database resets once a week or two and danged if I don't have to spend a half hour putting it back in the order I prefer. I think I'm just going to stick with the emulator on android from now on but then there will be the guide issues. I don't find it fun to have to do this over and over. I've had this same thing happen if I use SBMC as well. Kind of defeats the purpose of having this set up. Doesn't really seem to be an issue in Windows tho.

Today I only had adult channels so I un-checked the TV and then reenabled. Then I had ALL the frickin channels back. It's maddening! This was on the Minix box.

And as far as having the guide on a Samba share, I've never gotten that to work - even in windows. If it did, it would make life a lot easier.

I got the samba working under linux (Raspberry Pi 3 running OSMC) after few hours for tinkering and reading, all I had to do is mount the drive in fstab which contained the .xml file.

sudo mkdir /mnt/myname

sudo nano /etc/fstab

//mysambaserver/mysambafolder/ /mnt/myname/ cifs noauto,x-systemd.automount,username=name,password=name,uid=1000,gid=1000,iocharset=utf8 0 0

and it worked like charm seems kinda faster too comparing to ftp but that's only for the linux boxes, I still got one AFTV which is android as we all know and can't figure it out how to auto mount the drive in android. So for now I'll stick with ftp until I can figure out the android part.
 
Hey guys can someone shed some light on my issue, so my guide working great for SD channels.. but with the changes to HD I can't seem to pull the guide for HD channels. I changed the .ren and .chl files so they include the HD channels but can't seem to get it to work.

Can't seem to find channel ID's to include it in .chl file maybe that would help or I'm just looking in the wrong place.
 
Hey guys is there a easier way to disable channels other then going one by one? I would like to disable all the international ones and leave only the english speaking channels, but I don't feel like going one by one on over 700 channels.

Sorry for not responding to your posts but I've been disgusted with the changes going on with the removal of the SD channels. I haven't bothered with any of this since is has not been working for me for 2 weeks. Only a handful of channels I watch worked for me until today and posting about an epg for a system that isn't working is not my bag of chips. (I'll reserve further comment as I'm attempting to watch CNN and there is still some buffer issues but it [knock on wood] seems to have started working today for the first time. There are still some channels that don't work but when isn't that the case?)

Now that some SD channels have been replaced with HD, to get the guide to populate all you have to do is change the ren file and add the HD after each respective channel name. Schedules Direct seems to also have made some changes as did mc2xml but I see you have already figured this part out. It's easy to see which channel IDs have changed by looking at the xml and the new changes will JUMP OUT in the channel listings by not conforming to NFPS names. It was only a few in my case.

As for the fun aspect of hiding all the unwanted channels goes, there were 2 options that used to work in the past but don't seem to work anymore. I don't know who came up with them (Alucard, maybe?), but there was a KODI TEMPLATE LOADER and a KODI TV MANAGER that you could run against the tv.db and easily hide & group channels. If you do a search on here they might still be available. Both apps only worked on windows machines and when they worked, they worked great and you could hide all those channels in a couple of minutes and then open Kodi and have the PVR tweaked just how you wanted it. Doesn't seem to work anymore in any event. So unfortunately you have to do one at a time and spend about a half hour.
 
Last edited:
Sorry for not responding to your posts but I've been disgusted with the changes going on with the removal of the SD channels. I haven't bothered with any of this since is has not been working for me for 2 weeks. Only a handful of channels I watch worked for me until today and posting about an epg for a system that isn't working is not my bag of chips. (I'll reserve further comment as I'm attempting to watch CNN and there is still some buffer issues but it [knock on wood] seems to have started working today for the first time. There are still some channels that don't work but when isn't that the case?)

Now that some SD channels have been replaced with HD, to get the guide to populate all you have to do is change the ren file and add the HD after each respective channel name. Schedules Direct seems to also have made some changes as did mc2xml but I see you have already figured this part out. It's easy to see which channel IDs have changed by looking at the xml and the new changes will JUMP OUT in the channel listings by not conforming to NFPS names. It was only a few in my case.

As for the fun aspect of hiding all the unwanted channels goes, there were 2 options that used to work in the past but don't seem to work anymore. I don't know who came up with them (Alucard, maybe?), but there was a KODI TEMPLATE LOADER and a KODI TV MANAGER that you could run against the tv.db and easily hide & group channels. If you do a search on here they might still be available. Both apps only worked on windows machines and when they worked, they worked great and you could hide all those channels in a couple of minutes and then open Kodi and have the PVR tweaked just how you wanted it. Doesn't seem to work anymore in any event. So unfortunately you have to do one at a time and spend about a half hour.

Thank you Ex for all you help buddy.
Yeah I got everything working including "sed" for replacing the asterisk with [NEW].

That's what I thought so, going one by one. I'll just have to hire my son for this job :)

As for the channels they were working nicely for me since the change to HD but since yesterday night a lot of channels are not working.
 
Thank you Ex for all you help buddy.
Yeah I got everything working including "sed" for replacing the asterisk with [NEW].

That's what I thought so, going one by one. I'll just have to hire my son for this job :)

As for the channels they were working nicely for me since the change to HD but since yesterday night a lot of channels are not working.

I tried watching something earlier and the channel borked so I had to use the task manager to kill Kodi and that put every channel (dammit) back in the pvr, so I gave the Kodi TV Manager a try again. Guess what? It worked. Wanted to pass that info along to you. Just make sure you change the channels in both places (top and bottom) and it should work for you, too. It was all done in 4 minutes as opposed to 30 in Kodi.

Not that the channels are actually working though...