get_artist: Don't fail on channels with only one category of content

The current check is meant to detect channels with only video content,
but it also hits small bands that for example have only released singles
so far. An example for this is "UC1uK8RT3m4nNpXmOSsFsZeg".

Since failing is not really helpful anyway (for example in audiotube, it
could still play only the sound of a channel that contains only videos),
I propose to remove the check altogether.
This commit is contained in:
Jonah Brüchert 2022-04-08 02:05:03 +02:00
commit d6f8d5dc78
No known key found for this signature in database
GPG key ID: A81E075ABEC80A7E

View file

@ -393,10 +393,6 @@ class BrowsingMixin:
response = self._send_request(endpoint, body)
results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST)
if len(results) == 1:
# not a YouTube Music Channel, a standard YouTube Channel ID with no music content was given
raise ValueError(f"The YouTube Channel {channelId} has no music content.")
artist = {'description': None, 'views': None}
header = response['header']['musicImmersiveHeaderRenderer']
artist['name'] = nav(header, TITLE_TEXT)