FAQ  •  Register  •  Login

YouTube

<<

railfrog

Streaming enthusiast

Posts: 31

Joined: Tue Jul 17, 2012 4:35 pm

Post Mon May 11, 2015 9:58 pm

Re: YouTube

Ok...

Here are some errors in the log file....

2015-05-11 17:09:09,247 WARN [FeedUpdaterWorker] An error occured while parsing the online resource https://www.googleapis.com/youtube/v3/v ... ostPopular, waiting for expiry time to try again: Unexpected error while invoking plugin (YouTube): Cannot get property 'videoId' on null object
org.serviio.library.online.metadata.OnlineResourceParseException: Unexpected error while invoking plugin (YouTube): Cannot get property 'videoId' on null object
at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:78)
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:186)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:203)
at org.serviio.library.online.metadata.FeedUpdaterWorker.getOnlineItems(FeedUpdaterWorker.java:191)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:108)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException: Cannot get property 'videoId' on null object
at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:56)
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:156)
at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
at YouTube$_extractItems_closure1.doCall(Youtube.groovy:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
at groovy.lang.Closure.call(Closure.java:412)
at groovy.lang.Closure.call(Closure.java:425)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1376)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1348)
at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
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 YouTube.extractItems(Youtube.groovy:47)
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.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
... 1 more

2015-05-11 22:34:12,568 WARN [PluginCompilerThread] Plugin SeasonVar.groovy failed to compile: startup failed:
C:\Program Files\Serviio\plugins\SeasonVar.groovy: 3: unable to resolve class org.restlet.engine.util.CookieSettingSeries
@ line 3, column 1.
import org.restlet.engine.util.CookieSettingSeries

2015-05-11 22:42:52,724 WARN [PluginCompilerThread] Plugin VevoBeta.groovy failed to compile: startup failed:
C:\Program Files\Serviio\plugins\VevoBeta.groovy: 90: unable to resolve class YouTube
@ line 90, column 16.
return new YouTube().extractUrl(links, requestedQuality)



If any more info is needed, please let me know.
<<

stefana888

User avatar

DLNA master

Posts: 134

Joined: Mon Aug 18, 2014 6:24 am

Post Mon May 11, 2015 11:36 pm

Re: YouTube

railfrog wrote:Ok...

Here are some errors in the log file....

If any more info is needed, please let me know.
On YouTube there is a problem with selecting videos. Only selecting playlists work for now. I reported this to the plugin owner (zip).

Other plugin malfunctions (seen as log warnings) are from outdated plugins. Read the threads.
<<

railfrog

Streaming enthusiast

Posts: 31

Joined: Tue Jul 17, 2012 4:35 pm

Post Tue May 12, 2015 6:00 am

Re: YouTube

Thanks Stefana

I installed the APP list of plug-ins.

Even though I have been using servii0 for a good few years now, this is my first venture in to the "online" part of it.

Would you (or someone) please let me know of a working plug-in to try and what to put in the relevant boxes on the online tab so that I can at least make sure that it works and to save me from going insane.

Thanks
<<

stefana888

User avatar

DLNA master

Posts: 134

Joined: Mon Aug 18, 2014 6:24 am

Post Tue May 12, 2015 6:14 am

Re: YouTube

railfrog wrote:Thanks Stefana

I installed the APP list of plug-ins.

Even though I have been using servii0 for a good few years now, this is my first venture in to the "online" part of it.

Would you (or someone) please let me know of a working plug-in to try and what to put in the relevant boxes on the online tab so that I can at least make sure that it works and to save me from going insane.

Thanks
Far from all works actually. Reading the threads posts and checking the date is an indication of the status.
Last edited by stefana888 on Wed May 13, 2015 11:38 am, edited 2 times in total.
<<

stefana888

User avatar

DLNA master

Posts: 134

Joined: Mon Aug 18, 2014 6:24 am

Post Tue May 12, 2015 8:24 pm

Re: YouTube

The plugin is fixed now and also now takes channel names. See main post.
<<

Intel1

Streaming enthusiast

Posts: 20

Joined: Sun Sep 02, 2012 11:26 pm

Post Tue May 12, 2015 9:31 pm

Re: YouTube

Hello, to search for videos by name before it was:

http://gdata.youtube.com/feeds/api/videos?v=2&q=zzzzzzz

Now you can, with the new YouTube APIs and the new plugin youtube from 5/12/2015 ?

Thank you.
<<

stefana888

User avatar

DLNA master

Posts: 134

Joined: Mon Aug 18, 2014 6:24 am

Post Tue May 12, 2015 9:51 pm

Re: YouTube

Intel1 wrote:Hello, to search for videos by name before it was:

http://gdata.youtube.com/feeds/api/videos?v=2&q=zzzzzzz

Now you can, with the new YouTube APIs and the new plugin youtube from 5/12/2015 ?

Thank you.


The plugin does not support seach by now.
<<

j00j4nt200

Serviio newbie

Posts: 10

Joined: Thu Apr 03, 2014 8:33 pm

Post Tue May 12, 2015 11:44 pm

Re: YouTube

plugin version:Further additions 12/05/2015 (thanks to Stefan Andersson)
https://www.googleapis.com/youtube/v3/c ... ANNEL_NAME

tried:
https://www.googleapis.com/youtube/v3/c ... rnHXYexeEg

yt link:https://www.youtube.com/channel/UCvhI7HuH0NE6hrnHXYexeEg

or
https://www.googleapis.com/youtube/v3/c ... entDickNes
yt link:https://www.youtube.com/user/BeneVolentDickNes/videos

Isn't working on xbox360, am I doing somethin wrong?
<<

stefana888

User avatar

DLNA master

Posts: 134

Joined: Mon Aug 18, 2014 6:24 am

