projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3b5399c
)
[youtube:playlist] Fix tests (closes #23872) (#23885)
author
jxu
<7989982+jxu@users.noreply.github.com>
Mon, 2 Mar 2020 18:46:00 +0000
(13:46 -0500)
committer
GitHub
<noreply@github.com>
Mon, 2 Mar 2020 18:46:00 +0000
(
01:46
+0700)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index eacaa5ecdb70d2a16748b4c2e58edc14d7d69484..e06290427fd7a6b2ebd5ed5927d63780fe617878 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-2495,20
+2495,23
@@
class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor):
_VIDEO_RE = _VIDEO_RE_TPL % r'(?P<id>[0-9A-Za-z_-]{11})'
IE_NAME = 'youtube:playlist'
_TESTS = [{
_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=PL
wiyx1dc3P2JR9N8gQaQN_BCvlSlap7re
',
+ 'url': 'https://www.youtube.com/playlist?list=PL
4lCao7KL_QFVb7Iudeipvc2BCavECqzc
',
'info_dict': {
'info_dict': {
- 'title': 'ytdl test PL',
- 'id': 'PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re',
+ 'uploader_id': 'UCmlqkdCBesrv2Lak1mF_MxA',
+ 'uploader': 'Sergey M.',
+ 'id': 'PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc',
+ 'title': 'youtube-dl public playlist',
},
},
- 'playlist_count':
3
,
+ 'playlist_count':
1
,
}, {
}, {
- 'url': 'https://www.youtube.com/playlist?list=PL
tPgu7CB4gbZDA7i_euNxn75ISqxwZPYx
',
+ 'url': 'https://www.youtube.com/playlist?list=PL
4lCao7KL_QFodcLWhDpGCYnngnHtQ-Xf
',
'info_dict': {
'info_dict': {
- 'id': 'PLtPgu7CB4gbZDA7i_euNxn75ISqxwZPYx',
- 'title': 'YDL_Empty_List',
+ 'uploader_id': 'UCmlqkdCBesrv2Lak1mF_MxA',
+ 'uploader': 'Sergey M.',
+ 'id': 'PL4lCao7KL_QFodcLWhDpGCYnngnHtQ-Xf',
+ 'title': 'youtube-dl empty playlist',
},
'playlist_count': 0,
},
'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',
}, {
'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',
@@
-2518,7
+2521,7
@@
class YoutubePlaylistIE(YoutubePlaylistBaseInfoExtractor):
'uploader': 'Christiaan008',
'uploader_id': 'ChRiStIaAn008',
},
'uploader': 'Christiaan008',
'uploader_id': 'ChRiStIaAn008',
},
- 'playlist_count': 9
5
,
+ 'playlist_count': 9
6
,
}, {
'note': 'issue #673',
'url': 'PLBB231211A4F62143',
}, {
'note': 'issue #673',
'url': 'PLBB231211A4F62143',