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 … 48 49 50 51 52 … 433 Next »
Another Scheduling Update EPG Thread!

Another Scheduling Update EPG Thread!
gdogg371
Offline

Member

Posts: 149
Threads: 23
Joined: May 2018
#1
2018-08-03, 10:42 AM
I think from reading the documentation that I understand how to schedule an EPG update, but can I please get clarification here?

Steps:

1) Add an a file called UpdateEPG.bat to the NPVR data location 'C:\Users\Public\NPVR\Scripts'.
2) Within this file add your command line arguments as if you were going to run the EPG grabber yourself.

3) For my setup, I have built the scraper myself and it does not live on the system drive, so I believe I will need

a) G:\
b) cd G:\Python27\Kodi
c) Sky TV Guide Scraper.py

4) Save and close .bat file.

Have I missed anything out? Also, how can you specify at what time the update process will run?

Thanks
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2018-08-03, 11:02 AM
gdogg371 Wrote:I think from reading the documentation that I understand how to schedule an EPG update, but can I please get clarification here?

Forgive me if I am teaching you to suck eggs ... An EPG update occurs when you click the "Update EPG" button in NextPVR Settings --> Channels or when the update runs automatically at the time specified at NextPVR Settings --> Misc2.

The update obtains EPG data for each channel according to the mechanism specified for that channel at NextPVR Settings --> Channels --> Details and the options include Schedules Direct or from the broadcast stream or from an XMLTV file.

NextPVR allows a batch file to run before the EPG update to, for example, put data into an XMLTV file.

NextPVR will run an updateEPG.bat file (if one exists) before it performs the update epg function. The updateepg.bat file runs in the user context of the logged on user when the Update EPG button is pressed and in the user context of the NextPVR Recording Service when it runs automatically (as specified in Misc2). The Recording Service runs in the "System" user account and the .bat file will appear to be running in some obscure folder. Your example batch file is likely to be okay because it explicitly sets the drive and folder within the script. Your .bat should operate the same irrespective of the user account where it runs. For completeness, the Python script might also need to be explicit about where it creates any file that contains EPG data.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,096
Threads: 957
Joined: May 2006
#3
2018-08-03, 12:59 PM
There might be a problem with that script running from the system account if

1. G drive is a network drive (mapping is at a user level)
2. The python system PATH including python.exe is not set up for the system account. Normally python.exe is in the root of python on Windows but if you copied it into G:\Python\Kodi with your script you should be okay.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  EPG Update Errors jcole998 23 1,599 2025-05-11, 06:03 PM
Last Post: mvallevand
  Device Update - Channel Mapping chezmorris 10 4,799 2022-07-01, 01:59 PM
Last Post: mvallevand
  ITV/BBC HD and EPG missing from scan and update angelisle 16 4,245 2021-08-26, 11:45 AM
Last Post: NumberFive
  Auto Update EPG not running as scheduled? BairStrokes 2 1,793 2021-03-26, 12:02 PM
Last Post: NumberFive
  automatic EPG update virtualpaul 18 13,062 2021-01-29, 12:40 PM
Last Post: virtualpaul
  Auto Update EPG not running as scheduled Bobbybear 10 3,732 2020-10-24, 09:24 AM
Last Post: Bobbybear
  Microsoft update Brucek2839 2 1,531 2020-09-12, 03:29 AM
Last Post: Brucek2839
  cmd line update urls? pBS 0 1,223 2019-11-30, 11:05 AM
Last Post: pBS
  NextPVR channel changing between DVB-T and Hauppauge Colossus channels: Update three6zerocool 0 1,324 2019-09-28, 09:55 AM
Last Post: three6zerocool
  DVB EPG does not update bass_gas 9 5,510 2019-08-15, 04:55 PM
Last Post: Ludron

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

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

Linear Mode
Threaded Mode