mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-26 07:46:00 +03:00
[GH-ISSUE #254] Error for specific get_artist(channelid) request #196
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#196
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 @joshduran on GitHub (Jan 30, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/254
I noticed that using the get_artist(channelid) function returns an error for at least one specific artist. I'm not sure if the returned request is abnormal in some way, but the channelid is correct and is accessible through the web interface. I have used the same process to return over 300 other artists and this is the only one which spits out an error when parsing the artist contents.
Artist: Manu Chao
ChannelID: UCK2n-wpee6rXSa3TUByQYJQ
URL: https://music.youtube.com/channel/UCK2n-wpee6rXSa3TUByQYJQ
Function call: YTMusic.get_artist('UCK2n-wpee6rXSa3TUByQYJQ')
Error Output:
Traceback (most recent call last):
File "c:\Users\rubbe\OneDrive\System\Python\yt_music.py", line 87, in
print(ytmusic.get_artist('UCK2n-wpee6rXSa3TUByQYJQ'))
File "C:\Users\rubbe.edm\envs\py_beets\lib\site-packages\ytmusicapi\mixins\browsing.py", line 321, in get_artist
artist.update(self.parser.parse_artist_contents(results))
File "C:\Users\rubbe.edm\envs\py_beets\lib\site-packages\ytmusicapi\helpers.py", line 126, in _impl
return method(self, *method_args, **method_kwargs)
File "C:\Users\rubbe.edm\envs\py_beets\lib\site-packages\ytmusicapi\parsers\browsing.py", line 150, in parse_artist_contents
categories_parser[i])
File "C:\Users\rubbe.edm\envs\py_beets\lib\site-packages\ytmusicapi\parsers\browsing.py", line 158, in parse_content_list
contents.append(parse_func(result[key]))
File "C:\Users\rubbe.edm\envs\py_beets\lib\site-packages\ytmusicapi\parsers\browsing.py", line 186, in parse_video
'artists': parse_song_artists_runs(runs[:-2]),
File "C:\Users\rubbe.edm\envs\py_beets\lib\site-packages\ytmusicapi\parsers\songs.py", line 19, in parse_song_artists_runs
'name': runs[j * 2]['text'],
IndexError: list index out of range