YouTube
Re: YouTube
Updated the plugin to work as a WebResource plugin. Example URLs in the original post.
Petr
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Re: YouTube
Thanks for that.
One question, I normally just use the youtube channels 'upload' category, but it looks like those pages do not have a playlistID. Is it a case of well that sucks, have to add each channels playlist to serviio now?
One question, I normally just use the youtube channels 'upload' category, but it looks like those pages do not have a playlistID. Is it a case of well that sucks, have to add each channels playlist to serviio now?
Re: YouTube
Tarrasque wrote:Thanks for that.
One question, I normally just use the youtube channels 'upload' category, but it looks like those pages do not have a playlistID. Is it a case of well that sucks, have to add each channels playlist to serviio now?
Yes. The only way I know right now to get channel uploads playlist ID is to use the Google API Exlorer for YouTube and request 'channels.list'. Here is a video that covers the subject https://m.youtube.com/watch?v=RjUlmco7v2M
Last edited by stefana888 on Mon Apr 27, 2015 7:31 am, edited 1 time in total.
Re: YouTube
Thanks.
For those who want to know, goto
https://developers.google.com/apis-expl ... nnels.list
part = contentDetails
forUsername = (channelusername)
Hit execute, and in the results at bottom of the page, look for "uploads":
For those who want to know, goto
https://developers.google.com/apis-expl ... nnels.list
part = contentDetails
forUsername = (channelusername)
Hit execute, and in the results at bottom of the page, look for "uploads":
Re: YouTube
Thanks All! Works for me. Allows me to keep up with my youtube feeds easily and now with v3 api 

