FAQ  •  Register  •  Login

COOLSPORT - A SPORTS STREAM WEBRESOURCE

<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Nov 25, 2012 8:10 pm

COOLSPORT - A SPORTS STREAM WEBRESOURCE

Coolsport.groovy - A Video Web Resource
=======================================

Coolsport.tv is a site offering up to 24 sports streams and 6 dedicated sports networks- NFL, NBA, NHL, ESPN, GOLF & SKY SPORTS NEWS

This video Webresource groovy is invoked with http://www.coolsport.tv and will generate a menu of all available streams.

The groovy also accesses the schedule page so that each stream title will display start-stop time, non-english language, and event name of the next 2 scheduled events for each stream in GMT. Note that the day does not display so the event may be for a future day. If "No events are scheduled" or the events have not yet started the stream may still be live with an unannounced program, or the stream may yield an error.
Note also that this may cause slow cpu's to timeout after 30 seconds so a sched=1 parameter is now available to list only the first scheduled item on each channel.

To speed up the plugin, it will now only list those active channels which have scheduled events. To list all active channels including those with no scheduled events use the parameter "noevents=1"

The 6 sports networks will always display.

The plugin also 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 implementation with no parameters, will cause a refresh to occur at the console default time.

If the parameter "refresh=nnn" is used, eg:http://www.coolsport.tv?refresh=30 , refreshes will occur every nnn minutes if more frequent than the console refresh time.

If the parameter "time=nn" is used, eg:http://www.coolsport.tv?time=16 ,
the event times will be adjusted to your local time. Just enter the hour in your timezone when it is midnight in GMT. For example CET=23, EST=19 and PST=16.

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

Nov 25, 2012 - Version 1
Dec 1, 2012 - Version 2 - No events icon added
Dec 5, 2012 - Version 3 - New time parameter for local time display
Dec 7, 2012 - Version 4 - Correct parameter error
Dec 8, 2012 - Version 5 - Changed web format
Dec 9, 2012 - Version 6 - Correct local time calculation
Dec 16, 2012 - Version 7 - New URIs, added channel numbers
Dec 17, 2012 - Version 8 - Another web format change
Dec 31, 2012 - Version 9 - Check Network Availability
Jan 1, 2013 - Version 10 - events=1 option added for slow cpu's
Jan 10, 2013 - Version 11 - another web format change
Feb 3, 2013 - Version 12 - add quick refresh and remove no events channels
Feb 4, 2013 - Version 13 - fix parameter bug
Feb 9, 2013 - Version 14 - Enhance refresh logic, add timeout timer, put time first, change event=1 option to sched=1 option
Feb 10, 2013 - Version 15 - skip channel 25 which never works
Feb 11, 2013 - Version 16 - Only show language if its not ENGLISH
Feb 18, 2013 - Version 17 - support custom network channels
Mar 8, 2013 - Version 18 - Increase Extract Timeout to 90 seconds
Mar 18,2013 - Version 19 - Support KiwiSportz.tv
Mar 27,2013 - Version 20 - Update sources
Apr.19,2013 - Version 21 - Update icons
Attachments
Coolsport.groovy
Coolsport.groovy V21, Apr 19,2013
(24.71 KiB) Downloaded 2356 times
Last edited by jhb50 on Sat Apr 20, 2013 3:19 am, edited 25 times in total.
<<

zowie

DLNA master

Posts: 256

Joined: Sun Apr 08, 2012 8:23 am

Location: Italy

Post Wed Nov 28, 2012 8:17 pm

Re: Coolsport - A Sports Stream WebResource

Grazie.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Wed Dec 05, 2012 10:06 pm

Re: Coolsport - A Sports Stream WebResource

Version 3 posted with new time adjustment parameter so events can be shown in your local time.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Dec 07, 2012 8:23 pm

Re: Coolsport - A Sports Stream WebResource

Version 4 posted to correct parameter processing error when both parameters are used.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Dec 09, 2012 12:58 am

Re: Coolsport - A Sports Stream WebResource

Version 5 posted to support changed web format
<<

anglia73

Serviio newbie

Posts: 11

Joined: Wed Dec 05, 2012 9:22 pm

Post Sun Dec 09, 2012 5:15 am

Re: Coolsport - A Sports Stream WebResource

Another brilliant job, 19 steams all working , many thanks
Regards
Sony KDL32EX403 Sony N200 Pentium 4 3.4ghz XP SP3
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Dec 09, 2012 6:48 am

