[GH-ISSUE #254] Error for specific get_artist(channelid) request #196

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

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

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 <module> 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
kerem 2026-02-27 22:08:33 +03:00
  • closed this issue
  • added the
    bug
    label
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#196
No description provided.