[youtube] fix channels with hyphen inside id

This commit is contained in:
selfisekai 2020-11-16 01:59:26 +01:00 committed by Laura
parent 98e6a95bd5
commit 80a5d8d55e

View file

@ -2383,7 +2383,7 @@ class YoutubeYti1ListInfoExtractor(YoutubeBaseListInfoExtractor):
class YoutubeChannelIE(YoutubeAjaxListInfoExtractor):
IE_NAME = 'youtube:channel'
_VALID_URL = r'https?://(?:\w+\.)?youtube\.com/(?!watch|playlist|v|e|embed|shared)(?:(?P<type>user|channel|c)/)?(?P<id>\w+)(?!/live)'
_VALID_URL = r'https?://(?:\w+\.)?youtube\.com/(?!watch|playlist|v|e|embed|shared)(?:(?P<type>user|channel|c)/)?(?P<id>[\w-]+)(?!/live)'
_LIST_NAME = 'channel'
_TESTS = [{