Re: Coolsport - A Sports Stream WebResource

Version 6 posted to correct local time calculation
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Dec 16, 2012 11:26 pm

Re: Coolsport - A Sports Stream WebResource

Version 7 posted to support new uris and add channel numbers.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Dec 18, 2012 3:04 am

Re: Coolsport - A Sports Stream WebResource

Version 8 posted to support major web format change
<<

newborn

Streaming enthusiast

Posts: 39

Joined: Sun Dec 23, 2012 2:38 pm

Post Sun Dec 23, 2012 3:06 pm

Re: Coolsport - A Sports Stream WebResource

Is this still working? I can't seem to get it to appear in my list no matter how many times I refresh it.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Dec 23, 2012 8:37 pm

Re: Coolsport - A Sports Stream WebResource

Check your debug log or groovy to ensure you are using V8
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Dec 23, 2012 8:37 pm

Re: Coolsport - A Sports Stream WebResource

Check your debug log or groovy to ensure you are using V8
<<

blokey

Streaming enthusiast

Posts: 29

Joined: Mon Jun 11, 2012 8:14 am

Post Sun Dec 23, 2012 8:40 pm

Re: Coolsport - A Sports Stream WebResource

Coolsport working here, could be down to the sony 2011 profile thing again.
<<

newborn

Streaming enthusiast

Posts: 39

Joined: Sun Dec 23, 2012 2:38 pm

Post Sat Dec 29, 2012 12:00 pm

Re: Coolsport - A Sports Stream WebResource

  Code:
2012-12-29 11:54:01,570 DEBUG [PluginCompilerThread] Starting plugin Coolsport.groovy compilation
2012-12-29 11:54:01,700 INFO  [PluginCompilerThread] Added Web Resouce plugin coolsport (Coolsport.groovy), version: 1


2012-12-29 11:54:42,316 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Cannot parse resource from http://coolsport.tv/. Message: No plugin for web resource http://coolsport.tv/ has been found.
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:179)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)

Strange! Should the web resource actually be http://www.coolsport.tv or does it not matter?
<<

newborn

Streaming enthusiast

Posts: 39

Joined: Sun Dec 23, 2012 2:38 pm

Post Sat Dec 29, 2012 12:42 pm

Re: Coolsport - A Sports Stream WebResource

Changing it to the source url to http://www.coolsport.tv worked :D so maybe the following in the first post needs to be adjusted :)


jhb50 wrote:This video Webresource groovy is invoked with http://coolsport.tv and will generate a menu of all available streams.
<<

anglia73

Serviio newbie

Posts: 11

Joined: Wed Dec 05, 2012 9:22 pm

Post Sat Dec 29, 2012 6:04 pm

Re: Coolsport - A Sports Stream WebResource

Any advice on 30000ms time out with Coolsport. Background been running Skysport with no problem but with Coolsport problems when I first loaded version 6 worked ok next time used PC nothing showing, loaded version 8 all ok and working next day nothing . Log shows 30000ms timeout on each stream.

Any advice keep it simple please :- Running latest download of Serviio , and latest version of both groovy files.

Typical section of log file

