diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-11-22 05:03:23 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-11-22 05:03:23 +0600 |
commit | e568c2233e7b4b27c9a5c56322ab7633a5f0b1f7 (patch) | |
tree | 159d5f2aa5f0858290a2d3e0dce78bee026755c3 /youtube_dl/extractor | |
parent | 061a75edd6bab2f30978b458fe7402ff9e9c02a5 (diff) |
[youtube] Add test for multi page list of playlists
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 8352ad1da..4a0ff6e9c 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1764,14 +1764,22 @@ class YoutubeUserPlaylistsIE(YoutubePlaylistsBaseInfoExtractor): _VALID_URL = r'https?://(?:\w+\.)?youtube\.com/user/(?P<id>[^/]+)/playlists' IE_NAME = 'youtube:user:playlists' - _TEST = { + _TESTS = [{ 'url': 'http://www.youtube.com/user/ThirstForScience/playlists', 'playlist_mincount': 4, 'info_dict': { 'id': 'ThirstForScience', 'title': 'Thirst for Science', }, - } + }, { + # with "Load more" button + 'url': 'http://www.youtube.com/user/igorkle1/playlists?view=1&sort=dd', + 'playlist_mincount': 70, + 'info_dict': { + 'id': 'igorkle1', + 'title': 'Игорь Клейнер', + }, + }] class YoutubeSearchIE(SearchInfoExtractor, YoutubePlaylistIE): |