mirror of https://github.com/yt-dlp/yt-dlp.git
[youtube] Update tests
This commit is contained in:
parent
f0d785d3ed
commit
976ae3eabb
|
@ -224,6 +224,8 @@ def sanitize_got_info_dict(got_dict):
|
|||
return f'md5:{md5(value)}'
|
||||
elif isinstance(value, list) and len(value) > 10:
|
||||
return f'count:{len(value)}'
|
||||
elif key.endswith('_count') and isinstance(value, int):
|
||||
return int
|
||||
return value
|
||||
|
||||
test_info_dict = {
|
||||
|
@ -259,6 +261,8 @@ def expect_info_dict(self, got_dict, expected_dict):
|
|||
def _repr(v):
|
||||
if isinstance(v, compat_str):
|
||||
return "'%s'" % v.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n')
|
||||
elif isinstance(v, type):
|
||||
return v.__name__
|
||||
else:
|
||||
return repr(v)
|
||||
info_dict_str = ''
|
||||
|
|
|
@ -1023,7 +1023,6 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'duration': 10,
|
||||
'view_count': int,
|
||||
'like_count': int,
|
||||
# 'dislike_count': int,
|
||||
'availability': 'public',
|
||||
'playable_in_embed': True,
|
||||
'thumbnail': 'https://i.ytimg.com/vi/BaW_jenozKc/maxresdefault.jpg',
|
||||
|
@ -1059,14 +1058,21 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader': 'Philipp Hagemeister',
|
||||
'uploader_id': 'phihag',
|
||||
'uploader_url': r're:https?://(?:www\.)?youtube\.com/user/phihag',
|
||||
'channel': 'Philipp Hagemeister',
|
||||
'channel_id': 'UCLqxVugv74EIW3VWh2NOa3Q',
|
||||
'channel_url': r're:https?://(?:www\.)?youtube\.com/channel/UCLqxVugv74EIW3VWh2NOa3Q',
|
||||
'upload_date': '20121002',
|
||||
'description': 'test chars: "\'/\\ä↭𝕐\ntest URL: https://github.com/rg3/youtube-dl/issues/1892\n\nThis is a test video for youtube-dl.\n\nFor more information, contact phihag@phihag.de .',
|
||||
'description': 'md5:8fb536f4877b8a7455c2ec23794dbc22',
|
||||
'categories': ['Science & Technology'],
|
||||
'tags': ['youtube-dl'],
|
||||
'duration': 10,
|
||||
'view_count': int,
|
||||
'like_count': int,
|
||||
'dislike_count': int,
|
||||
'availability': 'public',
|
||||
'playable_in_embed': True,
|
||||
'thumbnail': 'https://i.ytimg.com/vi/BaW_jenozKc/maxresdefault.jpg',
|
||||
'live_status': 'not_live',
|
||||
'age_limit': 0,
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -1104,6 +1110,21 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader_id': 'AfrojackVEVO',
|
||||
'upload_date': '20131011',
|
||||
'abr': 129.495,
|
||||
'like_count': int,
|
||||
'channel_id': 'UChuZAo1RKL85gev3Eal9_zg',
|
||||
'playable_in_embed': True,
|
||||
'channel_url': 'https://www.youtube.com/channel/UChuZAo1RKL85gev3Eal9_zg',
|
||||
'view_count': int,
|
||||
'track': 'The Spark',
|
||||
'live_status': 'not_live',
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/IB3lcPjvWLA/maxresdefault.webp',
|
||||
'channel': 'Afrojack',
|
||||
'uploader_url': 'http://www.youtube.com/user/AfrojackVEVO',
|
||||
'tags': 'count:19',
|
||||
'availability': 'public',
|
||||
'categories': ['Music'],
|
||||
'age_limit': 0,
|
||||
'alt_title': 'The Spark',
|
||||
},
|
||||
'params': {
|
||||
'youtube_include_dash_manifest': True,
|
||||
|
@ -1125,6 +1146,17 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader_url': r're:https?://(?:www\.)?youtube\.com/user/WitcherGame',
|
||||
'upload_date': '20140605',
|
||||
'age_limit': 18,
|
||||
'categories': ['Gaming'],
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/HtVdAasjOgU/maxresdefault.webp',
|
||||
'availability': 'needs_auth',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCzybXLxv08IApdjdN0mJhEg',
|
||||
'like_count': int,
|
||||
'channel': 'The Witcher',
|
||||
'live_status': 'not_live',
|
||||
'tags': 'count:17',
|
||||
'channel_id': 'UCzybXLxv08IApdjdN0mJhEg',
|
||||
'playable_in_embed': True,
|
||||
'view_count': int,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -1139,6 +1171,19 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader_id': 'FlyingKitty900',
|
||||
'uploader': 'FlyingKitty',
|
||||
'age_limit': 18,
|
||||
'availability': 'needs_auth',
|
||||
'channel_id': 'UCYQT13AtrJC0gsM1far_zJg',
|
||||
'uploader_url': 'http://www.youtube.com/user/FlyingKitty900',
|
||||
'channel': 'FlyingKitty',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCYQT13AtrJC0gsM1far_zJg',
|
||||
'view_count': int,
|
||||
'categories': ['Entertainment'],
|
||||
'live_status': 'not_live',
|
||||
'tags': ['Flyingkitty', 'godzilla 2'],
|
||||
'thumbnail': 'https://i.ytimg.com/vi/HsUATh_Nc2U/maxresdefault.jpg',
|
||||
'like_count': int,
|
||||
'duration': 177,
|
||||
'playable_in_embed': True,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -1153,6 +1198,19 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader': 'Projekt Melody',
|
||||
'description': 'md5:17eccca93a786d51bc67646756894066',
|
||||
'age_limit': 18,
|
||||
'like_count': int,
|
||||
'availability': 'needs_auth',
|
||||
'uploader_url': 'http://www.youtube.com/channel/UC1yoRdFoFJaCY-AGfD9W0wQ',
|
||||
'channel_id': 'UC1yoRdFoFJaCY-AGfD9W0wQ',
|
||||
'view_count': int,
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/Tq92D6wQ1mg/sddefault.webp',
|
||||
'channel': 'Projekt Melody',
|
||||
'live_status': 'not_live',
|
||||
'tags': ['mmd', 'dance', 'mikumikudance', 'kpop', 'vtuber'],
|
||||
'playable_in_embed': True,
|
||||
'categories': ['Entertainment'],
|
||||
'duration': 106,
|
||||
'channel_url': 'https://www.youtube.com/channel/UC1yoRdFoFJaCY-AGfD9W0wQ',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -1166,6 +1224,24 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader_id': 'st3in234',
|
||||
'description': 'Fan Video. Music & Lyrics by OOMPH!.',
|
||||
'upload_date': '20130730',
|
||||
'track': 'Such mich find mich',
|
||||
'age_limit': 0,
|
||||
'tags': ['oomph', 'such mich find mich', 'lyrics', 'german industrial', 'musica industrial'],
|
||||
'like_count': int,
|
||||
'playable_in_embed': False,
|
||||
'creator': 'OOMPH!',
|
||||
'thumbnail': 'https://i.ytimg.com/vi/MeJVWBSsPAY/sddefault.jpg',
|
||||
'view_count': int,
|
||||
'alt_title': 'Such mich find mich',
|
||||
'duration': 210,
|
||||
'channel': 'Herr Lurik',
|
||||
'channel_id': 'UCdR3RSDPqub28LjZx0v9-aA',
|
||||
'categories': ['Music'],
|
||||
'availability': 'public',
|
||||
'uploader_url': 'http://www.youtube.com/user/st3in234',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCdR3RSDPqub28LjZx0v9-aA',
|
||||
'live_status': 'not_live',
|
||||
'artist': 'OOMPH!',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -1189,6 +1265,21 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader': 'deadmau5',
|
||||
'title': 'Deadmau5 - Some Chords (HD)',
|
||||
'alt_title': 'Some Chords',
|
||||
'availability': 'public',
|
||||
'tags': 'count:14',
|
||||
'channel_id': 'UCYEK6xds6eo-3tr4xRdflmQ',
|
||||
'view_count': int,
|
||||
'live_status': 'not_live',
|
||||
'channel': 'deadmau5',
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/__2ABJjxzNo/maxresdefault.webp',
|
||||
'like_count': int,
|
||||
'track': 'Some Chords',
|
||||
'artist': 'deadmau5',
|
||||
'playable_in_embed': True,
|
||||
'age_limit': 0,
|
||||
'channel_url': 'https://www.youtube.com/channel/UCYEK6xds6eo-3tr4xRdflmQ',
|
||||
'categories': ['Music'],
|
||||
'album': 'Some Chords',
|
||||
},
|
||||
'expected_warnings': [
|
||||
'DASH manifest missing',
|
||||
|
@ -1207,6 +1298,20 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'description': 'HO09 - Women - GER-AUS - Hockey - 31 July 2012 - London 2012 Olympic Games',
|
||||
'uploader': 'Olympics',
|
||||
'title': 'Hockey - Women - GER-AUS - London 2012 Olympic Games',
|
||||
'like_count': int,
|
||||
'release_timestamp': 1343767800,
|
||||
'playable_in_embed': True,
|
||||
'categories': ['Sports'],
|
||||
'release_date': '20120731',
|
||||
'channel': 'Olympics',
|
||||
'tags': ['Hockey', '2012-07-31', '31 July 2012', 'Riverbank Arena', 'Session', 'Olympics', 'Olympic Games', 'London 2012', '2012 Summer Olympics', 'Summer Games'],
|
||||
'channel_id': 'UCTl3QQTvqHFjurroKxexy2Q',
|
||||
'thumbnail': 'https://i.ytimg.com/vi/lqQg6PlCWgI/maxresdefault.jpg',
|
||||
'age_limit': 0,
|
||||
'availability': 'public',
|
||||
'live_status': 'was_live',
|
||||
'view_count': int,
|
||||
'channel_url': 'https://www.youtube.com/channel/UCTl3QQTvqHFjurroKxexy2Q',
|
||||
},
|
||||
'params': {
|
||||
'skip_download': 'requires avconv',
|
||||
|
@ -1226,6 +1331,18 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'description': 'made by Wacom from Korea | 字幕&加油添醋 by TY\'s Allen | 感謝heylisa00cavey1001同學熱情提供梗及翻譯',
|
||||
'uploader': '孫ᄋᄅ',
|
||||
'title': '[A-made] 變態妍字幕版 太妍 我就是這樣的人',
|
||||
'playable_in_embed': True,
|
||||
'channel': '孫ᄋᄅ',
|
||||
'age_limit': 0,
|
||||
'tags': 'count:11',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCS-xxCmRaA6BFdmgDPA_BIw',
|
||||
'channel_id': 'UCS-xxCmRaA6BFdmgDPA_BIw',
|
||||
'thumbnail': 'https://i.ytimg.com/vi/_b-2C3KPAM0/maxresdefault.jpg',
|
||||
'view_count': int,
|
||||
'categories': ['People & Blogs'],
|
||||
'like_count': int,
|
||||
'live_status': 'not_live',
|
||||
'availability': 'unlisted',
|
||||
},
|
||||
},
|
||||
# url_encoded_fmt_stream_map is empty string
|
||||
|
@ -1382,6 +1499,18 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'track': 'Dark Walk',
|
||||
'artist': 'Todd Haberman;\nDaniel Law Heath and Aaron Kaplan',
|
||||
'album': 'Position Music - Production Music Vol. 143 - Dark Walk',
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/lsguqyKfVQg/maxresdefault.webp',
|
||||
'categories': ['Film & Animation'],
|
||||
'view_count': int,
|
||||
'live_status': 'not_live',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCTSRgz5jylBvFt_S7wnsqLQ',
|
||||
'channel_id': 'UCTSRgz5jylBvFt_S7wnsqLQ',
|
||||
'tags': 'count:13',
|
||||
'availability': 'public',
|
||||
'channel': 'IronSoulElf',
|
||||
'playable_in_embed': True,
|
||||
'like_count': int,
|
||||
'age_limit': 0,
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -1428,6 +1557,18 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader_url': r're:https?://(?:www\.)?youtube\.com/user/BerkmanCenter',
|
||||
'uploader': 'The Berkman Klein Center for Internet & Society',
|
||||
'license': 'Creative Commons Attribution license (reuse allowed)',
|
||||
'channel_id': 'UCuLGmD72gJDBwmLw06X58SA',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCuLGmD72gJDBwmLw06X58SA',
|
||||
'like_count': int,
|
||||
'age_limit': 0,
|
||||
'tags': ['Copyright (Legal Subject)', 'Law (Industry)', 'William W. Fisher (Author)'],
|
||||
'channel': 'The Berkman Klein Center for Internet & Society',
|
||||
'availability': 'public',
|
||||
'view_count': int,
|
||||
'categories': ['Education'],
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/M4gD1WSo5mA/maxresdefault.webp',
|
||||
'live_status': 'not_live',
|
||||
'playable_in_embed': True,
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -1447,6 +1588,18 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader_id': 'UCH1dpzjCEiGAt8CXkryhkZg',
|
||||
'uploader_url': r're:https?://(?:www\.)?youtube\.com/channel/UCH1dpzjCEiGAt8CXkryhkZg',
|
||||
'license': 'Creative Commons Attribution license (reuse allowed)',
|
||||
'playable_in_embed': True,
|
||||
'tags': 'count:12',
|
||||
'like_count': int,
|
||||
'channel_id': 'UCH1dpzjCEiGAt8CXkryhkZg',
|
||||
'age_limit': 0,
|
||||
'availability': 'public',
|
||||
'categories': ['News & Politics'],
|
||||
'channel': 'Bernie Sanders',
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/eQcmzGIKrzg/maxresdefault.webp',
|
||||
'view_count': int,
|
||||
'live_status': 'not_live',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCH1dpzjCEiGAt8CXkryhkZg',
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -1496,6 +1649,20 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'series': 'Mind Field',
|
||||
'season_number': 1,
|
||||
'episode_number': 1,
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/iqKdEhx-dD4/maxresdefault.webp',
|
||||
'tags': 'count:12',
|
||||
'view_count': int,
|
||||
'availability': 'public',
|
||||
'age_limit': 0,
|
||||
'channel': 'Vsauce',
|
||||
'episode': 'Episode 1',
|
||||
'categories': ['Entertainment'],
|
||||
'season': 'Season 1',
|
||||
'channel_id': 'UC6nSFpj9HTCZ5t-N3Rm3-HA',
|
||||
'channel_url': 'https://www.youtube.com/channel/UC6nSFpj9HTCZ5t-N3Rm3-HA',
|
||||
'like_count': int,
|
||||
'playable_in_embed': True,
|
||||
'live_status': 'not_live',
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -1589,6 +1756,22 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'album': 'it\'s too much love to know my dear',
|
||||
'release_date': '20190313',
|
||||
'release_year': 2019,
|
||||
'alt_title': 'Voyeur Girl',
|
||||
'view_count': int,
|
||||
'uploader_url': 'http://www.youtube.com/channel/UC-pWHpBjdGG69N9mM2auIAA',
|
||||
'playable_in_embed': True,
|
||||
'like_count': int,
|
||||
'categories': ['Music'],
|
||||
'channel_url': 'https://www.youtube.com/channel/UC-pWHpBjdGG69N9mM2auIAA',
|
||||
'channel': 'Stephen',
|
||||
'availability': 'public',
|
||||
'creator': 'Stephen',
|
||||
'duration': 169,
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/MgNrAu2pzNs/maxresdefault.webp',
|
||||
'age_limit': 0,
|
||||
'channel_id': 'UC-pWHpBjdGG69N9mM2auIAA',
|
||||
'tags': 'count:11',
|
||||
'live_status': 'not_live',
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -1630,6 +1813,20 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'upload_date': '20170613',
|
||||
'uploader_id': 'ElevageOrVert',
|
||||
'uploader': 'ElevageOrVert',
|
||||
'view_count': int,
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/x41yOUIvK2k/maxresdefault.webp',
|
||||
'uploader_url': 'http://www.youtube.com/user/ElevageOrVert',
|
||||
'like_count': int,
|
||||
'channel_id': 'UCo03ZQPBW5U4UC3regpt1nw',
|
||||
'tags': [],
|
||||
'channel_url': 'https://www.youtube.com/channel/UCo03ZQPBW5U4UC3regpt1nw',
|
||||
'availability': 'public',
|
||||
'age_limit': 0,
|
||||
'categories': ['Pets & Animals'],
|
||||
'duration': 7,
|
||||
'playable_in_embed': True,
|
||||
'live_status': 'not_live',
|
||||
'channel': 'ElevageOrVert',
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -1649,6 +1846,20 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'upload_date': '20130831',
|
||||
'uploader_id': 'kudvenkat',
|
||||
'uploader': 'kudvenkat',
|
||||
'channel_id': 'UCCTVrRB5KpIiK6V2GGVsR1Q',
|
||||
'like_count': int,
|
||||
'uploader_url': 'http://www.youtube.com/user/kudvenkat',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCCTVrRB5KpIiK6V2GGVsR1Q',
|
||||
'live_status': 'not_live',
|
||||
'categories': ['Education'],
|
||||
'availability': 'public',
|
||||
'thumbnail': 'https://i.ytimg.com/vi/CHqg6qOn4no/sddefault.jpg',
|
||||
'tags': 'count:12',
|
||||
'playable_in_embed': True,
|
||||
'age_limit': 0,
|
||||
'view_count': int,
|
||||
'duration': 522,
|
||||
'channel': 'kudvenkat',
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -1678,8 +1889,21 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'artist': 'The Cinematic Orchestra',
|
||||
'track': 'Burn Out',
|
||||
'album': 'Every Day',
|
||||
'release_data': None,
|
||||
'release_year': None,
|
||||
'like_count': int,
|
||||
'live_status': 'not_live',
|
||||
'alt_title': 'Burn Out',
|
||||
'duration': 614,
|
||||
'age_limit': 0,
|
||||
'view_count': int,
|
||||
'channel_url': 'https://www.youtube.com/channel/UCIzsJBIyo8hhpFm1NK0uLgw',
|
||||
'creator': 'The Cinematic Orchestra',
|
||||
'channel': 'The Cinematic Orchestra',
|
||||
'tags': ['The Cinematic Orchestra', 'Every Day', 'Burn Out'],
|
||||
'channel_id': 'UCIzsJBIyo8hhpFm1NK0uLgw',
|
||||
'availability': 'public',
|
||||
'thumbnail': 'https://i.ytimg.com/vi/OtqTfy26tG0/maxresdefault.jpg',
|
||||
'categories': ['Music'],
|
||||
'playable_in_embed': True,
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -1698,10 +1922,23 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'ext': 'mp4',
|
||||
'title': 'San Diego teen commits suicide after bullying over embarrassing video',
|
||||
'channel_id': 'UC-SJ6nODDmufqBzPBwCvYvQ',
|
||||
'uploader': 'CBS This Morning',
|
||||
'uploader': 'CBS Mornings',
|
||||
'uploader_id': 'CBSThisMorning',
|
||||
'upload_date': '20140716',
|
||||
'description': 'md5:acde3a73d3f133fc97e837a9f76b53b7'
|
||||
'description': 'md5:acde3a73d3f133fc97e837a9f76b53b7',
|
||||
'duration': 170,
|
||||
'categories': ['News & Politics'],
|
||||
'uploader_url': 'http://www.youtube.com/user/CBSThisMorning',
|
||||
'view_count': int,
|
||||
'channel': 'CBS Mornings',
|
||||
'tags': ['suicide', 'bullying', 'video', 'cbs', 'news'],
|
||||
'thumbnail': 'https://i.ytimg.com/vi/SZJvDhaSDnc/hqdefault.jpg',
|
||||
'age_limit': 18,
|
||||
'availability': 'needs_auth',
|
||||
'channel_url': 'https://www.youtube.com/channel/UC-SJ6nODDmufqBzPBwCvYvQ',
|
||||
'like_count': int,
|
||||
'live_status': 'not_live',
|
||||
'playable_in_embed': True,
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -1716,6 +1953,18 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader': 'Walk around Japan',
|
||||
'uploader_id': 'UC3o_t8PzBmXf5S9b7GLx1Mw',
|
||||
'uploader_url': r're:https?://(?:www\.)?youtube\.com/channel/UC3o_t8PzBmXf5S9b7GLx1Mw',
|
||||
'duration': 1456,
|
||||
'categories': ['Travel & Events'],
|
||||
'channel_id': 'UC3o_t8PzBmXf5S9b7GLx1Mw',
|
||||
'view_count': int,
|
||||
'channel': 'Walk around Japan',
|
||||
'tags': ['Ueno Tokyo', 'Okachimachi Tokyo', 'Ameyoko Street', 'Tokyo attraction', 'Travel in Tokyo'],
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/cBvYw8_A0vQ/hqdefault.webp',
|
||||
'age_limit': 0,
|
||||
'availability': 'public',
|
||||
'channel_url': 'https://www.youtube.com/channel/UC3o_t8PzBmXf5S9b7GLx1Mw',
|
||||
'live_status': 'not_live',
|
||||
'playable_in_embed': True,
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -1744,7 +1993,19 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'uploader': 'colinfurze',
|
||||
'uploader_id': 'colinfurze',
|
||||
'channel_url': r're:https?://(?:www\.)?youtube\.com/channel/UCp68_FLety0O-n9QU6phsgw',
|
||||
'description': 'md5:b5096f56af7ccd7a555c84db81738b22'
|
||||
'description': 'md5:5d5991195d599b56cd0c4148907eec50',
|
||||
'duration': 596,
|
||||
'categories': ['Entertainment'],
|
||||
'uploader_url': 'http://www.youtube.com/user/colinfurze',
|
||||
'view_count': int,
|
||||
'channel': 'colinfurze',
|
||||
'tags': ['Colin', 'furze', 'Terry', 'tunnel', 'underground', 'bunker'],
|
||||
'thumbnail': 'https://i.ytimg.com/vi/YOelRv7fMxY/maxresdefault.jpg',
|
||||
'age_limit': 0,
|
||||
'availability': 'public',
|
||||
'like_count': int,
|
||||
'live_status': 'not_live',
|
||||
'playable_in_embed': True,
|
||||
},
|
||||
'params': {
|
||||
'format': '17', # 3gp format available on android
|
||||
|
@ -1774,6 +2035,20 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||
'description': 'md5:89cd86034bdb5466cd87c6ba206cd2bc',
|
||||
'upload_date': '20140324',
|
||||
'uploader': 'SciShow',
|
||||
'like_count': int,
|
||||
'channel_id': 'UCZYTClx2T1of7BRZ86-8fow',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCZYTClx2T1of7BRZ86-8fow',
|
||||
'view_count': int,
|
||||
'thumbnail': 'https://i.ytimg.com/vi/5KLPxDtMqe8/maxresdefault.jpg',
|
||||
'playable_in_embed': True,
|
||||
'tags': 'count:12',
|
||||
'uploader_url': 'http://www.youtube.com/user/scishow',
|
||||
'availability': 'public',
|
||||
'channel': 'SciShow',
|
||||
'live_status': 'not_live',
|
||||
'duration': 248,
|
||||
'categories': ['Education'],
|
||||
'age_limit': 0,
|
||||
}, 'params': {'format': 'mhtml', 'skip_download': True}
|
||||
}
|
||||
]
|
||||
|
@ -3950,10 +4225,15 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'playlist_mincount': 94,
|
||||
'info_dict': {
|
||||
'id': 'UCqj7Cz7revf5maW9g5pgNcg',
|
||||
'title': 'Игорь Клейнер - Playlists',
|
||||
'title': 'Igor Kleiner - Playlists',
|
||||
'description': 'md5:be97ee0f14ee314f1f002cf187166ee2',
|
||||
'uploader': 'Игорь Клейнер',
|
||||
'uploader': 'Igor Kleiner',
|
||||
'uploader_id': 'UCqj7Cz7revf5maW9g5pgNcg',
|
||||
'channel': 'Igor Kleiner',
|
||||
'channel_id': 'UCqj7Cz7revf5maW9g5pgNcg',
|
||||
'tags': ['"критическое', 'мышление"', '"наука', 'просто"', 'математика', '"анализ', 'данных"'],
|
||||
'channel_url': 'https://www.youtube.com/channel/UCqj7Cz7revf5maW9g5pgNcg',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCqj7Cz7revf5maW9g5pgNcg',
|
||||
},
|
||||
}, {
|
||||
'note': 'playlists, multipage, different order',
|
||||
|
@ -3961,10 +4241,15 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'playlist_mincount': 94,
|
||||
'info_dict': {
|
||||
'id': 'UCqj7Cz7revf5maW9g5pgNcg',
|
||||
'title': 'Игорь Клейнер - Playlists',
|
||||
'title': 'Igor Kleiner - Playlists',
|
||||
'description': 'md5:be97ee0f14ee314f1f002cf187166ee2',
|
||||
'uploader_id': 'UCqj7Cz7revf5maW9g5pgNcg',
|
||||
'uploader': 'Игорь Клейнер',
|
||||
'uploader': 'Igor Kleiner',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCqj7Cz7revf5maW9g5pgNcg',
|
||||
'tags': ['"критическое', 'мышление"', '"наука', 'просто"', 'математика', '"анализ', 'данных"'],
|
||||
'channel_id': 'UCqj7Cz7revf5maW9g5pgNcg',
|
||||
'channel': 'Igor Kleiner',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCqj7Cz7revf5maW9g5pgNcg',
|
||||
},
|
||||
}, {
|
||||
'note': 'playlists, series',
|
||||
|
@ -3976,6 +4261,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'md5:e1384e8a133307dd10edee76e875d62f',
|
||||
'uploader_id': 'UCYO_jab_esuFRV4b17AJtAw',
|
||||
'uploader': '3Blue1Brown',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw',
|
||||
'channel': '3Blue1Brown',
|
||||
'channel_id': 'UCYO_jab_esuFRV4b17AJtAw',
|
||||
'tags': ['Mathematics'],
|
||||
},
|
||||
}, {
|
||||
'note': 'playlists, singlepage',
|
||||
|
@ -3987,6 +4277,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'md5:609399d937ea957b0f53cbffb747a14c',
|
||||
'uploader': 'ThirstForScience',
|
||||
'uploader_id': 'UCAEtajcuhQ6an9WEzY9LEMQ',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCAEtajcuhQ6an9WEzY9LEMQ',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCAEtajcuhQ6an9WEzY9LEMQ',
|
||||
'channel_id': 'UCAEtajcuhQ6an9WEzY9LEMQ',
|
||||
'tags': 'count:13',
|
||||
'channel': 'ThirstForScience',
|
||||
}
|
||||
}, {
|
||||
'url': 'https://www.youtube.com/c/ChristophLaimer/playlists',
|
||||
|
@ -3999,6 +4294,14 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'uploader': 'Sergey M.',
|
||||
'id': 'PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc',
|
||||
'title': 'youtube-dl public playlist',
|
||||
'description': '',
|
||||
'tags': [],
|
||||
'view_count': int,
|
||||
'modified_date': '20201130',
|
||||
'channel': 'Sergey M.',
|
||||
'channel_id': 'UCmlqkdCBesrv2Lak1mF_MxA',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCmlqkdCBesrv2Lak1mF_MxA',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCmlqkdCBesrv2Lak1mF_MxA',
|
||||
},
|
||||
'playlist_count': 1,
|
||||
}, {
|
||||
|
@ -4009,6 +4312,13 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'uploader': 'Sergey M.',
|
||||
'id': 'PL4lCao7KL_QFodcLWhDpGCYnngnHtQ-Xf',
|
||||
'title': 'youtube-dl empty playlist',
|
||||
'tags': [],
|
||||
'channel': 'Sergey M.',
|
||||
'description': '',
|
||||
'modified_date': '20160902',
|
||||
'channel_id': 'UCmlqkdCBesrv2Lak1mF_MxA',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCmlqkdCBesrv2Lak1mF_MxA',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCmlqkdCBesrv2Lak1mF_MxA',
|
||||
},
|
||||
'playlist_count': 0,
|
||||
}, {
|
||||
|
@ -4020,6 +4330,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'md5:2163c5d0ff54ed5f598d6a7e6211e488',
|
||||
'uploader': 'lex will',
|
||||
'uploader_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel': 'lex will',
|
||||
'tags': ['bible', 'history', 'prophesy'],
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
},
|
||||
'playlist_mincount': 2,
|
||||
}, {
|
||||
|
@ -4031,6 +4346,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'md5:2163c5d0ff54ed5f598d6a7e6211e488',
|
||||
'uploader': 'lex will',
|
||||
'uploader_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'tags': ['bible', 'history', 'prophesy'],
|
||||
'channel_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel': 'lex will',
|
||||
},
|
||||
'playlist_mincount': 975,
|
||||
}, {
|
||||
|
@ -4042,6 +4362,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'md5:2163c5d0ff54ed5f598d6a7e6211e488',
|
||||
'uploader': 'lex will',
|
||||
'uploader_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel': 'lex will',
|
||||
'tags': ['bible', 'history', 'prophesy'],
|
||||
'channel_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
},
|
||||
'playlist_mincount': 199,
|
||||
}, {
|
||||
|
@ -4053,6 +4378,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'md5:2163c5d0ff54ed5f598d6a7e6211e488',
|
||||
'uploader': 'lex will',
|
||||
'uploader_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel': 'lex will',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'tags': ['bible', 'history', 'prophesy'],
|
||||
},
|
||||
'playlist_mincount': 17,
|
||||
}, {
|
||||
|
@ -4064,6 +4394,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'md5:2163c5d0ff54ed5f598d6a7e6211e488',
|
||||
'uploader': 'lex will',
|
||||
'uploader_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel': 'lex will',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'tags': ['bible', 'history', 'prophesy'],
|
||||
},
|
||||
'playlist_mincount': 18,
|
||||
}, {
|
||||
|
@ -4075,6 +4410,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'md5:2163c5d0ff54ed5f598d6a7e6211e488',
|
||||
'uploader': 'lex will',
|
||||
'uploader_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel': 'lex will',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'channel_id': 'UCKfVa3S1e4PHvxWcwyMMg8w',
|
||||
'tags': ['bible', 'history', 'prophesy'],
|
||||
},
|
||||
'playlist_mincount': 12,
|
||||
}, {
|
||||
|
@ -4087,6 +4427,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'md5:e1384e8a133307dd10edee76e875d62f',
|
||||
'uploader': '3Blue1Brown',
|
||||
'uploader_id': 'UCYO_jab_esuFRV4b17AJtAw',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw',
|
||||
'tags': ['Mathematics'],
|
||||
'channel': '3Blue1Brown',
|
||||
'channel_id': 'UCYO_jab_esuFRV4b17AJtAw',
|
||||
},
|
||||
}, {
|
||||
'url': 'https://invidio.us/channel/UCmlqkdCBesrv2Lak1mF_MxA',
|
||||
|
@ -4106,6 +4451,13 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'uploader': 'Christiaan008',
|
||||
'uploader_id': 'UCEPzS1rYsrkqzSLNp76nrcg',
|
||||
'description': 'md5:a14dc1a8ef8307a9807fe136a0660268',
|
||||
'tags': [],
|
||||
'uploader_url': 'https://www.youtube.com/c/ChRiStIaAn008',
|
||||
'view_count': int,
|
||||
'modified_date': '20150605',
|
||||
'channel_id': 'UCEPzS1rYsrkqzSLNp76nrcg',
|
||||
'channel_url': 'https://www.youtube.com/c/ChRiStIaAn008',
|
||||
'channel': 'Christiaan008',
|
||||
},
|
||||
'playlist_count': 96,
|
||||
}, {
|
||||
|
@ -4116,8 +4468,17 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'id': 'UUBABnxM4Ar9ten8Mdjj1j0Q',
|
||||
'uploader': 'Cauchemar',
|
||||
'uploader_id': 'UCBABnxM4Ar9ten8Mdjj1j0Q',
|
||||
'channel_url': 'https://www.youtube.com/c/Cauchemar89',
|
||||
'tags': [],
|
||||
'modified_date': r're:\d{8}',
|
||||
'channel': 'Cauchemar',
|
||||
'uploader_url': 'https://www.youtube.com/c/Cauchemar89',
|
||||
'view_count': int,
|
||||
'description': '',
|
||||
'channel_id': 'UCBABnxM4Ar9ten8Mdjj1j0Q',
|
||||
},
|
||||
'playlist_mincount': 1123,
|
||||
'expected_warnings': [r'[Uu]navailable videos (are|will be) hidden'],
|
||||
}, {
|
||||
'note': 'even larger playlist, 8832 videos',
|
||||
'url': 'http://www.youtube.com/user/NASAgovVideo/videos',
|
||||
|
@ -4130,6 +4491,14 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'id': 'UUXw-G3eDE9trcvY2sBMM_aA',
|
||||
'uploader': 'Interstellar Movie',
|
||||
'uploader_id': 'UCXw-G3eDE9trcvY2sBMM_aA',
|
||||
'uploader_url': 'https://www.youtube.com/c/InterstellarMovie',
|
||||
'tags': [],
|
||||
'view_count': int,
|
||||
'channel_id': 'UCXw-G3eDE9trcvY2sBMM_aA',
|
||||
'channel_url': 'https://www.youtube.com/c/InterstellarMovie',
|
||||
'channel': 'Interstellar Movie',
|
||||
'description': '',
|
||||
'modified_date': r're:\d{8}',
|
||||
},
|
||||
'playlist_mincount': 21,
|
||||
}, {
|
||||
|
@ -4140,8 +4509,17 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'id': 'UUTYLiWFZy8xtPwxFwX9rV7Q',
|
||||
'uploader': 'Phim Siêu Nhân Nhật Bản',
|
||||
'uploader_id': 'UCTYLiWFZy8xtPwxFwX9rV7Q',
|
||||
'view_count': int,
|
||||
'channel': 'Phim Siêu Nhân Nhật Bản',
|
||||
'tags': [],
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCTYLiWFZy8xtPwxFwX9rV7Q',
|
||||
'description': '',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCTYLiWFZy8xtPwxFwX9rV7Q',
|
||||
'channel_id': 'UCTYLiWFZy8xtPwxFwX9rV7Q',
|
||||
'modified_date': r're:\d{8}',
|
||||
},
|
||||
'playlist_mincount': 200,
|
||||
'expected_warnings': [r'[Uu]navailable videos (are|will be) hidden'],
|
||||
}, {
|
||||
'note': 'Playlist with unavailable videos in page 7',
|
||||
'url': 'https://www.youtube.com/playlist?list=UU8l9frL61Yl5KFOl87nIm2w',
|
||||
|
@ -4150,8 +4528,17 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'id': 'UU8l9frL61Yl5KFOl87nIm2w',
|
||||
'uploader': 'BlankTV',
|
||||
'uploader_id': 'UC8l9frL61Yl5KFOl87nIm2w',
|
||||
'channel': 'BlankTV',
|
||||
'channel_url': 'https://www.youtube.com/c/blanktv',
|
||||
'channel_id': 'UC8l9frL61Yl5KFOl87nIm2w',
|
||||
'view_count': int,
|
||||
'tags': [],
|
||||
'uploader_url': 'https://www.youtube.com/c/blanktv',
|
||||
'modified_date': r're:\d{8}',
|
||||
'description': '',
|
||||
},
|
||||
'playlist_mincount': 1000,
|
||||
'expected_warnings': [r'[Uu]navailable videos (are|will be) hidden'],
|
||||
}, {
|
||||
'note': 'https://github.com/ytdl-org/youtube-dl/issues/21844',
|
||||
'url': 'https://www.youtube.com/playlist?list=PLzH6n4zXuckpfMu_4Ff8E7Z1behQks5ba',
|
||||
|
@ -4161,6 +4548,12 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'uploader_id': 'UC9-y-6csu5WGm29I7JiwpnA',
|
||||
'uploader': 'Computerphile',
|
||||
'description': 'md5:7f567c574d13d3f8c0954d9ffee4e487',
|
||||
'uploader_url': 'https://www.youtube.com/user/Computerphile',
|
||||
'tags': [],
|
||||
'view_count': int,
|
||||
'channel_id': 'UC9-y-6csu5WGm29I7JiwpnA',
|
||||
'channel_url': 'https://www.youtube.com/user/Computerphile',
|
||||
'channel': 'Computerphile',
|
||||
},
|
||||
'playlist_mincount': 11,
|
||||
}, {
|
||||
|
@ -4183,7 +4576,6 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'tags': list,
|
||||
'view_count': int,
|
||||
'like_count': int,
|
||||
'dislike_count': int,
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -4199,23 +4591,33 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
}, {
|
||||
'url': 'https://www.youtube.com/channel/UCoMdktPbSTixAyNGwb-UYkQ/live',
|
||||
'info_dict': {
|
||||
'id': '3yImotZU3tw', # This will keep changing
|
||||
'id': 'zpsbVPFwsqk', # This will keep changing
|
||||
'ext': 'mp4',
|
||||
'title': compat_str,
|
||||
'title': str,
|
||||
'uploader': 'Sky News',
|
||||
'uploader_id': 'skynews',
|
||||
'uploader_url': r're:https?://(?:www\.)?youtube\.com/user/skynews',
|
||||
'upload_date': r're:\d{8}',
|
||||
'description': compat_str,
|
||||
'description': str,
|
||||
'categories': ['News & Politics'],
|
||||
'tags': list,
|
||||
'like_count': int,
|
||||
'dislike_count': int,
|
||||
'release_timestamp': 1640164857,
|
||||
'channel': 'Sky News',
|
||||
'channel_id': 'UCoMdktPbSTixAyNGwb-UYkQ',
|
||||
'age_limit': 0,
|
||||
'view_count': int,
|
||||
'thumbnail': 'https://i.ytimg.com/vi/zpsbVPFwsqk/maxresdefault_live.jpg',
|
||||
'playable_in_embed': True,
|
||||
'release_date': '20211222',
|
||||
'availability': 'public',
|
||||
'live_status': 'is_live',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCoMdktPbSTixAyNGwb-UYkQ',
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
},
|
||||
'expected_warnings': ['Downloading just video ', 'Ignoring subtitle tracks found in '],
|
||||
'expected_warnings': ['Ignoring subtitle tracks found in '],
|
||||
}, {
|
||||
'url': 'https://www.youtube.com/user/TheYoungTurks/live',
|
||||
'info_dict': {
|
||||
|
@ -4231,7 +4633,6 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'categories': ['News & Politics'],
|
||||
'tags': ['Cenk Uygur (TV Program Creator)', 'The Young Turks (Award-Winning Work)', 'Talk Show (TV Genre)'],
|
||||
'like_count': int,
|
||||
'dislike_count': int,
|
||||
},
|
||||
'params': {
|
||||
'skip_download': True,
|
||||
|
@ -4287,6 +4688,7 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'info_dict': {
|
||||
'id': 'cctv9',
|
||||
'title': '#cctv9',
|
||||
'tags': [],
|
||||
},
|
||||
'playlist_mincount': 350,
|
||||
}, {
|
||||
|
@ -4309,8 +4711,16 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'Providing you with copyright free / safe music for gaming, live streaming, studying and more!',
|
||||
'uploader_id': 'UC_aEa8K-EOJ3D6gOs7HcyNg',
|
||||
'title': 'NCS Releases',
|
||||
'uploader_url': 'https://www.youtube.com/c/NoCopyrightSounds',
|
||||
'channel_url': 'https://www.youtube.com/c/NoCopyrightSounds',
|
||||
'modified_date': r're:\d{8}',
|
||||
'view_count': int,
|
||||
'channel_id': 'UC_aEa8K-EOJ3D6gOs7HcyNg',
|
||||
'tags': [],
|
||||
'channel': 'NoCopyrightSounds',
|
||||
},
|
||||
'playlist_mincount': 166,
|
||||
'expected_warnings': [r'[Uu]navailable videos (are|will be) hidden'],
|
||||
}, {
|
||||
'note': 'Topic, should redirect to playlist?list=UU...',
|
||||
'url': 'https://music.youtube.com/browse/UC9ALqqC4aIeG5iDs7i90Bfw',
|
||||
|
@ -4319,10 +4729,19 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'uploader_id': 'UC9ALqqC4aIeG5iDs7i90Bfw',
|
||||
'title': 'Uploads from Royalty Free Music - Topic',
|
||||
'uploader': 'Royalty Free Music - Topic',
|
||||
'tags': [],
|
||||
'channel_id': 'UC9ALqqC4aIeG5iDs7i90Bfw',
|
||||
'channel': 'Royalty Free Music - Topic',
|
||||
'view_count': int,
|
||||
'channel_url': 'https://www.youtube.com/channel/UC9ALqqC4aIeG5iDs7i90Bfw',
|
||||
'channel_url': 'https://www.youtube.com/channel/UC9ALqqC4aIeG5iDs7i90Bfw',
|
||||
'modified_date': r're:\d{8}',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UC9ALqqC4aIeG5iDs7i90Bfw',
|
||||
'description': '',
|
||||
},
|
||||
'expected_warnings': [
|
||||
'A channel/user page was given',
|
||||
'The URL does not have a videos tab',
|
||||
r'[Uu]navailable videos (are|will be) hidden',
|
||||
],
|
||||
'playlist_mincount': 101,
|
||||
}, {
|
||||
|
@ -4331,11 +4750,10 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'info_dict': {
|
||||
'id': 'UCtFRv9O2AHqOZjjynzrv-xg',
|
||||
'title': 'UCtFRv9O2AHqOZjjynzrv-xg',
|
||||
'tags': [],
|
||||
},
|
||||
'expected_warnings': [
|
||||
'A channel/user page was given',
|
||||
'The URL does not have a videos tab',
|
||||
'Falling back to channel URL',
|
||||
'the playlist redirect gave error',
|
||||
],
|
||||
'playlist_mincount': 9,
|
||||
}, {
|
||||
|
@ -4344,6 +4762,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'info_dict': {
|
||||
'id': 'OLAK5uy_l1m0thk3g31NmIIz_vMIbWtyv7eZixlH0',
|
||||
'title': 'Album - Royalty Free Music Library V2 (50 Songs)',
|
||||
'tags': [],
|
||||
'view_count': int,
|
||||
'description': '',
|
||||
'availability': 'unlisted',
|
||||
'modified_date': r're:\d{8}',
|
||||
},
|
||||
'playlist_count': 50,
|
||||
}, {
|
||||
|
@ -4354,7 +4777,15 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'uploader': 'colethedj',
|
||||
'id': 'PLwL24UFy54GrB3s2KMMfjZscDi1x5Dajf',
|
||||
'title': 'yt-dlp unlisted playlist test',
|
||||
'availability': 'unlisted'
|
||||
'availability': 'unlisted',
|
||||
'tags': [],
|
||||
'modified_date': '20211208',
|
||||
'channel': 'colethedj',
|
||||
'view_count': int,
|
||||
'description': '',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UC9zHu_mHU96r19o-wV5Qs1Q',
|
||||
'channel_id': 'UC9zHu_mHU96r19o-wV5Qs1Q',
|
||||
'channel_url': 'https://www.youtube.com/channel/UC9zHu_mHU96r19o-wV5Qs1Q',
|
||||
},
|
||||
'playlist_count': 1,
|
||||
}, {
|
||||
|
@ -4378,6 +4809,11 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'description': 'md5:d083b7c2f0c67ee7a6c74c3e9b4243fa',
|
||||
'uploader': 'Cody\'sLab',
|
||||
'uploader_id': 'UCu6mSoMNzHQiBIOCkHUa2Aw',
|
||||
'channel': 'Cody\'sLab',
|
||||
'channel_id': 'UCu6mSoMNzHQiBIOCkHUa2Aw',
|
||||
'tags': [],
|
||||
'channel_url': 'https://www.youtube.com/channel/UCu6mSoMNzHQiBIOCkHUa2Aw',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCu6mSoMNzHQiBIOCkHUa2Aw',
|
||||
},
|
||||
'playlist_mincount': 650,
|
||||
'params': {
|
||||
|
@ -4392,10 +4828,18 @@ class YoutubeTabIE(YoutubeTabBaseInfoExtractor):
|
|||
'uploader_id': 'UC9ALqqC4aIeG5iDs7i90Bfw',
|
||||
'title': 'Uploads from Royalty Free Music - Topic',
|
||||
'uploader': 'Royalty Free Music - Topic',
|
||||
'modified_date': r're:\d{8}',
|
||||
'channel_id': 'UC9ALqqC4aIeG5iDs7i90Bfw',
|
||||
'description': '',
|
||||
'channel_url': 'https://www.youtube.com/channel/UC9ALqqC4aIeG5iDs7i90Bfw',
|
||||
'tags': [],
|
||||
'channel': 'Royalty Free Music - Topic',
|
||||
'view_count': int,
|
||||
'uploader_url': 'https://www.youtube.com/channel/UC9ALqqC4aIeG5iDs7i90Bfw',
|
||||
},
|
||||
'expected_warnings': [
|
||||
'A channel/user page was given',
|
||||
'The URL does not have a videos tab',
|
||||
'does not have a videos tab',
|
||||
r'[Uu]navailable videos (are|will be) hidden',
|
||||
],
|
||||
'playlist_mincount': 101,
|
||||
'params': {
|
||||
|
@ -4557,9 +5001,16 @@ class YoutubePlaylistIE(InfoExtractor):
|
|||
'info_dict': {
|
||||
'title': '[OLD]Team Fortress 2 (Class-based LP)',
|
||||
'id': 'PLBB231211A4F62143',
|
||||
'uploader': 'Wickydoo',
|
||||
'uploader': 'Wickman',
|
||||
'uploader_id': 'UCKSpbfbl5kRQpTdL7kMc-1Q',
|
||||
'description': 'md5:8fa6f52abb47a9552002fa3ddfc57fc2',
|
||||
'view_count': int,
|
||||
'uploader_url': 'https://www.youtube.com/user/Wickydoo',
|
||||
'modified_date': r're:\d{8}',
|
||||
'channel_id': 'UCKSpbfbl5kRQpTdL7kMc-1Q',
|
||||
'channel': 'Wickman',
|
||||
'tags': [],
|
||||
'channel_url': 'https://www.youtube.com/user/Wickydoo',
|
||||
},
|
||||
'playlist_mincount': 29,
|
||||
}, {
|
||||
|
@ -4579,7 +5030,16 @@ class YoutubePlaylistIE(InfoExtractor):
|
|||
'id': 'PL6IaIsEjSbf96XFRuNccS_RuEXwNdsoEu',
|
||||
'uploader': 'milan',
|
||||
'uploader_id': 'UCEI1-PVPcYXjB73Hfelbmaw',
|
||||
}
|
||||
'description': '',
|
||||
'channel_url': 'https://www.youtube.com/channel/UCEI1-PVPcYXjB73Hfelbmaw',
|
||||
'tags': [],
|
||||
'modified_date': '20140919',
|
||||
'view_count': int,
|
||||
'channel': 'milan',
|
||||
'channel_id': 'UCEI1-PVPcYXjB73Hfelbmaw',
|
||||
'uploader_url': 'https://www.youtube.com/channel/UCEI1-PVPcYXjB73Hfelbmaw',
|
||||
},
|
||||
'expected_warnings': [r'[Uu]navailable videos (are|will be) hidden'],
|
||||
}, {
|
||||
'url': 'http://www.youtube.com/embed/_xDOZElKyNU?list=PLsyOSbh5bs16vubvKePAQ1x3PhKavfBIl',
|
||||
'playlist_mincount': 654,
|
||||
|
@ -4589,7 +5049,15 @@ class YoutubePlaylistIE(InfoExtractor):
|
|||
'uploader': 'LBK',
|
||||
'uploader_id': 'UC21nz3_MesPLqtDqwdvnoxA',
|
||||
'description': 'md5:da521864744d60a198e3a88af4db0d9d',
|
||||
}
|
||||
'channel': 'LBK',
|
||||
'view_count': int,
|
||||
'channel_url': 'https://www.youtube.com/c/愛低音的國王',
|
||||
'tags': [],
|
||||
'uploader_url': 'https://www.youtube.com/c/愛低音的國王',
|
||||
'channel_id': 'UC21nz3_MesPLqtDqwdvnoxA',
|
||||
'modified_date': r're:\d{8}',
|
||||
},
|
||||
'expected_warnings': [r'[Uu]navailable videos (are|will be) hidden'],
|
||||
}, {
|
||||
'url': 'TLGGrESM50VT6acwMjAyMjAxNw',
|
||||
'only_matching': True,
|
||||
|
@ -4637,7 +5105,16 @@ class YoutubeYtBeIE(InfoExtractor):
|
|||
'categories': ['Nonprofits & Activism'],
|
||||
'tags': list,
|
||||
'like_count': int,
|
||||
'dislike_count': int,
|
||||
'age_limit': 0,
|
||||
'playable_in_embed': True,
|
||||
'thumbnail': 'https://i.ytimg.com/vi_webp/yeWKywCrFtk/maxresdefault.webp',
|
||||
'channel': 'Backus-Page House Museum',
|
||||
'channel_id': 'UCEfMCQ9bs3tjvjy1s451zaw',
|
||||
'live_status': 'not_live',
|
||||
'view_count': int,
|
||||
'channel_url': 'https://www.youtube.com/channel/UCEfMCQ9bs3tjvjy1s451zaw',
|
||||
'availability': 'public',
|
||||
'duration': 59,
|
||||
},
|
||||
'params': {
|
||||
'noplaylist': True,
|
||||
|
|
Loading…
Reference in New Issue