Page 3 of 6

Re: CBS.com (US Only)

PostPosted: Tue Apr 16, 2013 4:25 pm
by amikhnov
leo1981 wrote:Hi,
I am new to plugin development.
I modified the original CBS.groovy and I got it to work.


Thanks,
Leonardo


Works great! Thank you

Re: CBS.com (US Only)

PostPosted: Tue Apr 16, 2013 5:19 pm
by DrJay
Yes, the CBS plug-in is working again. Thanks, Leonardo.

Now if we could get someone to create a CBSNews.com plug-in that would be fantastic. Things like 60 minutes and CBS Sunday morning are great programs that would be wonderful to stream directly to my TV with Serviio.

Re: CBS.com (US Only)

PostPosted: Thu Apr 18, 2013 1:56 am
by hospitalfood
I've downloaded the new .groovy file, but it still isn't working for me. Did you have to do anything else different besides update the .groovy?

Re: CBS.com (US Only)

PostPosted: Thu Apr 18, 2013 2:51 am
by leo1981
Hi,
CBS updated some links today (April 17th).
I updated the file again.


Leonardo

Re: CBS.com (US Only)

PostPosted: Fri Apr 19, 2013 5:42 am
by anjilslaire
Yes, it's working great, Leonardo.

Suggestion:
Update the comments of the groovy file to reflect that you've edited it, date, and maybe a new version #? That way we can easily see what version we have?


Either way, thanks a bunch!

Re: CBS.com (US Only)

PostPosted: Sat Apr 27, 2013 3:23 am
by leo1981
Version 5
I updated the carousel link again and I added version number.

Re: CBS.com (US Only)

PostPosted: Sun Apr 28, 2013 6:56 pm
by headputty
Leonardo,

You rock!!, thanks for fixing the plugin each time it breaks cos of a CBS.com change.

Keep up the good work!

Re: CBS.com (US Only)

PostPosted: Sat May 11, 2013 12:48 pm
by jgonick
Yes, I have to agree. Thanks for keeping this plugin working. We really appreciate it.

Re: CBS.com (US Only)

PostPosted: Sun May 12, 2013 11:56 am
by Xmantium
48 Hours (http://www.cbs.com/shows/48_hours/video/) and 60 Minutes is available worldwide and viewable on the web browser.
This groovy used to work on my Serviio in the UK for some reason i get the following errors. Any help?

  Code:
2013-05-12 12:50:24,619 DEBUG [OnlineLibraryManager] Resource http://www.cbs.com/shows/48_hours/video/ not in cache yet, loading it
2013-05-12 12:50:24,619 DEBUG [WebResourceParser] Parsing web resource 'http://www.cbs.com/shows/48_hours/video/'
2013-05-12 12:50:24,619 DEBUG [FeedItemUrlExtractor] Playlist extractor:   - transmitted from WebResourceParser - playlistUrl: null
2013-05-12 12:50:26,065 DEBUG [WebResourceParser] Unexpected error during url extractor plugin matching (EightTracks): index is out of range 0..-1 (index = 0)
2013-05-12 12:50:26,065 DEBUG [WebResourceParser] Found matching url extractor (CBS.com) for resource http://www.cbs.com/shows/48_hours/video/
2013-05-12 12:50:26,065 DEBUG [FeedItemUrlExtractor] CBS.com: Starting parsing resource: http://www.cbs.com/shows/48_hours/video/
2013-05-12 12:50:27,043 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Unexpected error while invoking plugin (CBS.com): No signature of method: java.lang.String.and() is applicable for argument types: (java.lang.NullPointerException) values: [java.lang.NullPointerException]
Possible solutions: any(), any(groovy.lang.Closure), find(), find(groovy.lang.Closure), find(java.util.regex.Pattern), find(java.lang.String)
   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: groovy.lang.MissingMethodException: No signature of method: java.lang.String.and() is applicable for argument types: (java.lang.NullPointerException) values: [java.lang.NullPointerException]
Possible solutions: any(), any(groovy.lang.Closure), find(), find(groovy.lang.Closure), find(java.util.regex.Pattern), find(java.lang.String)
   at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55)
   at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
   at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
   at CBS.extractItems(CBS.groovy:130)
   at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:32)
   at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:29)
   at org.serviio.library.online.PluginExecutionProcessor$1.call(PluginExecutionProcessor.java:50)
   at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Re: CBS.com (US Only)

PostPosted: Sun May 12, 2013 9:27 pm
by leo1981
Version 6.
- added some debug code to make it easier to find problems.
- implemented maxItemsToRetrieve
- fixed bug when a show has only one quality

It should play 48 Hours.


Leonardo

Re: CBS.com (US Only)

PostPosted: Sun May 12, 2013 9:39 pm
by Xmantium
Thankyou so much!!

Anyone looking to use this plugin, here are all the URL sources - http://www.serviidb.com/plugin-api-name/cbscom

