You are here

Help with merge-xmltv

3 posts / 0 new
Last post
charsta
Offline
Joined: 7 years
Last seen: 6 years
Help with merge-xmltv

Hello,

Because grabbing for my list of channels was taking a lot time to finish, and because I read about how you can merge existing guides, I tried grabbing with multiple instances of WB. So I created 6 different guidex.xml files.

I read in the forum and the howtosetup file for the merge_xmltv.ini file and edited the ini file adding all 6 xml files in subpage.format. All the generated guides has the same offset/timezone.

Then I proceed with the creation of the channels.xml file. I comment out the coresponding lines, added the dummy line in the config file and run WB. WB genererated a channels file, but it only has 1 channel. From what I read/understand this channels file should have all the channels from the guides, right?

I'm using 3 ini files for the grabbing: novaguide.gr, cosmote.gr and tvguide.cablenetcy.net . Instead of creating 3 instances, one for each ini, I grouped some channels from cosmote.gr and grabbed 3 seperate guides for comoste (because cosmote's grabbing is quite slow). So I have 1 novaguide, 4 cosmote and 1 cablenet.

For easier reading of lines I created a Pastebin: http://pastebin.com/S6wnXHW3

charsta
Offline
Joined: 7 years
Last seen: 6 years

So the channels creation section in merge-xmltv.in should look like this: ?

* @auto_xml_channel_start
index_site_id.scrub {regex||<channel [^>]*id="[^\"]*"[^>]*>.*?</channel>||}
scope.range {(channellist)|end}
index_site_channel.modify {addstart|'index_site_id'}
index_site_id.modify {substring(type=regex)|<channel [^>]*id="([^\"]*)"[^>]*>}
index_site_channel.modify {substring(type=regex)|<display-name [^>]*>(.*?)</display-name>}
index_site_channel.modify {replace|\||\\|}
index_site_id.modify {cleanup(removeduplicates=equal link="index_site_channel")}
end_scope
* @auto_xml_channel_end

Again it only gives me one channel:

<channel update="i" site="merge-xmltv" site_id="novacinema1HD" xmltv_id="">

Sadly I don't have control over the naming of the channels. And this method for splitting up the grabbing makes the grabbing of the channels in 1/4 of the time!!

charsta
Offline
Joined: 7 years
Last seen: 6 years

You sir, you are the best!!

With the changes above and your instructions the merging is working just fine!!! :) However the channels logos are not copied into the merged xmltv.

Because I use Kodi, having the option to show me logos next to the channels is a big improvement in how it looks!! I mean, I already know what channels I have in the list, but it's a nice addition seeing the logos!! Probably, I will alternate between the single (big/time consuming) config file and the merging of multiple xmltv files depending on my available time. But since the "merging method" is taking significantly less time I will probably use it more often!

Also, some of the channels are duplicated, for backup purposes or because they have both SD and HD transmitions. If I use the "same as" option while creating the xmltv file, while using the "merging method", would all the channels (including the "same as") be included in the merged file?

P.S. Sorry for the late reply. I didn't have spare time to test it, and when I was able to test it, the forum/login was down and I couldn't reply to you!!!

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl