The following example creates a folder for the MC2XML EPG data in the root folder of a C: drive. The MC2XML EPG data folder does not have to be in this location but the UpdateEPG.bat file must point to the location of the MC2XML EPG folder. It also presumes that mc2xml.exe has been downloaded to a "temp" folder on the root of the C: drive.

1. Create a folder for the EPG data in the C: drive and put the mc2xml.exe binary in that folder (use a GUI file manager, Windows Explorer or a command line).

To create the EPG folder and copy mc2xml.exe into it from the command line:

md C:\EPG\
copy C:\temp\mc2xml.exe C:\EPG\

2. Optionally create an mc2xml.chl file (make sure that notepad doesn't append a ".txt" extension to this filename) listing the channels you want included in your EPG (see General Information above for file format). If you do not specify which channels to grab all available channels and programme data for them will be downloaded resulting in a much larger xmltv.xml file size.

notepad C:\EPG\mc2xml.chl

When prompted agree to create a new file. Include any specific channel information (see above) in the mc2xml.chl file and save it.

3. Create a file called UpdateEPG.bat and save it in the scripts folder of the NextPVR data directory and edit it with a text editor (notepad). Add any optional command line parameters to MC2XML that you might want. (see mc2xml options above) (make sure that notepad doesn't append a ".txt" extension to this filename).

To create UpdateEPG.bat from the command line:

(a) Windows XP, Server 2003:

notepad C:\Documents and Settings\All Users\Application Data\NPVR\Scripts\UpdateEPG.bat

When prompted agree to create a new file. Enter relevant content in the file and save it. Simple example contents of UpdateEPG.bat:

cd C:\EPG
mc2xml

(b) Windows Vista, 7, Server 2008:

notepad C:\Users\Public\NPVR\Scripts\UpdateEPG.bat

When prompted agree to create a new file. Enter the relevant content to the file and save it. Simple example contents of UpdateEPG.bat:

cd C:\EPG
mc2xml

4. Navigate to the newly created .bat and run it (double click on UpdateEPG.bat) and MC2XML will ask you to input your Postal/Zip code (ie: "10000"), Country Code (ie: "us"), and will allow you to toggle any options (check "-a" and/or "-A" if you want *'s in your listings to indicate new programmes).

It will then ask you to select a lineup number. MC2XML will save this selection to mc2xml.dat and create an xmltv.xml file in the C:\EPG folder. (If you selected the wrong lineup delete mc2xml.dat and try again).

Now you can set up NextPVR to use the programme data downloaded by MC2XML.

5. Depending on the type of capture cards you have installed on your system use the following:

(a) For Analog only devices

If there are only analog devices installed on your system select the analog device in the "Devices" section of the NextPVR "Settings" screen. Select "Device Setup" and use the "Import" option and browse to the location of the newly created xmltv.xml file. All available channels will be loaded, if you have not specified only the channels you wish to use in the mc2xml.chl file use the "Delete" option to remove channels you do not wish to view. "OK" all settings. Then select the "UpdateEPG" button in the "Channels" section of the "Settings" screen which will populate the EPG with programme data.

(b) For Digital only devices

For digital devices make sure to have run a channel scan on each device you wish to map the XML EPG data to in the "Devices" section of the NextPVR "Settings" screen and choose "Channels". Select a channel that you wish to use the MC2XML EPG source for, from the drop down list select XMLTV and browse to locate the newly created xmltv.xml file. If NextPVR does not automatically match the channel name to the name in the XMLTV file use the dropdown list to choose the channel. "OK" this setting. If mapping multiple channels to your MC2XML xmltv.xml file choose the "Bulk Map" option to easily edit the rest of the channels. Once finished editing use the "UpdateEPG" button to populate the EPG with programme data.

(c) For Analog and Digital devices on the same system use a combination of the above.

6. Set the "EPG Update Hour" in the "Misc" section of the "Settings" screen and NextPVR will automatically run UpdateEPG.bat at the set time before it imports the programme data from the xmltv.xml file and updates the EPG.

Page last modified on February 03, 2011, at 02:00 PM