Skip to content

Commit

Permalink
[youtube:playlists] Extend _VALID_URL (closes ytdl-org#25810)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Jun 28, 2020
1 parent 9a7e5cb commit e942cfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [{
Expand All @@ -3142,6 +3142,9 @@ class YoutubePlaylistsIE(YoutubePlaylistsBaseInfoExtractor):
'title': 'Chem Player',
},
'skip': 'Blocked',
}, {
'url': 'https://www.youtube.com/c/ChristophLaimer/playlists',
'only_matching': True,
}]


Expand Down

0 comments on commit e942cfd

Please sign in to comment.