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 … 97 98 99 100 101 … 433 Next »
Is UpdateEPG.bat needed with Schedules Direct?

Is UpdateEPG.bat needed with Schedules Direct?
4zm4r3d02
Offline

Senior Member

USA
Posts: 356
Threads: 90
Joined: May 2005
#1
2017-02-22, 02:26 PM
I've been away from NPVR for a while, as I can usually get all my TV shows through alternate means, but I recently dusted off my old USB stick tuner and had it working with NPVR to record OTA shows as a backup. I was using zap2xml for listings, and it was working well until last night, apparently. I couldn't find one of my shows via the usual method, so I went to get the recording from NPVR and it wasn't there. When I looked at pending recordings, the only thing there was a manual recording I had set up, none of the recordings scheduled with the guide were there, and the guide was empty. It said "no show" for every time slot.

I gritted my teeth and renewed my schedules direct account that I had let lapse a few years ago, set up NPVR to use it, and everything seems to be working now. The question I had is do I still need UpdateEPG.bat with schedules direct? I noticed it ran when I pressed the update epg button in NPVR, but it contains commands to use zap2xml to get guide info, so can I just get rid of it, or should I put some kind of commands in there for schedules direct?
Intel Core i7-4790 / 32GB RAM / Windows 10 Pro 64 bit / HDHomeRun CONNECT DUO Model: HDHR5-2US
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2017-02-22, 02:33 PM
If you have setup NextPVR as shown here ... https://www.youtube.com/watch?v=nqJ7QiYS3Rk

You don't updateepg.bat
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#3
2017-02-22, 04:19 PM
Just delete it.

You'd only create a an UpdateEPG.bat if you want to run some custom commands before the EPG update happens. The most common thing people would use it for is running some xmltv grabber utility to update their xmltv file. You don't need to do anything like this with Schedules Direct.
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#4
2017-02-22, 06:01 PM
I use UpdateEPG.bat just to make certain that my system doesn't perform an EPG update while a recording is in process. Once in a great while my wife will want to record so many things on a single night that she has to record repeats of some shows, in the wee hours of the morning. This script (shamelessly lifted from a post on here a long time ago) waits until her recording ends:


Code:
@ECHO off
REM Update EPG only if not recording

Set DEBUG=FALSE
Set BASEUDIR=c:\Users\Public\NPVR
Set BASEPDIR=c:\Program Files (x86)\NPVR
REM BASEPDIR=c:\Program Files\NPVR

Set LOGFILE="%BASEUDIR%\Logs\EpgCheck.log"
Set NSHELPER="%BASEPDIR%\NScriptHelper.exe"
Set NPVR="%BASEPDIR%\NextPVR.exe"

CALL :LOGMSG
CALL :LOGMSG -----------------------------------------------
CALL :LOGMSG Begin EPG Update process

:VALIDATEENV
    CALL :LOGMSG Validating Environment
    FOR %%i IN ("%BASEUDIR%") DO IF NOT EXIST %%~si\NUL (
        CALL :LOGMSG ABORT: Base user directory does not exist. Check script variable BASEUDIR
        GOTO :ENDJOB
    )
    FOR %%i IN ("%BASEPDIR%") DO IF NOT EXIST %%~si\NUL (
        CALL :LOGMSG ABORT: Base Program directory does not exist. Check script variable BASEPDIR
        GOTO :ENDJOB
    )
    FOR %%i IN (%NSHELPER%) DO IF NOT EXIST %%~si (
        CALL :LOGMSG ABORT: NScriptHelper.exe does not exist. Check script variable NSHELPER
        GOTO :ENDJOB
    )
    FOR %%i IN (%NPVR%) DO IF NOT EXIST %%~si (
        CALL :LOGMSG ABORT: NextPVR.exe does not exist. Check script variable NPVR
        GOTO :ENDJOB
    )
    
    set chknpvr=1
:LOOP
    CALL :LOGMSG Check to see if any recording in progress...
    %NSHELPER% -isInUse >> %LOGFILE%
    %NSHELPER% -isInUse | find "NOT RECORDING"
    set chknpvr=%ERRORLEVEL%
    REM CALL :LOGMSG isInUse returns %chknpvr%
    if %chknpvr% NEQ 0 (
        timeout 300
        GOTO :LOOP
    )
    CALL :LOGMSG No recordings in progress, update the EPG.
    c:
    cd "C:\Users\Public\NPVR\mc2xml"
    mc2xml -d 240
    CALL :LOGMSG EPG Update complete
    GoTo :ENDJOB

--------------------------------------------------------------------------------------------
:LOGMSG
    if "%*". EQU "". (
        echo.
    ) else (
        echo %*
    )
    echo %date% %time% %* >> %LOGFILE%
    Goto :EOF

--------------------------------------------------------------------------------------------
:ENDJOB
    If %DEBUG% EQU TRUE Pause
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  device needed for recording David209 2 1,701 2021-04-04, 08:47 AM
Last Post: David209
  EPG Schedules Direct jwalbrook 6 3,921 2020-12-07, 07:43 PM
Last Post: mvallevand
  Flashing in on-screen graphics (Windows 10) (Can post logs if needed) bgtees 39 12,499 2020-08-19, 12:38 PM
Last Post: Stanno
  How to delete a Schedules Direct Lineup from Version 4? mwkurt 2 1,648 2020-07-19, 02:32 PM
Last Post: mwkurt
  Schedules Direct issues artmetz 4 1,919 2020-04-22, 12:13 AM
Last Post: artmetz
  EPG/Schedules Direct Epitaph 7 2,807 2019-12-12, 03:59 AM
Last Post: Epitaph
  Record direct from live tv? rv0987 3 1,926 2019-11-01, 12:29 PM
Last Post: rv0987
  UpdateEPG.bat works manually but not daily automatically. (script included) acegolfer 11 4,424 2019-08-11, 02:34 PM
Last Post: mvallevand
  How do you get channel icons from Schedules Direct SilverTiger 17 5,754 2019-06-28, 02:13 AM
Last Post: sub
  UpdateEPG.bat not running jrockow 1 981 2019-06-26, 04:08 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