mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #33] subheader -> runs may not be present #25
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#25
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 @jdwoody on GitHub (Jun 27, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/33
When searching for an artist, an exception is thrown if the subheader key is missing in the descriptionShelf.
Artist example:
Simple fix here
... to_int(descriptionShelf.get('subheader', {'runs': [{'text': '0'}]})['runs'][0]['text'])