diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-06-28 10:30:03 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-06-28 10:30:03 +0700 |
commit | e942cfd1a74cea3a3a53231800bbf5a002eed85e (patch) | |
tree | 8006b2100db7d05fbdcbc1f959d4a63735429c1b /youtube_dl | |
parent | 9a7e5cb88aa3a80f7b4d37424ca7cb3bd144cdc8 (diff) |
[youtube:playlists] Extend _VALID_URL (closes #25810)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 1bc79e014..43c5eff1f 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -3116,7 +3116,7 @@ class YoutubeLiveIE(YoutubeBaseInfoExtractor): class YoutubePlaylistsIE(YoutubePlaylistsBaseInfoExtractor): IE_DESC = 'YouTube.com user/channel playlists' - _VALID_URL = r'https?://(?:\w+\.)?youtube\.com/(?:user|channel)/(?P<id>[^/]+)/playlists' + _VALID_URL = r'https?://(?:\w+\.)?youtube\.com/(?:user|channel|c)/(?P<id>[^/]+)/playlists' IE_NAME = 'youtube:playlists' _TESTS = [{ @@ -3142,6 +3142,9 @@ class YoutubePlaylistsIE(YoutubePlaylistsBaseInfoExtractor): 'title': 'Chem Player', }, 'skip': 'Blocked', + }, { + 'url': 'https://www.youtube.com/c/ChristophLaimer/playlists', + 'only_matching': True, }] |