NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 816 817 818 819 820 … 1231 Next »
EPG automatic Update

 
  • 0 Vote(s) - 0 Average
EPG automatic Update
neilraymond
Offline

Member

Posts: 64
Threads: 9
Joined: Aug 2005
#21
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.

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 Wink

Hope this helps in some way

Neil
cakes
Offline

Member

Posts: 204
Threads: 40
Joined: Dec 2005
#22
2006-04-17, 08:27 AM
neilraymond Wrote: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.

I used to do it this way, but the problem here is that
"gbpvr.exe" -OnlyUpdateEpg does not take care of schedule changes of pending recordings. Instead, you will see duplicate entries in the epg: the old one (recording pending) and a new one, with changed schedule. In one of the threads I read that the scheduled epg update in GBPVR does takes care of this.
neilraymond
Offline

Member

Posts: 64
Threads: 9
Joined: Aug 2005
#23
2006-04-17, 09:20 AM
oh, i hadn't realised that. did you ever try emptying the epg using -OnlyEmptyEPG first and then updating it with -OnlyUpdateEpg? i wonder if that might solve the problem?

cheers

neil
cakes
Offline

Member

Posts: 204
Threads: 40
Joined: Dec 2005
#24
2006-04-17, 05:43 PM
neilraymond Wrote:did you ever try emptying the epg using -OnlyEmptyEPG first and then updating it with -OnlyUpdateEpg?

I did indeed, but then I read that the automatic epg update just takes a few more things into account. I've looked up the thread:
http://forums.nextpvr.com/showthread.php...=duplicate

Greetz
neilraymond
Offline

Member

Posts: 64
Threads: 9
Joined: Aug 2005
#25
2006-04-17, 08:15 PM
cheers for that, i vaguely remembered reading that thread sometime ago before i noticed this problem, but i couldn't find it again.

with a view to a different work-around, i've just done a little experiment. if you download Windows Server 2003 Resource Kit Tools from ms, you get an exe called sleep which you can call from a batch file, and as you expect it makes the batch file wait for the specified number of seconds. i put a call to this in a batch file and scheduled it to run and wake the machine, and whilst the batch file was running the machine stayed awake even though there was no activity on the system.

this means (i think) that you could create a batch file that just contains:

Code:
sleep 600

i.e. sleep for 10 minutes, and schedule it to wake the machine and start just before the gbpvr full update was scheduled to start. gbpvr would not have to wake the machine, and windows would keep the machine awake for the duration of the "sleep" scheduled task. this would give gbpvr time to do the update (which as someone stated earlier does not necessarily happen at the scheduled time). the actual sleep time may need to be varied, i'm not sure how long the delay could be between the scheduled time and the actual time the update starts.

i'm going to test this tonight - it's a bit hacky, but i'm not sure of any other way round this problem until gbpvr can force the machine to stay awake until the epg update has occurred.

cheers

neil
cakes
Offline

Member

Posts: 204
Threads: 40
Joined: Dec 2005
#26
2006-04-18, 06:11 AM
Thanks for the tip! I'll try it too.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#27
2006-04-18, 06:33 AM
Do you run anything in UpdateEPG.bat? For example, running an XMLTV grabber. If so, how long does it take to complete?

When you click the 'Update EPG' button in the config app, how long does it take to complete?

How long of a period of inactivity will cause you PC to go back to sleep?
cakes
Offline

Member

Posts: 204
Threads: 40
Joined: Dec 2005
#28
2006-04-18, 04:44 PM
sub Wrote:Do you run anything in UpdateEPG.bat?
an xmltv job which takes +-15 min + a sync job which takes 2-3 min

sub Wrote:When you click the 'Update EPG' button in the config app, how long does it take to complete?
just a few seconds

sub Wrote:How long of a period of inactivity will cause you PC to go back to sleep?
I set it to standby after 10'. But it seems the xmltv job is not heavy enough to be considered as activity
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,810
Threads: 769
Joined: Nov 2003
#29
2006-04-18, 05:28 PM
Quote:
sub Wrote:Do you run anything in UpdateEPG.bat?
an xmltv job which takes +-15 min + a sync job which takes 2-3 min
GB-PVR does try to make sure the machine stays away during the EPG update, but not during the execution of that optional batch file. Its just called synchronously. I've changed it to asychronous for the next release so that it can make the calls necessary to keep the machine awake while it executes.
cakes
Offline

Member

Posts: 204
Threads: 40
Joined: Dec 2005
#30
2006-04-18, 07:39 PM
thanks ! looking forward...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  "database disk image is malformed" during attemped EPG update! (GBPVR v.1.4.7) DaveA 4 3,461 2011-01-23, 06:35 PM
Last Post: DaveA
  EPG won't update nate 3 2,692 2011-01-04, 03:55 PM
Last Post: sub
  Automatic Transcoding Not Working taz 3 2,306 2010-11-22, 09:01 AM
Last Post: goelectric
  Update EPG Issue dean70 1 1,946 2010-11-13, 05:31 PM
Last Post: sub
  EPG update problem NZ Fredo 5 2,925 2010-10-13, 10:42 PM
Last Post: Jaggy
  xmltv update timing problem aneez 3 2,203 2010-09-29, 06:34 AM
Last Post: aneez
  EPG update problem Aelanna 5 2,961 2010-09-26, 03:01 PM
Last Post: Aelanna
  EPG update error aibo 38 10,789 2010-07-23, 02:35 AM
Last Post: User
  Guide update registers multiple conflicting programs keith_leitch 0 1,372 2010-07-09, 09:48 PM
Last Post: keith_leitch
  EPG update trouble gaspika 2 1,855 2010-06-06, 07:21 AM
Last Post: gaspika

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

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

Linear Mode
Threaded Mode