mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #189] Error with get_artist #146
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#146
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 @markegor on GitHub (Apr 14, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/189
When i call get_artist function in most cases it works perfectly. But when i called it for this channel "UC281fR3Rg1O08xpxArdbdew". I have an error:
Traceback (most recent call last):
File "./scripts/yt-music.py", line 6, in
Artist = ytmusic.get_artist('UC281fR3Rg1O08xpxArdbdew')
File "/home/markegor/.local/lib/python3.8/site-packages/ytmusicapi/mixins/browsing.py", line 316, in get_artist
artist.update(self.parser.parse_artist_contents(results))
File "/home/markegor/.local/lib/python3.8/site-packages/ytmusicapi/helpers.py", line 83, in _impl
return method(self, *method_args, **method_kwargs)
File "/home/markegor/.local/lib/python3.8/site-packages/ytmusicapi/parsers/browsing.py", line 153, in parse_artist_contents
artist[category]['results'] = parse_content_list(data[0]['contents'],
File "/home/markegor/.local/lib/python3.8/site-packages/ytmusicapi/parsers/browsing.py", line 162, in parse_content_list
contents.append(parse_func(result['musicTwoRowItemRenderer']))
File "/home/markegor/.local/lib/python3.8/site-packages/ytmusicapi/parsers/browsing.py", line 212, in parse_related_artist
'subscribers': nav(data, SUBTITLE).split(' ')[0],
File "/home/markegor/.local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 146, in nav
raise err
File "/home/markegor/.local/lib/python3.8/site-packages/ytmusicapi/parsers/utils.py", line 140, in nav
root = root[k]
KeyError: 'runs'
Can you try to fix it PLEASE ?)