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#681
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/630
Author: @czifumasa
Created: 7/20/2024
Status: ✅ Merged
Merged: 7/23/2024
Merged by: @sigma67
Base:
main← Head:fix_unnoficial_videos_artists📝 Commits (5)
3208ca9get_playlist: fix artists for unnoficial videos (#627)bb1b731tests for tracks in collaborative playlistsfb8c60clibrary uploads: fix broken index after downloads rollout26365eefix test broken by added podcasts on oasis page6af4d94get_podcast: fix edge case when first subtitle is missing📊 Changes
7 files changed (+40 additions, -18 deletions)
View changed files
➕
tests/data/2024_07_get_playlist_collaborative.json(+1 -0)📝
tests/mixins/test_browsing.py(+7 -1)📝
tests/mixins/test_playlists.py(+14 -2)📝
ytmusicapi/navigation.py(+1 -0)📝
ytmusicapi/parsers/library.py(+1 -1)📝
ytmusicapi/parsers/playlists.py(+9 -6)📝
ytmusicapi/parsers/podcasts.py(+7 -8)📄 Description
Fix for #627.
In the scope of this PR the new logic has been removed for albums. So for albums
flexColumnsare hardcoded and for playlist they are still resolved usingnavigationEndpoints. There are border cases with columns withoutnavigationEndpoint, where I have to guess their meaning. Those cases are different for albums and for playlists, so I cannot use the same logic for both methods. Albums always have the same order offlexColumns, so dynamic resolving is not needed there.Now it's safe to assume that first column without
navigationEndpointis an artist column.Additionally I added some tests for
get_playlist. I prepared json for collaborative playlist with all types of tracks that has been problematic in the recent days:Asserts will check if all those tracks have title and artist and if there is album for regular songs. I added the same asserts for already existing tests with mocked jsons in
get_playlistandget_album.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.