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 … 18 19 20 21 22 … 433 Next »
UpdateEPG.bat works manually but not daily automatically. (script included)

UpdateEPG.bat works manually but not daily automatically. (script included)
acegolfer
Offline

Member

Posts: 87
Threads: 21
Joined: Feb 2006
#1
2019-08-11, 01:56 AM
Need help with auto EPG update. Followed the instruction in https://forums.nextpvr.com/showthread.ph...mp-Zap2xml to create update.bat, which is

cd /d C:\Users\Public\NPVR\Scripts
C:\Users\Public\NPVR\Scripts\zap2xml.exe -o C:\Users\Public\NPVR\Scripts\epg.xml -u userid@gmail.com -p passwd -d 10 -S 1 -D -A "new live" -E "amp apos quot lt gt" –F -8

In Settings>Channel, if I press "Update EPG", this batch runs, creates a new .xml and updates the EPG.

But it fails Settings>Misc2>"Auto Update EPG". After the preset hour, nothing happens. There's no log entry around this hour. How to fix?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#2
2019-08-11, 02:06 AM
That is a user permission error. You all already know that from the other thread you posted in.

In any case you have already posted 3 support requests on your epg. Schedules Direct is worth the cup of coffee a month it costs for reliable and worry free data and great support in NextPVR.

Martin
acegolfer
Offline

Member

Posts: 87
Threads: 21
Joined: Feb 2006
#3
2019-08-11, 02:08 AM
mvallevand Wrote:That is a user permission error.

And there's no fix within NextPVR?

FYI, I created a batch task schedule w/ "nextpvr.exe -updateepgonly". This worked as instended (updated EPG) at the preset hour. This will be my backup, if user permission error can't be resolved within NextPVR.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,673
Threads: 767
Joined: Nov 2003
#4
2019-08-11, 02:09 AM
I can check the logs to check it's being run. Every time I've looked into this in the past, NextPVR has been running the UpdateEPG.bat, but the user has some bug in their batch file. (quite often something subtle related to running as a different user account)

If I were you, I'd probably put "1> c:\temp\output.txt 2>&1" on the end of that zap2xml line, so you can see what output it generated. It'll probably be an error message telling you something useful.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,673
Threads: 767
Joined: Nov 2003
#5
2019-08-11, 02:10 AM
FYI - NextPVR v5 automatically captures and logs the output of any batch files it runs, so we can more easily see the reason for any errors in batch files the user has created.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#6
2019-08-11, 02:15 AM
acegolfer Wrote:And there's no fix within NextPVR?

FYI, I created a batch task schedule w/ "nextpvr.exe -updateepgonly". This worked as instended (updated EPG) at the preset hour. This will be my backup, if user permission error can't be resolved within NextPVR.

The problems are in your script not NextPVR. It is talked about extensively in the big thread. Users of the script should be able to help you out.

Martin
acegolfer
Offline

Member

Posts: 87
Threads: 21
Joined: Feb 2006
#7
2019-08-11, 02:17 AM
sub Wrote:I can check the logs to check it's being run. Every time I've looked into this in the past, NextPVR has been running the UpdateEPG.bat, but the user has some bug in their batch file. (quite often something subtle related to running as a different user account)

1. My updateepg.bat has 2 lines

cd /d C:\Users\Public\NPVR\Scripts
C:\Users\Public\NPVR\Scripts\zap2xml.exe -o C:\Users\Public\NPVR\Scripts\epg.xml -u userid@gmail.com -p passwd -d 10 -S 1 -D -A "new live" -E "amp apos quot lt gt" –F -8

Anything wrong with this script?

2. "different user account" Does this refer to different "Windows" account or different "zap2it" account?
acegolfer
Offline

Member

Posts: 87
Threads: 21
Joined: Feb 2006
#8
2019-08-11, 02:20 AM
mvallevand Wrote:The problems are in your script not NextPVR. It is talked about extensively in the big thread. Users of the script should be able to help you out.

Martin

Sorry if I misled you. NextPVR is not at fault. My script is. Can you fix my script? I provided it in OP.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,673
Threads: 767
Joined: Nov 2003
#9
2019-08-11, 02:44 AM
acegolfer Wrote:1. My updateepg.bat has 2 lines

cd /d C:\Users\Public\NPVR\Scripts
C:\Users\Public\NPVR\Scripts\zap2xml.exe -o C:\Users\Public\NPVR\Scripts\epg.xml -u userid@gmail.com -p passwd -d 10 -S 1 -D -A "new live" -E "amp apos quot lt gt" –F -8

Anything wrong with this script?
Could be. I've never used zap2xml.exe, but it could come down to where it stores it's data files, and the permissions on those files etc.

Quote:2. "different user account" Does this refer to different "Windows" account or different "zap2it" account?
Windows user account. When you manually run UpdateEPG.bat, it's running under the user account you're logged into Windows as. When NextPVR runs it overnight, it runs as the 'localsystem' account that NextPVR's recording service runs as.
persim
Offline

Member

Posts: 237
Threads: 37
Joined: Jul 2005
#10
2019-08-11, 04:19 AM
This is my script, works fine. See if it'll work for you before changing any of the options.


cd /d C:\Users\Public\NPVR\Scripts
C:\Users\Public\NPVR\Scripts\zap2xml.exe -i C:\Users\Public\NPVR\Media\Channels -o C:\Users\Public\NPVR\Scripts\epg.xml -u xxxxxxx@xxxxxx.com -p xxxxxxxx -d 10 -D -E "amp apos quot lt gt" -F
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manually Adding FM Radio quek9 9 2,937 2024-11-19, 08:29 PM
Last Post: mvallevand
  Automatic EPG Fails, Manual Works Confused 4 1,935 2019-10-02, 06:43 PM
Last Post: Confused
  IPTV daily cleaning and updating channels possibility? jhr1948 0 1,539 2019-08-10, 01:25 PM
Last Post: jhr1948
  UpdateEPG.bat not running jrockow 1 982 2019-06-26, 04:08 PM
Last Post: sub
  Manually adding a DVB-S channel that is not detected during a scan martinu 2 1,946 2019-06-05, 07:18 PM
Last Post: mvallevand
  NPVR works fine using webui, but kodi will not load any channels. relink2013 9 4,816 2019-05-31, 07:32 PM
Last Post: mvallevand
  EPG only works AFTER opening up each channel in Channels dibbler 1 1,131 2019-04-18, 06:15 PM
Last Post: sub
  4.2.4 can't download EPG XML, but the URL works fine in Chrome sgilani 2 1,832 2019-03-12, 06:53 AM
Last Post: sgilani
  How to add manually a ts file to the DB pascalb 2 1,321 2019-03-01, 12:58 PM
Last Post: pascalb
  Manually Injecting Custom EPG Data into NPVR DVRMultiStreamer 2 1,456 2018-10-29, 03:09 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode