NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 39 40 41 42 43 … 433 Next »
Best way to see XMLTV changes effective immediatly in NPVR guide?

Best way to see XMLTV changes effective immediatly in NPVR guide?
tripkip
Offline

Junior Member

Posts: 35
Threads: 13
Joined: Dec 2015
#1
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?
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2016-11-20, 11:19 AM
tripkip Wrote:Does NPVR scan XMLTV on startup?
Do i need to set the run time at 1min after 'now' in misc2?

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
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#3
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.
Orv
Offline

Junior Member

Posts: 9
Threads: 1
Joined: May 2018
#4
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
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#5
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.
Some of the IPTV are mapped to the xml file and some to SD.

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.
Orv
Offline

Junior Member

Posts: 9
Threads: 1
Joined: May 2018
#6
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
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,883
Threads: 954
Joined: May 2006
#7
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
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#8
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
GoTo :BEGIN
=======================================================================
UpdateEPG.bat - download new EPG file for NPVR
Notes:
    Set WGetEXE to your location of wget.exe
    Set WebEPGURL to your location of the EPG File
=======================================================================
:BEGIN
    Set BASEDIR=c:\Users\Public\NPVR
    Set SCRIPTDIR=%BASEDIR%\Scripts
    Set LOGFILE=%BASEDIR%\Logs\UpdateEPG.log
    
    Set WebEPGURL=http://webaddress-edit/epg.xml
    Set WGetEXE="C:\Program Files (x86)\GnuWin32\bin\wget.exe"
    
    Call :LOGMSG ====================================================
    Call :LOGMSG Update EPG Triggered
    Call :LOGMSG Change to script directory: %SCRIPTDIR%
    cd /d %SCRIPTDIR%
    
    Call :LOGMSG Delete old epg.xml
    del %SCRIPTDIR%\epg.xml

    Call :LOGMSG Download new epg.xml file
    %WGetEXE% %WebEPGURL% -a %LOGFILE% -P %SCRIPTDIR%
    If exist %SCRIPTDIR%\epg.xml (
        Call :LOGMSG Download successful
    ) else (
        Call :LOGMSG ERROR: Download failed
    )
    GoTo :ENDJOB
    
:LOGMSG
    echo %*
    echo %date:~4% %time% %* >> %LOGFILE%
    Goto :EOF
    
:ENDJOB
    Call :LOGMSG Update EPG Complete.


You'll find the output in log file …\NPVR\Logs\UpdateEPG.log
Orv
Offline

Junior Member

Posts: 9
Threads: 1
Joined: May 2018
#9
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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR - EPG Setup - XML/XMLTV EPG - Zap2it & Zap2xml Erdrick 126 140,836 2024-01-29, 01:07 AM
Last Post: stoenjes44
  Guide Empty brady@preheim.com 13 2,419 2022-11-16, 02:13 PM
Last Post: mvallevand
  npvr is not responding johndutcher 3 1,474 2022-05-05, 07:57 PM
Last Post: sub
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 3,825 2022-04-14, 04:33 AM
Last Post: Antmannz
  nPVR Continually Wakes PC bfos 23 11,097 2022-02-17, 03:48 PM
Last Post: sub
  Can't find tuner filter in NPVR 4.05 on old XP machine (eee 701) with RTL2832U iamanotheruser 3 1,653 2022-01-03, 04:45 AM
Last Post: mvallevand
  ZAP2XML no longer loading TV Guide Schedule skoonz_sr@hotmail.com 33 20,152 2021-03-27, 06:45 AM
Last Post: Jean0987654321
  Mouse Click on TV Guide throws an error mlopez1007 2 1,416 2021-03-22, 11:33 AM
Last Post: Graham
  Streaming Services with NPVR tesla1886 4 2,662 2021-01-04, 02:58 AM
Last Post: tesla1886
  EPG XMLTV problem DBHall 8 3,734 2021-01-01, 12:34 PM
Last Post: Graham

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode