[youtube] fix channels with hyphen inside id
This commit is contained in:
parent
98e6a95bd5
commit
80a5d8d55e
|
@ -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 = [{
|
||||
|
|
Loading…
Reference in a new issue