FAQ  •  Register  •  Login

YouTube

<<

Ellesworth

Serviio newbie

Posts: 3

Joined: Thu Mar 19, 2020 10:30 pm

Post Sun Apr 12, 2020 8:22 pm

Re: YouTube

Thanks to evryone involved! This now works a charm for me, with my own API on Serviio 2.0 and Win10
<<

RaNd

Serviio newbie

Posts: 8

Joined: Tue Feb 02, 2016 2:44 pm

Post Sun Apr 12, 2020 8:48 pm

Re: YouTube

Thanks, changing the API key did thw trick!

On Debian 9, v2.0

mame32 wrote:I had the same error on logs:

[FeedUpdaterWorker] An error occured while parsing the online resource 'https://...', will try again soon: Unexpected error while invoking plugin (YouTube): Text must not be null or empty
...

To solve I have added my own APIKEY from my Google Developer Account.
The problem is that the current APIKEY included into the file "Youtube.goovy"

  Code:
final api_key = "AIzaSyCbFQoC....SqGVE243q0"


reaches the limit of 10000 calls per day, because all of us are been using this APIKEY.

Solution:

1. I have had to learn how to create my own APIKEY on Google and activate it.

https://www.slickremix.com/docs/get-api-key-for-youtube/

2. Then I have edited the Youtube.groovy file replacing api_key with mine.

This works form me! :D

Now the Serviio.log file only shows this warning:
[WebResourceParser] Plugin YouTube returned no value for resource item 'null'
on every online resource, but it captures the online source.

Thanks!
<<

angelodl78

Serviio newbie

Posts: 2

Joined: Tue Apr 21, 2020 10:02 pm

Post Tue Apr 21, 2020 10:15 pm

Re: YouTube

Hi,

I have copied the .groovy file in the plugin folder + added a couple of youtube links following the guide on the 1st post - but nothing shows up on the media browser and in the log I can see the following error:
2020-04-21 23:51:50,753 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: Error during feed reading. Message: URL 'https://www.googleapis.com/youtube/v3/videos?chart=mostPopular' returned status code '400'
org.serviio.library.online.metadata.OnlineResourceParseException: Error during feed reading. Message: URL 'https://www.googleapis.com/youtube/v3/videos?chart=mostPopular' returned status code '400'
at org.serviio.library.online.feed.FeedParser.parse(FeedParser.java:109)
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:185)
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.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.serviio.util.HttpConnectionException: URL 'https://www.googleapis.com/youtube/v3/videos?chart=mostPopular' returned status code '400'
at org.serviio.util.HttpClient.retrieveStreamFromConnection(HttpClient.java:203)
at org.serviio.util.HttpClient.retrieveBinaryFileFromURL(HttpClient.java:89)
at org.serviio.util.HttpClient.retrieveBinaryFileFromURL(HttpClient.java:105)
at org.serviio.library.online.feed.FeedParser.parseFeedStream(FeedParser.java:120)
at org.serviio.library.online.feed.FeedParser.parse(FeedParser.java:89)


I have just installed serviio on my lubuntu server 18.04, and the youtube bit would be essential for me.
How can I fix it?
Thanks
<<

MarkRoy

Serviio newbie

Posts: 13

Joined: Sun Apr 13, 2014 7:37 pm

Post Wed Apr 22, 2020 6:27 am

Re: YouTube

Since YouTube has implemented reCAPTCHA the YouTube.Groovy has stopped working. Until/unless the developer of YouTube.Groovy uncovers a way to deal with the reCAPTCHA issue.. this .groovy will not work and has not worked for more than two years now.
<<

angelodl78

Serviio newbie

Posts: 2

Joined: Tue Apr 21, 2020 10:02 pm

Post Wed Apr 22, 2020 11:28 am

Re: YouTube

MarkRoy wrote:Since YouTube has implemented reCAPTCHA the YouTube.Groovy has stopped working. Until/unless the developer of YouTube.Groovy uncovers a way to deal with the reCAPTCHA issue.. this .groovy will not work and has not worked for more than two years now.


Thanks for the reply, at least I know it now.
Is there an alternative way to get YouTube videos in servizio somehow?
<<

atc98092

User avatar

DLNA master

Posts: 4024

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Wed Apr 22, 2020 1:04 pm

Re: YouTube

It's highly unlikely there's any workaround for reCAPTCHA. After all, it's specifically designed to require human interaction to pass through. With the number of spam posts I delete on this site daily, I hope there is not a way around it. It's bad enough now, so we just have to accept that we can't access sites like YouTube any longer.
Dan

Samsung NU7100 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

RaNd

Serviio newbie

Posts: 8

Joined: Tue Feb 02, 2016 2:44 pm

Post Wed Apr 22, 2020 2:31 pm

Re: YouTube

Since we are using the API I don't think that we are going to have an issue with the reCAPTCH.
After changing to my private API key, I have 0 issues.
<<

atc98092

User avatar

DLNA master

Posts: 4024

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Wed Apr 22, 2020 8:51 pm

Re: YouTube

RaNd wrote:Since we are using the API I don't think that we are going to have an issue with the reCAPTCH.
After changing to my private API key, I have 0 issues.

That makes sense. You would expect the API to not require it.
Dan

Samsung NU7100 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

DVD Listing

Serviio newbie

Posts: 17

Joined: Sat Dec 10, 2016 1:59 pm

Post Wed Apr 22, 2020 9:17 pm

Re: YouTube

RaNd wrote:Thanks, changing the API key did thw trick!

On Debian 9, v2.0

mame32 wrote:I had the same error on logs:

[FeedUpdaterWorker] An error occured while parsing the online resource 'https://...', will try again soon: Unexpected error while invoking plugin (YouTube): Text must not be null or empty
...

To solve I have added my own APIKEY from my Google Developer Account.
The problem is that the current APIKEY included into the file "Youtube.goovy"

  Code:
final api_key = "AIzaSyCbFQoC....SqGVE243q0"


reaches the limit of 10000 calls per day, because all of us are been using this APIKEY.

Solution:

1. I have had to learn how to create my own APIKEY on Google and activate it.

https://www.slickremix.com/docs/get-api-key-for-youtube/

2. Then I have edited the Youtube.groovy file replacing api_key with mine.

This works form me! :D

Now the Serviio.log file only shows this warning:
[WebResourceParser] Plugin YouTube returned no value for resource item 'null'
on every online resource, but it captures the online source.

Thanks!




I have created my own API key as listed in solution 1. above.
And I have done steps 1 - 8 on that web page.

But I cannot find the youtube webpage stated in step 9 to insert my APIKey.

Can anybody help me out?
<<

atc98092

User avatar

DLNA master

Posts: 4024

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Wed Apr 22, 2020 9:22 pm

Re: YouTube

I don't think you use step 9. I believe you take the API key you created and add it to the youtube.groovy file in place of the key that's already contained in the file.
Dan

Samsung NU7100 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

DVD Listing

Serviio newbie

Posts: 17

Joined: Sat Dec 10, 2016 1:59 pm

Post Thu Apr 23, 2020 4:47 pm

Re: YouTube

Thanks for the reply @atc98092.

Well, the process didn't work for me.
I followed the process exactly.

I see the folders of the channels I subscribe to (as before), but still no contents within the folders :evil:
<<

RaNd

Serviio newbie

Posts: 8

Joined: Tue Feb 02, 2016 2:44 pm

Post Thu Apr 23, 2020 5:11 pm

Re: YouTube

DVD Listing wrote:Thanks for the reply @atc98092.

Well, the process didn't work for me.
I followed the process exactly.

I see the folders of the channels I subscribe to (as before), but still no contents within the folders :evil:


You take the API key from step 8 and you use it the the YouTube.groovy file, replacing the API key there.
line 53,
final api_key=Your_New_API_KEY

"Almost done, wait for google to create your new project and you should see the screen below where you can copy your API Key."
<<

norm

Serviio lover

Posts: 65

Joined: Tue Apr 09, 2013 3:18 pm

Post Sun May 03, 2020 6:59 pm

Re: YouTube

RaNd wrote:You take the API key from step 8 and you use it the the YouTube.groovy file, replacing the API key there.
line 53,
final api_key=Your_New_API_KEY

"Almost done, wait for google to create your new project and you should see the screen below where you can copy your API Key."

@RaNd: Thanks for your and Zip's work on this. Works fine for me. Register for my own API key, pop it in the Youtube.groovy file, put the updated Youtube.groovy in the plug-ins folder and off you go :)
<<

MarkRoy

Serviio newbie

Posts: 13

Joined: Sun Apr 13, 2014 7:37 pm

Post Mon Jul 06, 2020 3:23 pm

Re: YouTube

Jumped through all the hoops, created a project and got my own API Key.

Swapped it out for the "Serviio" Key in Youtube.Groovy...

Wait for it...

Voila!! Youtube online service working again! HOORAY!!!
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.