Re: YouTube
With the v2 API, it was possible, to set the start-index of the playlist.
This was useful, when one wanted to have more results than 50, because then one could create a second Online resource in serviio, which was beginning at 51.
E.g.: (v2 API)
Can this be done with the new Plugin/API ?
This was useful, when one wanted to have more results than 50, because then one could create a second Online resource in serviio, which was beginning at 51.
E.g.: (v2 API)
Can this be done with the new Plugin/API ?
Re: YouTube
MarkusW wrote:With the v2 API, it was possible, to set the start-index of the playlist.
Can this be done with the new Plugin/API?
Attributes:
part=snippet
maxResults={MAX_RESULTS}
(pageToken={TOKEN})
playlistId={PLAYLIST_ID}
Hit 'execute' and look up in the result for 'nextPageToken' value. Use the value as pageToken={TOKEN} for getting a certain page (and new tokens).
Clear enought?
Edit:
Last edited by stefana888 on Sun Jun 14, 2015 7:41 am, edited 5 times in total.
Re: YouTube
Thank you.
Could you please make an example for the Channel "NFL" with maximum 20 videos?
Could you please make an example for the Channel "NFL" with maximum 20 videos?
Re: YouTube
Cartman316 wrote:Thank you.
Could you please make an example for the Channel "NFL" with maximum 20 videos?
Execute (NFL) for the uploads id
https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list?part=contentDetails&forUsername=NFL
uploads: UUDVYQ4Zhbm3S2dlz7P1GBDg into playlistId
Execute (20) and repeat for all wanted pages
https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.playlistItems.list?part=snippet&maxResults=20&playlistId=UUDVYQ4Zhbm3S2dlz7P1GBDg
nextPageToken: CAUQAA into pageToken
Re: YouTube
Thank you, but im not able to get a valid string.
Could you please post the string with the example (Channel=NFL, number results =20)?
Could you please post the string with the example (Channel=NFL, number results =20)?
Re: YouTube
Follow the example in this thread post #1 with the uploads playlist id. Note that max items is set in Serviio's console and if you want the first page items then no pagetoken attribute should be added.
Last edited by stefana888 on Sat May 09, 2015 5:44 am, edited 1 time in total.
Re: YouTube
I'm attempting to follow the posted examples and not having much luck.
I went to the https://developers.google.com/apis-expl ... nnels.list to get the id I needed, then use the URL
in Serviio.
The log shows returned status code '400'
2015-05-08 17:25:02,934 WARN [FeedUpdaterWorker] An error occured while parsing the online resource https://www.googleapis.com/youtube/v3/p ... ZrOvume4YA, waiting for expiry time to try again: Error during feed reading. Message: URL 'https://www.googleapis.com/youtube/v3/playlistItems?playlistId=UUOzpgwSVhD9VLZrOvume4YA' returned status code '400'
org.serviio.library.online.metadata.OnlineResourceParseException: Error during feed reading. Message: URL 'https://www.googleapis.com/youtube/v3/playlistItems?playlistId=UUOzpgwSVhD9VLZrOvume4YA' returned status code '400'
at org.serviio.library.online.feed.FeedParser.parse(FeedParser.java:108)
...
Any advice would be appreciated.
Thanks,
Keith
I went to the https://developers.google.com/apis-expl ... nnels.list to get the id I needed, then use the URL
https://www.googleapis.com/youtube/v3/playlistItems?playlistId=UUOzpgwSVhD9VLZrOvume4YA
in Serviio.
The log shows returned status code '400'
2015-05-08 17:25:02,934 WARN [FeedUpdaterWorker] An error occured while parsing the online resource https://www.googleapis.com/youtube/v3/p ... ZrOvume4YA, waiting for expiry time to try again: Error during feed reading. Message: URL 'https://www.googleapis.com/youtube/v3/playlistItems?playlistId=UUOzpgwSVhD9VLZrOvume4YA' returned status code '400'
org.serviio.library.online.metadata.OnlineResourceParseException: Error during feed reading. Message: URL 'https://www.googleapis.com/youtube/v3/playlistItems?playlistId=UUOzpgwSVhD9VLZrOvume4YA' returned status code '400'
at org.serviio.library.online.feed.FeedParser.parse(FeedParser.java:108)
...
Any advice would be appreciated.
Thanks,
Keith
Re: YouTube
Okay, after a computer restart, I'm no longer seeing the status code '400' message, but the folder doesn't show up under Online sources on my TV anymore.
Keith
Keith
Re: YouTube
Did you set plugin type as 'Web resource' in console?
Re: YouTube
No I hadn't. That solved it, thanks!
Keith
Keith
Re: YouTube
Hi All
Sorry to be a complete noob at this sort of thing but can someone please tell me where I am going wrong.
I have copied the youtube.groovy in to the plug-in folder on Serviio
I have listed it as a web resource under source type, and copied the following URL in to the the source URL box
https://www.googleapis.com/youtube/v3/v ... ostPopular
display name is YouTube.
The online category is enabled on the presentation tab under the video category.
when I open Serviio on my TV, the online folder is there but it is empty.
I have stopped and restarted Serviio numerous times, hit refresh and still nothing.
My setup:
Serviio is installed on a HP proliant microserver running Windows server 2008 R2
DLNA device is a LG HB405SU BD Player
Both the above go through a GiG switch.
The BD Player is then connected to a TV via HDMI
I have no problem playing movies and music from Serviio, but cannot access anything online.
I have tried different plug-ins ( Vimeo,xVideos) with corresponding source URL's and nothing seems to work.
Please help
Sorry to be a complete noob at this sort of thing but can someone please tell me where I am going wrong.
I have copied the youtube.groovy in to the plug-in folder on Serviio
I have listed it as a web resource under source type, and copied the following URL in to the the source URL box
https://www.googleapis.com/youtube/v3/v ... ostPopular
display name is YouTube.
The online category is enabled on the presentation tab under the video category.
when I open Serviio on my TV, the online folder is there but it is empty.
I have stopped and restarted Serviio numerous times, hit refresh and still nothing.
My setup:
Serviio is installed on a HP proliant microserver running Windows server 2008 R2
DLNA device is a LG HB405SU BD Player
Both the above go through a GiG switch.
The BD Player is then connected to a TV via HDMI
I have no problem playing movies and music from Serviio, but cannot access anything online.
I have tried different plug-ins ( Vimeo,xVideos) with corresponding source URL's and nothing seems to work.
Please help

Re: YouTube
If getting the plugins from the A.P.P. collection it might not work since many are outdated.
Re: YouTube
stefana888 wrote:If getting the plugins from the A.P.P. collection it might not work since many are outdated.
Thanks for the answer
I used the YouTube plug-in from the beginning of this post
Re: YouTube
Check the logfile what is going on.
Who is online
Users browsing this forum: No registered users and 13 guests