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

Latest videos in subscriptions not sorted #11

Open
ejjoman opened this issue Dec 5, 2014 · 2 comments
Open

Latest videos in subscriptions not sorted #11

ejjoman opened this issue Dec 5, 2014 · 2 comments

Comments

@ejjoman
Copy link

ejjoman commented Dec 5, 2014

The latest videos from my subscriptions are not correctly sorted. They should be sorted by upload time - latest first.

@tworaz
Copy link
Owner

tworaz commented Jan 12, 2015

This was one of the last issues I planned to look at before 0.4.0 release. Unfortunately I don't currently see anything I can do about the problem. The subscriprion pages is currently based on YouTube Activities.List API (https://developers.google.com/youtube/v3/docs/activities/list). There is no other API call I'm aware of that could deliver similar results.

The problem is the API seems to be buggy. First, it does not allow you to actually list only specific content type. An example activity can be something like video upload by the user, an reccomendation, comment for a video or (as in this case) video upload for a channel the user is subscribed to. The API always returns all possible results for all activities at the same time. It's subotpimal because I doubt anybody will be interested in all result types. In most cases only one result type is interesting. Fortunately the response contains the type for each list item so we can at least discatd the results we're not interested in. The problem is we may never know how many results of a given type will the list contain. It's possible that 50 item list will contain only one entry we're interested in. Moreover the API can return different results for the same requests made a couple of miliseconds apart. No idea why that happens. The results are always sorted, but the first one may not contain all the entries that the second one would. My guess is YouTube is not really interested in people creating 3rd party YouTube apps based on this API (wild guess).

Some time ago I've looked into an older (v2) version of YouTube Data API. As I understand the same funcionality worked better there. The problem is v2 will shut down in coming months so there is no point in investing any time in implementing support for it. I kind of hope that v3 will be extended/fixed after v2 access is closed.

I'll keep this ticket opened and update it if anything changes. For 0.4.0 I could not find any good solutions or workarounds.

@PureTryOut
Copy link

Almost a year later, does there a solution exist now? The Youtube subscriptions page shows the videos sorted by upload date, has the API this now too?

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

No branches or pull requests

3 participants