FAQ  •  Register  •  Login

HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Apr 01, 2012 1:10 am

HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

HAHASPORT.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 HAHASPORT.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.hahasport.com for all events
or
http://www.hahasport.com/c-n.html where n indicates the sport.

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

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 hahasport 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.hahasport.com/c-n.html?refresh=30 , 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 hahasport 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.hahasport.com/c-1.html?refresh=90&estreams=9%%

Note that the groovy only decodes the major sources used by hahasport 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.

Edit 8/23/2012 V7 Update Castalba Extraction Code & remove 404 test to prevent Serviio 1.0 timeout
Edit 8/31/2012 V8 Update Castamp Extraction Code & Fix erroneous No Events final item.
Edit 10/29/2012 V9 New ilive IP.
Edit 11/10/2012 V10 Get URL Fixed
Edit 11/17/2012 V11 New Leton IP
Edit 12/12/2012 V12 New Leton IP
Edit 12/13/2012 V13 New Leton IP
Edit 12/20/2012 V14 Limit Parsing to 50 items
Edit 12/30/2012 V15 Correct Refresh times
Edit 12/31/2012 V16 Check Network Availability
Edit 1/07/2013 V17 New Web format and Leton & IliveIP's, Add hqfooty, frame2, nutjob, castasap and coolsport sources & add ETimers
Version 18 - Jan 11, 2013 - New web format
Version 19 - Jan 11, 2013 - Correct refresh timing error
Version 20 - Jan 12, 2013 - 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 - Skipped
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 - Support GZIP Source format
Version 28 - Feb 19,2013 - Support livego Source
Version 29 - Mar 8,2013 - Increase Extract Timeout to 60 seconds
Version 30 - Apr 15,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.
Attachments
HaHaSport.groovy
hahasport.groovy V31, May 30, 2013
(57.73 KiB) Downloaded 1302 times
Last edited by jhb50 on Thu May 30, 2013 10:06 pm, edited 39 times in total.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Wed Apr 04, 2012 5:13 pm

Re: DYNAMIC SPORTS STREAMS LIBRARY

The groovy has been updated to V2, which adds an automatic hourly refresh so that the on demand refreshes can complete more quickly.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu May 03, 2012 11:31 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

The groovy has been updated to V3 and new options added. See post #1 which has been rewritten.
<<

markdark

Serviio newbie

Posts: 5

Joined: Sat Jan 28, 2012 3:48 pm

Post Sat May 12, 2012 5:07 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

Hi,

I have installed the plugin into the directory and it's loaded. I also added the page:
http://www.hahasport.com/c-1.html

As a Web resource into Serviio. But unfortunally nothing loads on my PS3. Am I missing something? I have Serviio running on my Synology NAS (DS710+).

Logfile:
2012-05-12 18:59:55,597 INFO [PluginCompilerThread] Added Web Resouce plugin HaHaSport (HaHaSport.groovy)
2012-05-12 18:59:55,917 INFO [PluginCompilerThread] Added Feed plugin LiveFeeds (LiveFeeds.groovy)

2012-05-12 19:03:53,557 WARN [FeedUpdaterThread] Failed to retrieve online item information for rtmp://159.253.145.165:80/live swfUrl=http://static.castalba.tv/player.swf pageURL=http://castalba.t
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:273)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:208)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:101)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:344)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:87)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:255)
... 2 more
2012-05-12 19:05:28,279 WARN [FeedUpdaterThread] Failed to retrieve online item information for rtmp://159.253.145.165:80/live swfUrl=http://static.castalba.tv/player.swf pageURL=http://castalba.t
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:273)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:208)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:101)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:344)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:87)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:255)
... 2 more


Mark

