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 … 13 14 15 16 17 … 1231 Next »
Help with updateEPG.bat? Seems to run in a loop, unpredictable

 
  • 0 Vote(s) - 0 Average
Help with updateEPG.bat? Seems to run in a loop, unpredictable
aberson
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Sep 2009
#1
2010-08-23, 06:47 PM
Hi folks

I'm having some problems with my update EPG. I'm running 1.4.7 and things have been pretty stable for a while, but frequently my guide data doesn't update right.


my updateepg looks like this:

[INDENT]
append a log entry to a txt file (so i can see when updateepg is being run)
mc2xml (the new version from just a few weeks ago)
nircmd to mute the speakers
ultraxml
nircmd to unmute
pvrx2.exe --OnlyUpdateEPG[/INDENT]


1. Is the last line required? Or will PVRX2 eventually figure out that the XML has been updated?


2. I have my EPG Updates in the config screen set to run at 4am. So why is my epgupdate log file showing the following runs:

[INDENT]Sun 08/15/2010 4:00:49.08
Sun 08/15/2010 18:32:22.82
Sun 08/15/2010 18:33:17.07
Sun 08/15/2010 18:39:57.01
Sun 08/15/2010 19:05:13.03
Mon 08/16/2010 4:04:45.45
Mon 08/16/2010 4:57:10.94
Wed 08/18/2010 4:06:06.76
Wed 08/18/2010 21:14:47.99
Thu 08/19/2010 4:06:04.79 [/INDENT]


My assumption is this has something to do with mc2xml failing and/or UltraXML hanging, GPPVR never seeing the new XML, and then trying to run the update again.


I wonder if I should empty my updateepg.bat and use windows scheduler to run the EPG updates instead of GBPBR, and just let GBPVR "discover" the updated XML every morning at 445am after running the empty updateEPG.bat


I also tried adding some "taskkill" lines at the beginning of the .bat so that if UltraXML was hung from the last time, it would kill it before trying to run it again.


I'm going to keep poking around with this, but any ideas are appreciated.

Thanks!
Adam
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#2
2010-08-23, 06:59 PM
No, you should not have pvrx2.exe --OnlyUpdateEPG in that file. PVRX2 loads the new EPG as soon as the UpdateEPG.bat completes.

Remove that and see if your problems go away. If not, please post logs after your next auto epg update.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,691
Threads: 767
Joined: Nov 2003
#3
2010-08-23, 07:25 PM
'pvrx2.exe --OnlyUpdateEPG' causes UpdateEPG.bat to run, which calls 'pvrx2.exe --OnlyUpdateEPG' causing UpdateEPG.bat to run, which calls 'pvrx2.exe --OnlyUpdateEPG' causing UpdateEPG.bat to run, which calls 'pvrx2.exe --OnlyUpdateEPG' causing UpdateEPG.bat to run, which calls 'pvrx2.exe --OnlyUpdateEPG' causing UpdateEPG.bat to run, which calls 'pvrx2.exe --OnlyUpdateEPG' causing UpdateEPG.bat to run etc...

You definitely shouldnt have that last line in your batch file.
aberson
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Sep 2009
#4
2010-08-23, 07:45 PM
ok thanks Sub... I expected that was part of the problem, and experimentally rem'd it out a few days ago, but it hadn't totally solved my problem so I wasn't sure anymore. I guess that explains the looping, but perhaps not the other problems.


I originally crafted my updateEPG based on the EPG wiki documentation (http://gbpvr.com/pmwiki/pmwiki.php/Manual/EPG ). In looking at it now, I see the fine print does say to leave out the last line if you're running it from within GBPVR.... so my bad.

wonder how I've been able to limp things along for almost a year like this Smile



So, if I go the windows task-scheduler route, then I should leave the --OnlyUpdateEPG in there? Or, does it make better sense to let GBPVR just run an empty updateepg.bat on its own schedule, scheduled for 1 hr after windows actually does the updating?

I suppose the point of the --onlyupdateepg is because you're never sure how long the guide update might take?
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,691
Threads: 767
Joined: Nov 2003
#5
2010-08-23, 07:56 PM
Quote:So, if I go the windows task-scheduler route, then I should leave the --OnlyUpdateEPG in there? Or, does it make better sense to let GBPVR just run an empty updateepg.bat on its own schedule, scheduled for 1 hr after windows actually does the updating?

I suppose the point of the --onlyupdateepg is because you're never sure how long the guide update might take?
Personally I dont think you should need -onlyupdatepg at all. It was only added because a couple of people wanted a way to trigger an epg update from outside the application. I would expect most people would never need this.

If it exists, UpdateEPG.bat is called by the application prior to updating the epg. If you wanted to run an xmltv grabber to update xmltv files, like mc2xml, then this is a good place to run it. You shouldnt have to fluff around with the windows task scheduler etc.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  UpdateEPG in System session... zehd 8 3,009 2009-02-24, 12:02 AM
Last Post: zehd
  UpdateEPG confusion gazoo 34 8,207 2008-12-19, 12:26 AM
Last Post: zehd
  UpdateEPG.bat not working? SLR_65 2 1,691 2008-12-05, 02:17 AM
Last Post: SLR_65
  missing UpdateEPG.bat srhutch 3 1,798 2008-11-29, 07:35 AM
Last Post: zehd
  Updateepg.bat feilh 15 4,754 2008-11-28, 09:41 PM
Last Post: feilh
  Unpredictable EPG navigation speed apelly 3 1,376 2008-08-10, 10:26 PM
Last Post: sub
  Satellite set top box loop through to Nova-S fluffykeith 6 2,807 2008-02-05, 12:35 PM
Last Post: fluffykeith
  XMLTV grabber from UpdateEPG.bat? fausto 3 2,089 2007-12-07, 03:07 PM
Last Post: nafurahi
  GBPVR UpdateEPG.bat caschwall 6 2,227 2007-12-04, 04:34 PM
Last Post: HtV
  updateEPG.BAT text?? dernt 2 1,516 2007-09-25, 10:45 AM
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