1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-07 15:27:15 +08:00

Remove non-existant playlist and replace empty playlist test

This commit is contained in:
jxu 2020-01-29 12:41:11 -05:00
parent 51c7f40c83
commit 4d027ae456

View File

@ -2495,20 +2495,14 @@ class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor):
_VIDEO_RE = _VIDEO_RE_TPL % r'(?P<id>[0-9A-Za-z_-]{11})'
IE_NAME = 'youtube:playlist'
_TESTS = [{
'url': 'https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re',
'url': 'https://www.youtube.com/playlist?list=PLAEvfQ7P06c-DVegRvdqVcIaW2nR5ZJMO',
'info_dict': {
'title': 'ytdl test PL',
'id': 'PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re',
},
'playlist_count': 3,
}, {
'url': 'https://www.youtube.com/playlist?list=PLtPgu7CB4gbZDA7i_euNxn75ISqxwZPYx',
'info_dict': {
'id': 'PLtPgu7CB4gbZDA7i_euNxn75ISqxwZPYx',
'title': 'YDL_Empty_List',
'uploader_id': 'vinesthemonkey',
'uploader': 'vinesthemonkey',
'id': 'PLAEvfQ7P06c-DVegRvdqVcIaW2nR5ZJMO',
'title': 'youtube-dl empty playlist',
},
'playlist_count': 0,
'skip': 'This playlist is private',
}, {
'note': 'Playlist with deleted videos (#651). As a bonus, the video #51 is also twice in this list.',
'url': 'https://www.youtube.com/playlist?list=PLwP_SiAcdui0KVebT0mU9Apz359a4ubsC',