From: Sergey M․ Date: Sat, 21 Nov 2015 23:03:23 +0000 (+0600) Subject: [youtube] Add test for multi page list of playlists X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=e568c2233e7b4b27c9a5c56322ab7633a5f0b1f7;p=youtube-dl [youtube] Add test for multi page list of playlists --- 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[^/]+)/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):