mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #837] Title cannot be parsed from audio drama albums #516
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#516
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 @MarvinSchenkel on GitHub (Nov 25, 2025).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/837
Describe the bug
There are some audio drama albums that fail to parse, as they are missing the album name, which is why the following piece of code inside
parsers/playlists.py -> parse_audio_playlist()throws an error:playlist["title"] = playlist["tracks"][0]["album"]["name"]An example of a failing album is the movie audio from Madagascar 2. I was thinking we might be able to fallback to the playlist name in case the album name of any of the tracks is
None. In case of the Madagascar album, this will beMadagascar (Das Original-Hörspiel zum Kinofilm)I did some digging and we can grab this info from:
I am more than happy to open a PR for this, but I will need some guidance on how to properly fit this into all the
navlogic.ytmusicapi version
1.11.2
To Reproduce
Steps to reproduce the behavior:
Simply call
ytm.get_playlist("OLAK5uy_nT1mL8aZvxqfIRFN9L8FgIzfvk6HUkd0I")Additional context
Add any other context about the problem here, such as a code sample.