Page 1 of 1

Plugin Help

PostPosted: Wed Jul 31, 2013 9:04 pm
by khurram23
Hello -

I'm trying to create this plugin (based off to pre-existing plugins), mostly copy/paste and changing few things here and there to try and make it work.

The site is ebound.tv

I have managed to extract the URLs for various channels and even managed to extract the frame URL, but when i try to process the frame URL to identify RTMP stream, it kicks me back to their main page. I am not sure what's going on. The source can be viewed in chrome and if i hit the URL directly, it works (no re-direct). I have the output of the various pages hit being logged to txt files. Please see 3.txt.

Please help!

my draft of plugin is attached.
1.groovy
(6.18 KiB) Downloaded 719 times


Thanks,

Re: Plugin Help

PostPosted: Wed Jul 31, 2013 9:54 pm
by zip
Maybe they check the userAgent. Try to use this method

  Code:
String openURL(URL url, String userAgent)


and provide a Chrome-like user agent.

Re: Plugin Help

PostPosted: Thu Aug 01, 2013 2:12 pm
by khurram23
zip -

Thanks! Getting me 1 step closer, however more issues I could use help with.

I've updated the function to include user agent and now it returns a NULL when i run the command.

  Code:
final USER_AGENT = 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1'

...

channel_stream_url_text = openURL( new URL(current_url), USER_AGENT )


file
1.groovy
(6.62 KiB) Downloaded 690 times

Re: Plugin Help

PostPosted: Thu Aug 01, 2013 4:02 pm
by zip
Hmm.. it still returns 400 (should probably put some logging there). I'm not sure what the problem is, it works via CURL, but in the code it gives 400. They might have some additional checks, no idea.

Re: Plugin Help

PostPosted: Thu Aug 01, 2013 7:35 pm
by khurram23
Thanks zip..

not sure what is going on... i'll continue to do more testing... but am stuck

Re: Plugin Help

PostPosted: Fri Aug 02, 2013 1:45 am
by .bismarck
Referer is needed ;-)

Result:

  Code:
so.addVariable('streamer','rtmp://streamer35.eboundservices.com/tv?wmsAuthSign=c2VydmVyX3RpbWU9OC8yLzIwMTMgMTozNzo0MCBBTSZoYXNoX3ZhbHVlPVlNRE5NVDh0b0lBNW5xSEpmNFdDV0E9PSZ2YWxpZG1pbnV0ZXM9MjA=');



.bismarck

Re: Plugin Help

PostPosted: Fri Aug 02, 2013 6:23 pm
by khurram23
.bismarck wrote:Referer is needed ;-)

.bismarck


Ha! You rock!!

Back to work... Thanks!