EPG url bug

General discussion about DVBLink products

EPG url bug

Postby skiv71 » Mon Jul 24, 2017 3:03 am

Hi,

I've discovered a bug where I'm using the following URL to my backend...

http://server:3142/api/guide?lineup=sky&provider=rytec

What's happening, is when I save this entry, dvblink server saves this url in the grabber, with the '& replaced with &

Then, when sending the request to to backend, I'm seeing query string as...

{ 'lineup': 'sky', 'amp;provider': 'rytec' }

If I make the request using postman, google chrome and a host of other clients, all is well.

I think the problem arises because upon EPG source save, dvblink is replacing the & with & and altering the URL.

Can this be fixed please?

Thanks

Neil
skiv71
 
Posts: 52
Joined: Fri May 20, 2011 11:32 am


Re: EPG url bug

Postby skiv71 » Mon Jul 24, 2017 3:20 am

Seem's the problem occurs if you try and re-save the provider once its already written the & into the *.xml settings config file.

When you open the source and re-save it, it seems to keep adding &

I had to go into the actual file in /usr/local/bin/dvblink/sources/<source> and edit the *.xml config.

Just another point to note, I changed my guide name from guide.gz to guide-sky-rytec.gz and it stops the auto detect from working properly, which results in a fail regarding parsing xml data.

Interesting thing to note, there's no mention of this in the dvblink_server.log.

Maybe the processing of the xml data/archive and its exit signal is not be caught by the process invoking it?

I'd be catching that in node.js and at least you'd know there was a problem.
skiv71
 
Posts: 52
Joined: Fri May 20, 2011 11:32 am


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests