[GH-ISSUE #515] track_number fails on disabled tracks #373

Closed
opened 2026-02-27 23:00:27 +03:00 by kerem · 0 comments
Owner

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

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
kerem closed this issue 2026-02-27 23:00:28 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#373
No description provided.