2006-04-17, 07:44 AM
I was also having the same problem - see here http://forums.nextpvr.com/showthread.php?t=15263
I've got round it by completely disabling the epg update in gbpvr config and creating a scheduled task to wake the machine and run the following batch file. That way you know that the update is going to happen at the time that you specify, and as long as your standby time in the power management is sufficient to allow the update to take place then you won't have a problem with the machine shutting down before the update has started/finished. Windows may even prevent the machine going into standby whilst the scheduled task is running, but i'm not sure about that.
The ping stuff is there because my machine is not always connected to the internat and i don't want the update to run if it's not.
Cheers to mvandere for pointing out that ping sets the errorlevel
Hope this helps in some way
Neil
I've got round it by completely disabling the epg update in gbpvr config and creating a scheduled task to wake the machine and run the following batch file. That way you know that the update is going to happen at the time that you specify, and as long as your standby time in the power management is sufficient to allow the update to take place then you won't have a problem with the machine shutting down before the update has started/finished. Windows may even prevent the machine going into standby whilst the scheduled task is running, but i'm not sure about that.
Code:
echo off
setlocal
set logfile=epgupdate.out
set /a attempts=1
:ping
sleep 60
echo Attempt %attempts% >> %logfile%
if %attempts% GEQ 4 goto error
set /a attempts=%attempts% + 1
ping www.google.com >> %logfile%
if %errorlevel% neq 0 goto ping
echo Ping successful >> %logfile%
"C:\Program Files\XMLTV GUI\XmltvConsole.exe"
"C:\Program Files\devnz\gbpvr\GBPVR.exe" -OnlyUpdateEPG
goto exit
:error
echo Error connecting to internet >> %logfile%
goto exit
:exit
The ping stuff is there because my machine is not always connected to the internat and i don't want the update to run if it's not.
Cheers to mvandere for pointing out that ping sets the errorlevel
Hope this helps in some way
Neil