FAQ  •  Register  •  Login

YouTube

<<

Pasha2508

Serviio newbie

Posts: 1

Joined: Wed Mar 07, 2018 10:17 am

Post Wed Mar 07, 2018 10:28 am

Re: YouTube

https://github.com/Pasha2508/serviio-youtube-plugin
fix bug
If the list is less than or equal to 10 videos, the plugin will crash:
Caught: java.lang.NullPointerException: Can not get property 'thumb' is a null object
+
exclude "Private video"
<<

14Super60pa

Serviio newbie

Posts: 2

Joined: Sun Mar 18, 2018 8:24 pm

Post Sun Mar 18, 2018 9:01 pm

Re: YouTube

To use Serviio TubeFox anymore, you have to add "?disable_polymer=1" at the end of the YouTube url. For example instead of just "https://www.youtube.com/user/OsFirstTimer/videos", it now has to be "https://www.youtube.com/user/OsFirstTimer/videos?disable_polymer=1". Also, the add-on works only in older builds of FireFox (works in 47, and maybe up to 56).
Hope this helps
<<

Meskis

Serviio newbie

Posts: 1

Joined: Sun Apr 08, 2018 4:08 pm

Post Sun Apr 08, 2018 4:13 pm

Re: YouTube

Hi,
Can someone help me to run YouTube channel on Serviio. I read forum (viewtopic.php?f=20&t=3276) and used examples from it, but still cannot get YouTube channel working.

I read almost all 27 pages of the forum searching for working "Source URL" examples, and I got some working, but some still not work.

I using Serviio 1.9.1
YouTube plugin from (result almost the same):
https://github.com/Pasha2508/serviio-youtube-plugin
and
download/file.php?id=5204

Working examples for me are:
(Web Resources)

https://www.googleapis.com/youtube/v3/c ... oricDepths
https://www.googleapis.com/youtube/v3/v ... ostPopular


But I cannot get working YouTube playlist, channel or single video clip

I using:

For PLAYLIST
"Source URL"
https://www.googleapis.com/youtube/v3/p ... 0zT-0PlASz

"Browser address"
https://www.youtube.com/playlist?list=P ... 0zT-0PlASz

Error
====================================
2018-04-08 16:20:54,968 WARN [FeedUpdaterWorker] An error occured while parsing the online resource https://www.googleapis.com/youtube/v3/p ... 0zT-0PlASz, will try again soon: Unexpected error while invoking plugin (YouTube): The JSON input text should neither be null nor empty.
org.serviio.library.online.metadata.OnlineResourceParseException: Unexpected error while invoking plugin (YouTube): The JSON input text should neither be null nor empty.
at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:79)
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:187)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:207)
at org.serviio.library.online.metadata.FeedUpdaterWorker.getOnlineItems(FeedUpdaterWorker.java:194)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:100)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: The JSON input text should neither be null nor empty.
at groovy.json.JsonSlurper.parseText(JsonSlurper.java:56)
at groovy.json.JsonSlurper$parseText.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at groovy.json.JsonSlurper$parseText.call(Unknown Source)
at YouTube.extractItems(youtube.groovy:54)
at org.serviio.library.online.WebResourceUrlExtractor.extractItems(WebResourceUrlExtractor.java:72)
at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:34)
at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:31)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
====================================

For CHANEL
"Source URL"
https://www.googleapis.com/youtube/v3/c ... Mo-BYoJdEg

"Browser address"
https://www.youtube.com/channel/UCE80FO ... Mo-BYoJdEg

Error
====================================
2018-04-08 18:02:13,680 WARN [FeedUpdaterWorker] An error occured while parsing the online resource https://www.googleapis.com/youtube/v3/c ... Mo-BYoJdEg, will try again soon: Unexpected error while invoking plugin (YouTube): Cannot get property 'thumb' on null object
org.serviio.library.online.metadata.OnlineResourceParseException: Unexpected error while invoking plugin (YouTube): Cannot get property 'thumb' on null object
at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:79)
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:187)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:207)
at org.serviio.library.online.metadata.FeedUpdaterWorker.getOnlineItems(FeedUpdaterWorker.java:194)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:100)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException: Cannot get property 'thumb' 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.DefaultGroovyMethods.getAt(DefaultGroovyMethods.java:208)
at org.codehaus.groovy.runtime.dgm$306.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoMetaMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:308)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32)
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:64)
at org.serviio.library.online.WebResourceUrlExtractor.extractItems(WebResourceUrlExtractor.java:72)
at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:34)
at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:31)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
====================================

