Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple subscription system #533

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

jourje
Copy link

@jourje jourje commented Oct 2, 2016

Added a simple subscription system. I did not know how to make the doc, i leave it to you. This is my first contribution to a free project so i apologize if i did anything wrong.

@ids1024
Copy link
Contributor

ids1024 commented Oct 8, 2016

This seems like a good start, but not quite complete. For one thing, the subs command doesn't allow selecting a subscription to view its contents. Also, just having a count of the number of new videos is not really enough; there should be some way to see what specific videos are new (preferably also with a way to view new videos across all subscriptions).

@alfaktulu
Copy link

I agree like Kodi's Youtube

@silver-line
Copy link

To anyone who is still looking for mps-youtube to add support for getting your youtube subscriptions feed from your youtube account. As of right now that is basically not possible.

I wanted the feature so I was going to try and implement it, however after looking into the youtube API, they removed that ability a while back. With the current API you would have to retrieve a list of all the channels the user is subscribed to, then get the last few videos from every one of those channels, then sort them chronologically. This would be very slow and taxing, and would probably hit the quota very quickly.

The only other way is to just load the actual youtube sub page, and then parse the html. I may end up doing that for my setup, but I probably won't try to commit it here, as I think that goes against the youtube TOS.

I just wanted to put this here just incase anyone comes across this and wants to implement it. I can save them the trouble of finding out you can't. :/

Hopefully youtube will update the API at some point, but I wouldn't hold your breath because this has been an open issue for years on their API, and they have yet to respond. It would seem they are gimping the API on purpose in order to keep end users using their site and not a 3rd party app.

@ids1024 ids1024 force-pushed the develop branch 2 times, most recently from 55b8765 to 43f811e Compare February 23, 2018 06:26
@bsless
Copy link

bsless commented Apr 19, 2018

Why would it be slow and taxing? Using the xml API seems like a viable option. You'll have to download as many xmls as the number of channels in the subscription feed, get all the entries from all the xmls, then sort them according to the 'published' attribute using datetime.strptime as key function.
Is it supposed to be costly? There's no need to constantly refresh the feed. You can add a command to manually refresh it for all channels or for a certain channel.
The xmlUrl for a channel is equivalent to the channel url:
https://www.youtube.com/feeds/videos.xml?channel_id=<ID> <==> https://www.youtube.com/channel/<ID>
So they can either be added through channel search or by downloading the subscription_manager.xml file from a user's subscription page.
I'd be happy to contribute / help around with that but I have little experience with contributing / developing large applications, but I'll be happy to learn as I go along. It's a feature I'd be really happy to see added.

@ghost
Copy link

ghost commented Oct 28, 2018

Couldn't you use the RSS feed generated on the "manage subscriptions" page? It gives you a .opml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants