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 … 190 191 192 193 194 … 1231 Next »
XMLTV GUI gives empty EPG when internet connection is down.

 
  • 0 Vote(s) - 0 Average
XMLTV GUI gives empty EPG when internet connection is down.
JP23
Offline

Senior Member

Posts: 405
Threads: 98
Joined: Oct 2007
#1
2009-01-16, 09:01 AM
Hi,

I have a scheduled task set to run a XMLTV GUI once a day and grab new listings, and have GVPVR set to do a full EPG reload. If my internet connection happens to be down when the grab is scheduled then I end up with an empty EPG.

Is there any possible way of making XMLTV GUI abort the grab when the connection is down, rather than making me a less than useful xml file?
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#2
2009-01-16, 09:21 AM
There was a bat file on the forum or wiki (I can't remember) that checked the xml file was over a certain size before updating the EPG.

Sorry I can't link - probably worth a search or two though as it seems to be exactly what you want
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Elmo Putney
Offline

Senior Member

Posts: 615
Threads: 119
Joined: Feb 2008
#3
2009-01-16, 10:11 AM
have a look here:

http://forums.nextpvr.com/showthread.php?t=39023

I still havent got around to doing this.
[SIZE="4"]Elmo Putney[/SIZE]
JP23
Offline

Senior Member

Posts: 405
Threads: 98
Joined: Oct 2007
#4
2009-01-16, 10:58 AM (This post was last modified: 2009-01-16, 11:48 AM by JP23.)
Thanks, lots of useful information there. Currently I have XMLTV GUI run as a windows scheduled task, and then the epg update time is set in GBPVR config to be about half an hour later.

Following on from what's been done here: http://forums.nextpvr.com/showthread.php?t=25695 , and trying to keep it as basic as possible, instead of just running the grab with this command line:

C:\XMLTVG~1\XmltvGUI.exe /grab /d14

I've decided to just run a .bat file with the following:

ping http://www.radiotimes.co.uk
IF ERRORLEVEL 1 goto END

C:\XMLTVG~1\XmltvGUI.exe /grab /d14

:END
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#5
2009-01-16, 05:41 PM
Are you using the latest version of XMLTV GUI? According to the change log, it's not supposed to write anything if it doesn't grab anything - not put that to the test myself though.
Quote:Version 3.11.00 W (941KB) L (1107KB) (19/12/2008)
Changes:
-Fixed bug in time fixer
-Added Virgin 1 to Radio Times freeview limit script
-Made grabber not write xml if no programs have been downloaded
-Added BBC World timezone corrector script
-Fixed handling of digiguide channels with no ids
-Added more details from misc field in digiguide grabber
Cheers,
Brian
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#6
2009-01-16, 10:12 PM
Yup, I updated to the latest version and if my connection is down when it comes out of hibernate then it keeps the old data file and doesn't overwrite it with an empty one.

p.s. I use /d7 and it has helped a lot with the problems of show times shifting by a few minutes in the EPG and ending up as overlapping duplicates - they only seem to do this a week before the transmission time, so a 7 day EPG avoids it (and speeds things up a lot).
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#7
2009-01-17, 10:41 AM
Coincidentally, I can confirm the latest version won't overrwrite the data.xml file if the connection is unavailable. My line was disconnected this morning at my normal xmltv download time. From the log (edited)...
Quote:06:50:19 - Starting pass 1 of grabber UK_RT
...
06:50:34 - Error downloading "http://xmltv.radiotimes.com/xmltv/94.dat" : Socket Error # 11004

06:50:34 - Grab failed on channel "94"
06:50:34 - Clearing cache
06:50:34 - Finished pass 1 of grabber UK_RT
06:50:34 - 0 programs found
...
06:50:34 - Sorting Programs
06:50:34 - Programs Sorted
06:50:34 - Writing XML
06:50:34 - No programs found, aborting xml writing
Cheers,
Brian
gEd
Offline

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#8
2009-01-17, 11:36 AM
I've been running the latest version but I confess I never noticed that new feature in the change log. So that's a few more lines thast I can remove from the bat file.

I need to check if xmltvgui returns errorlevel 1 if it is unable to download so I avoid running these EPG update commands if there is no EPG update

"C:\Program Files\devnz\gbpvr\pvrx2.exe" -EmptyEPGOnly
"C:\Program Files\devnz\gbpvr\pvrx2.exe" -deletependingrecurring
"C:\Program Files\devnz\gbpvr\pvrx2.exe" -OnlyUpdateEPG

I too only download d7 days to keep things as accurate as possible. The commands above help avoid those annoying overlaps you occasionally get when they move a show.

A very gentle reminder: don't forget to donate to the xmltvgui if you are able to - it would be a sad day if we lost it.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  tv guide empty in gbpvr works in pvrx2 slowtech 37 16,841 2012-08-27, 04:00 PM
Last Post: rscheller
  XMLTV Updates? phillyjim 1 2,671 2011-12-21, 04:46 PM
Last Post: pcostanza
  XMLTV import with UTF encoding fails (also valid for NPVR) miniGranis 4 2,243 2011-01-29, 08:16 PM
Last Post: miniGranis
  EPG empty Croftie 4 2,171 2011-01-24, 10:59 PM
Last Post: Croftie
  epg guide for ATSC ota, no internet? sdowney717 26 11,957 2010-12-08, 08:37 PM
Last Post: SHIFT_paradigm
  Edit channel name when using xmltv as epg source Haggis 10 5,133 2010-10-18, 01:31 PM
Last Post: Haggis
  xmltv update timing problem aneez 3 2,081 2010-09-29, 06:34 AM
Last Post: aneez
  Empty recordings with Cyberlink Mux mad-marco 12 3,946 2010-09-20, 07:11 PM
Last Post: mad-marco
  Empty frame when PVRX2 is started. Dhanu 11 3,783 2010-09-09, 12:45 AM
Last Post: ga_mueller
  Free XMLTV? carz181 6 3,952 2010-08-30, 04:13 PM
Last Post: johnsonx42

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

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

Linear Mode
Threaded Mode