Digiguide grabber detail in 3.10.00W

Discussion of Version 3 and developing lua grabbers
b00sfuk
Posts: 31
Joined: Wed Dec 14, 2005 11:18 am

Re: Digiguide grabber detail in 3.10.00W

Post by b00sfuk »

alanbirtles wrote:all changes are now wrapped into 3.10.02
Thanks again for all your time on this.
kantjer
Posts: 24
Joined: Tue Apr 25, 2006 7:34 am

Re: Digiguide grabber detail in 3.10.00W

Post by kantjer »

I have trying out the new Digiguide grabber today and ran into a problem I haven't been able to solve yet.

I use XMLTVGUI to import an xml file for the Dutch channels and used the Digiguide grabber for the UK channels. Al the Dutch channels are ok but al the UK channels are one hour off (time in the xml is one hour later than the actual broadcast). I don't have this problem when using the RT grabber. The timezone is set to CET/CEST.

Any ideas why this is happening?

Bauke
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Digiguide grabber detail in 3.10.00W

Post by alanbirtles »

If your system timezone is set to CEST then the digiguide times are probably translated into that time, the grabber assumes that the times are GMT/BST and if they arent then you will get incorrect times in the xml
kantjer
Posts: 24
Joined: Tue Apr 25, 2006 7:34 am

Re: Digiguide grabber detail in 3.10.00W

Post by kantjer »

My system time is set to CEST, does this mean I can't get the correct time when using the Digiguide grabber?

Bauke
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Digiguide grabber detail in 3.10.00W

Post by alanbirtles »

go into scripts\ukdigi\ukdigi.lua and change:

Code: Select all

	prog.Start = time.GMT_BSTToUTC(prog.Start)
	prog.Stop = time.GMT_BSTToUTC(prog.Stop)

to:

Code: Select all

	prog.Start = time.CET_CESTToUTC(prog.Start)
	prog.Stop = time.CET_CESTToUTC(prog.Stop)
add the following to lib\timezones.lua

Code: Select all

time.CET_CESTToUTC = function(date)
	if time.IsEUDST(date) then
		date.Hour = date.Hour - 2
		date = time.Fix(date)
		else
			date.Hour = date.Hour - 1
			date = time.Fix(date)
			end
	return date
	end
kantjer
Posts: 24
Joined: Tue Apr 25, 2006 7:34 am

Re: Digiguide grabber detail in 3.10.00W

Post by kantjer »

Hi Alan,

Thanks for helping me out with this.
I tried your suggested changes but when I add the last part to the timezones.lua the XMLTVGUI config seems to get corrupted. The program isn't working any more and when I go into the setting menu both the grabbers and postprocessors tap are completely empty.

After copying the original timezones.lua back al is working again.
Any ideas?

Bauke
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Digiguide grabber detail in 3.10.00W

Post by alanbirtles »

i have corrected the code
kantjer
Posts: 24
Joined: Tue Apr 25, 2006 7:34 am

Re: Digiguide grabber detail in 3.10.00W

Post by kantjer »

Allan Thanx after correcting a small typo its working :D

prog.Stop = time.GMT_CET_CESTToUTC(prog.Stop)

Bauke
SidkneeSage
Posts: 4
Joined: Sun Jun 22, 2008 9:03 pm

Re: Digiguide grabber detail in 3.10.00W

Post by SidkneeSage »

Hi Alan - thanks for including the DigiGuide grabber. Are you sure that the issues with parsing the output of DG2XML have been resolved?

I notice that there is a lot more detail in the xml file I get now (example attached), but there are still some tags that don't appear (film star ratings, film BBFC ratings, video/audio/teletext, etc). If I use the DG2XML.exe that's available all the information looks to be in the file it produces.

Thanks,
Adrian.
Attachments
BBC1.zip
(62.73 KiB) Downloaded 2452 times
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: Digiguide grabber detail in 3.10.00W

Post by alanbirtles »

the latest svn of xmltv_parse now parses more details from the miscellaneous field
SidkneeSage
Posts: 4
Joined: Sun Jun 22, 2008 9:03 pm

Re: Digiguide grabber detail in 3.10.00W

Post by SidkneeSage »

Thanks Alan - top job :!: . The xml file now shows up the star & film ratings etc.

Cheers,
Adrian.
Post Reply