You are here

Merging with external XML

7 posts / 0 new
Last post
Sajk123
Offline
Donator
Joined: 12 months
Last seen: 1 week
Merging with external XML

Hi

I was wondering if my usecase is at all possible.

I'm grabbing a couple of channels with WG and it works great. However, I also have a link to my providers XML for a couple of other channels. Is it possible to have WG download and merge the xmö from the external link together with the XML created by WG?

I have tried using the merge ini in the sitepack but keep getting error:
Unhandled Exception

Index was outside the bounds of the array.

Is it even possible to use WG for these kind of xmls?

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

If you have such error, something wrong is the cause,check your config.

Sajk123
Offline
Donator
Joined: 12 months
Last seen: 1 week

This is the ini (configed) that I have been using. I have basically added my xml files and removed the file:// value as that gave me an error saying there is no file. Would you mind telling me where I have gone wrong in the ini?

Attachments: 
mat8861
Offline
WG++ Team memberDonator
Joined: 4 years
Last seen: 4 hours

First error i saw, is the /epg.xml.gz is compressed, so you need to extract first the file epg.xml and then merge. So your subpage should be..... Documents\guide.xml|http:/....../epg.xml

Sajk123
Offline
Donator
Joined: 12 months
Last seen: 1 week

I just tried it with removing .gz and instad have the link ending with .xml. Unfortunately that gave me the:
"Unhandled Exception
Index was outside the bounds of the array error".

I am however able to use a browser and download the xml. Both the compressed one and the uncompressed one.

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

you cannot remove .gz and change to xml, the file is still compressed.You need to extract from zipped gz file the xml. Then
{list|C:\Users\Sajk\Documents\guide.xml|C:\Users\Sajk\Documents\epg.xml} (epg.xml extracted from http://epg.*****.org/losmij/epg.xml.gz)

Sajk123
Offline
Donator
Joined: 12 months
Last seen: 1 week

Okay, but if I use a browser and go to the URL http://epg.****.org/losmij/epg.xml, I am able to download the file uncompressed.
Perhaps I am missing something or Webgrab isn't made for this usecase.

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