Re: CBS.com (US Only)

PostPosted: Mon May 13, 2013 12:09 am
by DrJay
leo1981 wrote:Version 6.
- added some debug code to make it easier to find problems.
- implemented maxItemsToRetrieve
- fixed bug when a show has only one quality

It should play 48 Hours.


Leonardo


Thanks for keeping the plug-in up to date. Unfortunately, I can't seem to get the plug-in to work for 48 Hours or 60 Minutes. It seems like they have the programs on CBSNews.com rather than CBS.com Maybe I'm doing something wrong, but programs like NCIS and Elementary are working, but not 48 Hours or 60 Minutes.

Jay

Re: CBS.com (US Only)

PostPosted: Mon May 13, 2013 2:39 am
by DrJay
leo1981 wrote:Version 6.
- added some debug code to make it easier to find problems.
- implemented maxItemsToRetrieve
- fixed bug when a show has only one quality

It should play 48 Hours.


Leonardo



As I mentioned in my last post, 48 Hours and 60 Minutes will not play with the CBS groovy. Here is my log:


2013-05-12 21:23:29,712 WARN [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Unexpected error while invoking plugin (CBS.com): No signature of method: java.lang.String.and() is applicable for argument types: (java.lang.NullPointerException) values: [java.lang.NullPointerException]
Possible solutions: any(), any(groovy.lang.Closure), find(), find(java.lang.CharSequence), find(groovy.lang.Closure), find(java.util.regex.Pattern)
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: groovy.lang.MissingMethodException: No signature of method: java.lang.String.and() is applicable for argument types: (java.lang.NullPointerException) values: [java.lang.NullPointerException]
Possible solutions: any(), any(groovy.lang.Closure), find(), find(java.lang.CharSequence), find(groovy.lang.Closure), find(java.util.regex.Pattern)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at CBS.extractItems(CBSGood.groovy:130)
at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:32)
at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:29)
at org.serviio.library.online.PluginExecutionProcessor$1.call(PluginExecutionProcessor.java:50)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I can watch the programs on my computer with the web resource (ie. http://www.cbs.com/shows/48_hours/video), but they don't show up on the Serviio server. I watch the other CBS programs (ie. NCIS) on the serviio server through my Sony Blu-Ray player. Since I am in the U.S., not sure if that is the problem. The serviio.db programs listed for the U.S. work, but the world ones seem to be a problem.

Anyway, still happy that I can watch the other programs with your updates.

Thanks, Leonardo.

Re: CBS.com (US Only)

PostPosted: Mon May 13, 2013 4:54 am
by leo1981
Do you have "Max. number of feed items to retrieve" set to "Unlimited"?
Please try to change to a finite number.

Re: CBS.com (US Only)

PostPosted: Mon May 13, 2013 12:33 pm
by DrJay
leo1981 wrote:Do you have "Max. number of feed items to retrieve" set to "Unlimited"?
Please try to change to a finite number.


Leonardo,
Thanks for the quick response. I set the Max. number to 10 and 30 and still not able to get 60 Minutes or 48 Hours.

Jay

Re: CBS.com (US Only)

PostPosted: Tue May 14, 2013 10:04 pm
by leo1981
I'm trying to reproduce the problem, but I can do it.
What video quality do you use?
What version of Serviio are you using?

Re: CBS.com (US Only)

PostPosted: Wed May 15, 2013 3:26 am
by DrJay
leo1981 wrote:I'm trying to reproduce the problem, but I can do it.
What video quality do you use?
What version of Serviio are you using?


Leonardo,

Preferred online content quality Medium
Serviio version 1.2.1

Jay

Re: CBS.com (US Only)

PostPosted: Thu May 16, 2013 10:53 pm
by Xmantium
Plugin working fine for me, i use high quality all the time

Re: CBS.com (US Only)

PostPosted: Fri May 17, 2013 1:27 am
by leo1981
The only issue I found is with "Unlimited" feeds.
Changing the max feed number don't take effect until you restart serviio.

I fixed the problem with "unlimited" feed in V7.
(Unlimited is actually 100)

Re: CBS.com (US Only)

PostPosted: Fri May 17, 2013 3:13 am
by DrJay
leo1981 wrote:The only issue I found is with "Unlimited" feeds.
Changing the max feed number don't take effect until you restart serviio.

I fixed the problem with "unlimited" feed in V7.
(Unlimited is actually 100)



Leonardo,

Thank you for your efforts. It may be that they are doing something in the U.S. that affects what can be seen. 48 hours and 60 Minutes still do not show up in Serviio. I restarted Serviio after updating to v7 and still nothing. If anyone from the U.S. on this forum is able to see the 48 Hours feed or the 60 Minutes feed, I'd like to know. It appears that people in the U.K. don't have the same problem. I may try re-downloading the latest Serviio version and see if maybe that helps.

Thank you, again, for your help.

Jay