-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Bug] /api/v1/auth/playlists returns no videos for saved playlists #3995
Comments
I think you should change this issue to a feature request, as it currently just returns the information it has in the database, this will require it to duplicate the behaviour of the Personally I'm against having multiple API endpoints for the same thing, especially when it's not hard to figure out which playlists are Invidious ones and which ones are saved YouTube ones (the IDs for the invidious ones always start with invidious/src/invidious/playlists.cr Lines 315 to 325 in 69e2eac
|
I have to disagree, this qualifies as a bug. API callers have no notion of created and saved playlists (at least not in this call) and it can only see that some of them do not have videos. I see in this comment that we want to split the two kinds of behaviours, which is fair, since one require a database read, and the other require fetching from youtube. But this expectation has not been set in the API.
I know I can patch things up in my code, but a proper fix does not belong there, and it can break once someone decides to fix things in the API |
I'm in favor of splitting the two endpoints. An easy way to fix that is to keep |
I have changed my approach a bit so that I don't have to distinguish between saved and created playlists. First, some info is almost always available: title, author, videoCount. That's enough to display in a "list of playlists view"
And I treat it as "it doesn't matter - if you're missing videos for display, grab more" So it's not really a blocker for me as API consumer, but feel free to keep the issue open for tracking the api improvements. Thank you both for your input! |
Describe the bug
/api/v1/auth/playlists
returns both created and saved playlists. But it returns invalid info for the saved playlists.The interesting fields to look at:
This is retuned for the saved playlist
but if we call
/api/v1/playlists/PL0vfts4VzfNiI1BsIK5u7LpPaIDKMJIDN
for the saved playlist, we getSteps to Reproduce
/api/v1/auth/playlists
/api/v1/playlists/PLAYLIST_ID
wherePLAYLIST_ID
is of a saved playlistThe text was updated successfully, but these errors were encountered: