Page 1 of 27

YouTube

PostPosted: Thu Sep 22, 2011 7:58 pm
by zip
YouTube plugin (Web Resource plugin)

The easiest way to add YouTube feeds to Serviio is by using this Firefox plugin.

This plugin utilises the YouTube API v3, which allows it to browse these resources:

Playlist

Use this URL as the resource URL:
  Code:
https://www.googleapis.com/youtube/v3/playlistItems?playlistId=PLAYLIST_ID


where PLAYLIST_ID is the id of the required playlist.

Example

URL of the playlist in your browser:
  Code:
https://www.youtube.com/playlist?list=PLx6bGx4zt6Em-NyeR2FFg3chd2nWx2dUp

  Code:
https://www.youtube.com/watch?v=Qq8OZyruwik&list=PLx6bGx4zt6Em-NyeR2FFg3chd2nWx2dUp

In all these cases, PLAYLIST_ID is PLx6bGx4zt6Em-NyeR2FFg3chd2nWx2dUp


Videos by id's

Use this URL as the resource URL:
  Code:
https://www.googleapis.com/youtube/v3/videos?id=VIDEO_IDS


where VIDEO_IDS is a comman separated list of video IDs.

Example

URL of the video in your browser:
  Code:
https://www.youtube.com/watch?v=Qq8OZyruwik

In all these cases, VIDEO_IDS is Qq8OZyruwik


Most popular videos

Use this URL as the resource URL:
  Code:
https://www.googleapis.com/youtube/v3/videos?chart=mostPopular


Channels

Use this URL as the resource URL:
  Code:
https://www.googleapis.com/youtube/v3/channels?forUsername=USER_NAME

  Code:
https://www.googleapis.com/youtube/v3/channels?id=CHANNEL_ID


Search videos

Use this URL as the resource URL:
  Code:
https://www.googleapis.com/youtube/v3/search?q=SEARCH_QUERY



Added 22/9/2011
Updated for 0.6.1 5/1/2012
Updated for 0.6.2 31/1/2012
Updated with profile 46 7/2/2012
Fixed 403 error 29/9/2012
Changed to WebResourcePlugin 26/04/2015 (thanks to Stefan Andersson)
Further additions 12/05/2015 (thanks to Stefan Andersson)
Supports search API 16/05/2015 (thanks to Stefan Andersson)
Updated 04/07/2019

Re: YouTube

PostPosted: Fri Sep 23, 2011 8:32 pm
by awaraarawa
So, how does this get installed?

I thought all I had to do was to copy the groovy file into the C:\Program Files\Serviio\plugins folder. I have copied the file while Serviio is running as well as when not running but with no change. I have waited for it to show up overnight. Is there an additional step I need to do before it shows up? All I see under the online tab is the Online RSS/Atom Feed only.

My config is WHS v1 on Acer Easystore. DLNA is operational and other locally stored files are visible and viewable.

Would appreciate a clue or two! Thanks.

Cheers

Re: YouTube

PostPosted: Fri Sep 23, 2011 10:15 pm
by zip
You now need to enter a YouTube RSS feed URL, examples are here: viewtopic.php?f=23&t=3279

Re: YouTube

PostPosted: Sat Sep 24, 2011 1:07 am
by awaraarawa
OK, got it. I tried the most viewed YouTube sample URL and it seems to work.....a number of YouTube videos were listed for the URL (http://gdata.youtube.com/feeds/api/stan ... time=today) listed. However, I could not get a Hulu URL to work...does that mean I need a plugin for Hulu and thus the Empty results for it?

One more issue - While I can view the YouTube results on my non-DLNA LG TV via a DLNA capable LG BD 670 blue ray player, I am having trouble playing them. This DLNA blue ray player is connected via Ethernet cable to my home network to which the WHS server is also connected. When I play the video, the result is quite bad, one frame a second - not quite a video.....extreme stutter would be an understatement.

Obviously, I am missing something else in the configuration / setup. I manually entered the renderer profile and selected the LG TV / Player profile. Should I let the application discover the player rather than setting it up manually? Switching to a generic DLNA profile did not make any difference in the results either. The YouTube video plays fine on my laptop without a problem, so the issue is not with the video.....internet connection is fast and stable via cable @ around 18Mbps. However, the player appears to be having bad buffering issues. I have MPG videos and JPG photos on the WHS and they play fine via the same setup. So, streaming content from the WHS to the TV is not the issue. Why would the YouTube video channeled via the WHS have a buffering problem?

So, what am I missing with the Serviio configuration? I have changed the Preferred Online Content Quality to LOW from the default of MEDIUM but no change in the results.

Appreciate any assistance/suggestions to get this figured. Thanks.

PS: When adding a new URL for an online source, there is only one source type listed Online RSS/Atom feed.....should other options be showing up here? Is that what is missing?

Re: YouTube

PostPosted: Sat Sep 24, 2011 2:45 pm
by CraigWally
I can't seem to get this to work
I've added the plugin
entered some url's
But, when selected the content via my panasonic blueray player I get the message
"No files are in this folder"

:(

Re: YouTube

PostPosted: Sat Sep 24, 2011 4:16 pm
by zip
What does the log say?

Re: YouTube

PostPosted: Sat Sep 24, 2011 10:41 pm
by CraigWally
Error during feed parsing : Invalid XML: Error on line 7: The entity name must immediately follow the '&' in the entity reference

Re: YouTube

PostPosted: Sun Sep 25, 2011 12:22 am
by zip
what's the url?

Re: YouTube

PostPosted: Sun Sep 25, 2011 5:24 pm
by CraigWally
http://www.youtube.com/watch?v=SD1ENnVnMXM


don't laugh - its for the kids :)

Re: YouTube

PostPosted: Sun Sep 25, 2011 5:53 pm
by zip
you have to use feed URL, not the actual video.

Look here for some examples: viewtopic.php?f=23&t=3279

Re: YouTube

PostPosted: Sun Sep 25, 2011 6:14 pm
by CraigWally
OK Thanks - I think I understand
Is there a way to get a feed url for a specific video

Re: YouTube

PostPosted: Sun Sep 25, 2011 6:18 pm
by zip
did you read the linked topic? viewtopic.php?f=23&t=3279#p21886

Re: YouTube

PostPosted: Sun Sep 25, 2011 9:11 pm
by CraigWally
I did, but I'm still struggling
perhaps if you could write the url I need for the above example
Sorry to be a pain

Re: YouTube

PostPosted: Sun Sep 25, 2011 9:20 pm
by zip
  Code:
https://gdata.youtube.com/feeds/api/videos/SD1ENnVnMXM?v=2

Re: YouTube

PostPosted: Sun Sep 25, 2011 9:29 pm
by CraigWally
Nope - still no joy
Nor with the Chronos example from the other thread
the only ones I can get to work are the most viewed or top rated examples

Re: YouTube

PostPosted: Sun Sep 25, 2011 9:39 pm
by zip
Actually try http instead of https

  Code:
http://gdata.youtube.com/feeds/api/videos/SD1ENnVnMXM?v=2

Re: YouTube

PostPosted: Sun Sep 25, 2011 9:50 pm
by CraigWally
Nope - still no joy

I'm off to bed
I'll keep trying tomorrow

Re: YouTube

PostPosted: Mon Sep 26, 2011 3:45 am
by sonc44
The below will show the Channels 5 public uploads

http://gdata.youtube.com/feeds/api/user ... be-profile

Re: YouTube

PostPosted: Mon Sep 26, 2011 11:00 am
by sucka_punch
Does the videos automatically refresh?

I set the video expiry interval to 6 hours. But there are still the same videos in the feed as yesterday even if there should be some new available.

Thanks in advance.

Re: YouTube

PostPosted: Mon Sep 26, 2011 11:49 am
by zip
serviio refreshes it. if the feed XML stays the same, I don't know, you can try opening it in a browser and compare the feed contents to what is on the website itself