mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
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#660
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?
📋 Pull Request Information
Original PR: https://github.com/sigma67/ytmusicapi/pull/580
Author: @apastel
Created: 5/9/2024
Status: ✅ Merged
Merged: 5/11/2024
Merged by: @sigma67
Base:
main← Head:578-error-when-duration-blank📝 Commits (6)
65ed89badd unit test that attempts to retrieve a song after its been uploadedc17924bprevent parsing errors when an uploaded song lacks a duration343bc04update unit test to delete/re-upload song if it already is uploaded0e0c7b4format04b44f1fix test80129a5add another sleep to end2end playlist📊 Changes
4 files changed (+41 additions, -2 deletions)
View changed files
📝
tests/mixins/test_playlists.py(+1 -0)📝
tests/mixins/test_uploads.py(+35 -0)📝
ytmusicapi/parsers/_utils.py(+2 -1)📝
ytmusicapi/parsers/uploads.py(+3 -1)📄 Description
Fixes #578
This prevents a possible KeyError or a int-parsing error when an uploaded song has a duration that is not a valid value like "3:31".
Per-recent changes by Google, an uploaded song can have a duration of
' 'or simply not have afixedColumnsobject at all. This is most commonly seen immediately after uploading a song but can be seen in other cases as well.I added a unit test that exercises this. It uploads a song and then starts calling
get_library_upload_songs()in a loop, waiting for the song to be available. Without my duration fix, this encounters a parsing error. With the fix, it succeeds.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.