DigiGuide Channel ID's in imported xml

Discussion of Version 3 and developing lua grabbers
Post Reply
steeb
Posts: 13
Joined: Wed May 21, 2008 2:07 pm

DigiGuide Channel ID's in imported xml

Post by steeb » Mon Jan 24, 2011 6:38 pm

Hi Alan,

many thanks for your continued support for DigiGuide.

Whilst configuring my NextPVR set up I have noticed something that I'm sure at one point worked in the past but am not sure when it stopped!

I have a mix of DigiGuide and RT data.

I have this configured as 2 x grabs. The 1st is just a straight grab of the DigiGuide data, the 2nd an RT grab and an import of the DigiGuide .xml

Something goes awry with regards the DigiGuide channel ID's on the import, examples:

DigiGuide Grab

Code: Select all

<channel id="157"> <display-name>Film24</display-name> </channel>


Import of the above

Code: Select all

<channel id="XMLTV_Import_157"> <display-name>Film24</display-name> </channel>
of course this means that the channel numbers are not honoured!

Is there something I have done wrong in settings etc to fix this?

many thanks

steeb

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

Re: DigiGuide Channel ID's in imported xml

Post by alanbirtles » Mon Jan 24, 2011 6:42 pm

in scripts/xmltv_import/ximp.lua
change:

Code: Select all

local function CCallback(chan)
	XGUI.AddUserChannel(Grabber,chan)
	end
to:

Code: Select all

local function CCallback(chan)
	chan.XML_ID = chan.ID
	XGUI.AddUserChannel(Grabber,chan)
	end

steeb
Posts: 13
Joined: Wed May 21, 2008 2:07 pm

Re: DigiGuide Channel ID's in imported xml

Post by steeb » Mon Jan 24, 2011 6:53 pm

Alan,

you really are the tops!

The result now of course with the imported xml is:

<channel id="157"> <display-name>Film24</display-name> </channel>

Would this be rolled out with any further XMLTVGUI releases or is this something special that needs tweaking for me to keep a handy note of for the future?

many thanks

steeb

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

Re: DigiGuide Channel ID's in imported xml

Post by alanbirtles » Mon Jan 24, 2011 7:10 pm

the current behaviour is the intended result, to avoid clashes in channel ids all channels have the name of the grabber that they came from prepended to them. xmltv import is unlikely to be updated in future versions so you can safely keep your modified version or save your modified version to a different file and change
"Grabbers.XMLTV_Import" to
"Grabbers.XMLTV_Import_NoPrefix"

Post Reply