Page 1 of 1

DigiGuide Channel ID's in imported xml

Posted: Mon Jan 24, 2011 6:38 pm
by steeb
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

Re: DigiGuide Channel ID's in imported xml

Posted: Mon Jan 24, 2011 6:42 pm
by alanbirtles
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

Re: DigiGuide Channel ID's in imported xml

Posted: Mon Jan 24, 2011 6:53 pm
by steeb
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

Re: DigiGuide Channel ID's in imported xml

Posted: Mon Jan 24, 2011 7:10 pm
by alanbirtles
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"