from 192.168.0.3:
2012-12-29 17:44:25,890 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.3
2012-12-29 17:44:26,156 DEBUG [ConnectionManager] Sending protocol info using profile 'Sony BD Player / SMP'
2012-12-29 17:44:26,171 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-12-29 17:44:48,968 WARN [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Unexpected error while invoking plugin (coolsport): The operation took more than 30000 ms and has been cancelled.
at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:58)
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:171)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)
Caused by: java.lang.RuntimeException: The operation took more than 30000 ms and has been cancelled.
at org.serviio.library.online.PluginExecutionProcessor.execute(PluginExecutionProcessor.java:64)
at org.serviio.library.online.WebResourceUrlExtractor.parseWebResource(WebResourceUrlExtractor.java:29)
at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:56)
... 4 more
2012-12-29 17:44:48,968 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2012-12-29 17:45:35,062 DEBUG [PlaylistDAOImpl] Reading all Playlists
2012-12-29 17:45:48,984 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2012-12-29 17:45:48,984 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2012-12-29 17:45:48,984 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 2)
2012-12-29 17:45:48,984 DEBUG [OnlineLibraryManager] Resource http://www.coolsport.tv/ not in cache yet, loading it
2012-12-29 17:45:48,984 DEBUG [WebResourceParser] Parsing web resource 'http://www.coolsport.tv/'
2012-12-29 17:45:48,984 DEBUG [WebResourceParser] Found matching url extractor (coolsport) for resource http://www.coolsport.tv/
2012-12-29 17:45:48,984 DEBUG [FeedItemUrlExtractor] coolsport: Starting parsing resource: http://www.coolsport.tv/
2012-12-29 17:45:48,984 DEBUG [FeedItemUrlExtractor] coolsport: Parsing with Coolsport V8
2012-12-29 17:46:18,984 WARN [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Unexpected error while invoking plugin (coolsport): The operation took more than 30000 ms and has been cancelled.
at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:58)
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:171)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)
Caused by: java.lang.RuntimeException: The operation took more than 30000 ms and has been cancelled.
at org.serviio.library.online.PluginExecutionProcessor.execute(PluginExecutionProcessor.java:64)
at org.serviio.library.online.WebResourceUrlExtractor.parseWebResource(WebResourceUrlExtractor.java:29)
at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:56)
... 4 more
2012-12-29 17:46:18,984 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2012-12-29 17:47:19,015 DEBUG [FeedUpdaterThread] Checking for new and expired online resources
2012-12-29 17:47:19,015 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2012-12-29 17:47:19,015 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 2)
2012-12-29 17:47:19,015 DEBUG [OnlineLibraryManager] Resource http://www.coolsport.tv/ not in cache yet, loading it
2012-12-29 17:47:19,015 DEBUG [WebResourceParser] Parsing web resource 'http://www.coolsport.tv/'
2012-12-29 17:47:19,015 DEBUG [WebResourceParser] Found matching url extractor (coolsport) for resource http://www.coolsport.tv/
2012-12-29 17:47:19,015 DEBUG [FeedItemUrlExtractor] coolsport: Starting parsing resource: http://www.coolsport.tv/
Sony KDL32EX403 Sony N200 Pentium 4 3.4ghz XP SP3
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Dec 30, 2012 2:50 am

Re: Coolsport - A Sports Stream WebResource

maybe the following in the first post needs to be adjusted

Done. Thanks.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Dec 30, 2012 2:58 am

Re: Coolsport - A Sports Stream WebResource

Any advice on 30000ms time out with Coolsport

Coolsport site seems to go dark periodically. Just Force Refresh to try again.
<<

anglia73

Serviio newbie

Posts: 11

Joined: Wed Dec 05, 2012 9:22 pm

Post Sun Dec 30, 2012 8:53 am

Re: Coolsport - A Sports Stream WebResource

jhb50 wrote:Coolsport site seems to go dark periodically. Just Force Refresh to try again.


Tried that no effect, still get 30000ms time out, removed all items from Serviio librarys except the two online sources Skysportplus and Coolsport
Skysport has always been ok Coolsport I have only got to work after loading new version on groovy. ? the web site is up when i get the error.
Any point in removing serviio and reloading, it does not seen logical to me as it only effecting coolsport. Regards

PS internet connection 30mb cable, ethernet connected PC so that should not be a problem
Sony KDL32EX403 Sony N200 Pentium 4 3.4ghz XP SP3
<<

anglia73

Serviio newbie

Posts: 11

Joined: Wed Dec 05, 2012 9:22 pm

Post Mon Dec 31, 2012 5:11 pm

Re: Coolsport - A Sports Stream WebResource

Further to the 30000 ms time out using the Coolsport groovy .
After removing Serviio and Java reloading both, adding both syksport and coolsport groovy it works . I can stop and start the server and the console no problem .
UNTIL I power off the PC after reboot, and yes Coolsport is timing out.
If I remove coolsport groovy and reboot, after booting stop serviio add coolsport and it works ok. Net result is :- if the coolsport groovy is installed when restarting the PC it wont work, add it after reboot and its OK. Skysport groovy works no matter what.
What on earth can I have configued on the pc that would do that only to the coolsport groovy, is it Java related ?
Regards


UPDATE changed settings of Serviio services from auto to manual, changed settings of Serviio console from auto to manual
and "voila " all ok, Coolsport run every time .
presume its a timing issue relating to starting the Serviio service before something on the PC is ready ( its only a P4 3.4ghz but loading very little on start up ) but why just the coolsport groovy, any ideas from the experts would be appreciated to educate the elderly
Regards
Sony KDL32EX403 Sony N200 Pentium 4 3.4ghz XP SP3
Next

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 20 guests

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