Post Wed May 13, 2015 2:58 am

Re: YouTube

j00j4nt200 wrote:plugin version:Further additions 12/05/2015 (thanks to Stefan Andersson)
https://www.googleapis.com/youtube/v3/c ... ANNEL_NAME

tried:
https://www.googleapis.com/youtube/v3/c ... rnHXYexeEg

yt link:https://www.youtube.com/channel/UCvhI7HuH0NE6hrnHXYexeEg

or
https://www.googleapis.com/youtube/v3/c ... entDickNes
yt link:https://www.youtube.com/user/BeneVolentDickNes/videos

Isn't working on xbox360, am I doing somethin wrong?


The first link is actually not a username, it is a userid. Try
  Code:
https://www.googleapis.com/youtube/v3/channels?id=UCvhI7HuH0NE6hrnHXYexeEg

The second link is correct and working.
<<

Cartman316

Serviio newbie

Posts: 3

Joined: Thu May 07, 2015 1:52 pm

Post Wed May 13, 2015 7:25 am

Re: YouTube

Thank you Stefana888. Now it works. :)
<<

j00j4nt200

Serviio newbie

Posts: 10

Joined: Thu Apr 03, 2014 8:33 pm

Post Wed May 13, 2015 3:43 pm

Re: YouTube

stefana888 wrote:The second link is correct and working.


Thank you :)
I missed: Changed to WebResourcePlugin 26/04/2015 (thanks to Stefan Andersson)

2 more question pls :)
-If I start watching video, and then exit - ffmpg is still going as process and using significant cpu power - it should stop to?
-Can I with CHANNEL_NAME also easy to add max number of videos to retrieve (6)?
<<

stefana888

User avatar

DLNA master

Posts: 134

Joined: Mon Aug 18, 2014 6:24 am

Post Wed May 13, 2015 4:07 pm

Re: YouTube

j00j4nt200 wrote:
2 more question pls :)
-If I start watching video, and then exit - ffmpg is still going as process and using significant cpu power - it should stop to?
-Can I with CHANNEL_NAME also easy to add max number of videos to retrieve (6)?


1. ffmpeg runs until the whole video is downloaded.
2. Console sets the max number.
<<

j00j4nt200

Serviio newbie

Posts: 10

Joined: Thu Apr 03, 2014 8:33 pm

Post Wed May 13, 2015 4:49 pm

Re: YouTube

2.
I did tried to set 'Max number of feeds to retrieve' to 10, but after that feed wasn't working at all - only 'unlimited' setting is working.
Also I want 6 not 10 because it's max number on one page on xbox360.
All that was easy to set on v2 - now nothing is easy but hey at least is working :)
<<

stefana888

User avatar

DLNA master

Posts: 134

Joined: Mon Aug 18, 2014 6:24 am

Post Wed May 13, 2015 5:07 pm

Re: YouTube

j00j4nt200 wrote:2.
I did tried to set 'Max number of feeds to retrieve' to 10, but after that feed wasn't working at all - only 'unlimited' setting is working.
Also I want 6 not 10 because it's max number on one page on xbox360.
All that was easy to set on v2 - now nothing is easy but hey at least is working :)


10 or any selection should work. You can change plugin code line
from
  Code:
if (maxItemsToRetrieve == -1) maxItemsToRetrieve = 50
to
  Code:
maxItemsToRetrieve = 6
<<

j00j4nt200

Serviio newbie

Posts: 10

Joined: Thu Apr 03, 2014 8:33 pm

Post Wed May 13, 2015 11:49 pm

Re: YouTube

Didn't manage to work with changing 'maxItemsToRetrieve', but working with deleting it, and used + "&maxResults=5".

Can I also add 'timeCreated' at the begining of title name of video?
<<

stefana888

User avatar

DLNA master

Posts: 134

Joined: Mon Aug 18, 2014 6:24 am

Post Thu May 14, 2015 12:19 am

Re: YouTube

j00j4nt200 wrote:Didn't manage to work with changing 'maxItemsToRetrieve', but working with deleting it, and used + "&maxResults=5".

Can I also add 'timeCreated' at the begining of title name of video?


Maybe you did wrong first. You can add time
in title with it.snippet.publishedAt
<<

j00j4nt200

Serviio newbie

Posts: 10

Joined: Thu Apr 03, 2014 8:33 pm

Post Thu May 14, 2015 9:58 pm

Re: YouTube

Great :)

Now, can I trim it from: 'YYYY-MM-DDThh:mm:ss.sZ' to 'YYYY-MM-DD'?
<<

stefana888

User avatar

DLNA master

Posts: 134

Joined: Mon Aug 18, 2014 6:24 am

Post Fri May 15, 2015 3:38 am

Re: YouTube

j00j4nt200 wrote:Great :)

Now, can I trim it from: 'YYYY-MM-DDThh:mm:ss.sZ' to 'YYYY-MM-DD'?

Start a thread in develop section...
http://stackoverflow.com/questions/11257014/to-get-substring-in-groovy-separated-by-a-character
<<

Intel1

Streaming enthusiast

Posts: 20

Joined: Sun Sep 02, 2012 11:26 pm

Post Sat May 16, 2015 4:02 pm

Re: YouTube

Hi, this may help the plugin have the option to search?

https://developers.google.com/youtube/v ... earch/list

Thank you.
<<

stefana888

User avatar

DLNA master

Posts: 134

Joined: Mon Aug 18, 2014 6:24 am

Post Sat May 16, 2015 4:51 pm

Re: YouTube

Intel1 wrote:Hi, this may help the plugin have the option to search?

https://developers.google.com/youtube/v ... earch/list

Thank you.


We know... is this feature really used from API v2?
PreviousNext

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 9 guests

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