mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-23 06:35:51 -07:00
Added test case for YoutubetabIE.
This commit is contained in:
parent
134e513864
commit
ce153b12e2
1 changed files with 13 additions and 1 deletions
|
@ -2208,6 +2208,7 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor):
|
||||||
IE_NAME = 'youtube:tab'
|
IE_NAME = 'youtube:tab'
|
||||||
|
|
||||||
_TESTS = [ {
|
_TESTS = [ {
|
||||||
|
# Shorts
|
||||||
'url': 'https://www.youtube.com/@SuperCooperShorts/shorts',
|
'url': 'https://www.youtube.com/@SuperCooperShorts/shorts',
|
||||||
'playlist_mincount': 5,
|
'playlist_mincount': 5,
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
|
@ -2216,7 +2217,18 @@ class YoutubeTabIE(YoutubeBaseInfoExtractor):
|
||||||
'title': 'Super Cooper Shorts - Shorts',
|
'title': 'Super Cooper Shorts - Shorts',
|
||||||
}
|
}
|
||||||
|
|
||||||
},{
|
}, {
|
||||||
|
# Channel that does not have a Shorts tab. Test should just download videos on Home tab instead
|
||||||
|
'url': 'https://www.youtube.com/@emergencyawesome/shorts',
|
||||||
|
'info_dict': {
|
||||||
|
'description': 'md5:592c080c06fef4de3c902c4a8eecd850',
|
||||||
|
'id': 'UCDiFRMQWpcp8_KD4vwIVicw',
|
||||||
|
'title': 'Emergency Awesome - Home',
|
||||||
|
},
|
||||||
|
'playlist_mincount': 5,
|
||||||
|
|
||||||
|
|
||||||
|
}, {
|
||||||
# playlists, multipage
|
# playlists, multipage
|
||||||
'url': 'https://www.youtube.com/c/ИгорьКлейнер/playlists?view=1&flow=grid',
|
'url': 'https://www.youtube.com/c/ИгорьКлейнер/playlists?view=1&flow=grid',
|
||||||
'playlist_mincount': 94,
|
'playlist_mincount': 94,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue