2016-11-20, 08:43 AM
Does NPVR scan XMLTV on startup?
Do i need to set the run time at 1min after 'now' in misc2?
Do i need to set the run time at 1min after 'now' in misc2?
2016-11-20, 08:43 AM
Does NPVR scan XMLTV on startup?
Do i need to set the run time at 1min after 'now' in misc2?
2016-11-20, 11:19 AM
tripkip Wrote:Does NPVR scan XMLTV on startup? In normal use, NextPVR only reads the XMLTV file each day at the time set in Settings --> Misc2 and when the Update EPG button is pressed in Settings --> Channels. There is also this ... http://nextpvr.com/nwiki/pmwiki.php?n=Ma...ineOptions ... and you can start NextPVR with a commnd like ... nextpvr.exe -updateepg You can create a UpdateEPG.bat that will be run by NextPVR immediately before the XMLTV file is read. The UpdateEPG.bat file can be used to run the grabber that gets the XMLTV data and creates the file ... http://nextpvr.com/nwiki/pmwiki.php?n=Co...BatchFiles
2016-11-21, 10:19 AM
It also depends on where your XMLTV comes from. On my test server with multiple tuners and sources it could add 20 minutes to update the EPG.
2018-11-02, 06:34 PM
Old thread but related issue.
I use an xml file (downloaded daily from Internet) for my IPTV and use SD for my OTA. I have an updateepg bat setup to delete the current xml file and then download the new xml file. The epg xml file is downloaded and located in the same directory as the UpdateEPG batch file(C:\Users\Public\NPVR\Scripts). The batch file works when I run it however I notice with Auto Update EPG selected the downloaded xml file is missing...? I then have to run from the folder to get the xml file. I'm not sure what I need to change in my UpdateEPG.bat file. Some of the IPTV are mapped to the xml file and some to SD. TIA, orv
2018-11-02, 06:40 PM
Orv Wrote:I use an xml file (downloaded daily from Internet) for my IPTV and use SD for my OTA. I have an updateepg bat setup to delete the current xml file and then download the new xml file. The epg xml file is downloaded and located in the same directory as the UpdateEPG batch file(C:\Users\Public\NPVR\Scripts). The batch file works when I run it however I notice with Auto Update EPG selected the downloaded xml file is missing...? I then have to run from the folder to get the xml file. I'm not sure what I need to change in my UpdateEPG.bat file. The updateepg batch file is run by the NextPVR Service and runs in the "system" user. The batch file is not running in the same folder that it runs in when you run it from the command prompt. You might need to spell out the full path to all files and folders in the commands within the updateepg batch file.
2018-11-02, 10:31 PM
Graham Wrote:The updateepg batch file is run by the NextPVR Service and runs in the "system" user. The batch file is not running in the same folder that it runs in when you run it from the command prompt. You might need to spell out the full path to all files and folders in the commands within the updateepg batch file. That was my question I guess. What should the path/address be? I think my "wget" in the batch file isn't running, it's just deleting the file, when Auto Update EPG runs...? I attached my UpdateEPG bat (edited the web address and renamed file with txt extension.) Thanks again for the help, -orv
2018-11-02, 11:36 PM
Is wget is not in the scripts folder you you need to specify the full drive and path information for it.
Martin
2018-11-03, 12:12 AM
You might also try logging your output so you can see what's happening. Here is a new version of your script:
Code: @Echo Off You'll find the output in log file â¦\NPVR\Logs\UpdateEPG.log
2018-11-03, 01:27 AM
Thanks for the code. I set the environment path when I installed wget (since it's Win10) and am guessing Auto Update EPG doesn't know what wget is or where it is, hence epg.xml deleted and new file not downloaded.
Anyway I ran the new batch file and checked the log, no errors. I'll let you know if any errors after the Auto Update runs. Thanks again, -orv |
|