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:
parent
81d3799c6a
commit
d6f8d5dc78
1 changed files with 0 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue