Page 4 of 4

Re: Digiguide grabber detail in 3.10.00W

Posted: Sat Jun 07, 2008 5:53 pm
by b00sfuk
alanbirtles wrote:all changes are now wrapped into 3.10.02
Thanks again for all your time on this.

Re: Digiguide grabber detail in 3.10.00W

Posted: Mon Jun 09, 2008 2:59 pm
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

Re: Digiguide grabber detail in 3.10.00W

Posted: Mon Jun 09, 2008 3:53 pm
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

Re: Digiguide grabber detail in 3.10.00W

Posted: Mon Jun 09, 2008 9:13 pm
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

Re: Digiguide grabber detail in 3.10.00W

Posted: Mon Jun 09, 2008 9:21 pm
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

Re: Digiguide grabber detail in 3.10.00W

Posted: Tue Jun 10, 2008 9:05 am
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

Re: Digiguide grabber detail in 3.10.00W

Posted: Tue Jun 10, 2008 10:05 am
by alanbirtles
i have corrected the code

Re: Digiguide grabber detail in 3.10.00W

Posted: Tue Jun 10, 2008 3:57 pm
by kantjer
Allan Thanx after correcting a small typo its working :D

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

Bauke

Re: Digiguide grabber detail in 3.10.00W

Posted: Sun Jun 22, 2008 9:25 pm
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.

Re: Digiguide grabber detail in 3.10.00W

Posted: Sun Jun 22, 2008 10:50 pm
by alanbirtles
the latest svn of xmltv_parse now parses more details from the miscellaneous field

Re: Digiguide grabber detail in 3.10.00W

Posted: Tue Jun 24, 2008 7:52 pm
by SidkneeSage
Thanks Alan - top job :!: . The xml file now shows up the star & film ratings etc.

Cheers,
Adrian.