]> jfr.im git - yt-dlp.git/commitdiff
[youtube:playlists] Extend _VALID_URL (closes #25810)
authorSergey M․ <redacted>
Sun, 28 Jun 2020 03:30:03 +0000 (10:30 +0700)
committerxarantolus <redacted>
Tue, 28 Jul 2020 13:34:31 +0000 (15:34 +0200)
youtube_dl/extractor/youtube.py

index ade6625f3f8733ea0f327acc5642604b2beb9842..974e0093447de722f8f01737d51c6ca10f8904d4 100644 (file)
@@ -3116,7 +3116,7 @@ def _real_extract(self, url):
 
 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,
     }]