Subscribe to youtube channels (not users)
Currently only subscription to youtube users (URLs like "http://www.youtube.com/user/...") seems to work. Youtube also has channels with URLs like http://www.youtube.com/channel/..., usually many users may add videos to such channels, and there seems to be no way to find RSS for such channels.
I’ve added ability to subscribe to youtube playlists. Subscribing to youtube channel now subscribes to its “uploads” playlist.
For correct subscribing to channel it’s necessary to get videos from all channel’s playlists, which can make too many requests.
-
Sergey Redin commented
Sorry, Vegard, not Legard. Probably my name is just as strange for you as your name is strange for me, so I hope you forgive me this mistake.
-
Sergey Redin commented
Thanks Legard,
Vladimir, maybe this issue should be reoponed? It can be really fixed without my workaround.
-
Vegard Langås commented
I have made a quick and dirty php script that generates an rssfeed from yt api v3. This can be used to subscribe to youtube channels, but you should host the script yourself if you intend to rely on it...
Hosted: http://feedfix.gbt.cc/ytchannel.php
Code: https://github.com/sjefen6/feedfix/blob/master/ytchannel.php -
Vegard Langås commented
This is not a solution but a workaround. The point of this feature is to be able to subscribe to youtube channels even if the bazqux user does not have a youtube account.
This is fully doable with youtube API v3:
The channel url format is youtube.com/channel/{channelId}
Example: https://www.youtube.com/channel/UCNvY8nWjT0TEb4K-QoONuigDoing a https://developers.google.com/youtube/v3/docs/channels request will get you the uploads playlist id
Example: GET https://www.googleapis.com/youtube/v3/channels?part=contentDetails&id=UCJnxrcA-MMtRFmiqYZyhzrQ&key={YOUR_API_KEY}
Result: "uploads": "UUNvY8nWjT0TEb4K-QoONuig"Then its just a matter of getting the content of the playlist with https://developers.google.com/youtube/v3/docs/playlistItems
Example: GET https://www.googleapis.com/youtube/v3/playlistItems?part=+id%2C+snippet%2C+contentDetails%2C+status&playlistId=UUNvY8nWjT0TEb4K-QoONuig&key={YOUR_API_KEY}
This will give you a complete list of uploads.When converting this data into something viewable inside bazqux, please include a modern youtube player iframe with allowfullscreen=true and include the description text. I can cook up a quick php script that outputs an rss feed in a fiew weeks but I hope this can be properly integrated into bazqux without much hassle like twitter.
-
Great! I've added your comment as an answer to this feature request.
-
Sergey Redin commented
OK, this is how to subscribe to youtube channels, in case some one needs to do it.
1. Subscribe to the channel on youtube. Now you have the subscribed channels in your own channel.
2. Go to your own channel and get your channel ID from the URL
3. The feed with all channels you're subscribed to is http://gdata.youtube.com/feeds/base/users/{your-channel-id}/newsubscriptionvideos -
Sergey Redin commented
I could not find it too, I would not create this issue if I could. I thought maybe you could find some other way. :)
-
Unfortunately, I can't find feed url for channel even after googling.