mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #96] Duration unavailable for uploaded songs #70
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chrislewisdev on GitHub (Oct 30, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/96
Hello, and thanks for this neat library!
It does not seem possible with the existing information from the API to find out the duration of an uploaded song. This is similar to #64 except in this case I was hoping the duration would be available as part of the output of
get_library_upload_songs().My use case: I am making a little tool to generate random playlists of a given length, for example, I can request a playlist for 45 minutes and it will create one for me. Obviously knowing the duration of a song is key here, and I would like to include uploaded songs in these playlists but cannot do so at the moment.
It looks like the duration is available in the response content from
/browsethat is currently used to parse uploaded song info, here's a snippet containing the duration:Let me know if you think it's possible for this information to be included in the API. If time permits I may have a crack at a PR but if you had some free time to add this it would be highly appreciated. Thanks!
@sigma67 commented on GitHub (Oct 30, 2020):
Good point, this should defnitely be added. Feel free to submit a PR!
@chrislewisdev commented on GitHub (Nov 11, 2020):
Thanks a bunch for adding this @sigma67 :)