mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #515] track_number fails on disabled tracks #373
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#373
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 @jcbirdwell on GitHub (Jan 13, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/515
Describe the bug
Calling get_album on an album containing a disabled, but not removed or deleted, track throws a value error. This is the result of the response having all the keys for the index (nav won't return None) but with a blank space value ' ' instead of the actual track number.
To Reproduce
get_album('MPREb_YuigcYm2erf')
Additional context
Unsure if its a regionally disabled track, but it's reproducible with an unauthorized client with location set to 'US'.
Album playlist link for visual context: https://music.youtube.com/playlist?list=OLAK5uy_nQ50qK0OQks_zc_jjn0IvWb7Vg1vo0s5Y