NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 76 77 78 79 80 … 193 Next »
EPG update validation before 'empty epg'

 
  • 0 Vote(s) - 0 Average
EPG update validation before 'empty epg'
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#1
2007-03-28, 07:56 PM
After the UK source for EPG - Radio Times and XMLTV has gone titsup for the moment....

Wishlist - some verification of EPG data files for the gbpvr update - especially when the 'empty epg' option is set. Maybe don't empty if the data file is less than xxx kb.

Martin
gEd
Offline

Posting Freak

London
Posts: 3,516
Threads: 100
Joined: Jan 2005
#2
2007-03-28, 09:46 PM
I know it's a pain - it's happened to me too but I think it's our job to make sure that the xml file is correct before we ask gbpvr to empty/update epg.

I'm trying to work out how to do it in my downloadepg.bat file. Definitely do'able I'm just not very good at windows scripting.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#3
2007-03-28, 09:49 PM
Yikes, I've just realised how long it is since I was really into batch files...

something like Wink

IF filesize(data.xml) < 20k then erase data.xml
gEd
Offline

Posting Freak

London
Posts: 3,516
Threads: 100
Joined: Jan 2005
#4
2007-03-28, 10:38 PM
slightly better version that doesn't need separate restorexml.cmd file.
btw: this script is designed to reside in the xmltv folder

Code:
rem give wireless card a chance to wake up (optional)
sleep 30

echo. >> r:\temp\syslog.txt
echo. >> r:\temp\syslog.txt
echo Wake up to download epg on %date% at %time% >> r:\temp\syslog.txt
echo ----------------------------------------------------- >> r:\temp\syslog.txt

copy data.xml data.old

ping www.birtles.org.uk
IF ERRORLEVEL 1 goto FAIL

XmltvConsole.exe
rem if resulting data.xml file < 5000 bytes abort
for %%R in (data.xml) do if %%~zR lss 5000 goto NORT ELSE echo epg downloaded ok >> r:\temp\syslog.txt

"C:\Program Files\devnz\gbpvr\GBPVR.exe" -OnlyEmptyEPG
"C:\Program Files\devnz\gbpvr\GBPVR.exe" -OnlyUpdateEPG

goto END

:FAIL
rem you decide what you want to do if www.birtles.org.uk is not available. me I usually suspect my flakey usb wireless card, schedule a rerun of this cmd file and reboot the pc
goto END

:NORT
echo XMLTV could not be downloaded from the RT site. Restoring previous xml file >> r:\temp\syslog.txt
copy data.old data.xml

:END
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
systemshark
Offline

Senior Member

Posts: 566
Threads: 56
Joined: Oct 2005
#5
2007-09-10, 01:13 PM
gEd,

gEd Wrote:ping http://www.birtles.org.uk
IF ERRORLEVEL 1 goto FAIL

Err. surely you want to test against radio times not the birtles website. in my script, I'm checking against http://www.radiotimes.com
Regards Systemshark
[COLOR="Silver"]
Lounge: HDPC Intel i5, Asus Motherboard with Intel HDMI, 4Gb of Ram, 1Tb Disk, 60Gb SSD, Blackgold BT3595 Tuner, Hauppauge Nova T500 and HVR1700 in a LianLi C39 B Case.

Other Room : Liteon Wireless Media Centre/DVD Player

Software : Windows7 32 Bit, RedRat, XMLTV GUI and NPVR
[/COLOR]
gEd
Offline

Posting Freak

London
Posts: 3,516
Threads: 100
Joined: Jan 2005
#6
2007-09-10, 01:20 PM
fair point! - Actually I had added the ping to check that the USB wi-fi device was working rather than that the rt site was up but I will update my script.

cheers
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#7
2007-09-10, 05:28 PM
And standby for the change to PVRX2.EXE from gbpvr.exe.

Also thanks for the batch file - works a treat, although not gone into error mode yet as far as I can tell.
V15
Offline