or
"Source URL"
https://www.googleapis.com/youtube/v3/c ... dEg/videos

"Browser address"
https://www.youtube.com/channel/UCE80FO ... dEg/videos

Error
====================================
2018-04-08 18:13:17,140 WARN [FeedUpdaterWorker] An error occured while parsing the online resource https://www.googleapis.com/youtube/v3/c ... dEg/videos, will try again soon: Unexpected error while invoking plugin (YouTube): Cannot get property 'contentDetails' on null object
org.serviio.library.online.metadata.OnlineResourceParseException: Unexpected error while invoking plugin (YouTube): Cannot get property 'contentDetails' on null object
at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:79)
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:187)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:207)
at org.serviio.library.online.metadata.FeedUpdaterWorker.getOnlineItems(FeedUpdaterWorker.java:194)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:100)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException: Cannot get property 'contentDetails' 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(Youtube.groovy:45)
at org.serviio.library.online.WebResourceUrlExtractor.extractItems(WebResourceUrlExtractor.java:72)
at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:34)
at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:31)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
====================================

For SINGLE VIDEO
"Source URL"
https://www.googleapis.com/youtube/v3/v ... Y8E6N5Nzec

"Browser address"
https://www.youtube.com/watch?v=CY8E6N5Nzec

Error
====================================
2018-04-08 18:23:41,713 WARN [FeedUpdaterWorker] Failed to retrieve online item information for https://r6---sn-uxv-8ovl.googlevideo.co ... 8.62.3.203. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveMetadata(FeedUpdaterWorker.java:321)
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveTechnicalMetadata(FeedUpdaterWorker.java:246)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:120)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateMandatoryMetadata(FFmpegMetadataRetriever.java:481)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:100)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:138)
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveMetadata(FeedUpdaterWorker.java:300)
====================================

I read about similar problem, the solution was to update FFmpeg, I downloaded it from https://ffmpeg.zeranoe.com/builds/, but anyway getting this error.

I tried unsuccessfully with :
ffmpeg-20180406-9703b7d-win64-static
ffmpeg-3.4.2-win64-static

Maybe I doing something wrong, please point me in the right direction, thank you. (All Online sources are as Web Resources)

P.S.

I cannot get FoxTube working, even on XP virtual machine with Firefox 47. No yelow serviio icon any more.
<<

krzychk2

Serviio newbie

Posts: 1

Joined: Fri Apr 20, 2018 5:46 am

Post Fri Apr 20, 2018 5:54 am

Re: YouTube

Meskis wrote:
Error
====================================
2018-04-08 18:23:41,713 WARN [FeedUpdaterWorker] Failed to retrieve online item information for https://r6---sn-uxv-8ovl.googlevideo.co ... 8.62.3.203. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveMetadata(FeedUpdaterWorker.java:321)
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveTechnicalMetadata(FeedUpdaterWorker.java:246)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:120)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateMandatoryMetadata(FFmpegMetadataRetriever.java:481)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:100)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:138)
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveMetadata(FeedUpdaterWorker.java:300)
====================================


I have the similar problem with some content and this is not the problem of ffmpgeg or serviio.

Opening this link in browser gives 403:

https://r6---sn-uxv-8ovl.googlevideo.co ... 8.62.3.203

So the content is extra secured by google.

IDEA -> I think the better idea is to log the http response code instade of
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
<<

zZ DunK Zz

Serviio newbie

Posts: 2

Joined: Fri Dec 21, 2018 12:23 am

Post Fri Dec 21, 2018 12:31 am

Re: YouTube

If this plugin is still supported can someone help me.

My lg tv is unable to rewind. The seek bar goes back but it just freezes on the screen while the current video time increases and doesn't resume until it gets back to the original time.

There is no problem when it is fast forwarded

I am using the lgtv render with transcoding off and subtitles off.

I believe its the plugin because it is only when watching youtube extracted videos local videos is fine.

Seems to only do it with the tv
Previous

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 3 guests

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