Hello Everyone,
Please forgive if I posted this in the wrong area.
This tutorial will show you how to install zap2xml so that NextPVR can auto update the data for the TV guide.
I am writing this tutorial to help those, who like myself, banged their head against a wall trying to get EPG data for OTA digital broadcasts. Now for me, the DVB/ATSC EPG did work but only contained 2 days at most for some channels and less than a day for others. That just wasn't going to work. Everywhere I looked said the easier solution was to just go to SchedulesDirect. While $25/yr doesn't sound like a bad deal, the whole reason I opted to cancel my cable and build this setup was to avoid paying for services like that. I finally have a setup that works. I didn’t do this alone. I found the answer here in the NextPVR forum. I am putting all the steps together in this step by step guide. Do yourself a favor and completely read through this once before actually going through the process.
First I want to point out the original thread and those that posted everything to help me get here.
Original Thread: How-to-setup-Tv-Guide
Thanks to: sub - pBS - Graham - GeoLaw
1: zap2xml
Zap2xml is a small program that will pull the guide data out of zap2it.com or tvguide.com.
Go to Zap2xml and download zap2xml-install.exe. You can find it about half way down the page.
Run the installer and install Zap2xml to the Scripts folder in NextPVR database folder. On my system it is located at: “C:\Users\Public\NPVR\Scripts”.
2: zap2it
This is one of the EPG data sources that zap2xml can use. Originally, I registered with this website and created a user account, it’s free. You can use that username and password within zap2xml to get the data. It is possible to get the data without being registered. Both ways work and currently I do not know of any pros or cons either way. If you want to register to create an account, do that now. If you do create an account, goto 'change my location', enter zipcode and select provider. Then goto Set Preferences and check "Show six hour grid".
3: Create UpdateEPG.bat
In windows files explorer, navigate to the Scripts folder in the NextPVR database folder “C:\Users\Public\NPVR\Scripts” ( this could be different for you).
Right click an empty area and go to New and click Text Document. Then rename the text doc to UpdateEPG.bat.
Make sure that in doing so you change the .txt file extension to .bat.
If you do not see the .txt file extension, goto windows folder options and uncheck ‘hide extensions for known types’.
Right click on the UpdateEPG.bat and click edit. Add the following text to the file.
Registered with Zap2it website? Add the following lines to the bat file and change USERNAME (actually your email address) and PASSWORD to what you created at Zap2it.
Save and close the bat file.
4:
Open a command prompt, type the following and hit enter:
(this should match the location of your Scripts folder located in NextPVR database folder)
5:
In the command prompt, type ‘UpdateEPG.bat’ and press enter.
When it is finished running, you should see something like the following:
If you see it return something like this, continue to #6
6:
Go to the location C:\Users\USERNAME\AppData\Local\Temp : This will be different for you. Get the address from your command prompt.
Now delete the folder proceeding C:\Users\USERNAME\AppData\Local\Temp\par-47656f726765. This will be different for you. Get the folder name from your command prompt.
Install Pearl for Windows Pearl
Open a CMD prompt then type:
Once complete, return to the start of #5
7:
In the scripts folder, C:\Users\Public\NPVR\Scripts, you should not see a file labeled epg.xml. If not, go back to step #5 and try to run it again. If you still do not have the epg.xml file, ask for help in this forum as you are experiencing something I haven’t.
8:
Open NextPVR
Go to Settings
Click on Channels
Do the following for each channel listed.
Double click the channel
Under EPG Source, select XMLTV
Browse to C:\Users\Public\NPVR\Scripts and select epg.xml
Under Mapping, select the appropriate channel
Hit ok once all the channels are mapped.
9: Test it out
While still in Setting under Channels, hit Empty EPG to clear it out and then Update EPG to get the EPG data. If everything goes right, you should have 1 days of data for every channel in your guide. Now this is getting the data from the epg.xml in the Scripts folder.
10: Last step
Now that we have everything setup and working, let’s set this to get more than just 1 day of guide data.
Back in the scripts folder, C:\Users\Public\NPVR\Scripts
Right click the UpdateEPG.bat file and click edit.
What you are looking for is the –d 1 in the string. The lower case d, not the upper case D.
Change the 1 to 10 or whatever you would like.
You string should closely match one of the following two, depending on whether you are using a registered account or not.
Verify your file locations and change USENAME (actually your email address), PASSWORD & ZIPCODE where appropriate.
Right now I am not sure why but clicking Update EPG button in NextPVR>Settings>Channels does not populate the epg.xml file.
You can manually run UpdateEPG.bat or setup a timer to run it to generate the epg.xml file.
I will update once I get the Update EPG button figured out.
Let me know if I missed something and ask if you have questions.
Please forgive if I posted this in the wrong area.
This tutorial will show you how to install zap2xml so that NextPVR can auto update the data for the TV guide.
I am writing this tutorial to help those, who like myself, banged their head against a wall trying to get EPG data for OTA digital broadcasts. Now for me, the DVB/ATSC EPG did work but only contained 2 days at most for some channels and less than a day for others. That just wasn't going to work. Everywhere I looked said the easier solution was to just go to SchedulesDirect. While $25/yr doesn't sound like a bad deal, the whole reason I opted to cancel my cable and build this setup was to avoid paying for services like that. I finally have a setup that works. I didn’t do this alone. I found the answer here in the NextPVR forum. I am putting all the steps together in this step by step guide. Do yourself a favor and completely read through this once before actually going through the process.
First I want to point out the original thread and those that posted everything to help me get here.
Original Thread: How-to-setup-Tv-Guide
Thanks to: sub - pBS - Graham - GeoLaw
1: zap2xml
Zap2xml is a small program that will pull the guide data out of zap2it.com or tvguide.com.
Go to Zap2xml and download zap2xml-install.exe. You can find it about half way down the page.
Run the installer and install Zap2xml to the Scripts folder in NextPVR database folder. On my system it is located at: “C:\Users\Public\NPVR\Scripts”.
2: zap2it
This is one of the EPG data sources that zap2xml can use. Originally, I registered with this website and created a user account, it’s free. You can use that username and password within zap2xml to get the data. It is possible to get the data without being registered. Both ways work and currently I do not know of any pros or cons either way. If you want to register to create an account, do that now. If you do create an account, goto 'change my location', enter zipcode and select provider. Then goto Set Preferences and check "Show six hour grid".
3: Create UpdateEPG.bat
In windows files explorer, navigate to the Scripts folder in the NextPVR database folder “C:\Users\Public\NPVR\Scripts” ( this could be different for you).
Right click an empty area and go to New and click Text Document. Then rename the text doc to UpdateEPG.bat.
Make sure that in doing so you change the .txt file extension to .bat.
If you do not see the .txt file extension, goto windows folder options and uncheck ‘hide extensions for known types’.
Right click on the UpdateEPG.bat and click edit. Add the following text to the file.
Registered with Zap2it website? Add the following lines to the bat file and change USERNAME (actually your email address) and PASSWORD to what you created at Zap2it.
Quote:cd /d C:\Users\Public\NPVR\ScriptsIf you are not registered with Zap2it or just don’t want to login to get the data, add the following lines to the bat file and change both ZIPCODE entries to your zipcode.
C:\Users\Public\NPVR\Scripts\zap2xml.exe -o C:\Users\Public\NPVR\Scripts\epg.xml -u USERNAME -p PASSWORD -d 1 -S 1 -D -A "new live" -E "amp apos quot lt gt" –F
Quote:cd /d C:\Users\Public\NPVR\Scripts
C:\Users\Public\NPVR\Scripts\zap2xml.exe -o C:\Users\Public\NPVR\Scripts\epg.xml -Y ZIPCODE -Z ZIPCODE -d 1 -S 1 -D -A "new live" -E "amp apos quot lt gt" -F
Save and close the bat file.
4:
Open a command prompt, type the following and hit enter:
(this should match the location of your Scripts folder located in NextPVR database folder)
Quote:cd /d C:\Users\Public\NPVR\Scripts
5:
In the command prompt, type ‘UpdateEPG.bat’ and press enter.
When it is finished running, you should see something like the following:
Quote:Writing XML file: C:\Users\Public\NPVR\Scripts\epg.xmlIf you see something like that, skip 6 and go to #7.
Completed in 3s (Parse: 2s) 56 stations, 944 programs, 1734 scheduled.
If you see it return something like this, continue to #6
Quote:Can't locate URI.pm in @INC (@INC contains: CODE(0x2b65e64) C:\Users\USERNAME\AppData\Local\Temp\par-47656f72
6765\cache-709d80414085c53abfd80ec559ac37c4061ccf1b\inc\lib C:\Users\USERNAME\AppData\Local\Temp \par-47656f72
6765\cache-709d80414085c53abfd80ec559ac37c4061ccf1b\inc CODE(0x287d624) CODE(0x2
87d924)) at (eval 18) line 2.
6:
Go to the location C:\Users\USERNAME\AppData\Local\Temp : This will be different for you. Get the address from your command prompt.
Now delete the folder proceeding C:\Users\USERNAME\AppData\Local\Temp\par-47656f726765. This will be different for you. Get the folder name from your command prompt.
Install Pearl for Windows Pearl
Open a CMD prompt then type:
Quote:cd /d c:\windows\system32Then type
Quote:ppm install TimeDate
Once complete, return to the start of #5
7:
In the scripts folder, C:\Users\Public\NPVR\Scripts, you should not see a file labeled epg.xml. If not, go back to step #5 and try to run it again. If you still do not have the epg.xml file, ask for help in this forum as you are experiencing something I haven’t.
8:
Open NextPVR
Go to Settings
Click on Channels
Do the following for each channel listed.
Double click the channel
Under EPG Source, select XMLTV
Browse to C:\Users\Public\NPVR\Scripts and select epg.xml
Under Mapping, select the appropriate channel
Hit ok once all the channels are mapped.
9: Test it out
While still in Setting under Channels, hit Empty EPG to clear it out and then Update EPG to get the EPG data. If everything goes right, you should have 1 days of data for every channel in your guide. Now this is getting the data from the epg.xml in the Scripts folder.
10: Last step
Now that we have everything setup and working, let’s set this to get more than just 1 day of guide data.
Back in the scripts folder, C:\Users\Public\NPVR\Scripts
Right click the UpdateEPG.bat file and click edit.
What you are looking for is the –d 1 in the string. The lower case d, not the upper case D.
Change the 1 to 10 or whatever you would like.
You string should closely match one of the following two, depending on whether you are using a registered account or not.
Verify your file locations and change USENAME (actually your email address), PASSWORD & ZIPCODE where appropriate.
Quote:C:\Users\Public\NPVR\Scripts\zap2xml.exe -o C:\Users\Public\NPVR\Scripts\epg.xml -u USERNAME -p PASSWORD -d 10 -S 1 -D -A "new live" -E "amp apos quot lt gt" –F
Quote:C:\Users\Public\NPVR\Scripts\zap2xml.exe -o C:\Users\Public\NPVR\Scripts\epg.xml -Y ZIPCODE -Z ZIPCODE -d 10 -S 1 -D -A "new live" -E "amp apos quot lt gt" -F
Right now I am not sure why but clicking Update EPG button in NextPVR>Settings>Channels does not populate the epg.xml file.
You can manually run UpdateEPG.bat or setup a timer to run it to generate the epg.xml file.
I will update once I get the Update EPG button figured out.
Let me know if I missed something and ask if you have questions.