*** EDIT ***
After some time some soccer games appeared into the PS3 menu and I am able to watch them. Looks like it is working as it should be. I was wondering if it is possible to implement the Refresh on Demand on a Synology NAS (http://wiki.serviio.org/doku.php?id=refresh_on_demand). Unfortunally this Wiki only describes a Windows setup and not a Linux/NAS setup. Anybody got this working on a Linux / NAS system?
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat May 12, 2012 6:20 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

Failed to retrieve online item information for rtmp://159.253.145.165:80/live swfUrl=http://static.castalba.tv/player.swf pageURL=http://castalba.t


I've never seen that type of error before. The rtmp is truncated and should show "v playpath= xxxxx" after the "t". The groovy definitely generates it, so something in serviio dropped it.

The debug log should show you more including all the feed items that were in the feed. The error will not stop the other items from displaying so there must be some other problem.

Problem you will have is that these feed items change so quickly that the problem may be gone when you try it again.

.. saw your edit so the other feed items showed up as they should. Regarding the Refresh, you just need to duplicate the script (windows.bat file) in whatever scripting facility Linux offers.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun May 13, 2012 7:44 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

Notice 5/13/2012:

Due to an intermittent hang of Serviio when using GZIPInputStream to decode Castamp streams, I have released V4 without Castamp stream decoding.
<<

Vintila

Streaming enthusiast

Posts: 44

Joined: Wed Nov 02, 2011 5:57 pm

Post Tue May 15, 2012 11:39 am

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

jhb50, Thanks a lot for the script, it works like a charm!.

Just one question, I only get one stream available for each football match, I mean if the mach is Real Madrid – Barcelona I only have one stream available while in the web page I have a bunch of them. This has sense in terms of having a clean “menu” and not full of the same matches but I would like to be able to choose different streams for the same match just to be sure I chose the right one in terms of quality, language, tec.

Keep on the good work!
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue May 15, 2012 12:09 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

As it says in the first post:
the "estreams=m" parameter may also be used to cause multiple streams to be displayed for each live event as available
<<

Vintila

Streaming enthusiast

Posts: 44

Joined: Wed Nov 02, 2011 5:57 pm

Post Tue May 15, 2012 1:31 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

jhb50 wrote:As it says in the first post:
the "estreams=m" parameter may also be used to cause multiple streams to be displayed for each live event as available


I am fool.....

Thanks a million........
<<

Vintila

Streaming enthusiast

Posts: 44

Joined: Wed Nov 02, 2011 5:57 pm

Post Tue May 15, 2012 2:12 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

Just for the wish list.

It would be great to have an alternative plug-in which allows introducing a filter in the content to retrieve, for example just football matches of “Chelsea” so combining this filtered plug-in with the “estreams=m" parameter you could retrieve only the streams you are interested in.

Thanks a lot
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Wed May 23, 2012 5:17 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

V5 released to fix java exception on some bad source links.
<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Tue Jun 26, 2012 4:40 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

markdark wrote:Hi,

I have installed the plugin into the directory and it's loaded. I also added the page:
http://www.hahasport.com/c-1.html

As a Web resource into Serviio. But unfortunally nothing loads on my PS3. Am I missing something? I have Serviio running on my Synology NAS (DS710+).

Logfile:
2012-05-12 18:59:55,597 INFO [PluginCompilerThread] Added Web Resouce plugin HaHaSport (HaHaSport.groovy)
2012-05-12 18:59:55,917 INFO [PluginCompilerThread] Added Feed plugin LiveFeeds (LiveFeeds.groovy)

2012-05-12 19:03:53,557 WARN [FeedUpdaterThread] Failed to retrieve online item information for rtmp://159.253.145.165:80/live swfUrl=http://static.castalba.tv/player.swf pageURL=http://castalba.t
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:273)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:208)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:101)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:344)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:87)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:255)
... 2 more
2012-05-12 19:05:28,279 WARN [FeedUpdaterThread] Failed to retrieve online item information for rtmp://159.253.145.165:80/live swfUrl=http://static.castalba.tv/player.swf pageURL=http://castalba.t
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:273)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:208)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:101)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:344)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:87)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:255)
... 2 more


Mark

*** EDIT ***
After some time some soccer games appeared into the PS3 menu and I am able to watch them. Looks like it is working as it should be. I was wondering if it is possible to implement the Refresh on Demand on a Synology NAS (http://wiki.serviio.org/doku.php?id=refresh_on_demand). Unfortunally this Wiki only describes a Windows setup and not a Linux/NAS setup. Anybody got this working on a Linux / NAS system?



Hi Mark, If you are still looking for getting refresh on demand to work on synology, go to http://wiki.serviio.org/doku.php?id=refresh_on_demand_linux. I am also using synology, and managed to make it work. I have added the details and the files to the wiki link provided before. Please try it and let em know if it works. PM me if you have any issues.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu Aug 23, 2012 1:57 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

Version 7 released containing Update for Castalba Extraction Code & removal of 404 test to prevent Serviio 1.0 timeouts. See first post.
<<

kappclark

DLNA master

Posts: 133

Joined: Fri Jan 13, 2012 10:36 pm

Location: Southern VT

Post Fri Aug 31, 2012 5:54 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

when I use tennis (#4) ,, I see the shot from space... do I just wait for the tennis feed to come through ?
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Aug 31, 2012 8:38 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

There are lots of supported feed items so you should have lots of them. What is the title of the one you have. Should be one of NoEvents, No More Events or Next Event. When was the Feed last refreshed?
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Aug 31, 2012 10:42 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

After checking, many of these tennis feeds were from Castamp, who have changed their link method and no longer use GZIP format. I have posted version 8 which now extracts them successfully.

It is always wise to always get 2 streams (estreams=2) of each event so that if the first fails, the second should be available.
<<

kappclark

DLNA master

Posts: 133

Joined: Fri Jan 13, 2012 10:36 pm

Location: Southern VT

Post Sat Sep 01, 2012 8:23 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

Thx for followup --- I will chk again...the match eventually cam e on//

In the post about estreams .. what is the character immidiately in front of the estreams argument ?? Can I use a "?" ?
<<

zit1343

Streaming enthusiast

Posts: 33

Joined: Sat Nov 26, 2011 6:10 am

Post Sat Sep 01, 2012 8:42 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

How do I use this plugin after moving it to, plugin folder.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Sep 01, 2012 10:08 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

Try reading the first post
<<

kappclark

DLNA master

Posts: 133

Joined: Fri Jan 13, 2012 10:36 pm

Location: Southern VT

Post Sat Sep 01, 2012 11:40 pm

Re: HAHASPORT - A DYNAMIC SPORTS STREAMS WEB RESOURCE

This is fabulous - thank you so much for putting the new plugin together... wife and I are loving the US Open
Next

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 21 guests

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