FAQ  •  Register  •  Login

Plugin Help

<<

khurram23

Serviio lover

Posts: 76

Joined: Sun Jun 24, 2012 10:25 pm

Post Wed Jul 31, 2013 9:04 pm

Plugin Help

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 703 times


Thanks,
Dropbox - Get 500MB bonus space.

My pre-compiled FFMPEG, X264 packages for Linux/Ubuntu - Dropbox
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jul 31, 2013 9:54 pm

Re: Plugin Help

Maybe they check the userAgent. Try to use this method

  Code:
String openURL(URL url, String userAgent)


and provide a Chrome-like user agent.
<<

khurram23

Serviio lover

Posts: 76

Joined: Sun Jun 24, 2012 10:25 pm

Post Thu Aug 01, 2013 2:12 pm

Re: Plugin Help

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 668 times
Dropbox - Get 500MB bonus space.

My pre-compiled FFMPEG, X264 packages for Linux/Ubuntu - Dropbox
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Aug 01, 2013 4:02 pm

Re: Plugin Help

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.
<<

khurram23

Serviio lover

Posts: 76

Joined: Sun Jun 24, 2012 10:25 pm

Post Thu Aug 01, 2013 7:35 pm

Re: Plugin Help

Thanks zip..

not sure what is going on... i'll continue to do more testing... but am stuck
Dropbox - Get 500MB bonus space.

My pre-compiled FFMPEG, X264 packages for Linux/Ubuntu - Dropbox
<<

.bismarck

Serviio newbie

Posts: 3

Joined: Mon Jul 08, 2013 2:44 pm

Post Fri Aug 02, 2013 1:45 am

Re: Plugin Help

Referer is needed ;-)

Result:

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



.bismarck
Attachments
1.groovy
(7.39 KiB) Downloaded 635 times
<<

khurram23

Serviio lover

Posts: 76

Joined: Sun Jun 24, 2012 10:25 pm

Post Fri Aug 02, 2013 6:23 pm

Re: Plugin Help

.bismarck wrote:Referer is needed ;-)

.bismarck


Ha! You rock!!

Back to work... Thanks!
Dropbox - Get 500MB bonus space.

My pre-compiled FFMPEG, X264 packages for Linux/Ubuntu - Dropbox

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 15 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.