Page 1 of 2

STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Tue Jan 08, 2013 6:42 am
by jhb50
NOTE: This STOPSTREAM groovy is the functional equivalent of the HAHASPORT groovy. It was created when HAHASPORT shut down for a short period and so will be maintained in parallel with HAHASPORT. As such the first release began at V17.
--------------------------------------------------------------------------------------
STOPSTREAM.COM is an aggregator site which maintains a dynamic list of upcoming sports events, and provides links to currently live event player streams. Consider it a Library of Sports events.

The attached video WebResource STOPSTREAM.GROOVY provides access to this library of events, which due to its dynamic nature must be frequently refreshed.

It may be invoked as a video WebResource with the url http://www.stopstream.com for all events
or
http://www.stopstream.com/n where n indicates the sport.
Note: http://www.stopstream.tv may also be used for backward compatibility.

ALL EVENTS http://www.stopstream.com
FOOTY http://www.stopstream.com/1
HOCKEY http://www.stopstream.com/3
TENNIS http://www.stopstream.com/4
BASKETBALL http://www.stopstream.com/6
GOLF http://www.stopstream.com/8
MOTORSPORTS http://www.stopstream.com/10
OTHER http://www.stopstream.com/11

The plugin includes a quick refresh feature as described in the wiki at http://wiki.serviio.org/doku.php?id=quick_refresh. The feature may be disabled using the parameter "genurls=0"

The default stopstream implementation with no parameters, will cause a refresh to occur 3 minutes prior to each scheduled event, and 10 minutes after each events completion.

If the parameter "refresh=nnn" is used, eg:http://www.stopstream.com/n?refresh=300 , refreshes will occur at a maximum every nnn minutes (or per the console refresh time if sooner.

The wiki entry http://wiki.serviio.org/doku.php?id=refresh_on_demand provides details on how to implement a "Refresh on Demand" capability from the client device online menu thereby eliminating the need to use the server or a remote console to "Force Refresh" these folders prior to their use.

The default stopstream implementation also only displays the first available decodable stream for each event. Since each event may have multiple streams available from different sources, the "estreams=m" parameter may also be used to cause multiple streams to be displayed for each live event as available. "estreams" may equal 1 thru 9 with 9 signifing that all available streams should be displayed, eg: http://www.stopstream.com/1?refresh=90&estreams=9

Note that the groovy only decodes the major sources used by stopstream and while that seems to cover most events there may be some the groovy does not decode and the event will not display. The groovy activity is logged in debug mode.

The groovy will also generate a "events" icon showing the time of the next scheduled refresh.

Version 17 - Jan 7, 2013 - First version equivalent to hahasport V17
Version 18 - Jan 11, 2013 - Equivalent to hahasport V18
Version 19 - Jan 11, 2013 - Correct refresh time error
Version 20 - Jan 12,2012 Tuned, Coolsport source change
Version 21 - Jan 13,2013 Liveall source change
Version 22 - Feb 3, 2013 - New source feeds and IP's, Add Quick Refresh
Version 23 - Feb 4, 2013 - Support change to http://www.stopstream.com
Version 24 - Feb 4,2013 - Improved Expiry time logic
Version 25 - Feb 9,2013 - Support Quick Refresh for subsets.
Version 26 - Feb 10,2013 - Skip bad source Urls
Version 27 - Feb 18,2013 - Update source links
Version 28 - Feb 19,2013 - support livego source
Version 29 - Mar 8,2013 - Increase Extract Timeout to 60 seconds
Version 30 - Apr 19,2013 - update hdcast, ilive & leton uris
Version 31 - May 30, 2013 - add sawlive sources, adjust event end refreshes, support new web page, update ips, add featve redirect & token.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Tue Jan 08, 2013 7:23 pm
by newborn
oh brill. Cheers for finishing it. I think stopstream has always been there actually, often a hahasport stream has carried a stopstream banner in the corner of its broadcast.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Fri Jan 11, 2013 11:48 pm
by jhb50
Version 19 posted to correct refresh timing error

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sat Jan 12, 2013 7:47 pm
by newborn
I don't think any of those links are vaild buddy. using the .com links as an example you get a page not found. The actually tld is tv and then the pages are referenced by for example /1/ rather than 1.html

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sat Jan 12, 2013 7:51 pm
by jhb50
Thanks for pointing that out.. post 1 corrected.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sat Jan 12, 2013 8:02 pm
by newborn
Will it work though?

I have

  Code:
2013-01-12 17:39:10,417 INFO  [PluginCompilerThread] Added Web Resouce plugin Stopstream (Stopstream.groovy), version: 19

But then...

  Code:
java.io.IOException: Cannot parse resource from http://www.stopstream.com/1. Message: No plugin for web resource http://www.stopstream.com/1 has been found.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sat Jan 12, 2013 8:14 pm
by jhb50
As you noted earlier the correct form is .tv not .com
All left over from copying the post from hahasport.
I've updated post 1 again.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sat Jan 12, 2013 8:16 pm
by newborn
Ah OK, will try that now, I wasn't sure if the plugin would fire at all though! Will feed back in a few moments :)

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sat Jan 12, 2013 8:19 pm
by newborn
Yep thats working, nice one.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sun Jan 13, 2013 3:56 am
by jhb50
Version 20 posted. Groovy tuned to run faster, coolsport source extracts updated.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Mon Jan 14, 2013 6:08 am
by jhb50
Version 21 posted with Liveall source change

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Mon Feb 04, 2013 4:58 am
by jhb50
Version 22 posted with new source feeds and ips.

This is a major upgrade of the plugin and features a new quick refresh capability as described in the wiki at http://wiki.serviio.org/doku.php?id=quick_refresh.

This makes it practical to do refreshes frequently using the refresh parameter and keep the list of items up to date without the overhead of re-extracting the existing items. Refreshes that previously took many minutes are now done in one or two seconds.

NOTE: Recent changes to the Stopstream web site has introduced errors which the plugin is able to detect and skip however the available list of items will be fewer than those provided by the hahasport plugin.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Mon Feb 04, 2013 6:24 pm
by jhb50
Version 23 is posted to support the change of the site to www.stopstream.com

The groovy will continue to accept source urls of the form stopstream.tv for backward compatibility, but new source requests should use stopstream.com

The previously referenced errors on the site seem to have been corrected.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Mon Feb 04, 2013 9:19 pm
by jhb50
Version 24 posted with improved Expiry time logic for faster refreshes

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sun Feb 10, 2013 6:06 am
by jhb50
Version 25 posted to Support Quick Refresh for subsets.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sun Feb 10, 2013 7:08 pm
by jhb50
Version 26 posted to skip bad source urls.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Tue Feb 19, 2013 6:40 am
by jhb50
V27 posted

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Wed Feb 20, 2013 12:07 am
by jhb50
V28 posted to support livego source

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sat Mar 09, 2013 5:27 am
by jhb50
Version 29 posted to increase extract timeout. Serviio 1.2 is prereq.

Re: STOPSTREAM - A DYNAMIC SPORTS STREAMS WEB RESOURCE

PostPosted: Sat Apr 20, 2013 3:27 am
by jhb50
Version 30 posted with updated uri's