Junior Member

Posts: 3
Threads: 0
Joined: Sep 2007
#8
2007-09-21, 12:55 PM (This post was last modified: 2007-09-23, 09:31 AM by V15.)
Sorry for being dumb, but just stumbled across this thread - am i right in thinking that, if I have the following file run daily at 1am (scheduled tasks), then it will update (full update) the epg, if i am connected to the net. I the pc is not connected, then it won't do anything (i.e. wont overwrite the epg with blanks)

I save the following .bat file in the xmltv folder, and point GBPVR to the data.xml file found there:
Code:
echo. >> syslog.txt
echo. >> syslog.txt
echo Wake up to download epg on %date% at %time% >> syslog.txt
echo ----------------------------------------------------- >> syslog.txt

copy data.xml data.old

ping www.radiotimes.co.uk
IF ERRORLEVEL 1 goto FAIL

XmltvGUI.exe /Grab /Silent /d7
rem if resulting data.xml file < 5000 bytes abort
for %%R in (data.xml) do if %%~zR lss 5000 goto NORT ELSE echo epg downloaded ok >> syslog.txt

"C:\Program Files\devnz\gbpvr\GBPVR.exe" -OnlyEmptyEPG
"C:\Program Files\devnz\gbpvr\GBPVR.exe" -deletependingrecurring
"C:\Program Files\devnz\gbpvr\GBPVR.exe" -OnlyUpdateEPG

goto END

:FAIL
rem Dont want anything to do here really - just rerun this file tomorrow
goto END

:NORT
echo XMLTV could not be downloaded from the RT site. Restoring previous xml file >> syslog.txt
copy data.old data.xml

:END

Thanks

V15
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#9
2007-09-21, 01:23 PM
Yup, should do the job - with one condition - you would have to setup xmltvgui beforehand to select the stations and options that you want in the xml file.
gEd
Offline

Posting Freak

London
Posts: 3,516
Threads: 100
Joined: Jan 2005
#10
2007-09-21, 07:32 PM
you might want to remove the other reference to r:\temp

my update section now looks like this.

"C:\Program Files\devnz\gbpvr\GBPVR.exe" -OnlyEmptyEPG
"C:\Program Files\devnz\gbpvr\GBPVR.exe" -deletependingrecurring
"C:\Program Files\devnz\gbpvr\GBPVR.exe" -OnlyUpdateEPG

deletependingrecurring removes all the scheduled recordings. they get re-added again (by updateepg i think). this is to fix problems that can occasionally occur when they change the start times of a show.
“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)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Daily M3U Update SysAdminZ 7 675 2025-05-07, 01:36 PM
Last Post: SysAdminZ
  Add the date/timestamp to the EPG Update Complete line.. BigBillSD 3 655 2024-10-10, 09:32 PM
Last Post: mvallevand
  Multi timing EPG update Ghibson 3 952 2024-03-20, 01:36 PM
Last Post: Ghibson
  Update EPG settings - random update time spin35 2 814 2023-05-12, 08:37 PM
Last Post: BrettB
  Automatically update channels Tunes0710 0 1,446 2022-05-07, 09:57 PM
Last Post: Tunes0710
  update dvb epg while watching a channel. eastavin 0 1,205 2021-01-05, 04:56 AM
Last Post: eastavin
  posibility of two or three Automatic EPG Update per day kfmf 3 2,189 2020-12-28, 12:19 PM
Last Post: Graham
  Link to update LeGrandZombie 0 1,212 2020-06-06, 04:12 PM
Last Post: LeGrandZombie
  v5 Manual EPG Update Lao Pan 0 1,509 2020-06-03, 11:54 AM
Last Post: Lao Pan
  Minor Update to File Date Format johnnyz 7 3,168 2020-04-26, 04:13 PM
Last Post: johnnyz

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

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

Linear Mode
Threaded Mode