You are here

(Solved) Problem attempting to merge 2 xmltv files

4 posts / 0 new
Last post
victorypoint
Offline
Joined: 7 years
Last seen: 3 years
(Solved) Problem attempting to merge 2 xmltv files

Hello. So, I'm very impressed with the new tool to merge xmltv files of grabbed epg data @ http://www.webgrabplus.com/sites/default/files/download/ini/info/zip/Misc_merge-xmltv.zip. However, I ran into a snag this morning that I'm hoping someone could help resolve. I have two xmltv files merging quite nicely except for a few lines in my merged WebGrab++.config.xml as follows:

<channel update="i" site="merge-xmltv" site_id="A&amp;E Network HD East" xmltv_id="A&amp;E (US)">A&amp;E (US)</channel>
<channel update="i" site="merge-xmltv" site_id="Sportsnet (East)" xmltv_id="Sportsnet East (CA)">Sportsnet East (CA)</channel>
<channel update="i" site="merge-xmltv" site_id="Sportsnet (Pacific)" xmltv_id="Sportsnet Pacific (CA)">Sportsnet Pacific (CA)</channel>
<channel update="i" site="merge-xmltv" site_id="Sportsnet (Ontario)" xmltv_id="Sportsnet Ontario (CA)">Sportsnet Ontario (CA)</channel>
<channel update="i" site="merge-xmltv" site_id="Sportsnet (West)" xmltv_id="Sportsnet West (CA)">Sportsnet West (CA)</channel>

WG++ was logging for example this error for Sportsnet East (CA):

[  Info  ] (  38/60  ) MERGE-XMLTV -- chan. (xmltv_id=Sportsnet East (CA)) -- mode Incremental
[Error   ] no shows in indexpage!

After considerable trial and error I found that stripping special characters from the xmltv_id strings and the source xmltv files solved the problem as follows:

<channel update="i" site="merge-xmltv" site_id="A&amp;E Network HD East" xmltv_id="AE US)">A&amp;E (US)</channel>
<channel update="i" site="merge-xmltv" site_id="Sportsnet (East)" xmltv_id="Sportsnet East CA">Sportsnet East (CA)</channel>
<channel update="i" site="merge-xmltv" site_id="Sportsnet (Pacific)" xmltv_id="Sportsnet Pacific CA">Sportsnet Pacific (CA)</channel>
<channel update="i" site="merge-xmltv" site_id="Sportsnet (Ontario)" xmltv_id="Sportsnet Ontario CA)">Sportsnet Ontario (CA)</channel>
<channel update="i" site="merge-xmltv" site_id="Sportsnet (West)" xmltv_id="Sportsnet West CA">Sportsnet West (CA)</channel>

So, from what I can tell, it looks like the merge-xmltv.ini file has problems handling special characters ( ) and &. I would prefer to not edit these values and strip characters. Is there any way to have the merge accept these special characters?

Any help is appreciated.

-Al

victorypoint
Offline
Joined: 7 years
Last seen: 3 years

Thanks so much for the detailed answer. I started working on your solution until I found an elegant solution in this post - http://www.webgrabplus.com/content/join-two-files-guidexml. A slight modification to the ini file and everything is merging fine now.

-Al

jorges4lu2
Offline
Joined: 5 years
Last seen: 3 years

I'm stuck with this same error and it seems that the answer has been deleted. Could anybody give some light on this? I'm hitting a wall!!!
I have channels with the special characters "(" and ")", and because of this webgrab says: no shows in indexpage!

Thanks in advance

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 12 hours

can you post the files,so can see what is wrong

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