Skip to content

A feature-rich command-line audio/video downloader

[cleanup] Move embed tests to dedicated extractors (#13782)

doe10801c6068af997c
diff --git a/yt_dlp/extractor/adobetv.py b/yt_dlp/extractor/adobetv.py
index 4608e5c13d..997e1b92cb 100644
--- a/yt_dlp/extractor/adobetv.py
+++ b/yt_dlp/extractor/adobetv.py
@@ -84,9 +84,10 @@ class AdobeTVBaseIE(InfoExtractor):
class AdobeTVEmbedIE(AdobeTVBaseIE):
+ _WORKING = False
IE_NAME = 'adobetv:embed'
_VALID_URL = r'https?://tv\.adobe\.com/embed/\d+/(?P<id>\d+)'
- _TEST = {
+ _TESTS = [{
'url': 'https://tv.adobe.com/embed/22/4153',
'md5': 'c8c0461bf04d54574fc2b4d07ac6783a',
'info_dict': {
@@ -94,12 +95,12 @@ class AdobeTVEmbedIE(AdobeTVBaseIE):
'ext': 'flv',
'title': 'Creating Graphics Optimized for BlackBerry',
'description': 'md5:eac6e8dced38bdaae51cd94447927459',
- 'thumbnail': r're:https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'upload_date': '20091109',
'duration': 377,
'view_count': int,
},
- }
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
@@ -110,10 +111,10 @@ class AdobeTVEmbedIE(AdobeTVBaseIE):
class AdobeTVIE(AdobeTVBaseIE):
+ _WORKING = False
IE_NAME = 'adobetv'
_VALID_URL = r'https?://tv\.adobe\.com/(?:(?P<language>fr|de|es|jp)/)?watch/(?P<show_urlname>[^/]+)/(?P<id>[^/]+)'
-
- _TEST = {
+ _TESTS = [{
'url': 'http://tv.adobe.com/watch/the-complete-picture-with-julieanne-kost/quick-tip-how-to-draw-a-circle-around-an-object-in-photoshop/',
'md5': '9bc5727bcdd55251f35ad311ca74fa1e',
'info_dict': {
@@ -121,12 +122,12 @@ class AdobeTVIE(AdobeTVBaseIE):
'ext': 'mp4',
'title': 'Quick Tip - How to Draw a Circle Around an Object in Photoshop',
'description': 'md5:99ec318dc909d7ba2a1f2b038f7d2311',
- 'thumbnail': r're:https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'upload_date': '20110914',
'duration': 60,
'view_count': int,
},
- }
+ }]
def _real_extract(self, url):
language, show_urlname, urlname = self._match_valid_url(url).groups()
@@ -159,10 +160,10 @@ class AdobeTVPlaylistBaseIE(AdobeTVBaseIE):
class AdobeTVShowIE(AdobeTVPlaylistBaseIE):
+ _WORKING = False
IE_NAME = 'adobetv:show'
_VALID_URL = r'https?://tv\.adobe\.com/(?:(?P<language>fr|de|es|jp)/)?show/(?P<id>[^/]+)'
-
- _TEST = {
+ _TESTS = [{
'url': 'http://tv.adobe.com/show/the-complete-picture-with-julieanne-kost',
'info_dict': {
'id': '36',
@@ -170,7 +171,7 @@ class AdobeTVShowIE(AdobeTVPlaylistBaseIE):
'description': 'md5:fa50867102dcd1aa0ddf2ab039311b27',
},
'playlist_mincount': 136,
- }
+ }]
_RESOURCE = 'episode'
_process_data = AdobeTVBaseIE._parse_video_data
@@ -195,16 +196,16 @@ class AdobeTVShowIE(AdobeTVPlaylistBaseIE):
class AdobeTVChannelIE(AdobeTVPlaylistBaseIE):
+ _WORKING = False
IE_NAME = 'adobetv:channel'
_VALID_URL = r'https?://tv\.adobe\.com/(?:(?P<language>fr|de|es|jp)/)?channel/(?P<id>[^/]+)(?:/(?P<category_urlname>[^/]+))?'
-
- _TEST = {
+ _TESTS = [{
'url': 'http://tv.adobe.com/channel/development',
'info_dict': {
'id': 'development',
},
'playlist_mincount': 96,
- }
+ }]
_RESOURCE = 'show'
def _process_data(self, show_data):
@@ -231,8 +232,7 @@ class AdobeTVVideoIE(AdobeTVBaseIE):
IE_NAME = 'adobetv:video'
_VALID_URL = r'https?://video\.tv\.adobe\.com/v/(?P<id>\d+)'
_EMBED_REGEX = [r'<iframe[^>]+src=[\'"](?P<url>(?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]']
-
- _TEST = {
+ _TESTS = [{
# From https://helpx.adobe.com/acrobat/how-to/new-experience-acrobat-dc.html?set=acrobat--get-started--essential-beginners
'url': 'https://video.tv.adobe.com/v/2456/',
'md5': '43662b577c018ad707a63766462b1e87',
@@ -242,8 +242,20 @@ class AdobeTVVideoIE(AdobeTVBaseIE):
'title': 'New experience with Acrobat DC',
'description': 'New experience with Acrobat DC',
'duration': 248.667,
+ 'thumbnail': r're:https?://images-tv\.adobe\.com/.+\.jpg',
+ },
+ }]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Invalid extension
+ 'url': 'https://www.adobe.com/learn/acrobat/web/customize-toolbar',
+ 'info_dict': {
+ 'id': '3463980',
+ 'ext': 'm3u8',
+ 'title': 'Adobe Acrobat: How to Customize the Toolbar for Faster PDF Editing',
+ 'description': 'md5:94368ab95ae24f9c1bee0cb346e03dc3',
+ 'duration': 97.557,
},
- }
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/apa.py b/yt_dlp/extractor/apa.py
index fed597042a..db82b56187 100644
--- a/yt_dlp/extractor/apa.py
+++ b/yt_dlp/extractor/apa.py
@@ -11,12 +11,11 @@ class APAIE(InfoExtractor):
_EMBED_REGEX = [r'<iframe[^>]+\bsrc=(["\'])(?P<url>(?:https?:)?//[^/]+\.apa\.at/embed/[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}.*?)\1']
_TESTS = [{
'url': 'http://uvp.apa.at/embed/293f6d17-692a-44e3-9fd5-7b178f3a1029',
- 'md5': '2b12292faeb0a7d930c778c7a5b4759b',
'info_dict': {
'id': '293f6d17-692a-44e3-9fd5-7b178f3a1029',
'ext': 'mp4',
'title': '293f6d17-692a-44e3-9fd5-7b178f3a1029',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://kf-vn\.sf\.apa\.at/vn/.+\.jpg',
},
}, {
'url': 'https://uvp-apapublisher.sf.apa.at/embed/2f94e9e6-d945-4db2-9548-f9a41ebf7b78',
@@ -28,6 +27,15 @@ class APAIE(InfoExtractor):
'url': 'http://uvp-kleinezeitung.sf.apa.at/embed/f1c44979-dba2-4ebf-b021-e4cf2cac3c81',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.vol.at/blue-man-group/5593454',
+ 'info_dict': {
+ 'id': '293f6d17-692a-44e3-9fd5-7b178f3a1029',
+ 'ext': 'mp4',
+ 'title': '293f6d17-692a-44e3-9fd5-7b178f3a1029',
+ 'thumbnail': r're:https?://kf-vn\.sf\.apa\.at/vn/.+\.jpg',
+ },
+ }]
def _real_extract(self, url):
mobj = self._match_valid_url(url)
diff --git a/yt_dlp/extractor/arcpublishing.py b/yt_dlp/extractor/arcpublishing.py
index 8da9bc4ccb..903f9c739a 100644
--- a/yt_dlp/extractor/arcpublishing.py
+++ b/yt_dlp/extractor/arcpublishing.py
@@ -62,6 +62,20 @@ class ArcPublishingIE(InfoExtractor):
'url': 'arcpublishing:tronc:460f2931-8130-4719-8ea1-ffcb2d7cb685',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.uppermichiganssource.com/2025/07/18/scattered-showers-storms-bring-heavy-rain-potential/',
+ 'info_dict': {
+ 'id': '508116f7-e999-48db-b7c2-60a04842679b',
+ 'ext': 'mp4',
+ 'title': 'Scattered showers & storms bring heavy rain potential',
+ 'description': 'Scattered showers & storms bring heavy rain potential',
+ 'duration': 2016,
+ 'thumbnail': r're:https?://.+\.jpg',
+ 'timestamp': 1752881287,
+ 'upload_date': '20250718',
+ },
+ 'expected_warnings': ['Ignoring subtitle tracks found in the HLS manifest'],
+ }]
_POWA_DEFAULTS = [
(['cmg', 'prisa'], '%s-config-prod.api.cdn.arcpublishing.com/video'),
([
diff --git a/yt_dlp/extractor/arte.py b/yt_dlp/extractor/arte.py
index 142d4b066b..3f17da463d 100644
--- a/yt_dlp/extractor/arte.py
+++ b/yt_dlp/extractor/arte.py
@@ -51,8 +51,8 @@ class ArteTVIE(ArteTVBaseIE):
'id': '109067-000-A',
'ext': 'mp4',
'description': 'md5:d2ca367b8ecee028dddaa8bd1aebc739',
+ 'thumbnail': r're:https?://api-cdn\.arte\.tv/img/v2/image/.+',
'timestamp': 1713927600,
- 'thumbnail': 'https://api-cdn.arte.tv/img/v2/image/3rR6PLzfbigSkkeHtkCZNF/940x530',
'duration': 7599,
'title': 'La loi de Téhéran',
'upload_date': '20240424',
@@ -62,6 +62,7 @@ class ArteTVIE(ArteTVBaseIE):
'fr-forced': 'mincount:1',
},
},
+ 'skip': 'Invalid URL',
}, {
'note': 'age-restricted',
'url': 'https://www.arte.tv/de/videos/006785-000-A/the-element-of-crime/',
@@ -69,9 +70,9 @@ class ArteTVIE(ArteTVBaseIE):
'id': '006785-000-A',
'description': 'md5:c2f94fdfefc8a280e4dab68ab96ab0ba',
'title': 'The Element of Crime',
+ 'thumbnail': r're:https?://api-cdn\.arte\.tv/img/v2/image/.+',
'timestamp': 1696111200,
'duration': 5849,
- 'thumbnail': 'https://api-cdn.arte.tv/img/v2/image/q82dTTfyuCXupPsGxXsd7B/940x530',
'upload_date': '20230930',
'ext': 'mp4',
},
@@ -252,6 +253,30 @@ class ArteTVEmbedIE(InfoExtractor):
'url': 'https://www.arte.tv/player/v3/index.php?json_url=https://api.arte.tv/api/player/v2/config/de/100605-013-A',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Embed detection
+ 'url': 'https://timesofmalta.com/article/watch-sunken-warships-north-sea-arte.1108358',
+ 'info_dict': {
+ 'id': '110288-000-A',
+ 'ext': 'mp4',
+ 'title': 'Danger on the Seabed',
+ 'alt_title': 'Sunken Warships in the North Sea',
+ 'description': 'md5:a2c84cbad37d280bddb6484087120add',
+ 'duration': 3148,
+ 'thumbnail': r're:https?://api-cdn\.arte\.tv/img/v2/image/.+',
+ 'timestamp': 1741686820,
+ 'upload_date': '20250311',
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ # FIXME: Embed detection
+ 'url': 'https://www.eurockeennes.fr/en-live/',
+ 'info_dict': {
+ 'id': 'en-live',
+ 'title': 'Les Eurocks en live | Les Eurockéennes de Belfort – 3-4-5-6 juillet 2025 sur la Presqu&#039;Île du Malsaucy',
+ },
+ 'playlist_count': 4,
+ }]
def _real_extract(self, url):
qs = parse_qs(url)
@@ -304,9 +329,9 @@ class ArteTVCategoryIE(ArteTVBaseIE):
'info_dict': {
'id': 'politics-and-society',
'title': 'Politics and society',
- 'description': 'Investigative documentary series, geopolitical analysis, and international commentary',
+ 'description': 'Watch documentaries and reportage about politics, society and current affairs.',
},
- 'playlist_mincount': 13,
+ 'playlist_mincount': 3,
}]
@classmethod
diff --git a/yt_dlp/extractor/bandcamp.py b/yt_dlp/extractor/bandcamp.py
index d07d6e48b2..0a8f88fa8c 100644
--- a/yt_dlp/extractor/bandcamp.py
+++ b/yt_dlp/extractor/bandcamp.py
@@ -36,14 +36,12 @@ class BandcampIE(InfoExtractor):
'duration': 9.8485,
'uploader': 'youtube-dl "\'/\\ä↭',
'upload_date': '20121129',
+ 'thumbnail': r're:https?://f4\.bcbits\.com/img/.+\.jpg',
'timestamp': 1354224127,
'track': 'youtube-dl "\'/\\ä↭ - youtube-dl test song "\'/\\ä↭',
- 'album_artist': 'youtube-dl "\'/\\ä↭',
'track_id': '1812978515',
- 'artist': 'youtube-dl "\'/\\ä↭',
'uploader_url': 'https://youtube-dl.bandcamp.com',
'uploader_id': 'youtube-dl',
- 'thumbnail': 'https://f4.bcbits.com/img/a3216802731_5.jpg',
'artists': ['youtube-dl "\'/\\ä↭'],
'album_artists': ['youtube-dl "\'/\\ä↭'],
},
@@ -54,10 +52,9 @@ class BandcampIE(InfoExtractor):
'info_dict': {
'id': '2650410135',
'ext': 'm4a',
- 'acodec': r're:[fa]lac',
'title': 'Ben Prunty - Lanius (Battle)',
- 'thumbnail': r're:^https?://.*\.jpg$',
'uploader': 'Ben Prunty',
+ 'thumbnail': r're:https?://f4\.bcbits\.com/img/.+\.jpg',
'timestamp': 1396508491,
'upload_date': '20140403',
'release_timestamp': 1396483200,
@@ -66,8 +63,6 @@ class BandcampIE(InfoExtractor):
'track': 'Lanius (Battle)',
'track_number': 1,
'track_id': '2650410135',
- 'artist': 'Ben Prunty',
- 'album_artist': 'Ben Prunty',
'album': 'FTL: Advanced Edition Soundtrack',
'uploader_url': 'https://benprunty.bandcamp.com',
'uploader_id': 'benprunty',
@@ -83,8 +78,8 @@ class BandcampIE(InfoExtractor):
'id': '2584466013',
'ext': 'mp3',
'title': 'Mastodon - Hail to Fire',
- 'thumbnail': r're:^https?://.*\.jpg$',
'uploader': 'Mastodon',
+ 'thumbnail': r're:https?://f4\.bcbits\.com/img/.+\.jpg',
'timestamp': 1322005399,
'upload_date': '20111122',
'release_timestamp': 1076112000,
@@ -93,8 +88,6 @@ class BandcampIE(InfoExtractor):
'track': 'Hail to Fire',
'track_number': 5,
'track_id': '2584466013',
- 'artist': 'Mastodon',
- 'album_artist': 'Mastodon',
'album': 'Call of the Mastodon',
'uploader_url': 'https://relapsealumni.bandcamp.com',
'uploader_id': 'relapsealumni',
@@ -110,8 +103,8 @@ class BandcampIE(InfoExtractor):
'id': '1978174799',
'ext': 'mp3',
'title': 'submerse - submerse - Safehouse',
- 'thumbnail': r're:^https?://.*\.jpg$',
'uploader': 'submerse',
+ 'thumbnail': r're:https?://f4\.bcbits\.com/img/.+\.jpg',
'timestamp': 1480779297,
'upload_date': '20161203',
'release_timestamp': 1481068800,
@@ -120,8 +113,6 @@ class BandcampIE(InfoExtractor):
'track': 'submerse - Safehouse',
'track_number': 3,
'track_id': '1978174799',
- 'artist': 'submerse',
- 'album_artist': 'Diskotopia',
'album': 'DSK F/W 2016-2017 Free Compilation',
'uploader_url': 'https://diskotopia.bandcamp.com',
'uploader_id': 'diskotopia',
@@ -130,6 +121,30 @@ class BandcampIE(InfoExtractor):
'album_artists': ['Diskotopia'],
},
}]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Embed detection
+ 'url': 'https://www.punknews.org/article/85809/stay-inside-super-sonic',
+ 'info_dict': {
+ 'id': '2475540375',
+ 'ext': 'mp3',
+ 'title': 'Stay Inside - Super Sonic',
+ 'album': 'Lunger',
+ 'album_artists': ['Stay Inside'],
+ 'artists': ['Stay Inside'],
+ 'duration': 166.157,
+ 'release_date': '20251003',
+ 'release_timestamp': 1759449600.0,
+ 'thumbnail': r're:https?://f4\.bcbits\.com/img/.+\.jpg',
+ 'timestamp': 1749473029.0,
+ 'track': 'Super Sonic',
+ 'track_id': '2475540375',
+ 'track_number': 3,
+ 'upload_date': '20250609',
+ 'uploader': 'Stay Inside',
+ 'uploader_id': 'stayinside',
+ 'uploader_url': 'https://stayinside.bandcamp.com',
+ },
+ }]
def _extract_data_attr(self, webpage, video_id, attr='tralbum', fatal=True):
return self._parse_json(self._html_search_regex(
@@ -279,10 +294,10 @@ class BandcampAlbumIE(BandcampIE): # XXX: Do not subclass from concrete IE
'id': '1353101989',
'ext': 'mp3',
'title': 'Blazo - Intro',
+ 'thumbnail': r're:https?://f4\.bcbits\.com/img/.+\.jpg',
'timestamp': 1311756226,
'upload_date': '20110727',
'uploader': 'Blazo',
- 'thumbnail': 'https://f4.bcbits.com/img/a1721150828_5.jpg',
'album_artists': ['Blazo'],
'uploader_url': 'https://blazo.bandcamp.com',
'release_date': '20110727',
@@ -302,6 +317,7 @@ class BandcampAlbumIE(BandcampIE): # XXX: Do not subclass from concrete IE
'id': '38097443',
'ext': 'mp3',
'title': 'Blazo - Kero One - Keep It Alive (Blazo remix)',
+ 'thumbnail': r're:https?://f4\.bcbits\.com/img/.+\.jpg',
'timestamp': 1311757238,
'upload_date': '20110727',
'uploader': 'Blazo',
@@ -315,7 +331,6 @@ class BandcampAlbumIE(BandcampIE): # XXX: Do not subclass from concrete IE
'uploader_id': 'blazo',
'album_artists': ['Blazo'],
'artists': ['Blazo'],
- 'thumbnail': 'https://f4.bcbits.com/img/a1721150828_5.jpg',
'release_timestamp': 1311724800.0,
},
},
diff --git a/yt_dlp/extractor/blogger.py b/yt_dlp/extractor/blogger.py
index 1614b6f947..6ff72e70d2 100644
--- a/yt_dlp/extractor/blogger.py
+++ b/yt_dlp/extractor/blogger.py
@@ -19,8 +19,19 @@ class BloggerIE(InfoExtractor):
'id': 'BLOGGER-video-3c740e3a49197e16-796',
'title': 'BLOGGER-video-3c740e3a49197e16-796',
'ext': 'mp4',
- 'thumbnail': r're:^https?://.*',
'duration': 76.068,
+ 'thumbnail': r're:https?://i9\.ytimg\.com/vi_blogger/.+',
+ },
+ }]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://blog.tomeuvizoso.net/2019/01/a-panfrost-milestone.html',
+ 'md5': 'f1bc19b6ea1b0fd1d81e84ca9ec467ac',
+ 'info_dict': {
+ 'id': 'BLOGGER-video-3c740e3a49197e16-12203',
+ 'ext': 'mp4',
+ 'title': 'BLOGGER-video-3c740e3a49197e16-12203',
+ 'duration': 76.068,
+ 'thumbnail': r're:https?://i9\.ytimg\.com/vi_blogger/.+',
},
}]
diff --git a/yt_dlp/extractor/cloudflarestream.py b/yt_dlp/extractor/cloudflarestream.py
index 9e9e89a801..a90fceaacf 100644
--- a/yt_dlp/extractor/cloudflarestream.py
+++ b/yt_dlp/extractor/cloudflarestream.py
@@ -19,18 +19,16 @@ class CloudflareStreamIE(InfoExtractor):
'id': '31c9291ab41fac05471db4e73aa11717',
'ext': 'mp4',
'title': '31c9291ab41fac05471db4e73aa11717',
- 'thumbnail': 'https://cloudflarestream.com/31c9291ab41fac05471db4e73aa11717/thumbnails/thumbnail.jpg',
- },
- 'params': {
- 'skip_download': 'm3u8',
+ 'thumbnail': r're:https?://cloudflarestream\.com/.+\.jpg',
},
+ 'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://watch.cloudflarestream.com/embed/sdk-iframe-integration.fla9.latest.js?video=0e8e040aec776862e1d632a699edf59e',
'info_dict': {
'id': '0e8e040aec776862e1d632a699edf59e',
'ext': 'mp4',
'title': '0e8e040aec776862e1d632a699edf59e',
- 'thumbnail': 'https://cloudflarestream.com/0e8e040aec776862e1d632a699edf59e/thumbnails/thumbnail.jpg',
+ 'thumbnail': r're:https?://cloudflarestream\.com/.+\.jpg',
},
}, {
'url': 'https://watch.cloudflarestream.com/9df17203414fd1db3e3ed74abbe936c1',
@@ -54,11 +52,21 @@ class CloudflareStreamIE(InfoExtractor):
'id': 'eaef9dea5159cf968be84241b5cedfe7',
'ext': 'mp4',
'title': 'eaef9dea5159cf968be84241b5cedfe7',
- 'thumbnail': 'https://cloudflarestream.com/eaef9dea5159cf968be84241b5cedfe7/thumbnails/thumbnail.jpg',
+ 'thumbnail': r're:https?://cloudflarestream\.com/.+\.jpg',
},
'params': {
+ 'extractor_args': {'generic': {'impersonate': ['chrome']}},
'skip_download': 'm3u8',
},
+ }, {
+ # FIXME: Embed detection
+ 'url': 'https://www.cloudflare.com/developer-platform/products/cloudflare-stream/',
+ 'info_dict': {
+ 'id': 'e7bd2dd67e0f8860b4ae81e33a966049',
+ 'ext': 'mp4',
+ 'title': 'e7bd2dd67e0f8860b4ae81e33a966049',
+ 'thumbnail': r're:https?://cloudflarestream\.com/.+\.jpg',
+ },
}]
def _real_extract(self, url):
diff --git a/yt_dlp/extractor/condenast.py b/yt_dlp/extractor/condenast.py
index 0c84cfdab7..318fa8943b 100644
--- a/yt_dlp/extractor/condenast.py
+++ b/yt_dlp/extractor/condenast.py
@@ -96,6 +96,24 @@ class CondeNastIE(InfoExtractor):
'upload_date': '20150916',
'timestamp': 1442434920,
},
+ }, {
+ # FIXME: Subtitles
+ 'url': 'https://www.vanityfair.com/video/watch/vf-quiz-show-squid-game-s3',
+ 'info_dict': {
+ 'id': '6862f999c1afbc5ff06b4803',
+ 'ext': 'mp4',
+ 'title': '\'Squid Game\' Cast Tests How Well They Know Each Other',
+ 'categories': ['Arts & Culture', 'Hollywood'],
+ 'description': 'md5:7a9c668a1fc87648e77da13842ec1534',
+ 'duration': 955,
+ 'season': 'Season 1',
+ 'series': 'Quizzing Each Other',
+ 'tags': 'count:2',
+ 'thumbnail': r're:https?://dwgyu36up6iuz\.cloudfront\.net/.+\.jpg',
+ 'timestamp': 1751341306,
+ 'upload_date': '20250701',
+ 'uploader': 'vanityfair',
+ },
}, {
'url': 'https://player.cnevids.com/inline/video/59138decb57ac36b83000005.js?target=js-cne-player',
'only_matching': True,
diff --git a/yt_dlp/extractor/crooksandliars.py b/yt_dlp/extractor/crooksandliars.py
index abd3322a95..29bbc2fe6a 100644
--- a/yt_dlp/extractor/crooksandliars.py
+++ b/yt_dlp/extractor/crooksandliars.py
@@ -8,7 +8,6 @@ from ..utils import (
class CrooksAndLiarsIE(InfoExtractor):
_VALID_URL = r'https?://embed\.crooksandliars\.com/(?:embed|v)/(?P<id>[A-Za-z0-9]+)'
_EMBED_REGEX = [r'<(?:iframe[^>]+src|param[^>]+value)=(["\'])(?P<url>(?:https?:)?//embed\.crooksandliars\.com/(?:embed|v)/.+?)\1']
-
_TESTS = [{
'url': 'https://embed.crooksandliars.com/embed/8RUoRhRi',
'info_dict': {
@@ -16,7 +15,7 @@ class CrooksAndLiarsIE(InfoExtractor):
'ext': 'mp4',
'title': 'Fox & Friends Says Protecting Atheists From Discrimination Is Anti-Christian!',
'description': 'md5:e1a46ad1650e3a5ec7196d432799127f',
- 'thumbnail': r're:^https?://.*\.jpg',
+ 'thumbnail': r're:https?://crooksandliars\.com/files/.+',
'timestamp': 1428207000,
'upload_date': '20150405',
'uploader': 'Heather',
@@ -26,6 +25,20 @@ class CrooksAndLiarsIE(InfoExtractor):
'url': 'http://embed.crooksandliars.com/v/MTE3MjUtMzQ2MzA',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://crooksandliars.com/2015/04/fox-friends-says-protecting-atheists',
+ 'info_dict': {
+ 'id': '8RUoRhRi',
+ 'ext': 'mp4',
+ 'title': 'Fox & Friends Says Protecting Atheists From Discrimination Is Anti-Christian!',
+ 'description': 'md5:e1a46ad1650e3a5ec7196d432799127f',
+ 'duration': 236,
+ 'thumbnail': r're:https?://crooksandliars\.com/files/.+',
+ 'timestamp': 1428207000,
+ 'upload_date': '20150405',
+ 'uploader': 'Heather',
+ },
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/dailymail.py b/yt_dlp/extractor/dailymail.py
index 540676ac0f..3058a0f7b5 100644
--- a/yt_dlp/extractor/dailymail.py
+++ b/yt_dlp/extractor/dailymail.py
@@ -19,11 +19,22 @@ class DailyMailIE(InfoExtractor):
'ext': 'mp4',
'title': 'The Mountain appears in sparkling water ad for \'Heavy Bubbles\'',
'description': 'md5:a93d74b6da172dd5dc4d973e0b766a84',
+ 'thumbnail': r're:https?://i\.dailymail\.co\.uk/.+\.jpg',
},
}, {
'url': 'http://www.dailymail.co.uk/embed/video/1295863.html',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.daily-news.gr/lifestyle/%ce%b7-%cf%84%cf%81%ce%b1%ce%b3%ce%bf%cf%85%ce%b4%ce%af%cf%83%cf%84%cf%81%ce%b9%ce%b1-jessie-j-%ce%bc%ce%bf%ce%b9%cf%81%ce%ac%cf%83%cf%84%ce%b7%ce%ba%ce%b5-%cf%83%cf%85%ce%b3%ce%ba%ce%bb%ce%bf%ce%bd/',
+ 'info_dict': {
+ 'id': '3463585',
+ 'ext': 'mp4',
+ 'title': 'Jessie J reveals she has undergone surgery as she shares clips',
+ 'description': 'md5:9fa9a25feca5b656b0b4a39c922fad1e',
+ 'thumbnail': r're:https?://i\.dailymail\.co\.uk/.+\.jpg',
+ },
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/dailymotion.py b/yt_dlp/extractor/dailymotion.py
index a81f0a26dd..d27a027702 100644
--- a/yt_dlp/extractor/dailymotion.py
+++ b/yt_dlp/extractor/dailymotion.py
@@ -119,13 +119,14 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
_EMBED_REGEX = [rf'(?ix)<(?:(?:embed|iframe)[^>]+?src=|input[^>]+id=[\'"]dmcloudUrlEmissionSelect[\'"][^>]+value=)["\'](?P<url>{_VALID_URL[5:]})']
_TESTS = [{
'url': 'http://www.dailymotion.com/video/x5kesuj_office-christmas-party-review-jason-bateman-olivia-munn-t-j-miller_news',
- 'md5': '074b95bdee76b9e3654137aee9c79dfe',
'info_dict': {
'id': 'x5kesuj',
'ext': 'mp4',
'title': 'Office Christmas Party Review – Jason Bateman, Olivia Munn, T.J. Miller',
'description': 'Office Christmas Party Review - Jason Bateman, Olivia Munn, T.J. Miller',
'duration': 187,
+ 'tags': 'count:5',
+ 'thumbnail': r're:https?://s[12]\.dmcdn\.net/v/.+',
'timestamp': 1493651285,
'upload_date': '20170501',
'uploader': 'Deadline',
@@ -133,18 +134,17 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'age_limit': 0,
'view_count': int,
'like_count': int,
- 'tags': ['hollywood', 'celeb', 'celebrity', 'movies', 'red carpet'],
- 'thumbnail': r're:https://(?:s[12]\.)dmcdn\.net/v/K456B1cmt4ZcZ9KiM/x1080',
},
}, {
'url': 'https://geo.dailymotion.com/player.html?video=x89eyek&mute=true',
- 'md5': 'e2f9717c6604773f963f069ca53a07f8',
'info_dict': {
'id': 'x89eyek',
'ext': 'mp4',
- 'title': "En quête d'esprit du 27/03/2022",
+ 'title': 'En quête d\'esprit du 27/03/2022',
'description': 'md5:66542b9f4df2eb23f314fc097488e553',
'duration': 2756,
+ 'tags': 'count:1',
+ 'thumbnail': r're:https?://s[12]\.dmcdn\.net/v/.+',
'timestamp': 1648383669,
'upload_date': '20220327',
'uploader': 'CNEWS',
@@ -152,8 +152,6 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'age_limit': 0,
'view_count': int,
'like_count': int,
- 'tags': ['en_quete_d_esprit'],
- 'thumbnail': r're:https://(?:s[12]\.)dmcdn\.net/v/Tncwi1clTH6StrxMP/x1080',
},
}, {
'url': 'https://www.dailymotion.com/video/x2iuewm_steam-machine-models-pricing-listed-on-steam-store-ign-news_videogames',
@@ -163,8 +161,8 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'ext': 'mp4',
'title': 'Steam Machine Models, Pricing Listed on Steam Store - IGN News',
'description': 'Several come bundled with the Steam Controller.',
- 'thumbnail': r're:^https?:.*\.(?:jpg|png)$',
'duration': 74,
+ 'thumbnail': r're:https?://s[12]\.dmcdn\.net/v/.+',
'timestamp': 1425657362,
'upload_date': '20150306',
'uploader': 'IGN',
@@ -183,10 +181,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'uploader': 'Katy Perry',
'upload_date': '20130905',
},
- 'params': {
- 'skip_download': True,
- },
- 'skip': 'VEVO is only available in some countries',
+ 'skip': 'Invalid URL',
}, {
# age-restricted video
'url': 'http://www.dailymotion.com/video/xyh2zz_leanna-decker-cyber-girl-of-the-year-desires-nude-playboy-plus_redband',
@@ -259,9 +254,9 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'uploader_id': 'x2vtgmm',
'age_limit': 0,
'tags': [],
+ 'thumbnail': r're:https?://s[12]\.dmcdn\.net/v/.+',
'view_count': int,
'like_count': int,
- 'thumbnail': r're:https://\w+.dmcdn.net/v/WnEY61cmvMxt2Fi6d/x1080',
},
}, {
# https://geo.dailymotion.com/player/xf7zn.html?playlist=x7wdsj
@@ -276,18 +271,18 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'info_dict': {
'id': 'x8u4owg',
'ext': 'mp4',
+ 'description': 'À bord du « véloto », l’alternative à la voiture pour la campagne',
'like_count': int,
'uploader': 'Le Parisien',
- 'thumbnail': 'https://www.leparisien.fr/resizer/ho_GwveeYftNkLwg_cEta--5Bv4=/1200x675/cloudfront-eu-central-1.images.arcpublishing.com/leparisien/BFXJNEBN75EUNHGYJLORUC3TX4.jpg',
'upload_date': '20240309',
'view_count': int,
+ 'tags': 'count:7',
+ 'thumbnail': r're:https?://www\.leparisien\.fr/.+\.jpg',
'timestamp': 1709997866,
'age_limit': 0,
'uploader_id': 'x32f7b',
'title': 'VIDÉO. Le «\xa0véloto\xa0», la voiture à pédales qui aimerait se faire une place sur les routes',
'duration': 428.0,
- 'description': 'À bord du « véloto », l’alternative à la voiture pour la campagne',
- 'tags': ['biclou', 'vélo', 'véloto', 'campagne', 'voiture', 'environnement', 'véhicules intermédiaires'],
},
}, {
# https://geo.dailymotion.com/player/xry80.html?video=x8vu47w
@@ -297,9 +292,9 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'ext': 'mp4',
'like_count': int,
'uploader': 'Metatube',
- 'thumbnail': r're:https://\w+.dmcdn.net/v/W1G_S1coGSFTfkTeR/x1080',
'upload_date': '20240326',
'view_count': int,
+ 'thumbnail': r're:https?://s[12]\.dmcdn\.net/v/.+',
'timestamp': 1711496732,
'age_limit': 0,
'uploader_id': 'x2xpy74',
@@ -308,6 +303,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'description': 'Que lindura',
'tags': [],
},
+ 'skip': 'Invalid URL',
}, {
# //geo.dailymotion.com/player/xysxq.html?video=k2Y4Mjp7krAF9iCuINM
'url': 'https://lcp.fr/programmes/avant-la-catastrophe-la-naissance-de-la-dictature-nazie-1933-1936-346819',
@@ -322,11 +318,30 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
'like_count': int,
'age_limit': 0,
'duration': 3220,
- 'thumbnail': 'https://s1.dmcdn.net/v/Xvumk1djJBUZfjj2a/x1080',
'tags': [],
+ 'thumbnail': r're:https?://s[12]\.dmcdn\.net/v/.+',
'timestamp': 1739919947,
'upload_date': '20250218',
},
+ 'skip': 'Invalid URL',
+ }, {
+ 'url': 'https://forum.ionicframework.com/t/ionic-2-jw-player-dailymotion-player/83248',
+ 'info_dict': {
+ 'id': 'xwr14q',
+ 'ext': 'mp4',
+ 'title': 'Macklemore & Ryan Lewis - Thrift Shop (feat. Wanz)',
+ 'age_limit': 0,
+ 'description': 'md5:47fbe168b5a6ddc4a205e20dd6c841b2',
+ 'duration': 234,
+ 'like_count': int,
+ 'tags': 'count:5',
+ 'thumbnail': r're:https?://s[12]\.dmcdn\.net/v/.+',
+ 'timestamp': 1358177670,
+ 'upload_date': '20130114',
+ 'uploader': 'Macklemore Official',
+ 'uploader_id': 'x19qlwr',
+ 'view_count': int,
+ },
}]
_GEO_BYPASS = False
_COMMON_MEDIA_FIELDS = '''description
@@ -540,7 +555,7 @@ class DailymotionSearchIE(DailymotionPlaylistBaseIE):
'id': 'king of turtles',
'title': 'king of turtles',
},
- 'playlist_mincount': 90,
+ 'playlist_mincount': 0,
}]
_SEARCH_QUERY = 'query SEARCH_QUERY( $query: String! $page: Int $limit: Int ) { search { videos( query: $query first: $limit page: $page ) { edges { node { xid } } } } } '
@@ -584,7 +599,7 @@ class DailymotionUserIE(DailymotionPlaylistBaseIE):
'info_dict': {
'id': 'nqtv',
},
- 'playlist_mincount': 152,
+ 'playlist_mincount': 148,
}, {
'url': 'http://www.dailymotion.com/user/UnderProject',
'info_dict': {
diff --git a/yt_dlp/extractor/dbtv.py b/yt_dlp/extractor/dbtv.py
index 795fbacc41..ff93c642d2 100644
--- a/yt_dlp/extractor/dbtv.py
+++ b/yt_dlp/extractor/dbtv.py
@@ -12,13 +12,13 @@ class DBTVIE(InfoExtractor):
'ext': 'mp4',
'title': 'Skulle teste ut fornøyelsespark, men kollegaen var bare opptatt av bikinikroppen',
'description': 'md5:49cc8370e7d66e8a2ef15c3b4631fd3f',
- 'thumbnail': r're:https?://.*\.jpg',
+ 'thumbnail': r're:https?://.+\.jpg',
'upload_date': '20160916',
'duration': 69,
'uploader_id': 'UCk5pvsyZJoYJBd7_oFPTlRQ',
'uploader': 'Dagbladet',
},
- 'add_ie': ['Youtube'],
+ 'skip': 'Invalid URL',
}, {
'url': 'https://www.dagbladet.no/video/embed/xlGmyIeN9Jo/?autoplay=false',
'only_matching': True,
@@ -26,6 +26,20 @@ class DBTVIE(InfoExtractor):
'url': 'https://www.dagbladet.no/video/truer-iran-bor-passe-dere/PalfB2Cw',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Embed detection
+ 'url': 'https://www.dagbladet.no/nyheter/rekordstort-russisk-angrep/83325693',
+ 'info_dict': {
+ 'id': '1HW7fYry',
+ 'ext': 'mp4',
+ 'title': 'Putin taler - så skjer dette',
+ 'description': 'md5:3e8bacee33de861a9663d9a3fcc54e5e',
+ 'display_id': 'putin-taler-sa-skjer-dette',
+ 'thumbnail': r're:https?://cdn\.jwplayer\.com/v2/media/.+',
+ 'timestamp': 1751043600,
+ 'upload_date': '20250627',
+ },
+ }]
def _real_extract(self, url):
display_id, video_id = self._match_valid_url(url).groups()
diff --git a/yt_dlp/extractor/ertgr.py b/yt_dlp/extractor/ertgr.py
index 6f3f60ff43..ba68d5324d 100644
--- a/yt_dlp/extractor/ertgr.py
+++ b/yt_dlp/extractor/ertgr.py
@@ -64,14 +64,12 @@ class ERTFlixCodenameIE(ERTFlixBaseIE):
_VALID_URL = r'ertflix:(?P<id>[\w-]+)'
_TESTS = [{
'url': 'ertflix:monogramma-praxitelis-tzanoylinos',
- 'md5': '5b9c2cd171f09126167e4082fc1dd0ef',
'info_dict': {
'id': 'monogramma-praxitelis-tzanoylinos',
'ext': 'mp4',
- 'title': 'md5:ef0b439902963d56c43ac83c3f41dd0e',
+ 'title': 'monogramma-praxitelis-tzanoylinos',
},
- },
- ]
+ }]
def _extract_formats_and_subs(self, video_id):
media_info = self._call_api(video_id, codename=video_id)
@@ -131,13 +129,14 @@ class ERTFlixIE(ERTFlixBaseIE):
'duration': 3166,
'age_limit': 8,
},
+ 'skip': 'Invalid URL',
}, {
'url': 'https://www.ertflix.gr/series/ser.3448-monogramma',
'info_dict': {
'id': 'ser.3448',
'age_limit': 8,
- 'description': 'Η εκπομπή σαράντα ετών που σημάδεψε τον πολιτισμό μας.',
- 'title': 'Μονόγραμμα',
+ 'title': 'Monogramma',
+ 'description': 'md5:e30cc640e6463da87f210a8ed10b2439',
},
'playlist_mincount': 64,
}, {
@@ -145,28 +144,28 @@ class ERTFlixIE(ERTFlixBaseIE):
'info_dict': {
'id': 'ser.3448',
'age_limit': 8,
- 'description': 'Η εκπομπή σαράντα ετών που σημάδεψε τον πολιτισμό μας.',
- 'title': 'Μονόγραμμα',
+ 'title': 'Monogramma',
+ 'description': 'md5:e30cc640e6463da87f210a8ed10b2439',
},
- 'playlist_count': 22,
+ 'playlist_mincount': 66,
}, {
'url': 'https://www.ertflix.gr/series/ser.3448-monogramma?season=1&season=2021%20-%202022',
'info_dict': {
'id': 'ser.3448',
'age_limit': 8,
- 'description': 'Η εκπομπή σαράντα ετών που σημάδεψε τον πολιτισμό μας.',
- 'title': 'Μονόγραμμα',
+ 'title': 'Monogramma',
+ 'description': 'md5:e30cc640e6463da87f210a8ed10b2439',
},
- 'playlist_mincount': 36,
+ 'playlist_mincount': 25,
}, {
'url': 'https://www.ertflix.gr/series/ser.164991-to-diktuo-1?season=1-9',
'info_dict': {
'id': 'ser.164991',
'age_limit': 8,
- 'description': 'Η πρώτη ελληνική εκπομπή με θεματολογία αποκλειστικά γύρω από το ίντερνετ.',
- 'title': 'Το δίκτυο',
+ 'title': 'The Network',
+ 'description': 'The first Greek show featuring topics exclusively around the internet.',
},
- 'playlist_mincount': 9,
+ 'playlist_mincount': 0,
}, {
'url': 'https://www.ertflix.gr/en/vod/vod.127652-ta-kalytera-mas-chronia-ep1-mia-volta-sto-feggari',
'only_matching': True,
@@ -282,6 +281,16 @@ class ERTWebtvEmbedIE(InfoExtractor):
'ext': 'mp4',
'thumbnail': 'https://program.ert.gr/photos/2022/1/to_diktio_ep09_i_istoria_tou_diadiktiou_stin_Ellada_1021x576.jpg',
},
+ 'skip': 'Invalid URL',
+ }]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.ertnews.gr/video/manolis-goyalles-o-anthropos-piso-apo-ti-diadiktyaki-vasilopita/',
+ 'info_dict': {
+ 'id': '2022/tv/news-themata-ianouarios/20220114-apotis6-gouales-pita.mp4',
+ 'ext': 'mp4',
+ 'title': 'VOD - 2022/tv/news-themata-ianouarios/20220114-apotis6-gouales-pita.mp4',
+ 'thumbnail': r're:https?://www\.ert\.gr/themata/photos/.+\.jpg',
+ },
}]
def _real_extract(self, url):
diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py
index 24ecb03505..2c35013faa 100644
--- a/yt_dlp/extractor/facebook.py
+++ b/yt_dlp/extractor/facebook.py
@@ -81,13 +81,14 @@ class FacebookIE(InfoExtractor):
'description': 'md5:34675bda53336b1d16400265c2bb9b3b',
'uploader': 'RADIO KICKS FM',
'upload_date': '20230818',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'timestamp': 1692346159,
- 'thumbnail': r're:^https?://.*',
'uploader_id': '100063551323670',
'duration': 3133.583,
'view_count': int,
'concurrent_view_count': 0,
},
+ 'expected_warnings': ['Cannot parse data'],
}, {
'url': 'https://www.facebook.com/video.php?v=637842556329505&fref=nf',
'md5': '6a40d33c0eccbb1af76cf0485a052659',
@@ -106,17 +107,18 @@ class FacebookIE(InfoExtractor):
'info_dict': {
'id': '274175099429670',
'ext': 'mp4',
- 'title': 'Asif',
+ 'title': '119 reactions · 1.4K shares | Asif Nawab Butt on Reels',
'description': '',
'uploader': 'Asif Nawab Butt',
'upload_date': '20140506',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'timestamp': 1399398998,
- 'thumbnail': r're:^https?://.*',
- 'uploader_id': 'pfbid05AzrFTXgY37tqwaSgbFTTEpCLBjjEJHkigogwGiRPtKEpAsJYJpzE94H1RxYXWEtl',
+ 'uploader_id': 'pfbid028xue38TBXRyNbiqBSV2LFs3QK3yopvKjupbqFoL6U9SKbx4p2SMdJjQSBvnjsHGWl',
'duration': 131.03,
'concurrent_view_count': int,
'view_count': int,
},
+ 'expected_warnings': ['Cannot parse data'],
}, {
'note': 'Video with DASH manifest',
'url': 'https://www.facebook.com/video.php?v=957955867617029',
@@ -158,7 +160,7 @@ class FacebookIE(InfoExtractor):
'id': '10153664894881749',
'ext': 'mp4',
'title': 'Average time to confirm recent Supreme Court nominees: 67 days Longest it\'s t...',
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'timestamp': 1456259628,
'upload_date': '20160223',
'uploader': 'Barack Obama',
@@ -168,7 +170,7 @@ class FacebookIE(InfoExtractor):
# have 1080P, but only up to 720p in swf params
# data.video.story.attachments[].media
'url': 'https://www.facebook.com/cnn/videos/10155529876156509/',
- 'md5': '1659aa21fb3dd1585874f668e81a72c8',
+ 'md5': '70b82ebf5f0e9b91b2a49d3db3563611',
'info_dict': {
'id': '10155529876156509',
'ext': 'mp4',
@@ -177,7 +179,7 @@ class FacebookIE(InfoExtractor):
'timestamp': 1477818095,
'upload_date': '20161030',
'uploader': 'CNN',
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'view_count': int,
'uploader_id': '100059479812265',
'concurrent_view_count': int,
@@ -198,13 +200,11 @@ class FacebookIE(InfoExtractor):
'uploader': 'Yaroslav Korpan',
'uploader_id': 'pfbid06AScABAWcW91qpiuGrLt99Ef9tvwHoXP6t8KeFYEqkSfreMtfa9nTveh8b2ZEVSWl',
'concurrent_view_count': int,
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'view_count': int,
'duration': 11736.446,
},
- 'params': {
- 'skip_download': True,
- },
+ 'skip': 'Invalid URL',
}, {
# FIXME: Cannot parse data error
'url': 'https://www.facebook.com/LaGuiaDelVaron/posts/1072691702860471',
@@ -215,7 +215,7 @@ class FacebookIE(InfoExtractor):
'timestamp': 1477305000,
'upload_date': '20161024',
'uploader': 'La Guía Del Varón',
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
},
'skip': 'Requires logging in',
}, {
@@ -244,9 +244,10 @@ class FacebookIE(InfoExtractor):
'upload_date': '20171124',
'uploader': 'Vickie Gentry',
'uploader_id': 'pfbid0FkkycT95ySNNyfCw4Cho6u5G7WbbZEcxT496Hq8rtx1K3LcTCATpR3wnyYhmyGC5l',
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'duration': 148.224,
},
+ 'skip': 'Invalid URL',
}, {
# data.node.comet_sections.content.story.attachments[].styles.attachment.media
'url': 'https://www.facebook.com/attn/posts/pfbid0j1Czf2gGDVqeQ8KiMLFm3pWN8GxsQmeRrVhimWDzMuKQoR8r4b1knNsejELmUgyhl',
@@ -260,7 +261,7 @@ class FacebookIE(InfoExtractor):
'duration': 132.675,
'uploader_id': '100064451419378',
'view_count': int,
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'timestamp': 1701975646,
},
}, {
@@ -271,9 +272,9 @@ class FacebookIE(InfoExtractor):
'ext': 'mp4',
'title': 'Lela Evans',
'description': 'Today Makkovik\'s own Pilot Mandy Smith made her inaugural landing on the airstrip in her hometown. What a proud moment as we all cheered and...',
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'uploader': 'Lela Evans',
- 'uploader_id': 'pfbid0swT2y7t6TAsZVBvcyeYPdhTMefGaS26mzUwML3vd1ma6ndGZKxsyS4Ssu3jitZLXl',
+ 'uploader_id': 'pfbid02wjMpknobSMnyynK3TNKN4Ww1StcpAKXgowqTyge3bz7LwHZMQ68uiXzzbu7xeryBl',
'upload_date': '20231228',
'timestamp': 1703804085,
'duration': 394.347,
@@ -326,28 +327,27 @@ class FacebookIE(InfoExtractor):
'uploader_id': '100066514874195',
'duration': 4524.001,
'view_count': int,
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'concurrent_view_count': int,
},
- 'params': {
- 'skip_download': True,
- },
+ 'params': {'skip_download': True},
}, {
# data.node.comet_sections.content.story.attachments[].style_type_renderer.attachment.all_subattachments.nodes[].media
'url': 'https://www.facebook.com/100033620354545/videos/106560053808006/',
'info_dict': {
'id': '106560053808006',
'ext': 'mp4',
- 'title': 'Josef',
- 'thumbnail': r're:^https?://.*',
+ 'title': 'Josef Novak on Reels',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'concurrent_view_count': int,
- 'uploader_id': 'pfbid02gpfwRM2XvdEJfsERupwQiNmBiDArc38RMRYZnap372q6Vs7MtFTVy72mmFWpJBTKl',
+ 'uploader_id': 'pfbid0cjYJYXpePWqhZ9DgpB6gKXrN2q3obwducdKm4wT7K5nkhbfKg5cneocYbsdaji7fl',
'timestamp': 1549275572,
'duration': 3.283,
'uploader': 'Josef Novak',
'description': '',
'upload_date': '20190204',
},
+ 'expected_warnings': ['Cannot parse data'],
}, {
# data.video.story.attachments[].media
'url': 'https://www.facebook.com/watch/?v=647537299265662',
@@ -406,7 +406,7 @@ class FacebookIE(InfoExtractor):
'ext': 'mp4',
'title': 'ANALISI IN CAMPO OSCURO " Coaguli nel sangue dei vaccinati"',
'description': 'Other event by Comitato Liberi Pensatori on Tuesday, October 18 2022',
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'uploader': 'Comitato Liberi Pensatori',
'uploader_id': '100065709540881',
},
@@ -414,6 +414,56 @@ class FacebookIE(InfoExtractor):
'url': 'https://www.facebook.com/groups/1513990329015294/posts/d41d8cd9/2013209885760000/?app=fbl',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ # <iframe> embed
+ 'url': 'http://www.unique-almeria.com/mini-hollywood.html',
+ 'md5': 'cba5d8c5021e9340dcefe925255e2c3e',
+ 'info_dict': {
+ 'id': '1529066599879',
+ 'ext': 'mp4',
+ 'title': 'Facebook video #1529066599879',
+ },
+ 'expected_warnings': ['unable to extract uploader'],
+ }, {
+ # FIXME: Embed detection
+ # <iframe> embed, plugin video
+ 'url': 'https://www.newsmemory.com/eedition/e-publishing-solutions/2-in-one-app/',
+ 'md5': 'ae97d4a44f8cc9a8b1a4c03b9ed793af',
+ 'info_dict': {
+ 'id': '10155710648695814',
+ 'ext': 'mp4',
+ 'title': 'Download the all new and improved Trinidad Express App',
+ 'concurrent_view_count': int,
+ 'description': 'md5:4806195c99908e4189b45b1c23bd4f89',
+ 'duration': 69.408,
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
+ 'timestamp': 1533919195,
+ 'upload_date': '20180810',
+ 'uploader': 'Trinidad Express Newspapers',
+ 'uploader_id': '100064446413648',
+ 'view_count': int,
+ },
+ 'expected_warnings': ['Cannot parse data'],
+ }, {
+ # API embed
+ 'url': 'https://www.curs.md/ro',
+ 'md5': '090bae53b9bff2be993c896edc2ea205',
+ 'info_dict': {
+ 'id': '334484292523563',
+ 'ext': 'mp4',
+ 'title': 'md5:9abffe1c86cdd967ffa224e1ccc13b90',
+ 'concurrent_view_count': int,
+ 'description': 'md5:0ba98567a61c640f9fabf1882235b33d',
+ 'duration': 8789.891,
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
+ 'timestamp': 1700603114,
+ 'upload_date': '20231121',
+ 'uploader': 'Istoria Moldovei',
+ 'uploader_id': '100063529778592',
+ 'view_count': int,
+ },
+ 'params': {'extractor_args': {'generic': {'impersonate': ['chrome']}}},
+ }]
_SUPPORTED_PAGLETS_REGEX = r'(?:pagelet_group_mall|permalink_video_pagelet|hyperfeed_story_id_[0-9a-f]+)'
_api_config = {
'graphURI': '/api/graphql/',
@@ -898,20 +948,24 @@ class FacebookIE(InfoExtractor):
class FacebookPluginsVideoIE(InfoExtractor):
_VALID_URL = r'https?://(?:[\w-]+\.)?facebook\.com/plugins/video\.php\?.*?\bhref=(?P<id>https.+)'
-
_TESTS = [{
'url': 'https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fgov.sg%2Fvideos%2F10154383743583686%2F&show_text=0&width=560',
- 'md5': '5954e92cdfe51fe5782ae9bda7058a07',
+ 'md5': 'af83aeae1d595f377c6e47a450828155',
'info_dict': {
'id': '10154383743583686',
'ext': 'mp4',
- # TODO: Fix title, uploader
'title': 'What to do during the haze?',
- 'uploader': 'Gov.sg',
- 'upload_date': '20160826',
+ 'concurrent_view_count': int,
+ 'description': 'md5:81839c0979803a014b20798df255ed0b',
+ 'duration': 65.087,
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'timestamp': 1472184808,
+ 'upload_date': '20160826',
+ 'uploader': 'gov.sg',
+ 'uploader_id': '100064718678925',
+ 'view_count': int,
},
- 'add_ie': [FacebookIE.ie_key()],
+ 'expected_warnings': ['Cannot parse data'],
}, {
'url': 'https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fvideo.php%3Fv%3D10204634152394104',
'only_matching': True,
@@ -945,7 +999,7 @@ class FacebookRedirectURLIE(InfoExtractor):
'tags': 'count:11',
'duration': 3332,
'live_status': 'not_live',
- 'thumbnail': 'https://i.ytimg.com/vi/pO8h3EaFRdo/maxresdefault.jpg',
+ 'thumbnail': r're:https?://i\.ytimg\.com/vi/.+',
'channel_url': 'https://www.youtube.com/channel/UCGBpxWJr9FNOcFYA5GkKrMg',
'availability': 'public',
'uploader_url': 'http://www.youtube.com/user/brtvofficial',
@@ -954,8 +1008,7 @@ class FacebookRedirectURLIE(InfoExtractor):
'view_count': int,
'like_count': int,
},
- 'add_ie': ['Youtube'],
- 'params': {'skip_download': 'Youtube'},
+ 'skip': 'Youtube video is now private',
}]
def _real_extract(self, url):
@@ -968,22 +1021,20 @@ class FacebookRedirectURLIE(InfoExtractor):
class FacebookReelIE(InfoExtractor):
_VALID_URL = r'https?://(?:[\w-]+\.)?facebook\.com/reel/(?P<id>\d+)'
IE_NAME = 'facebook:reel'
-
_TESTS = [{
'url': 'https://www.facebook.com/reel/1195289147628387',
- 'md5': 'a53256d10fc2105441fe0c4212ed8cea',
+ 'md5': 'aeb0153ecb2eaacdf2dc2bf88f593fef',
'info_dict': {
'id': '1195289147628387',
'ext': 'mp4',
- 'title': r're:9\.6K views · 355 reactions .+ Let the “Slapathon” commence!! .+ LL COOL J · Mama Said Knock You Out$',
- 'description': r're:When your trying to help your partner .+ LL COOL J · Mama Said Knock You Out$',
- 'uploader': 'Beast Camp Training',
+ 'title': '9.7K views · 352 reactions | When your trying to help your partner out with an arrest and #FAAFO games begin. Let the “Slapathon” commence!! 👊👋 | Beast Camp Training',
+ 'description': 'md5:5a767dc7e78718667b150a7facc4a34f',
+ 'uploader': '9.7K views &#xb7; 352 reactions | When your trying to help your partner out with an arrest and #FAAFO games begin. Let the &#x201c;Slapathon&#x201d; commence!! &#x1f44a;&#x1f44b; | Beast Camp Training',
'uploader_id': '100040874179269',
'duration': 9.579,
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'timestamp': 1637502609,
'upload_date': '20211121',
- 'thumbnail': r're:^https?://.*',
- 'like_count': int,
'comment_count': int,
'repost_count': int,
},
@@ -998,7 +1049,6 @@ class FacebookReelIE(InfoExtractor):
class FacebookAdsIE(InfoExtractor):
_VALID_URL = r'https?://(?:[\w-]+\.)?facebook\.com/ads/library/?\?(?:[^#]+&)?id=(?P<id>\d+)'
IE_NAME = 'facebook:ads'
-
_TESTS = [{
'url': 'https://www.facebook.com/ads/library/?id=899206155126718',
'info_dict': {
@@ -1008,12 +1058,13 @@ class FacebookAdsIE(InfoExtractor):
'description': 'md5:0822724069e3aca97cbed5dabbab282e',
'uploader': 'Kandao',
'uploader_id': '774114102743284',
- 'uploader_url': r're:^https?://.*',
+ 'uploader_url': 'https://facebook.com/KandaoVR',
'timestamp': 1702548330,
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'upload_date': '20231214',
'like_count': int,
},
+ 'skip': 'Invalid URL',
}, {
# key 'watermarked_video_sd_url' missing
'url': 'https://www.facebook.com/ads/library/?id=501152689226254',
@@ -1024,9 +1075,9 @@ class FacebookAdsIE(InfoExtractor):
'description': 'md5:02a446ace7ff8c3c37a2892922492490',
'uploader': 'mat.nawrocki',
'uploader_id': '148586968341456',
- 'uploader_url': r're:^https?://.*',
+ 'uploader_url': 'https://www.instagram.com/_u/mat.nawrocki',
+ 'thumbnail': r're:https?://scontent\.fitm\d-1\.fna\.fbcdn\.net/.+',
'timestamp': 1723452305,
- 'thumbnail': r're:^https?://.*',
'upload_date': '20240812',
'like_count': int,
},
@@ -1037,12 +1088,13 @@ class FacebookAdsIE(InfoExtractor):
'title': 'Jusqu\u2019\u00e0 -25% sur une s\u00e9lection de vins p\u00e9tillants italiens ',
'uploader': 'Eataly Paris Marais',
'uploader_id': '2086668958314152',
- 'uploader_url': r're:^https?://.*',
+ 'uploader_url': 'https://facebook.com/EatalyParisMarais',
'timestamp': 1703571529,
'upload_date': '20231226',
'like_count': int,
},
'playlist_count': 3,
+ 'skip': 'Invalid URL',
}, {
'url': 'https://es-la.facebook.com/ads/library/?id=901230958115569',
'only_matching': True,
diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py
index 652c3b851b..bc34aafa7a 100644
--- a/yt_dlp/extractor/generic.py
+++ b/yt_dlp/extractor/generic.py
@@ -55,2058 +55,531 @@ class GenericIE(InfoExtractor):
_VALID_URL = r'.*'
IE_NAME = 'generic'
_NETRC_MACHINE = False # Suppress username warning
- _TESTS = [
- # Direct link to a video
- {
- 'url': 'http://media.w3.org/2010/05/sintel/trailer.mp4',
- 'md5': '67d406c2bcb6af27fa886f31aa934bbe',
- 'info_dict': {
- 'id': 'trailer',
- 'ext': 'mp4',
- 'title': 'trailer',
- 'upload_date': '20100513',
- 'direct': True,
- 'timestamp': 1273772943.0,
- },
- },
- # Direct link to media delivered compressed (until Accept-Encoding is *)
- {
- 'url': 'http://calimero.tk/muzik/FictionJunction-Parallel_Hearts.flac',
- 'md5': '128c42e68b13950268b648275386fc74',
- 'info_dict': {
- 'id': 'FictionJunction-Parallel_Hearts',
- 'ext': 'flac',
- 'title': 'FictionJunction-Parallel_Hearts',
- 'upload_date': '20140522',
- },
- 'expected_warnings': [
- 'URL could be a direct video link, returning it as such.',
- ],
- 'skip': 'URL invalid',
- },
- # Direct download with broken HEAD
- {
- 'url': 'http://ai-radio.org:8000/radio.opus',
- 'info_dict': {
- 'id': 'radio',
- 'ext': 'opus',
- 'title': 'radio',
- },
- 'params': {
- 'skip_download': True, # infinite live stream
- },
- 'expected_warnings': [
- r'501.*Not Implemented',
- r'400.*Bad Request',
- ],
- },
- # Direct link with incorrect MIME type
- {
- 'url': 'http://ftp.nluug.nl/video/nluug/2014-11-20_nj14/zaal-2/5_Lennart_Poettering_-_Systemd.webm',
- 'md5': '4ccbebe5f36706d85221f204d7eb5913',
- 'info_dict': {
- 'url': 'http://ftp.nluug.nl/video/nluug/2014-11-20_nj14/zaal-2/5_Lennart_Poettering_-_Systemd.webm',
- 'id': '5_Lennart_Poettering_-_Systemd',
- 'ext': 'webm',
- 'title': '5_Lennart_Poettering_-_Systemd',
- 'upload_date': '20141120',
- 'direct': True,
- 'timestamp': 1416498816.0,
- },
- 'expected_warnings': [
- 'URL could be a direct video link, returning it as such.',
- ],
- },
+ _TESTS = [{
+ # Direct link
+ # https://github.com/ytdl-org/youtube-dl/commit/c5fa81fe81ce05cd81c20ff4ea6dac3dccdcbf9d
+ 'url': 'https://media.w3.org/2010/05/sintel/trailer.mp4',
+ 'md5': '67d406c2bcb6af27fa886f31aa934bbe',
+ 'info_dict': {
+ 'id': 'trailer',
+ 'ext': 'mp4',
+ 'title': 'trailer',
+ 'direct': True,
+ 'timestamp': 1273772943,
+ 'upload_date': '20100513',
+ },
+ }, {
+ # Direct link: No HEAD support
+ # https://github.com/ytdl-org/youtube-dl/issues/4032
+ 'url': 'http://ai-radio.org:8000/radio.opus',
+ 'info_dict': {
+ 'id': 'radio',
+ 'ext': 'opus',
+ 'title': 'radio',
+ },
+ 'skip': 'Invalid URL',
+ }, {
+ # Direct link: Incorrect MIME type
+ # https://github.com/ytdl-org/youtube-dl/commit/c5fa81fe81ce05cd81c20ff4ea6dac3dccdcbf9d
+ 'url': 'https://ftp.nluug.nl/video/nluug/2014-11-20_nj14/zaal-2/5_Lennart_Poettering_-_Systemd.webm',
+ 'md5': '4ccbebe5f36706d85221f204d7eb5913',
+ 'info_dict': {
+ 'id': '5_Lennart_Poettering_-_Systemd',
+ 'ext': 'webm',
+ 'title': '5_Lennart_Poettering_-_Systemd',
+ 'direct': True,
+ 'timestamp': 1416498816,
+ 'upload_date': '20141120',
+ },
+ }, {
+ # Direct link: Live HLS; https://castr.com/hlsplayer/
+ # https://github.com/yt-dlp/yt-dlp/pull/6775
+ 'url': 'https://stream-akamai.castr.com/5b9352dbda7b8c769937e459/live_2361c920455111ea85db6911fe397b9e/index.fmp4.m3u8',
+ 'info_dict': {
+ 'id': 'index.fmp4',
+ 'ext': 'mp4',
+ 'title': str,
+ 'live_status': 'is_live',
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ # Compressed when `Accept-Encoding: *`
+ # https://github.com/ytdl-org/youtube-dl/commit/a074e922967fa571d4f1abb1773c711747060f00
+ 'url': 'http://calimero.tk/muzik/FictionJunction-Parallel_Hearts.flac',
+ 'info_dict': {
+ 'id': 'FictionJunction-Parallel_Hearts',
+ 'ext': 'flac',
+ 'title': 'FictionJunction-Parallel_Hearts',
+ },
+ 'skip': 'Invalid URL',
+ }, {
+ # `Content-Encoding: br` when `Accept-Encoding: *`
+ # https://github.com/yt-dlp/yt-dlp/commit/3e01ce744a981d8f19ae77ec695005e7000f4703
+ 'url': 'https://www.extra.cz/cauky-lidi-70-dil-babis-predstavil-pohadky-prymulanek-nebo-andrejovy-nove-saty-ac867',
+ 'md5': 'a9a2cad3e54f78e4680c6deef82417e9',
+ 'info_dict': {
+ 'id': 'cauky-lidi-70-dil-babis-predstavil-pohadky-prymulanek-nebo-andrejovy-nove-saty-ac867',
+ 'ext': 'mp4',
+ 'title': 'čauky lidi 70 finall',
+ 'age_limit': 0,
+ 'description': 'md5:47b2673a5b76780d9d329783e1fbf5aa',
+ 'direct': True,
+ 'duration': 318.0,
+ 'thumbnail': r're:https?://media\.extra\.cz/static/img/.+\.jpg',
+ 'timestamp': 1654513791,
+ 'upload_date': '20220606',
+ },
+ 'params': {'extractor_args': {'generic': {'impersonate': ['chrome']}}},
+ }, {
+ # HLS: `Content-Type: audio/mpegurl`; https://bitmovin.com/demos/stream-test
+ # https://github.com/ytdl-org/youtube-dl/commit/20938f768b16c945c6041ba3c0a7ae1a4e790881
+ 'url': 'https://cdn.bitmovin.com/content/assets/art-of-motion-dash-hls-progressive/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8',
+ 'info_dict': {
+ 'id': 'f08e80da-bf1d-4e3d-8899-f0f6155f6efa',
+ 'ext': 'mp4',
+ 'title': 'f08e80da-bf1d-4e3d-8899-f0f6155f6efa',
+ 'duration': 211,
+ 'timestamp': 1737363648,
+ 'upload_date': '20250120',
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ # HLS: `Content-Type: text/plain`; https://github.com/grafov/m3u8
+ # https://github.com/ytdl-org/youtube-dl/commit/edd9b71c2cca7e5a0df8799710d9ad410ec77d29
+ 'url': 'https://raw.githubusercontent.com/grafov/m3u8/refs/heads/master/sample-playlists/master.m3u8',
+ 'info_dict': {
+ 'id': 'master',
+ 'ext': 'mp4',
+ 'title': 'master',
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ # MPEG-DASH; https://bitmovin.com/demos/stream-test
+ # https://github.com/ytdl-org/youtube-dl/commit/9d939cec48f06a401fb79eb078c1fc50b2aefbe1
+ 'url': 'https://cdn.bitmovin.com/content/assets/art-of-motion-dash-hls-progressive/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd',
+ 'info_dict': {
+ 'id': 'f08e80da-bf1d-4e3d-8899-f0f6155f6efa',
+ 'ext': 'mp4',
+ 'title': 'f08e80da-bf1d-4e3d-8899-f0f6155f6efa',
+ 'timestamp': 1737363728,
+ 'upload_date': '20250120',
+ },
+ 'params': {'skip_download': True},
+ }, {
+ # Live MPEG-DASH; https://livesim2.dashif.org/urlgen/create
+ # https://github.com/yt-dlp/yt-dlp/pull/12256
+ 'url': 'https://livesim2.dashif.org/livesim2/ato_10/testpic_2s/Manifest.mpd',
+ 'info_dict': {
+ 'id': 'Manifest',
+ 'ext': 'mp4',
+ 'title': str,
+ 'live_status': 'is_live',
+ },
+ 'params': {'skip_download': 'livestream'},
+ }, {
+ # SMIL
+ # https://github.com/ytdl-org/youtube-dl/pull/6428
+ 'url': 'https://api.new.livestream.com/accounts/21/events/7954027/videos/166558123.secure.smil',
+ 'info_dict': {
+ 'id': '166558123.secure',
+ 'ext': 'mp4',
+ 'title': '73fb2379-a624-4b6c-bce4-e46086007f2c',
+ },
+ 'params': {'skip_download': 'smil'},
+ }, {
+ # XSPF playlist; https://shellac-archive.ch/de/index.html
+ # https://github.com/ytdl-org/youtube-dl/commit/1de5cd3ba51ce67d9a1cd3b40157058e78e46692
+ 'url': 'https://shellac-archive.ch/repository/xspf/22-AL0019Z.xspf',
+ 'info_dict': {
+ 'id': '22-AL0019Z',
+ },
+ 'playlist_count': 12,
+ 'params': {'skip_download': True},
+ }, {
# RSS feed
- {
- 'url': 'http://phihag.de/2014/youtube-dl/rss2.xml',
- 'info_dict': {
- 'id': 'https://phihag.de/2014/youtube-dl/rss2.xml',
- 'title': 'Zero Punctuation',
- 'description': 're:.*groundbreaking video review series.*',
- },
- 'playlist_mincount': 11,
- },
- # RSS feed with enclosure
- {
- 'url': 'http://podcastfeeds.nbcnews.com/audio/podcast/MSNBC-MADDOW-NETCAST-M4V.xml',
- 'info_dict': {
- 'id': 'http://podcastfeeds.nbcnews.com/nbcnews/video/podcast/MSNBC-MADDOW-NETCAST-M4V.xml',
- 'title': 'MSNBC Rachel Maddow (video)',
- 'description': 're:.*her unique approach to storytelling.*',
- },
- 'playlist': [{
- 'info_dict': {
- 'ext': 'mov',
- 'id': 'pdv_maddow_netcast_mov-12-03-2020-223726',
- 'title': 'MSNBC Rachel Maddow (video) - 12-03-2020-223726',
- 'description': 're:.*her unique approach to storytelling.*',
- 'upload_date': '20201204',
- },
- }],
- 'skip': 'Dead link',
- },
- # RSS feed with item with description and thumbnails
- {
- 'url': 'https://anchor.fm/s/dd00e14/podcast/rss',
- 'info_dict': {
- 'id': 'https://anchor.fm/s/dd00e14/podcast/rss',
- 'title': 're:.*100% Hydrogen.*',
- 'description': 're:.*In this episode.*',
- },
- 'playlist': [{
- 'info_dict': {
- 'ext': 'm4a',
- 'id': '818a5d38-01cd-152f-2231-ee479677fa82',
- 'title': 're:Hydrogen!',
- 'description': 're:.*In this episode we are going.*',
- 'timestamp': 1567977776,
- 'upload_date': '20190908',
- 'duration': 423,
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'episode_number': 1,
- 'season_number': 1,
- 'age_limit': 0,
- 'season': 'Season 1',
- 'direct': True,
- 'episode': 'Episode 1',
- },
- }],
- 'params': {
- 'skip_download': True,
- },
- },
- # RSS feed with enclosures and unsupported link URLs
- {
- 'url': 'http://www.hellointernet.fm/podcast?format=rss',
- 'info_dict': {
- 'id': 'http://www.hellointernet.fm/podcast?format=rss',
- 'description': 'CGP Grey and Brady Haran talk about YouTube, life, work, whatever.',
- 'title': 'Hello Internet',
- },
- 'playlist_mincount': 100,
- },
- # RSS feed with guid
- {
- 'url': 'https://www.omnycontent.com/d/playlist/a7b4f8fe-59d9-4afc-a79a-a90101378abf/bf2c1d80-3656-4449-9d00-a903004e8f84/efbff746-e7c1-463a-9d80-a903004e8f8f/podcast.rss',
- 'info_dict': {
- 'id': 'https://www.omnycontent.com/d/playlist/a7b4f8fe-59d9-4afc-a79a-a90101378abf/bf2c1d80-3656-4449-9d00-a903004e8f84/efbff746-e7c1-463a-9d80-a903004e8f8f/podcast.rss',
- 'description': 'md5:be809a44b63b0c56fb485caf68685520',
- 'title': 'The Little Red Podcast',
- },
- 'playlist_mincount': 76,
- },
- # SMIL from http://videolectures.net/promogram_igor_mekjavic_eng
- {
- 'url': 'http://videolectures.net/promogram_igor_mekjavic_eng/video/1/smil.xml',
- 'info_dict': {
- 'id': 'smil',
- 'ext': 'mp4',
- 'title': 'Automatics, robotics and biocybernetics',
- 'description': 'md5:815fc1deb6b3a2bff99de2d5325be482',
- 'upload_date': '20130627',
- 'formats': 'mincount:16',
- 'subtitles': 'mincount:1',
- },
- 'params': {
- 'force_generic_extractor': True,
- 'skip_download': True,
- },
- },
- # SMIL from http://www1.wdr.de/mediathek/video/livestream/index.html
- {
- 'url': 'http://metafilegenerator.de/WDR/WDR_FS/hds/hds.smil',
- 'info_dict': {
- 'id': 'hds',
- 'ext': 'flv',
- 'title': 'hds',
- 'formats': 'mincount:1',
- },
- 'params': {
- 'skip_download': True,
- },
- },
- # SMIL from https://www.restudy.dk/video/play/id/1637
- {
- 'url': 'https://www.restudy.dk/awsmedia/SmilDirectory/video_1637.xml',
- 'info_dict': {
- 'id': 'video_1637',
- 'ext': 'flv',
- 'title': 'video_1637',
- 'formats': 'mincount:3',
- },
- 'params': {
- 'skip_download': True,
- },
- },
- # SMIL from http://adventure.howstuffworks.com/5266-cool-jobs-iditarod-musher-video.htm
- {
- 'url': 'http://services.media.howstuffworks.com/videos/450221/smil-service.smil',
- 'info_dict': {
- 'id': 'smil-service',
- 'ext': 'flv',
- 'title': 'smil-service',
- 'formats': 'mincount:1',
- },
- 'params': {
- 'skip_download': True,
- },
- },
- # SMIL from http://new.livestream.com/CoheedandCambria/WebsterHall/videos/4719370
- {
- 'url': 'http://api.new.livestream.com/accounts/1570303/events/1585861/videos/4719370.smil',
- 'info_dict': {
- 'id': '4719370',
- 'ext': 'mp4',
- 'title': '571de1fd-47bc-48db-abf9-238872a58d1f',
- 'formats': 'mincount:3',
- },
- 'params': {
- 'skip_download': True,
- },
- },
- # XSPF playlist from http://www.telegraaf.nl/tv/nieuws/binnenland/24353229/__Tikibad_ontruimd_wegens_brand__.html
- {
- 'url': 'http://www.telegraaf.nl/xml/playlist/2015/8/7/mZlp2ctYIUEB.xspf',
- 'info_dict': {
- 'id': 'mZlp2ctYIUEB',
- 'ext': 'mp4',
- 'title': 'Tikibad ontruimd wegens brand',
- 'description': 'md5:05ca046ff47b931f9b04855015e163a4',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 33,
- },
- 'params': {
- 'skip_download': True,
- },
- 'skip': '404 Not Found',
- },
- # MPD from http://dash-mse-test.appspot.com/media.html
- {
- 'url': 'http://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-manifest.mpd',
- 'md5': '4b57baab2e30d6eb3a6a09f0ba57ef53',
- 'info_dict': {
- 'id': 'car-20120827-manifest',
- 'ext': 'mp4',
- 'title': 'car-20120827-manifest',
- 'formats': 'mincount:9',
- 'upload_date': '20130904',
- 'timestamp': 1378272859.0,
- },
- },
- # Live DASH MPD
- {
- 'url': 'https://livesim2.dashif.org/livesim2/ato_10/testpic_2s/Manifest.mpd',
- 'info_dict': {
- 'id': 'Manifest',
- 'ext': 'mp4',
- 'title': r're:Manifest \d{4}-\d{2}-\d{2} \d{2}:\d{2}$',
- 'live_status': 'is_live',
- },
- 'params': {
- 'skip_download': 'livestream',
- },
- },
- # m3u8 served with Content-Type: audio/x-mpegURL; charset=utf-8
- {
- 'url': 'http://once.unicornmedia.com/now/master/playlist/bb0b18ba-64f5-4b1b-a29f-0ac252f06b68/77a785f3-5188-4806-b788-0893a61634ed/93677179-2d99-4ef4-9e17-fe70d49abfbf/content.m3u8',
- 'info_dict': {
- 'id': 'content',
- 'ext': 'mp4',
- 'title': 'content',
- 'formats': 'mincount:8',
- },
- 'params': {
- # m3u8 downloads
- 'skip_download': True,
- },
- 'skip': 'video gone',
- },
- # m3u8 served with Content-Type: text/plain
- {
- 'url': 'http://www.nacentapps.com/m3u8/index.m3u8',
- 'info_dict': {
- 'id': 'index',
- 'ext': 'mp4',
- 'title': 'index',
- 'upload_date': '20140720',
- 'formats': 'mincount:11',
- },
- 'params': {
- # m3u8 downloads
- 'skip_download': True,
- },
- 'skip': 'video gone',
- },
- # google redirect
- {
- 'url': 'http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCUQtwIwAA&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcmQHVoWB5FY&ei=F-sNU-LLCaXk4QT52ICQBQ&usg=AFQjCNEw4hL29zgOohLXvpJ-Bdh2bils1Q&bvm=bv.61965928,d.bGE',
- 'info_dict': {
- 'id': 'cmQHVoWB5FY',
- 'ext': 'mp4',
- 'upload_date': '20130224',
- 'uploader_id': '@TheVerge',
- 'description': r're:^Chris Ziegler takes a look at the\.*',
- 'uploader': 'The Verge',
- 'title': 'First Firefox OS phones side-by-side',
- },
- 'params': {
- 'skip_download': False,
- },
- },
- {
- # redirect in Refresh HTTP header
- 'url': 'https://www.facebook.com/l.php?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpO8h3EaFRdo&h=TAQHsoToz&enc=AZN16h-b6o4Zq9pZkCCdOLNKMN96BbGMNtcFwHSaazus4JHT_MFYkAA-WARTX2kvsCIdlAIyHZjl6d33ILIJU7Jzwk_K3mcenAXoAzBNoZDI_Q7EXGDJnIhrGkLXo_LJ_pAa2Jzbx17UHMd3jAs--6j2zaeto5w9RTn8T_1kKg3fdC5WPX9Dbb18vzH7YFX0eSJmoa6SP114rvlkw6pkS1-T&s=1',
- 'info_dict': {
- 'id': 'pO8h3EaFRdo',
- 'ext': 'mp4',
- 'title': 'Tripeo Boiler Room x Dekmantel Festival DJ Set',
- 'description': 'md5:6294cc1af09c4049e0652b51a2df10d5',
- 'upload_date': '20150917',
- 'uploader_id': 'brtvofficial',
- 'uploader': 'Boiler Room',
- },
- 'params': {
- 'skip_download': False,
- },
- },
- {
- 'url': 'http://www.hodiho.fr/2013/02/regis-plante-sa-jeep.html',
- 'md5': '85b90ccc9d73b4acd9138d3af4c27f89',
- 'info_dict': {
- 'id': '13601338388002',
- 'ext': 'mp4',
- 'uploader': 'www.hodiho.fr',
- 'title': 'R\u00e9gis plante sa Jeep',
- },
- },
- # bandcamp page with custom domain
- {
- 'add_ie': ['Bandcamp'],
- 'url': 'http://bronyrock.com/track/the-pony-mash',
- 'info_dict': {
- 'id': '3235767654',
- 'ext': 'mp3',
- 'title': 'The Pony Mash',
- 'uploader': 'M_Pallante',
- },
- 'skip': 'There is a limit of 200 free downloads / month for the test song',
- },
- # embed.ly video
- {
- 'url': 'http://www.tested.com/science/weird/460206-tested-grinding-coffee-2000-frames-second/',
- 'info_dict': {
- 'id': '9ODmcdjQcHQ',
- 'ext': 'mp4',
- 'title': 'Tested: Grinding Coffee at 2000 Frames Per Second',
- 'upload_date': '20140225',
- 'description': 'md5:06a40fbf30b220468f1e0957c0f558ff',
- 'uploader': 'Tested',
- 'uploader_id': 'testedcom',
- },
- # No need to test YoutubeIE here
- 'params': {
- 'skip_download': True,
- },
- },
- # funnyordie embed
- {
- 'url': 'http://www.theguardian.com/world/2014/mar/11/obama-zach-galifianakis-between-two-ferns',
- 'info_dict': {
- 'id': '18e820ec3f',
- 'ext': 'mp4',
- 'title': 'Between Two Ferns with Zach Galifianakis: President Barack Obama',
- 'description': 'Episode 18: President Barack Obama sits down with Zach Galifianakis for his most memorable interview yet.',
- },
- # HEAD requests lead to endless 301, while GET is OK
- 'expected_warnings': ['301'],
- },
- # RUTV embed
- {
- 'url': 'http://www.rg.ru/2014/03/15/reg-dfo/anklav-anons.html',
- 'info_dict': {
- 'id': '776940',
- 'ext': 'mp4',
- 'title': 'Охотское море стало целиком российским',
- 'description': 'md5:5ed62483b14663e2a95ebbe115eb8f43',
- },
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
- },
- # TVC embed
- {
- 'url': 'http://sch1298sz.mskobr.ru/dou_edu/karamel_ki/filial_galleries/video/iframe_src_http_tvc_ru_video_iframe_id_55304_isplay_false_acc_video_id_channel_brand_id_11_show_episodes_episode_id_32307_frameb/',
- 'info_dict': {
- 'id': '55304',
- 'ext': 'mp4',
- 'title': 'Дошкольное воспитание',
- },
- },
- # SportBox embed
- {
- 'url': 'http://www.vestifinance.ru/articles/25753',
- 'info_dict': {
- 'id': '25753',
- 'title': 'Прямые трансляции с Форума-выставки "Госзаказ-2013"',
- },
- 'playlist': [{
- 'info_dict': {
- 'id': '370908',
- 'title': 'Госзаказ. День 3',
- 'ext': 'mp4',
- },
- }, {
- 'info_dict': {
- 'id': '370905',
- 'title': 'Госзаказ. День 2',
- 'ext': 'mp4',
- },
- }, {
- 'info_dict': {
- 'id': '370902',
- 'title': 'Госзаказ. День 1',
- 'ext': 'mp4',
- },
- }],
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
- },
- # Myvi.ru embed
- {
- 'url': 'http://www.kinomyvi.tv/news/detail/Pervij-dublirovannij-trejler--Uzhastikov-_nOw1',
- 'info_dict': {
- 'id': 'f4dafcad-ff21-423d-89b5-146cfd89fa1e',
- 'ext': 'mp4',
- 'title': 'Ужастики, русский трейлер (2015)',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 153,
- },
- 'skip': 'Site dead',
- },
- # XHamster embed
- {
- 'url': 'http://www.numisc.com/forum/showthread.php?11696-FM15-which-pumiscer-was-this-%28-vid-%29-%28-alfa-as-fuck-srx-%29&s=711f5db534502e22260dec8c5e2d66d8',
- 'info_dict': {
- 'id': 'showthread',
- 'title': '[NSFL] [FM15] which pumiscer was this ( vid ) ( alfa as fuck srx )',
- },
- 'playlist_mincount': 7,
- # This forum does not allow <iframe> syntaxes anymore
- # Now HTML tags are displayed as-is
- 'skip': 'No videos on this page',
- },
- # Embedded TED video
- {
- 'url': 'http://en.support.wordpress.com/videos/ted-talks/',
- 'md5': '65fdff94098e4a607385a60c5177c638',
- 'info_dict': {
- 'id': '1969',
- 'ext': 'mp4',
- 'title': 'Hidden miracles of the natural world',
- 'uploader': 'Louie Schwartzberg',
- 'description': 'md5:8145d19d320ff3e52f28401f4c4283b9',
- },
- },
- # nowvideo embed hidden behind percent encoding
- {
- 'url': 'http://www.waoanime.tv/the-super-dimension-fortress-macross-episode-1/',
- 'md5': '2baf4ddd70f697d94b1c18cf796d5107',
- 'info_dict': {
- 'id': '06e53103ca9aa',
- 'ext': 'flv',
- 'title': 'Macross Episode 001 Watch Macross Episode 001 onl',
- 'description': 'No description',
- },
- },
- # arte embed
- {
- 'url': 'http://www.tv-replay.fr/redirection/20-03-14/x-enius-arte-10753389.html',
- 'md5': '7653032cbb25bf6c80d80f217055fa43',
- 'info_dict': {
- 'id': '048195-004_PLUS7-F',
- 'ext': 'flv',
- 'title': 'X:enius',
- 'description': 'md5:d5fdf32ef6613cdbfd516ae658abf168',
- 'upload_date': '20140320',
- },
- 'params': {
- 'skip_download': 'Requires rtmpdump',
- },
- 'skip': 'video gone',
- },
- # francetv embed
- {
- 'url': 'http://www.tsprod.com/replay-du-concert-alcaline-de-calogero',
- 'info_dict': {
- 'id': 'EV_30231',
- 'ext': 'mp4',
- 'title': 'Alcaline, le concert avec Calogero',
- 'description': 'md5:61f08036dcc8f47e9cfc33aed08ffaff',
- 'upload_date': '20150226',
- 'timestamp': 1424989860,
- 'duration': 5400,
- },
- 'params': {
- # m3u8 downloads
- 'skip_download': True,
- },
- 'expected_warnings': [
- 'Forbidden',
- ],
- },
- # Condé Nast embed
- {
- 'url': 'http://www.wired.com/2014/04/honda-asimo/',
- 'md5': 'ba0dfe966fa007657bd1443ee672db0f',
- 'info_dict': {
- 'id': '53501be369702d3275860000',
- 'ext': 'mp4',
- 'title': 'Honda’s New Asimo Robot Is More Human Than Ever',
- },
- },
- # Dailymotion embed
- {
- 'url': 'http://www.spi0n.com/zap-spi0n-com-n216/',
- 'md5': '441aeeb82eb72c422c7f14ec533999cd',
- 'info_dict': {
- 'id': 'k2mm4bCdJ6CQ2i7c8o2',
- 'ext': 'mp4',
- 'title': 'Le Zap de Spi0n n°216 - Zapping du Web',
- 'description': 'md5:faf028e48a461b8b7fad38f1e104b119',
- 'uploader': 'Spi0n',
- 'uploader_id': 'xgditw',
- 'upload_date': '20140425',
- 'timestamp': 1398441542,
- },
- 'add_ie': ['Dailymotion'],
- },
- # DailyMail embed
- {
- 'url': 'http://www.bumm.sk/krimi/2017/07/05/biztonsagi-kamera-buktatta-le-az-agg-ferfit-utlegelo-apolot',
- 'info_dict': {
- 'id': '1495629',
- 'ext': 'mp4',
- 'title': 'Care worker punches elderly dementia patient in head 11 times',
- 'description': 'md5:3a743dee84e57e48ec68bf67113199a5',
- },
- 'add_ie': ['DailyMail'],
- 'params': {
- 'skip_download': True,
- },
- },
- # YouTube embed
- {
- 'url': 'http://www.badzine.de/ansicht/datum/2014/06/09/so-funktioniert-die-neue-englische-badminton-liga.html',
- 'info_dict': {
- 'id': 'FXRb4ykk4S0',
- 'ext': 'mp4',
- 'title': 'The NBL Auction 2014',
- 'uploader': 'BADMINTON England',
- 'uploader_id': 'BADMINTONEvents',
- 'upload_date': '20140603',
- 'description': 'md5:9ef128a69f1e262a700ed83edb163a73',
- },
- 'add_ie': ['Youtube'],
- 'params': {
- 'skip_download': True,
- },
- },
- # MTVServices embed
- {
- 'url': 'http://www.vulture.com/2016/06/new-key-peele-sketches-released.html',
- 'md5': 'ca1aef97695ef2c1d6973256a57e5252',
- 'info_dict': {
- 'id': '769f7ec0-0692-4d62-9b45-0d88074bffc1',
- 'ext': 'mp4',
- 'title': 'Key and Peele|October 10, 2012|2|203|Liam Neesons - Uncensored',
- 'description': 'Two valets share their love for movie star Liam Neesons.',
- 'timestamp': 1349922600,
- 'upload_date': '20121011',
- },
- },
- # YouTube embed via <data-embed-url="">
- {
- 'url': 'https://play.google.com/store/apps/details?id=com.gameloft.android.ANMP.GloftA8HM',
- 'info_dict': {
- 'id': '4vAffPZIT44',
- 'ext': 'mp4',
- 'title': 'Asphalt 8: Airborne - Update - Welcome to Dubai!',
- 'uploader': 'Gameloft',
- 'uploader_id': 'gameloft',
- 'upload_date': '20140828',
- 'description': 'md5:c80da9ed3d83ae6d1876c834de03e1c4',
- },
- 'params': {
- 'skip_download': True,
- },
- },
+ # https://github.com/ytdl-org/youtube-dl/commit/c5fa81fe81ce05cd81c20ff4ea6dac3dccdcbf9d
+ 'url': 'http://phihag.de/2014/youtube-dl/rss2.xml',
+ 'info_dict': {
+ 'id': 'https://phihag.de/2014/youtube-dl/rss2.xml',
+ 'title': 'Zero Punctuation',
+ 'description': 'md5:512ae5f840e52eb3c0d08d4bed08eb3e',
+ },
+ 'playlist_mincount': 11,
+ }, {
+ # RSS feed: Includes enclosure, description, and thumbnails
+ # https://github.com/ytdl-org/youtube-dl/pull/27405
+ 'url': 'https://anchor.fm/s/dd00e14/podcast/rss',
+ 'info_dict': {
+ 'id': 'https://anchor.fm/s/dd00e14/podcast/rss',
+ 'title': '100% Hydrogen ',
+ 'description': 'md5:7ec96327f8b91a2549a2e74f064022a1',
+ },
+ 'playlist_count': 1,
+ 'params': {'skip_download': True},
+ }, {
+ # RSS feed: Includes guid
+ 'url': 'https://www.omnycontent.com/d/playlist/a7b4f8fe-59d9-4afc-a79a-a90101378abf/bf2c1d80-3656-4449-9d00-a903004e8f84/efbff746-e7c1-463a-9d80-a903004e8f8f/podcast.rss',
+ 'info_dict': {
+ 'id': 'https://www.omnycontent.com/d/playlist/a7b4f8fe-59d9-4afc-a79a-a90101378abf/bf2c1d80-3656-4449-9d00-a903004e8f84/efbff746-e7c1-463a-9d80-a903004e8f8f/podcast.rss',
+ 'title': 'The Little Red Podcast',
+ 'description': 'md5:be809a44b63b0c56fb485caf68685520',
+ },
+ 'playlist_mincount': 76,
+ }, {
+ # RSS feed: Includes enclosure and unsupported URLs
+ # https://github.com/ytdl-org/youtube-dl/pull/16189
+ 'url': 'https://www.interfax.ru/rss.asp',
+ 'info_dict': {
+ 'id': 'https://www.interfax.ru/rss.asp',
+ 'title': 'Интерфакс',
+ 'description': 'md5:49b6b8905772efba21923942bbc0444c',
+ },
+ 'playlist_mincount': 25,
+ }, {
+ # Webpage starts with a duplicate UTF-8 BOM
+ # https://github.com/yt-dlp/yt-dlp/commit/80e8493ee7c3083f4e215794e4a67ba5265f24f7
+ 'url': 'https://www.filmarkivet.se/movies/paris-d-moll/',
+ 'md5': 'df02cadc719dcc63d43288366f037754',
+ 'info_dict': {
+ 'id': 'paris-d-moll',
+ 'ext': 'mp4',
+ 'title': 'Paris d-moll',
+ 'age_limit': 0,
+ 'description': 'md5:319e37ea5542293db37e1e13072fe330',
+ 'thumbnail': r're:https?://www\.filmarkivet\.se/wp-content/uploads/.+\.jpg',
+ },
+ }, {
+ # Multiple HTML5 videos
+ # https://github.com/ytdl-org/youtube-dl/pull/14107
+ 'url': 'https://www.dagbladet.no/nyheter/etter-ett-ars-planlegging-klaffet-endelig-alt---jeg-matte-ta-en-liten-dans/60413035',
+ 'info_dict': {
+ 'id': '60413035',
+ 'title': 'Etter ett års planlegging, klaffet endelig alt: - Jeg måtte ta en liten dans',
+ 'age_limit': 0,
+ 'description': 'md5:bbb4e12e42e78609a74fd421b93b1239',
+ 'thumbnail': r're:https?://www\.dagbladet\.no/images/.+',
+ },
+ 'playlist_count': 2,
+ }, {
+ # Cinerama Player
+ # https://github.com/ytdl-org/youtube-dl/commit/501f13fbf3d1f7225f91e3e0ad008df2cd3219f1
+ 'url': 'https://www.abc.net.au/res/libraries/cinerama2/examples/single_clip.htm',
+ 'info_dict': {
+ 'id': 'single_clip',
+ 'title': 'Single Clip player examples',
+ 'age_limit': 0,
+ },
+ 'playlist_count': 3,
+ }, {
+ # FIXME: Improve extraction
# Flowplayer
- {
- 'url': 'http://www.handjobhub.com/video/busty-blonde-siri-tit-fuck-while-wank-6313.html',
- 'md5': '9d65602bf31c6e20014319c7d07fba27',
- 'info_dict': {
- 'id': '5123ea6d5e5a7',
- 'ext': 'mp4',
- 'age_limit': 18,
- 'uploader': 'www.handjobhub.com',
- 'title': 'Busty Blonde Siri Tit Fuck While Wank at HandjobHub.com',
- },
- },
- # MLB embed
- {
- 'url': 'http://umpire-empire.com/index.php/topic/58125-laz-decides-no-thats-low/',
- 'md5': '96f09a37e44da40dd083e12d9a683327',
- 'info_dict': {
- 'id': '33322633',
- 'ext': 'mp4',
- 'title': 'Ump changes call to ball',
- 'description': 'md5:71c11215384298a172a6dcb4c2e20685',
- 'duration': 48,
- 'timestamp': 1401537900,
- 'upload_date': '20140531',
- 'thumbnail': r're:^https?://.*\.jpg$',
- },
- },
- # Wistia standard embed (async)
- {
- 'url': 'https://www.getdrip.com/university/brennan-dunn-drip-workshop/',
- 'info_dict': {
- 'id': '807fafadvk',
- 'ext': 'mp4',
- 'title': 'Drip Brennan Dunn Workshop',
- 'description': 'a JV Webinars video from getdrip-1',
- 'duration': 4986.95,
- 'timestamp': 1463607249,
- 'upload_date': '20160518',
- },
- 'params': {
- 'skip_download': True,
- },
- 'skip': 'webpage 404 not found',
- },
- # Soundcloud embed
- {
- 'url': 'http://nakedsecurity.sophos.com/2014/10/29/sscc-171-are-you-sure-that-1234-is-a-bad-password-podcast/',
- 'info_dict': {
- 'id': '174391317',
- 'ext': 'mp3',
- 'description': 'md5:ff867d6b555488ad3c52572bb33d432c',
- 'uploader': 'Sophos Security',
- 'title': 'Chet Chat 171 - Oct 29, 2014',
- 'upload_date': '20141029',
- },
- },
- # Soundcloud multiple embeds
- {
- 'url': 'http://www.guitarplayer.com/lessons/1014/legato-workout-one-hour-to-more-fluid-performance---tab/52809',
- 'info_dict': {
- 'id': '52809',
- 'title': 'Guitar Essentials: Legato Workout—One-Hour to Fluid Performance | TAB + AUDIO',
- },
- 'playlist_mincount': 7,
- },
- # TuneIn station embed
- {
- 'url': 'http://radiocnrv.com/promouvoir-radio-cnrv/',
- 'info_dict': {
- 'id': '204146',
- 'ext': 'mp3',
- 'title': 'CNRV',
- 'location': 'Paris, France',
- 'is_live': True,
- },
- 'params': {
- # Live stream
- 'skip_download': True,
- },
- },
- # Livestream embed
- {
- 'url': 'http://www.esa.int/Our_Activities/Space_Science/Rosetta/Philae_comet_touch-down_webcast',
- 'info_dict': {
- 'id': '67864563',
- 'ext': 'flv',
- 'upload_date': '20141112',
- 'title': 'Rosetta #CometLanding webcast HL 10',
- },
- },
- # Another Livestream embed, without 'new.' in URL
- {
- 'url': 'https://www.freespeech.org/',
- 'info_dict': {
- 'id': '123537347',
- 'ext': 'mp4',
- 'title': 're:^FSTV [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
- },
- 'params': {
- # Live stream
- 'skip_download': True,
- },
- },
- # LazyYT
- {
- 'url': 'https://skiplagged.com/',
- 'info_dict': {
- 'id': 'skiplagged',
- 'title': 'Skiplagged: The smart way to find cheap flights',
- },
- 'playlist_mincount': 1,
- 'add_ie': ['Youtube'],
- },
- # Libsyn embed
- {
- 'url': 'http://undergroundwellness.com/podcasts/306-5-steps-to-permanent-gut-healing/',
- 'info_dict': {
- 'id': '3793998',
- 'ext': 'mp3',
- 'upload_date': '20141126',
- 'title': 'Underground Wellness Radio - Jack Tips: 5 Steps to Permanent Gut Healing',
- 'thumbnail': 'https://assets.libsyn.com/secure/item/3793998/?height=90&width=90',
- 'duration': 3989.0,
- },
- },
- # Cinerama player
- {
- 'url': 'http://www.abc.net.au/7.30/content/2015/s4164797.htm',
- 'info_dict': {
- 'id': '730m_DandD_1901_512k',
- 'ext': 'mp4',
- 'uploader': 'www.abc.net.au',
- 'title': 'Game of Thrones with dice - Dungeons and Dragons fantasy role-playing game gets new life - 19/01/2015',
- },
- },
- # embedded viddler video
- {
- 'url': 'http://deadspin.com/i-cant-stop-watching-john-wall-chop-the-nuggets-with-th-1681801597',
- 'info_dict': {
- 'id': '4d03aad9',
- 'ext': 'mp4',
- 'uploader': 'deadspin',
- 'title': 'WALL-TO-GORTAT',
- 'timestamp': 1422285291,
- 'upload_date': '20150126',
- },
- 'add_ie': ['Viddler'],
- },
- # Libsyn embed
- {
- 'url': 'http://thedailyshow.cc.com/podcast/episodetwelve',
- 'info_dict': {
- 'id': '3377616',
- 'ext': 'mp3',
- 'title': "The Daily Show Podcast without Jon Stewart - Episode 12: Bassem Youssef: Egypt's Jon Stewart",
- 'description': 'md5:601cb790edd05908957dae8aaa866465',
- 'upload_date': '20150220',
- },
- 'skip': 'All The Daily Show URLs now redirect to http://www.cc.com/shows/',
- },
- # jwplayer YouTube
- {
- 'url': 'http://media.nationalarchives.gov.uk/index.php/webinar-using-discovery-national-archives-online-catalogue/',
- 'info_dict': {
- 'id': 'Mrj4DVp2zeA',
- 'ext': 'mp4',
- 'upload_date': '20150212',
- 'uploader': 'The National Archives UK',
- 'description': 'md5:8078af856dca76edc42910b61273dbbf',
- 'uploader_id': 'NationalArchives08',
- 'title': 'Webinar: Using Discovery, The National Archives’ online catalogue',
- },
- },
- # jwplayer rtmp
- {
- 'url': 'http://www.suffolk.edu/sjc/live.php',
- 'info_dict': {
- 'id': 'live',
- 'ext': 'flv',
- 'title': 'Massachusetts Supreme Judicial Court Oral Arguments',
- 'uploader': 'www.suffolk.edu',
- },
- 'params': {
- 'skip_download': True,
- },
- 'skip': 'Only has video a few mornings per month, see http://www.suffolk.edu/sjc/',
- },
- # jwplayer with only the json URL
- {
- 'url': 'https://www.hollywoodreporter.com/news/general-news/dunkirk-team-reveals-what-christopher-nolan-said-oscar-win-meet-your-oscar-winner-1092454',
- 'info_dict': {
- 'id': 'TljWkvWH',
- 'ext': 'mp4',
- 'upload_date': '20180306',
- 'title': 'md5:91eb1862f6526415214f62c00b453936',
- 'description': 'md5:73048ae50ae953da10549d1d2fe9b3aa',
- 'timestamp': 1520367225,
- },
- 'params': {
- 'skip_download': True,
- },
- },
- # Complex jwplayer
- {
- 'url': 'http://www.indiedb.com/games/king-machine/videos',
- 'info_dict': {
- 'id': 'videos',
- 'ext': 'mp4',
- 'title': 'king machine trailer 1',
- 'description': 'Browse King Machine videos & audio for sweet media. Your eyes will thank you.',
- 'thumbnail': r're:^https?://.*\.jpg$',
- },
- },
- {
- # Youtube embed, formerly: Video.js embed, multiple formats
- 'url': 'http://ortcam.com/solidworks-урок-6-настройка-чертежа_33f9b7351.html',
- 'info_dict': {
- 'id': 'yygqldloqIk',
- 'ext': 'mp4',
- 'title': 'SolidWorks. Урок 6 Настройка чертежа',
- 'description': 'md5:baf95267792646afdbf030e4d06b2ab3',
- 'upload_date': '20130314',
- 'uploader': 'PROстое3D',
- 'uploader_id': 'PROstoe3D',
- },
- 'params': {
- 'skip_download': True,
- },
- },
- {
- # Video.js embed, single format
- 'url': 'https://www.vooplayer.com/v3/watch/watch.php?v=NzgwNTg=',
- 'info_dict': {
- 'id': 'watch',
- 'ext': 'mp4',
- 'title': 'Step 1 - Good Foundation',
- 'description': 'md5:d1e7ff33a29fc3eb1673d6c270d344f4',
- },
- 'params': {
- 'skip_download': True,
- },
- 'skip': '404 Not Found',
- },
- # rtl.nl embed
- {
- 'url': 'http://www.rtlnieuws.nl/nieuws/buitenland/aanslagen-kopenhagen',
- 'playlist_mincount': 5,
- 'info_dict': {
- 'id': 'aanslagen-kopenhagen',
- 'title': 'Aanslagen Kopenhagen',
- },
- },
- # Zapiks embed
- {
- 'url': 'http://www.skipass.com/news/116090-bon-appetit-s5ep3-baqueira-mi-cor.html',
- 'info_dict': {
- 'id': '118046',
- 'ext': 'mp4',
- 'title': 'EP3S5 - Bon Appétit - Baqueira Mi Corazon !',
- },
- },
- # Kaltura embed (different embed code)
- {
- 'url': 'http://www.premierchristianradio.com/Shows/Saturday/Unbelievable/Conference-Videos/Os-Guinness-Is-It-Fools-Talk-Unbelievable-Conference-2014',
- 'info_dict': {
- 'id': '1_a52wc67y',
- 'ext': 'flv',
- 'upload_date': '20150127',
- 'uploader_id': 'PremierMedia',
- 'timestamp': int,
- 'title': 'Os Guinness // Is It Fools Talk? // Unbelievable? Conference 2014',
- },
- },
- # Kaltura embed with single quotes
- {
- 'url': 'http://fod.infobase.com/p_ViewPlaylist.aspx?AssignmentID=NUN8ZY',
- 'info_dict': {
- 'id': '0_izeg5utt',
- 'ext': 'mp4',
- 'title': '35871',
- 'timestamp': 1355743100,
- 'upload_date': '20121217',
- 'uploader_id': '[email protected]',
- },
- 'add_ie': ['Kaltura'],
- },
- {
- # Kaltura embedded via quoted entry_id
- 'url': 'https://www.oreilly.com/ideas/my-cloud-makes-pretty-pictures',
- 'info_dict': {
- 'id': '0_utuok90b',
- 'ext': 'mp4',
- 'title': '06_matthew_brender_raj_dutt',
- 'timestamp': 1466638791,
- 'upload_date': '20160622',
- },
- 'add_ie': ['Kaltura'],
- 'expected_warnings': [
- 'Could not send HEAD request',
- ],
- 'params': {
- 'skip_download': True,
- },
- },
- {
- # Kaltura embedded, some fileExt broken (#11480)
- 'url': 'http://www.cornell.edu/video/nima-arkani-hamed-standard-models-of-particle-physics',
- 'info_dict': {
- 'id': '1_sgtvehim',
- 'ext': 'mp4',
- 'title': 'Our "Standard Models" of particle physics and cosmology',
- 'description': 'md5:67ea74807b8c4fea92a6f38d6d323861',
- 'timestamp': 1321158993,
- 'upload_date': '20111113',
- 'uploader_id': 'kps1',
- },
- 'add_ie': ['Kaltura'],
- },
- {
- # Kaltura iframe embed
- 'url': 'http://www.gsd.harvard.edu/event/i-m-pei-a-centennial-celebration/',
- 'md5': 'ae5ace8eb09dc1a35d03b579a9c2cc44',
- 'info_dict': {
- 'id': '0_f2cfbpwy',
- 'ext': 'mp4',
- 'title': 'I. M. Pei: A Centennial Celebration',
- 'description': 'md5:1db8f40c69edc46ca180ba30c567f37c',
- 'upload_date': '20170403',
- 'uploader_id': 'batchUser',
- 'timestamp': 1491232186,
- },
- 'add_ie': ['Kaltura'],
- },
- {
- # Kaltura iframe embed, more sophisticated
- 'url': 'http://www.cns.nyu.edu/~eero/math-tools/Videos/lecture-05sep2017.html',
- 'info_dict': {
- 'id': '1_9gzouybz',
- 'ext': 'mp4',
- 'title': 'lecture-05sep2017',
- 'description': 'md5:40f347d91fd4ba047e511c5321064b49',
- 'upload_date': '20170913',
- 'uploader_id': 'eps2',
- 'timestamp': 1505340777,
- },
- 'params': {
- 'skip_download': True,
- },
- 'add_ie': ['Kaltura'],
- },
- {
- # meta twitter:player
- 'url': 'http://thechive.com/2017/12/08/all-i-want-for-christmas-is-more-twerk/',
- 'info_dict': {
- 'id': '0_01b42zps',
- 'ext': 'mp4',
- 'title': 'Main Twerk (Video)',
- 'upload_date': '20171208',
- 'uploader_id': '[email protected]',
- 'timestamp': 1512713057,
- },
- 'params': {
- 'skip_download': True,
- },
- 'add_ie': ['Kaltura'],
- },
- # Pladform embed
- {
- 'url': 'http://muz-tv.ru/kinozal/view/7400/',
- 'info_dict': {
- 'id': '100183293',
- 'ext': 'mp4',
- 'title': 'Тайны перевала Дятлова • 1 серия 2 часть',
- 'description': 'Документальный сериал-расследование одной из самых жутких тайн ХХ века',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 694,
- 'age_limit': 0,
- },
- 'skip': 'HTTP Error 404: Not Found',
- },
- # Playwire embed
- {
- 'url': 'http://www.cinemablend.com/new/First-Joe-Dirt-2-Trailer-Teaser-Stupid-Greatness-70874.html',
- 'info_dict': {
- 'id': '3519514',
- 'ext': 'mp4',
- 'title': 'Joe Dirt 2 Beautiful Loser Teaser Trailer',
- 'thumbnail': r're:^https?://.*\.png$',
- 'duration': 45.115,
- },
- },
- # Crooks and Liars embed
- {
- 'url': 'http://crooksandliars.com/2015/04/fox-friends-says-protecting-atheists',
- 'info_dict': {
- 'id': '8RUoRhRi',
- 'ext': 'mp4',
- 'title': 'Fox & Friends Says Protecting Atheists From Discrimination Is Anti-Christian!',
- 'description': 'md5:e1a46ad1650e3a5ec7196d432799127f',
- 'timestamp': 1428207000,
- 'upload_date': '20150405',
- 'uploader': 'Heather',
- },
- },
- # Crooks and Liars external embed
- {
- 'url': 'http://theothermccain.com/2010/02/02/video-proves-that-bill-kristol-has-been-watching-glenn-beck/comment-page-1/',
- 'info_dict': {
- 'id': 'MTE3MjUtMzQ2MzA',
- 'ext': 'mp4',
- 'title': 'md5:5e3662a81a4014d24c250d76d41a08d5',
- 'description': 'md5:9b8e9542d6c3c5de42d6451b7d780cec',
- 'timestamp': 1265032391,
- 'upload_date': '20100201',
- 'uploader': 'Heather',
- },
- },
- # NBC Sports vplayer embed
- {
- 'url': 'http://www.riderfans.com/forum/showthread.php?121827-Freeman&s=e98fa1ea6dc08e886b1678d35212494a',
- 'info_dict': {
- 'id': 'ln7x1qSThw4k',
- 'ext': 'flv',
- 'title': "PFT Live: New leader in the 'new-look' defense",
- 'description': 'md5:65a19b4bbfb3b0c0c5768bed1dfad74e',
- 'uploader': 'NBCU-SPORTS',
- 'upload_date': '20140107',
- 'timestamp': 1389118457,
- },
- 'skip': 'Invalid Page URL',
- },
- # NBC News embed
- {
- 'url': 'http://www.vulture.com/2016/06/letterman-couldnt-care-less-about-late-night.html',
- 'md5': '1aa589c675898ae6d37a17913cf68d66',
- 'info_dict': {
- 'id': 'x_dtl_oa_LettermanliftPR_160608',
- 'ext': 'mp4',
- 'title': 'David Letterman: A Preview',
- 'description': 'A preview of Tom Brokaw\'s interview with David Letterman as part of the On Assignment series powered by Dateline. Airs Sunday June 12 at 7/6c.',
- 'upload_date': '20160609',
- 'timestamp': 1465431544,
- 'uploader': 'NBCU-NEWS',
- },
- },
- # UDN embed
- {
- 'url': 'https://video.udn.com/news/300346',
- 'md5': 'fd2060e988c326991037b9aff9df21a6',
- 'info_dict': {
- 'id': '300346',
- 'ext': 'mp4',
- 'title': '中一中男師變性 全校師生力挺',
- 'thumbnail': r're:^https?://.*\.jpg$',
- },
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
- 'expected_warnings': ['Failed to parse JSON Expecting value'],
- },
- # Kinja embed
- {
- 'url': 'http://www.clickhole.com/video/dont-understand-bitcoin-man-will-mumble-explanatio-2537',
- 'info_dict': {
- 'id': '106351',
- 'ext': 'mp4',
- 'title': 'Don’t Understand Bitcoin? This Man Will Mumble An Explanation At You',
- 'description': 'Migrated from OnionStudios',
- 'thumbnail': r're:^https?://.*\.jpe?g$',
- 'uploader': 'clickhole',
- 'upload_date': '20150527',
- 'timestamp': 1432744860,
- },
- },
- # SnagFilms embed
- {
- 'url': 'http://whilewewatch.blogspot.ru/2012/06/whilewewatch-whilewewatch-gripping.html',
- 'info_dict': {
- 'id': '74849a00-85a9-11e1-9660-123139220831',
- 'ext': 'mp4',
- 'title': '#whilewewatch',
- },
- },
- # AdobeTVVideo embed
- {
- 'url': 'https://helpx.adobe.com/acrobat/how-to/new-experience-acrobat-dc.html?set=acrobat--get-started--essential-beginners',
- 'md5': '43662b577c018ad707a63766462b1e87',
- 'info_dict': {
- 'id': '2456',
- 'ext': 'mp4',
- 'title': 'New experience with Acrobat DC',
- 'description': 'New experience with Acrobat DC',
- 'duration': 248.667,
- },
- },
- # Another form of arte.tv embed
- {
- 'url': 'http://www.tv-replay.fr/redirection/09-04-16/arte-reportage-arte-11508975.html',
- 'md5': '850bfe45417ddf221288c88a0cffe2e2',
- 'info_dict': {
- 'id': '030273-562_PLUS7-F',
- 'ext': 'mp4',
- 'title': 'ARTE Reportage - Nulle part, en France',
- 'description': 'md5:e3a0e8868ed7303ed509b9e3af2b870d',
- 'upload_date': '20160409',
- },
- },
- # Duplicated embedded video URLs
- {
- 'url': 'http://www.hudl.com/athlete/2538180/highlights/149298443',
- 'info_dict': {
- 'id': '149298443_480_16c25b74_2',
- 'ext': 'mp4',
- 'title': 'vs. Blue Orange Spring Game',
- 'uploader': 'www.hudl.com',
- },
- },
- # twitter:player:stream embed
- {
- 'url': 'http://www.rtl.be/info/video/589263.aspx?CategoryID=288',
- 'info_dict': {
- 'id': 'master',
- 'ext': 'mp4',
- 'title': 'Une nouvelle espèce de dinosaure découverte en Argentine',
- 'uploader': 'www.rtl.be',
- },
- 'params': {
- # m3u8 downloads
- 'skip_download': True,
- },
- },
- # twitter:player embed
- {
- 'url': 'http://www.theatlantic.com/video/index/484130/what-do-black-holes-sound-like/',
- 'md5': 'a3e0df96369831de324f0778e126653c',
- 'info_dict': {
- 'id': '4909620399001',
- 'ext': 'mp4',
- 'title': 'What Do Black Holes Sound Like?',
- 'description': 'what do black holes sound like',
- 'upload_date': '20160524',
- 'uploader_id': '29913724001',
- 'timestamp': 1464107587,
- 'uploader': 'TheAtlantic',
- },
- 'skip': 'Private Youtube video',
- },
- # Facebook <iframe> embed
- {
- 'url': 'https://www.hostblogger.de/blog/archives/6181-Auto-jagt-Betonmischer.html',
- 'md5': 'fbcde74f534176ecb015849146dd3aee',
- 'info_dict': {
- 'id': '599637780109885',
- 'ext': 'mp4',
- 'title': 'Facebook video #599637780109885',
- },
- },
- # Facebook <iframe> embed, plugin video
- {
- 'url': 'http://5pillarsuk.com/2017/06/07/tariq-ramadan-disagrees-with-pr-exercise-by-imams-refusing-funeral-prayers-for-london-attackers/',
- 'info_dict': {
- 'id': '1754168231264132',
- 'ext': 'mp4',
- 'title': 'About the Imams and Religious leaders refusing to perform funeral prayers for...',
- 'uploader': 'Tariq Ramadan (official)',
- 'timestamp': 1496758379,
- 'upload_date': '20170606',
- },
- 'params': {
- 'skip_download': True,
- },
- },
- # Facebook API embed
- {
- 'url': 'http://www.lothype.com/blue-stars-2016-preview-standstill-full-show/',
- 'md5': 'a47372ee61b39a7b90287094d447d94e',
- 'info_dict': {
- 'id': '10153467542406923',
- 'ext': 'mp4',
- 'title': 'Facebook video #10153467542406923',
- },
- },
- # Wordpress "YouTube Video Importer" plugin
- {
- 'url': 'http://www.lothype.com/blue-devils-drumline-stanford-lot-2016/',
- 'md5': 'd16797741b560b485194eddda8121b48',
- 'info_dict': {
- 'id': 'HNTXWDXV9Is',
- 'ext': 'mp4',
- 'title': 'Blue Devils Drumline Stanford lot 2016',
- 'upload_date': '20160627',
- 'uploader_id': 'GENOCIDE8GENERAL10',
- 'uploader': 'cylus cyrus',
- },
- },
- {
- # video stored on custom kaltura server
- 'url': 'http://www.expansion.com/multimedia/videos.html?media=EQcM30NHIPv',
- 'md5': '537617d06e64dfed891fa1593c4b30cc',
- 'info_dict': {
- 'id': '0_1iotm5bh',
- 'ext': 'mp4',
- 'title': 'Elecciones británicas: 5 lecciones para Rajoy',
- 'description': 'md5:435a89d68b9760b92ce67ed227055f16',
- 'uploader_id': '[email protected]',
- 'upload_date': '20150429',
- 'timestamp': 1430303472,
- },
- 'add_ie': ['Kaltura'],
- },
- {
- # multiple kaltura embeds, nsfw
- 'url': 'https://www.quartier-rouge.be/prive/femmes/kamila-avec-video-jaime-sadomie.html',
- 'info_dict': {
- 'id': 'kamila-avec-video-jaime-sadomie',
- 'title': "Kamila avec vídeo “J'aime sadomie”",
- },
- 'playlist_count': 8,
- },
- {
- # Non-standard Vimeo embed
- 'url': 'https://openclassrooms.com/courses/understanding-the-web',
- 'md5': '64d86f1c7d369afd9a78b38cbb88d80a',
- 'info_dict': {
- 'id': '148867247',
- 'ext': 'mp4',
- 'title': 'Understanding the web - Teaser',
- 'description': 'This is "Understanding the web - Teaser" by openclassrooms on Vimeo, the home for high quality videos and the people who love them.',
- 'upload_date': '20151214',
- 'uploader': 'OpenClassrooms',
- 'uploader_id': 'openclassrooms',
- },
- 'add_ie': ['Vimeo'],
- },
- {
- # generic vimeo embed that requires original URL passed as Referer
- 'url': 'http://racing4everyone.eu/2016/07/30/formula-1-2016-round12-germany/',
- 'only_matching': True,
- },
- {
- 'url': 'https://support.arkena.com/display/PLAY/Ways+to+embed+your+video',
- 'md5': 'b96f2f71b359a8ecd05ce4e1daa72365',
- 'info_dict': {
- 'id': 'b41dda37-d8e7-4d3f-b1b5-9a9db578bdfe',
- 'ext': 'mp4',
- 'title': 'Big Buck Bunny',
- 'description': 'Royalty free test video',
- 'timestamp': 1432816365,
- 'upload_date': '20150528',
- 'is_live': False,
- },
- 'params': {
- 'skip_download': True,
- },
- 'add_ie': ['Arkena'],
- },
- {
- 'url': 'http://nova.bg/news/view/2016/08/16/156543/%D0%BD%D0%B0-%D0%BA%D0%BE%D1%81%D1%8A%D0%BC-%D0%BE%D1%82-%D0%B2%D0%B7%D1%80%D0%B8%D0%B2-%D0%BE%D1%82%D1%86%D0%B5%D0%BF%D0%B8%D1%85%D0%B0-%D1%86%D1%8F%D0%BB-%D0%BA%D0%B2%D0%B0%D1%80%D1%82%D0%B0%D0%BB-%D0%B7%D0%B0%D1%80%D0%B0%D0%B4%D0%B8-%D0%B8%D0%B7%D1%82%D0%B8%D1%87%D0%B0%D0%BD%D0%B5-%D0%BD%D0%B0-%D0%B3%D0%B0%D0%B7-%D0%B2-%D0%BF%D0%BB%D0%BE%D0%B2%D0%B4%D0%B8%D0%B2/',
- 'info_dict': {
- 'id': '1c7141f46c',
- 'ext': 'mp4',
- 'title': 'НА КОСЪМ ОТ ВЗРИВ: Изтичане на газ на бензиностанция в Пловдив',
- },
- 'params': {
- 'skip_download': True,
- },
- 'add_ie': ['Vbox7'],
- },
- {
- # DBTV embeds
- 'url': 'http://www.dagbladet.no/2016/02/23/nyheter/nordlys/ski/troms/ver/43254897/',
- 'info_dict': {
- 'id': '43254897',
- 'title': 'Etter ett års planlegging, klaffet endelig alt: - Jeg måtte ta en liten dans',
- },
- 'playlist_mincount': 3,
- },
- {
- # Videa embeds
- 'url': 'http://forum.dvdtalk.com/movie-talk/623756-deleted-magic-star-wars-ot-deleted-alt-scenes-docu-style.html',
- 'info_dict': {
- 'id': '623756-deleted-magic-star-wars-ot-deleted-alt-scenes-docu-style',
- 'title': 'Deleted Magic - Star Wars: OT Deleted / Alt. Scenes Docu. Style - DVD Talk Forum',
- },
- 'playlist_mincount': 2,
- },
- {
- # 20 minuten embed
- 'url': 'http://www.20min.ch/schweiz/news/story/So-kommen-Sie-bei-Eis-und-Schnee-sicher-an-27032552',
- 'info_dict': {
- 'id': '523629',
- 'ext': 'mp4',
- 'title': 'So kommen Sie bei Eis und Schnee sicher an',
- 'description': 'md5:117c212f64b25e3d95747e5276863f7d',
- },
- 'params': {
- 'skip_download': True,
- },
- 'add_ie': ['TwentyMinuten'],
- },
- {
- # VideoPress embed
- 'url': 'https://en.support.wordpress.com/videopress/',
- 'info_dict': {
- 'id': 'OcobLTqC',
- 'ext': 'm4v',
- 'title': 'IMG_5786',
- 'timestamp': 1435711927,
- 'upload_date': '20150701',
- },
- 'params': {
- 'skip_download': True,
- },
- 'add_ie': ['VideoPress'],
- },
- {
- # Rutube embed
- 'url': 'http://magazzino.friday.ru/videos/vipuski/kazan-2',
- 'info_dict': {
- 'id': '9b3d5bee0a8740bf70dfd29d3ea43541',
- 'ext': 'flv',
- 'title': 'Магаззино: Казань 2',
- 'description': 'md5:99bccdfac2269f0e8fdbc4bbc9db184a',
- 'uploader': 'Магаззино',
- 'upload_date': '20170228',
- 'uploader_id': '996642',
- },
- 'params': {
- 'skip_download': True,
- },
- 'add_ie': ['Rutube'],
- },
- {
- # glomex:embed
- 'url': 'https://www.skai.gr/news/world/iatrikos-syllogos-tourkias-to-turkovac-aplo-dialyma-erntogan-eiste-apateones-kai-pseytes',
- 'info_dict': {
- 'id': 'v-ch2nkhcirwc9-sf',
- 'ext': 'mp4',
- 'title': 'md5:786e1e24e06c55993cee965ef853a0c1',
- 'description': 'md5:8b517a61d577efe7e36fde72fd535995',
- 'timestamp': 1641885019,
- 'upload_date': '20220111',
- 'duration': 460000,
- 'thumbnail': 'https://i3thumbs.glomex.com/dC1idjJwdndiMjRzeGwvMjAyMi8wMS8xMS8wNy8xMF8zNV82MWRkMmQ2YmU5ZTgyLmpwZw==/profile:player-960x540',
- },
- },
- {
- # megatvcom:embed
- 'url': 'https://www.in.gr/2021/12/18/greece/apokalypsi-mega-poios-parelave-tin-ereyna-tsiodra-ek-merous-tis-kyvernisis-o-prothypourgos-telika-gnorize/',
- 'info_dict': {
- 'id': 'apokalypsi-mega-poios-parelave-tin-ereyna-tsiodra-ek-merous-tis-kyvernisis-o-prothypourgos-telika-gnorize',
- 'title': 'md5:5e569cf996ec111057c2764ec272848f',
- },
- 'playlist': [{
- 'md5': '1afa26064ff00ccb91617957dbc73dc1',
- 'info_dict': {
- 'ext': 'mp4',
- 'id': '564916',
- 'display_id': 'md5:6cdf22d3a2e7bacb274b7295089a1770',
- 'title': 'md5:33b9dd39584685b62873043670eb52a6',
- 'description': 'md5:c1db7310f390518ac36dd69d947ef1a1',
- 'timestamp': 1639753145,
- 'upload_date': '20211217',
- 'thumbnail': 'https://www.megatv.com/wp-content/uploads/2021/12/prezerakos-1024x597.jpg',
- },
- }, {
- 'md5': '4a1c220695f1ef865a8b7966a53e2474',
- 'info_dict': {
- 'ext': 'mp4',
- 'id': '564905',
- 'display_id': 'md5:ead15695e485e649aed2b81ebd699b88',
- 'title': 'md5:2b71fd54249a3ca34609fe39ae31c47b',
- 'description': 'md5:c42e12f638d0a97d6de4508e2c4df982',
- 'timestamp': 1639753047,
- 'upload_date': '20211217',
- 'thumbnail': 'https://www.megatv.com/wp-content/uploads/2021/12/tsiodras-mitsotakis-1024x545.jpg',
- },
- }],
- },
- {
- 'url': 'https://www.ertnews.gr/video/manolis-goyalles-o-anthropos-piso-apo-ti-diadiktyaki-vasilopita/',
- 'info_dict': {
- 'id': '2022/tv/news-themata-ianouarios/20220114-apotis6-gouales-pita.mp4',
- 'ext': 'mp4',
- 'title': 'md5:df64f5b61c06d0e9556c0cdd5cf14464',
- 'thumbnail': 'https://www.ert.gr/themata/photos/2021/20220114-apotis6-gouales-pita.jpg',
- },
- },
- {
- # ThePlatform embedded with whitespaces in URLs
- 'url': 'http://www.golfchannel.com/topics/shows/golftalkcentral.htm',
- 'only_matching': True,
- },
- {
- # Senate ISVP iframe https
- 'url': 'https://www.hsgac.senate.gov/hearings/canadas-fast-track-refugee-plan-unanswered-questions-and-implications-for-us-national-security',
- 'md5': 'fb8c70b0b515e5037981a2492099aab8',
- 'info_dict': {
- 'id': 'govtaff020316',
- 'ext': 'mp4',
- 'title': 'Integrated Senate Video Player',
- },
- 'add_ie': ['SenateISVP'],
- },
- {
- 'url': 'http://kron4.com/2017/04/28/standoff-with-walnut-creek-murder-suspect-ends-with-arrest/',
- 'info_dict': {
- 'id': 'standoff-with-walnut-creek-murder-suspect-ends-with-arrest',
- 'title': 'Standoff with Walnut Creek murder suspect ends',
- 'description': 'md5:3ccc48a60fc9441eeccfc9c469ebf788',
- },
- 'playlist_mincount': 4,
- },
- {
- # WashingtonPost embed
- 'url': 'http://www.vanityfair.com/hollywood/2017/04/donald-trump-tv-pitches',
- 'info_dict': {
- 'id': '8caf6e88-d0ec-11e5-90d3-34c2c42653ac',
- 'ext': 'mp4',
- 'title': "No one has seen the drama series based on Trump's life \u2014 until now",
- 'description': 'Donald Trump wanted a weekly TV drama based on his life. It never aired. But The Washington Post recently obtained a scene from the pilot script — and enlisted actors.',
- 'timestamp': 1455216756,
- 'uploader': 'The Washington Post',
- 'upload_date': '20160211',
- },
- 'add_ie': ['WashingtonPost'],
- },
- {
- # JOJ.sk embeds
- 'url': 'https://www.noviny.sk/slovensko/238543-slovenskom-sa-prehnala-vlna-silnych-burok',
- 'info_dict': {
- 'id': '238543-slovenskom-sa-prehnala-vlna-silnych-burok',
- 'title': 'Slovenskom sa prehnala vlna silných búrok',
- },
- 'playlist_mincount': 5,
- 'add_ie': ['Joj'],
- },
- {
- # AMP embed (see https://www.ampproject.org/docs/reference/components/amp-video)
- 'url': 'https://tvrain.ru/amp/418921/',
- 'md5': 'cc00413936695987e8de148b67d14f1d',
- 'info_dict': {
- 'id': '418921',
- 'ext': 'mp4',
- 'title': 'Стас Намин: «Мы нарушили девственность Кремля»',
- },
- },
- {
- # multiple HTML5 videos on one page
- 'url': 'https://www.paragon-software.com/home/rk-free/keyscenarios.html',
- 'info_dict': {
- 'id': 'keyscenarios',
- 'title': 'Rescue Kit 14 Free Edition - Getting started',
- },
- 'playlist_count': 4,
- },
- {
- # vshare embed
- 'url': 'https://youtube-dl-demo.neocities.org/vshare.html',
- 'md5': '17b39f55b5497ae8b59f5fbce8e35886',
- 'info_dict': {
- 'id': '0f64ce6',
- 'title': 'vl14062007715967',
- 'ext': 'mp4',
- },
- },
- {
- 'url': 'http://www.heidelberg-laureate-forum.org/blog/video/lecture-friday-september-23-2016-sir-c-antony-r-hoare/',
- 'md5': 'aecd089f55b1cb5a59032cb049d3a356',
- 'info_dict': {
- 'id': '90227f51a80c4d8f86c345a7fa62bd9a1d',
- 'ext': 'mp4',
- 'title': 'Lecture: Friday, September 23, 2016 - Sir Tony Hoare',
- 'description': 'md5:5a51db84a62def7b7054df2ade403c6c',
- 'timestamp': 1474354800,
- 'upload_date': '20160920',
- },
- },
- {
- 'url': 'http://www.kidzworld.com/article/30935-trolls-the-beat-goes-on-interview-skylar-astin-and-amanda-leighton',
- 'info_dict': {
- 'id': '1731611',
- 'ext': 'mp4',
- 'title': 'Official Trailer | TROLLS: THE BEAT GOES ON!',
- 'description': 'md5:eb5f23826a027ba95277d105f248b825',
- 'timestamp': 1516100691,
- 'upload_date': '20180116',
- },
- 'params': {
- 'skip_download': True,
- },
- 'add_ie': ['SpringboardPlatform'],
- },
- {
- 'url': 'https://www.yapfiles.ru/show/1872528/690b05d3054d2dbe1e69523aa21bb3b1.mp4.html',
- 'info_dict': {
- 'id': 'vMDE4NzI1Mjgt690b',
- 'ext': 'mp4',
- 'title': 'Котята',
- },
- 'add_ie': ['YapFiles'],
- 'params': {
- 'skip_download': True,
- },
- },
- {
- # CloudflareStream embed
- 'url': 'https://www.cloudflare.com/products/cloudflare-stream/',
- 'info_dict': {
- 'id': '31c9291ab41fac05471db4e73aa11717',
- 'ext': 'mp4',
- 'title': '31c9291ab41fac05471db4e73aa11717',
- },
- 'add_ie': ['CloudflareStream'],
- 'params': {
- 'skip_download': True,
- },
- },
- {
- # PeerTube embed
- 'url': 'https://joinpeertube.org/fr/home/',
- 'info_dict': {
- 'id': 'home',
- 'title': 'Reprenez le contrôle de vos vidéos ! #JoinPeertube',
- },
- 'playlist_count': 2,
- },
- {
- # Indavideo embed
- 'url': 'https://streetkitchen.hu/receptek/igy_kell_otthon_hamburgert_sutni/',
- 'info_dict': {
- 'id': '1693903',
- 'ext': 'mp4',
- 'title': 'Így kell otthon hamburgert sütni',
- 'description': 'md5:f5a730ecf900a5c852e1e00540bbb0f7',
- 'timestamp': 1426330212,
- 'upload_date': '20150314',
- 'uploader': 'StreetKitchen',
- 'uploader_id': '546363',
- },
- 'add_ie': ['IndavideoEmbed'],
- 'params': {
- 'skip_download': True,
- },
- },
- {
- # APA embed via JWPlatform embed
- 'url': 'http://www.vol.at/blue-man-group/5593454',
- 'info_dict': {
- 'id': 'jjv85FdZ',
- 'ext': 'mp4',
- 'title': '"Blau ist mysteriös": Die Blue Man Group im Interview',
- 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 254,
- 'timestamp': 1519211149,
- 'upload_date': '20180221',
- },
- 'params': {
- 'skip_download': True,
- },
- },
- {
- 'url': 'http://share-videos.se/auto/video/83645793?uid=13',
- 'md5': 'b68d276de422ab07ee1d49388103f457',
- 'info_dict': {
- 'id': '83645793',
- 'title': 'Lock up and get excited',
- 'ext': 'mp4',
- },
- 'skip': 'TODO: fix nested playlists processing in tests',
- },
- {
- # Viqeo embeds
- 'url': 'https://viqeo.tv/',
- 'info_dict': {
- 'id': 'viqeo',
- 'title': 'All-new video platform',
- },
- 'playlist_count': 6,
- },
- # {
- # # Zype embed
- # 'url': 'https://www.cookscountry.com/episode/554-smoky-barbecue-favorites',
- # 'info_dict': {
- # 'id': '5b400b834b32992a310622b9',
- # 'ext': 'mp4',
- # 'title': 'Smoky Barbecue Favorites',
- # 'thumbnail': r're:^https?://.*\.jpe?g',
- # 'description': 'md5:5ff01e76316bd8d46508af26dc86023b',
- # 'upload_date': '20170909',
- # 'timestamp': 1504915200,
- # },
- # 'add_ie': [ZypeIE.ie_key()],
- # 'params': {
- # 'skip_download': True,
- # },
- # },
- {
- # videojs embed
- 'url': 'https://video.sibnet.ru/shell.php?videoid=3422904',
- 'info_dict': {
- 'id': 'shell',
- 'ext': 'mp4',
- 'title': 'Доставщик пиццы спросил разрешения сыграть на фортепиано',
- 'description': 'md5:89209cdc587dab1e4a090453dbaa2cb1',
- 'thumbnail': r're:^https?://.*\.jpg$',
- },
- 'params': {
- 'skip_download': True,
- },
- 'expected_warnings': ['Failed to download MPD manifest'],
- },
- {
- # DailyMotion embed with DM.player
- 'url': 'https://www.beinsports.com/us/copa-del-rey/video/the-locker-room-valencia-beat-barca-in-copa/1203804',
- 'info_dict': {
- 'id': 'k6aKkGHd9FJs4mtJN39',
- 'ext': 'mp4',
- 'title': 'The Locker Room: Valencia Beat Barca In Copa del Rey Final',
- 'description': 'This video is private.',
- 'uploader_id': 'x1jf30l',
- 'uploader': 'beIN SPORTS USA',
- 'upload_date': '20190528',
- 'timestamp': 1559062971,
- },
- 'params': {
- 'skip_download': True,
- },
- },
- {
- # tvopengr:embed
- 'url': 'https://www.ethnos.gr/World/article/190604/hparosiaxekinoynoisynomiliessthgeneyhmethskiatoypolemoypanoapothnoykrania',
- 'md5': 'eb0c3995d0a6f18f6538c8e057865d7d',
- 'info_dict': {
- 'id': '101119',
- 'ext': 'mp4',
- 'display_id': 'oikarpoitondiapragmateyseonhparosias',
- 'title': 'md5:b979f4d640c568617d6547035528a149',
- 'description': 'md5:e54fc1977c7159b01cc11cd7d9d85550',
- 'timestamp': 1641772800,
- 'upload_date': '20220110',
- 'thumbnail': 'https://opentv-static.siliconweb.com/imgHandler/1920/70bc39fa-895b-4918-a364-c39d2135fc6d.jpg',
-
- },
- },
- {
- # blogger embed
- 'url': 'https://blog.tomeuvizoso.net/2019/01/a-panfrost-milestone.html',
- 'md5': 'f1bc19b6ea1b0fd1d81e84ca9ec467ac',
- 'info_dict': {
- 'id': 'BLOGGER-video-3c740e3a49197e16-796',
- 'ext': 'mp4',
- 'title': 'Blogger',
- 'thumbnail': r're:^https?://.*',
- },
- },
- # {
- # # TODO: find another test
- # # http://schema.org/VideoObject
- # 'url': 'https://flipagram.com/f/nyvTSJMKId',
- # 'md5': '888dcf08b7ea671381f00fab74692755',
- # 'info_dict': {
- # 'id': 'nyvTSJMKId',
- # 'ext': 'mp4',
- # 'title': 'Flipagram by sjuria101 featuring Midnight Memories by One Direction',
- # 'description': '#love for cats.',
- # 'timestamp': 1461244995,
- # 'upload_date': '20160421',
- # },
- # 'params': {
- # 'force_generic_extractor': True,
- # },
- # },
- {
- # VHX Embed
- 'url': 'https://demo.vhx.tv/category-c/videos/file-example-mp4-480-1-5mg-copy',
- 'info_dict': {
- 'id': '858208',
- 'ext': 'mp4',
- 'title': 'Untitled',
- 'uploader_id': 'user80538407',
- 'uploader': 'OTT Videos',
- },
- },
- {
- # ArcPublishing PoWa video player
- 'url': 'https://www.adn.com/politics/2020/11/02/video-senate-candidates-campaign-in-anchorage-on-eve-of-election-day/',
- 'md5': 'b03b2fac8680e1e5a7cc81a5c27e71b3',
- 'info_dict': {
- 'id': '8c99cb6e-b29c-4bc9-9173-7bf9979225ab',
- 'ext': 'mp4',
- 'title': 'Senate candidates wave to voters on Anchorage streets',
- 'description': 'md5:91f51a6511f090617353dc720318b20e',
- 'timestamp': 1604378735,
- 'upload_date': '20201103',
- 'duration': 1581,
- },
- },
- {
- # MyChannels SDK embed
- # https://www.24kitchen.nl/populair/deskundige-dit-waarom-sommigen-gevoelig-zijn-voor-voedselallergieen
- 'url': 'https://www.demorgen.be/nieuws/burgemeester-rotterdam-richt-zich-in-videoboodschap-tot-relschoppers-voelt-het-goed~b0bcfd741/',
- 'md5': '90c0699c37006ef18e198c032d81739c',
- 'info_dict': {
- 'id': '194165',
- 'ext': 'mp4',
- 'title': 'Burgemeester Aboutaleb spreekt relschoppers toe',
- 'timestamp': 1611740340,
- 'upload_date': '20210127',
- 'duration': 159,
- },
- },
- {
- # Simplecast player embed
- 'url': 'https://www.bio.org/podcast',
- 'info_dict': {
- 'id': 'podcast',
- 'title': 'I AM BIO Podcast | BIO',
- },
- 'playlist_mincount': 52,
- }, {
- # WimTv embed player
- 'url': 'http://www.msmotor.tv/wearefmi-pt-2-2021/',
- 'info_dict': {
- 'id': 'wearefmi-pt-2-2021',
- 'title': '#WEAREFMI – PT.2 – 2021 – MsMotorTV',
- },
- 'playlist_count': 1,
- }, {
- # KVS Player
- 'url': 'https://www.kvs-demo.com/videos/105/kelis-4th-of-july/',
- 'info_dict': {
- 'id': '105',
- 'display_id': 'kelis-4th-of-july',
- 'ext': 'mp4',
- 'title': 'Kelis - 4th Of July',
- 'description': 'Kelis - 4th Of July',
- 'thumbnail': r're:https://(?:www\.)?kvs-demo.com/contents/videos_screenshots/0/105/preview.jpg',
- },
- 'params': {
- 'skip_download': True,
- },
- 'expected_warnings': ['Untested major version'],
- }, {
- # KVS Player
- 'url': 'https://www.kvs-demo.com/embed/105/',
- 'info_dict': {
- 'id': '105',
- 'display_id': 'kelis-4th-of-july',
- 'ext': 'mp4',
- 'title': 'Kelis - 4th Of July / Embed Player',
- 'thumbnail': r're:https://(?:www\.)?kvs-demo.com/contents/videos_screenshots/0/105/preview.jpg',
- },
- 'params': {
- 'skip_download': True,
- },
- }, {
- 'url': 'https://youix.com/video/leningrad-zoj/',
- 'md5': '94f96ba95706dc3880812b27b7d8a2b8',
- 'info_dict': {
- 'id': '18485',
- 'display_id': 'leningrad-zoj',
- 'ext': 'mp4',
- 'title': 'Клип: Ленинград - ЗОЖ скачать, смотреть онлайн | Youix.com',
- 'thumbnail': r're:https://youix.com/contents/videos_screenshots/18000/18485/preview(?:_480x320_youix_com.mp4)?\.jpg',
- },
- }, {
- # KVS Player
- 'url': 'https://youix.com/embed/18485',
- 'md5': '94f96ba95706dc3880812b27b7d8a2b8',
- 'info_dict': {
- 'id': '18485',
- 'display_id': 'leningrad-zoj',
- 'ext': 'mp4',
- 'title': 'Ленинград - ЗОЖ',
- 'thumbnail': r're:https://youix.com/contents/videos_screenshots/18000/18485/preview(?:_480x320_youix_com.mp4)?\.jpg',
- },
- }, {
- # KVS Player
- 'url': 'https://bogmedia.org/videos/21217/40-nochey-40-nights-2016/',
- 'md5': '94166bdb26b4cb1fb9214319a629fc51',
- 'info_dict': {
- 'id': '21217',
- 'display_id': '40-nochey-2016',
- 'ext': 'mp4',
- 'title': '40 ночей (2016) - BogMedia.org',
- 'description': 'md5:4e6d7d622636eb7948275432eb256dc3',
- 'thumbnail': 'https://bogmedia.org/contents/videos_screenshots/21000/21217/preview_480p.mp4.jpg',
- },
- },
- {
- # KVS Player (for sites that serve kt_player.js via non-https urls)
- 'url': 'http://www.camhub.world/embed/389508',
- 'md5': 'fbe89af4cfb59c8fd9f34a202bb03e32',
- 'info_dict': {
- 'id': '389508',
- 'display_id': 'syren-de-mer-onlyfans-05-07-2020have-a-happy-safe-holiday5f014e68a220979bdb8cd-source',
- 'ext': 'mp4',
- 'title': 'Syren De Mer onlyfans_05-07-2020Have_a_happy_safe_holiday5f014e68a220979bdb8cd_source / Embed плеер',
- 'thumbnail': r're:https?://www\.camhub\.world/contents/videos_screenshots/389000/389508/preview\.mp4\.jpg',
- },
- },
- {
- # Reddit-hosted video that will redirect and be processed by RedditIE
- # Redirects to https://www.reddit.com/r/videos/comments/6rrwyj/that_small_heart_attack/
- 'url': 'https://v.redd.it/zv89llsvexdz',
- 'md5': '87f5f02f6c1582654146f830f21f8662',
- 'info_dict': {
- 'id': 'zv89llsvexdz',
- 'ext': 'mp4',
- 'timestamp': 1501941939.0,
- 'title': 'That small heart attack.',
- 'upload_date': '20170805',
- 'uploader': 'Antw87',
- },
- },
- {
- # 1080p Reddit-hosted video that will redirect and be processed by RedditIE
- 'url': 'https://v.redd.it/33hgok7dfbz71/',
- 'md5': '7a1d587940242c9bb3bd6eb320b39258',
- 'info_dict': {
- 'id': '33hgok7dfbz71',
- 'ext': 'mp4',
- 'title': "The game Didn't want me to Knife that Guy I guess",
- 'uploader': 'paraf1ve',
- 'timestamp': 1636788683.0,
- 'upload_date': '20211113',
- },
- },
- {
- # MainStreaming player
- 'url': 'https://www.lactv.it/2021/10/03/lac-news24-la-settimana-03-10-2021/',
- 'info_dict': {
- 'id': 'EUlZfGWkGpOd',
- 'title': 'La Settimana ',
- 'description': '03 Ottobre ore 02:00',
- 'ext': 'mp4',
- 'live_status': 'not_live',
- 'thumbnail': r're:https?://[A-Za-z0-9-]*\.msvdn.net/image/\w+/poster',
- 'duration': 1512,
- },
- },
- {
- # Multiple gfycat iframe embeds
- 'url': 'https://www.gezip.net/bbs/board.php?bo_table=entertaine&wr_id=613422',
- 'info_dict': {
- 'title': '재이, 윤, 세은 황금 드레스를 입고 빛난다',
- 'id': 'board',
- },
- 'playlist_count': 8,
- },
- {
- # Multiple gfycat gifs (direct links)
- 'url': 'https://www.gezip.net/bbs/board.php?bo_table=entertaine&wr_id=612199',
- 'info_dict': {
- 'title': '옳게 된 크롭 니트 스테이씨 아이사',
- 'id': 'board',
- },
- 'playlist_count': 6,
- },
- {
- # Multiple gfycat embeds, with uppercase "IFR" in urls
- 'url': 'https://kkzz.kr/?vid=2295',
- 'info_dict': {
- 'title': '지방시 앰버서더 에스파 카리나 움짤',
- 'id': '?vid=2295',
- },
- 'playlist_count': 9,
- },
- {
- # Panopto embeds
- 'url': 'https://www.monash.edu/learning-teaching/teachhq/learning-technologies/panopto/how-to/insert-a-quiz-into-a-panopto-video',
- 'info_dict': {
- 'ext': 'mp4',
- 'id': '0bd3f16c-824a-436a-8486-ac5900693aef',
- 'title': 'Quizzes in Panopto',
- },
- },
- {
- # Ruutu embed
- 'url': 'https://www.nelonen.fi/ohjelmat/madventures-suomi/2160731-riku-ja-tunna-lahtevat-peurajahtiin-tv-sta-tutun-biologin-kanssa---metsastysreissu-huipentuu-kasvissyojan-painajaiseen',
- 'md5': 'a2513a98d3496099e6eced40f7e6a14b',
- 'info_dict': {
- 'id': '4044426',
- 'ext': 'mp4',
- 'title': 'Riku ja Tunna lähtevät peurajahtiin tv:stä tutun biologin kanssa – metsästysreissu huipentuu kasvissyöjän painajaiseen!',
- 'thumbnail': r're:^https?://.+\.jpg$',
- 'duration': 108,
- 'series': 'Madventures Suomi',
- 'description': 'md5:aa55b44bd06a1e337a6f1d0b46507381',
- 'categories': ['Matkailu', 'Elämäntyyli'],
- 'age_limit': 0,
- 'upload_date': '20220308',
- },
- },
- {
- # Multiple Ruutu embeds
- 'url': 'https://www.hs.fi/kotimaa/art-2000008762560.html',
- 'info_dict': {
- 'title': 'Koronavirus | Epidemiahuippu voi olla Suomessa ohi, mutta koronaviruksen poistamista yleisvaarallisten tautien joukosta harkitaan vasta syksyllä',
- 'id': 'art-2000008762560',
- },
- 'playlist_count': 3,
- },
- {
- # Ruutu embed in hs.fi with a single video
- 'url': 'https://www.hs.fi/kotimaa/art-2000008793421.html',
- 'md5': 'f8964e65d8fada6e8a562389bf366bb4',
- 'info_dict': {
- 'id': '4081841',
- 'ext': 'mp4',
- 'title': 'Puolustusvoimat siirsi panssariajoneuvoja harjoituksiin Niinisaloon 2.5.2022',
- 'thumbnail': r're:^https?://.+\.jpg$',
- 'duration': 138,
- 'age_limit': 0,
- 'upload_date': '20220504',
- },
- },
- {
- # Webpage contains double BOM
- 'url': 'https://www.filmarkivet.se/movies/paris-d-moll/',
- 'md5': 'df02cadc719dcc63d43288366f037754',
- 'info_dict': {
- 'id': 'paris-d-moll',
- 'ext': 'mp4',
- 'upload_date': '20220518',
- 'title': 'Paris d-moll',
- 'description': 'md5:319e37ea5542293db37e1e13072fe330',
- 'thumbnail': 'https://www.filmarkivet.se/wp-content/uploads/parisdmoll2.jpg',
- 'timestamp': 1652833414,
- 'age_limit': 0,
- },
- },
- {
- 'url': 'https://www.mollymovieclub.com/p/interstellar?s=r#details',
- 'md5': '198bde8bed23d0b23c70725c83c9b6d9',
- 'info_dict': {
- 'id': '53602801',
- 'ext': 'mpga',
- 'title': 'Interstellar',
- 'description': 'Listen now | Episode One',
- 'thumbnail': 'md5:c30d9c83f738e16d8551d7219d321538',
- 'uploader': 'Molly Movie Club',
- 'uploader_id': '839621',
- },
- },
- {
- 'url': 'https://www.blockedandreported.org/p/episode-117-lets-talk-about-depp?s=r',
- 'md5': 'c0cc44ee7415daeed13c26e5b56d6aa0',
- 'info_dict': {
- 'id': '57962052',
- 'ext': 'mpga',
- 'title': 'md5:855b2756f0ee10f6723fa00b16266f8d',
- 'description': 'md5:fe512a5e94136ad260c80bde00ea4eef',
- 'thumbnail': 'md5:2218f27dfe517bb5ac16c47d0aebac59',
- 'uploader': 'Blocked and Reported',
- 'uploader_id': '500230',
- },
- },
- {
- 'url': 'https://www.skimag.com/video/ski-people-1980/',
- 'md5': '022a7e31c70620ebec18deeab376ee03',
- 'info_dict': {
- 'id': 'YTmgRiNU',
- 'ext': 'mp4',
- 'title': '1980 Ski People',
- 'timestamp': 1610407738,
- 'description': 'md5:cf9c3d101452c91e141f292b19fe4843',
- 'thumbnail': 'https://cdn.jwplayer.com/v2/media/YTmgRiNU/poster.jpg?width=720',
- 'duration': 5688.0,
- 'upload_date': '20210111',
- },
- },
- {
- 'note': 'JSON LD with multiple @type',
- 'url': 'https://www.nu.nl/280161/video/hoe-een-bladvlo-dit-verwoestende-japanse-onkruid-moet-vernietigen.html',
- 'md5': 'c7949f34f57273013fb7ccb1156393db',
- 'info_dict': {
- 'id': 'ipy2AcGL',
- 'ext': 'mp4',
- 'description': 'md5:6a9d644bab0dc2dc06849c2505d8383d',
- 'thumbnail': r're:https://media\.nu\.nl/m/.+\.jpg',
- 'title': 'Hoe een bladvlo dit verwoestende Japanse onkruid moet vernietigen',
- 'timestamp': 1586577474,
- 'upload_date': '20200411',
- 'age_limit': 0,
- 'duration': 111.0,
- },
- },
- {
- 'note': 'JSON LD with unexpected data type',
- 'url': 'https://www.autoweek.nl/autotests/artikel/porsche-911-gt3-rs-rij-impressie-2/',
- 'info_dict': {
- 'id': 'porsche-911-gt3-rs-rij-impressie-2',
- 'ext': 'mp4',
- 'title': 'Test: Porsche 911 GT3 RS',
- 'description': 'Je ziet het niet, maar het is er wel. Downforce, hebben we het dan over. En in de nieuwe Porsche 911 GT3 RS is er zelfs heel veel downforce.',
- 'timestamp': 1664920902,
- 'upload_date': '20221004',
- 'thumbnail': r're:^https://media.autoweek.nl/m/.+\.jpg$',
- 'age_limit': 0,
- 'direct': True,
- },
- },
- {
- 'note': 'server returns data in brotli compression by default if `accept-encoding: *` is specified.',
- 'url': 'https://www.extra.cz/cauky-lidi-70-dil-babis-predstavil-pohadky-prymulanek-nebo-andrejovy-nove-saty-ac867',
- 'info_dict': {
- 'id': 'cauky-lidi-70-dil-babis-predstavil-pohadky-prymulanek-nebo-andrejovy-nove-saty-ac867',
- 'ext': 'mp4',
- 'title': 'čauky lidi 70 finall',
- 'description': 'čauky lidi 70 finall',
- 'thumbnail': 'h',
- 'upload_date': '20220606',
- 'timestamp': 1654513791,
- 'duration': 318.0,
- 'direct': True,
- 'age_limit': 0,
- },
- },
- {
- 'url': 'https://shooshtime.com/videos/284002/just-out-of-the-shower-joi/',
- 'md5': 'e2f0a4c329f7986280b7328e24036d60',
- 'info_dict': {
- 'id': '284002',
- 'display_id': 'just-out-of-the-shower-joi',
- 'ext': 'mp4',
- 'title': 'Just Out Of The Shower JOI - Shooshtime',
- 'thumbnail': 'https://i.shoosh.co/contents/videos_screenshots/284000/284002/preview.mp4.jpg',
- 'height': 720,
- 'age_limit': 18,
- },
- },
- {
- 'note': 'Live HLS direct link',
- 'url': 'https://d18j67ugtrocuq.cloudfront.net/out/v1/2767aec339144787926bd0322f72c6e9/index.m3u8',
- 'info_dict': {
- 'id': 'index',
- 'title': r're:index',
- 'ext': 'mp4',
- 'live_status': 'is_live',
- },
- 'params': {
- 'skip_download': 'm3u8',
- },
- },
- {
- 'note': 'Video.js VOD HLS',
- 'url': 'https://gist.githubusercontent.com/bashonly/2aae0862c50f4a4b84f220c315767208/raw/e3380d413749dabbe804c9c2d8fd9a45142475c7/videojs_hls_test.html',
- 'info_dict': {
- 'id': 'videojs_hls_test',
- 'title': 'video',
- 'ext': 'mp4',
- 'age_limit': 0,
- 'duration': 1800,
- },
- 'params': {
- 'skip_download': 'm3u8',
- },
- },
- ]
+ # https://github.com/ytdl-org/youtube-dl/commit/4d805e063c6c4ffd557d7c7cb905a3ed9c926b08
+ 'url': 'https://flowplayer.com/resources/demos/standard-setup',
+ 'info_dict': {
+ 'id': 'playlist',
+ 'ext': 'mp4',
+ 'title': 'playlist',
+ 'duration': 13,
+ 'timestamp': 1539082175,
+ 'upload_date': '20181009',
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ # JW Player: YouTube
+ # https://github.com/ytdl-org/youtube-dl/commit/a0f719854463c6f4226e4042dfa80c1b17154e1d
+ 'url': 'https://media.nationalarchives.gov.uk/index.php/webinar-using-discovery-national-archives-online-catalogue/',
+ 'info_dict': {
+ 'id': 'Mrj4DVp2zeA',
+ 'ext': 'mp4',
+ 'title': 'Using Discovery, The National Archives’ online catalogue',
+ 'age_limit': 0,
+ 'availability': 'unlisted',
+ 'categories': ['Education'],
+ 'channel': 'The National Archives UK',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCUuzebc1yADDJEnOLA5P9xw',
+ 'channel_url': 'https://www.youtube.com/channel/UCUuzebc1yADDJEnOLA5P9xw',
+ 'chapters': 'count:13',
+ 'description': 'md5:a236581cd2449dd2df4f93412f3f01c6',
+ 'duration': 3066,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:5',
+ 'thumbnail': r're:https?://i\.ytimg\.com/vi/.+',
+ 'timestamp': 1423757117,
+ 'upload_date': '20150212',
+ 'uploader': 'The National Archives UK',
+ 'uploader_id': '@TheNationalArchivesUK',
+ 'uploader_url': 'https://www.youtube.com/@TheNationalArchivesUK',
+ 'view_count': int,
+ },
+ 'add_ie': ['Youtube'],
+ }, {
+ # JW Player: Complex
+ # https://github.com/ytdl-org/youtube-dl/commit/a4a554a79354981fcab55de8eaab7b95a40bbb48
+ 'url': 'https://www.indiedb.com/games/king-machine/videos',
+ 'info_dict': {
+ 'id': 'videos-1',
+ 'ext': 'mp4',
+ 'title': 'Videos & Audio - King Machine (1)',
+ 'age_limit': 0,
+ 'description': 'Browse King Machine videos & audio for sweet media. Your eyes will thank you.',
+ 'thumbnail': r're:https?://media\.indiedb\.com/cache/images/.+\.jpg',
+ '_old_archive_ids': ['generic videos'],
+ },
+ }, {
+ # JW Player: JSON Feed URL
+ # https://github.com/yt-dlp/yt-dlp/issues/1476
+ 'url': 'https://foodschmooze.org/',
+ 'info_dict': {
+ 'id': 'z00Frhnw',
+ 'ext': 'mp4',
+ 'title': 'Grilling Beef Tenderloin',
+ 'description': '',
+ 'duration': 392.0,
+ 'thumbnail': r're:https?://cdn\.jwplayer\.com/v2/media/.+',
+ 'timestamp': 1465313685,
+ 'upload_date': '20160607',
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ # JW Player: RTMP
+ # https://github.com/ytdl-org/youtube-dl/issues/11993
+ 'url': 'http://www.suffolk.edu/sjc/live.php',
+ 'info_dict': {
+ 'id': 'live',
+ 'ext': 'flv',
+ 'title': 'Massachusetts Supreme Judicial Court Oral Arguments',
+ },
+ 'skip': 'Invalid URL',
+ }, {
+ # KVS Player v7.3.3
+ # kt_player.js?v=5.1.1
+ 'url': 'https://bogmedia.org/videos/21217/40-nochey-2016/',
+ 'md5': '94166bdb26b4cb1fb9214319a629fc51',
+ 'info_dict': {
+ 'id': '21217',
+ 'ext': 'mp4',
+ 'title': '40 ночей (2016) - BogMedia.org',
+ 'age_limit': 0,
+ 'description': 'md5:4e6d7d622636eb7948275432eb256dc3',
+ 'display_id': '40-nochey-2016',
+ 'thumbnail': r're:https?://bogmedia\.org/contents/videos_screenshots/.+\.jpg',
+ },
+ }, {
+ # KVS Player v7.7.11
+ # kt_player.js?v=5.5.1
+ # https://github.com/yt-dlp/yt-dlp/commit/a318f59d14792d25b2206c3f50181e03e8716db7
+ 'url': 'https://youix.com/video/leningrad-zoj/',
+ 'md5': '94f96ba95706dc3880812b27b7d8a2b8',
+ 'info_dict': {
+ 'id': '18485',
+ 'ext': 'mp4',
+ 'title': 'Клип: Ленинград - ЗОЖ скачать, смотреть онлайн | Youix.com',
+ 'age_limit': 0,
+ 'display_id': 'leningrad-zoj',
+ 'thumbnail': r're:https?://youix\.com/contents/videos_screenshots/.+\.jpg',
+ },
+ }, {
+ # KVS Player v7.10.3
+ # kt_player.js?v=12
+ # https://github.com/ytdl-org/youtube-dl/commit/fc2beab0e701c497a003f11fef5c0df54fba1da3
+ 'url': 'https://shooshtime.com/videos/346037/fresh-out-of-the-shower/',
+ 'md5': 'c9a97ad528607a4516d4df83a3aeb12c',
+ 'info_dict': {
+ 'id': '346037',
+ 'ext': 'mp4',
+ 'title': 'Fresh out of the shower - Shooshtime',
+ 'age_limit': 18,
+ 'description': 'md5:efd70fd3973f8750d285c743b910580a',
+ 'display_id': 'fresh-out-of-the-shower',
+ 'thumbnail': r're:https?://i\.shoosh\.co/contents/videos_screenshots/.+\.jpg',
+ },
+ 'expected_warnings': ['Untested major version'],
+ }, {
+ # FIXME: Unable to extract flashvars
+ # KVS Player v7.11.4
+ # kt_player.js?v=2.11.5.1
+ # https://github.com/yt-dlp/yt-dlp/commit/a318f59d14792d25b2206c3f50181e03e8716db7
+ 'url': 'https://www.kvs-demo.com/video/105/kelis-4th-of-july/',
+ 'info_dict': {
+ 'id': '105',
+ 'ext': 'mp4',
+ 'title': 'Kelis - 4th Of July',
+ },
+ }, {
+ # KVS Player v7.11.4
+ # kt_player.js?v=6.3.2
+ # https://github.com/yt-dlp/yt-dlp/commit/a318f59d14792d25b2206c3f50181e03e8716db7
+ 'url': 'https://www.kvs-demo.com/embed/105/',
+ 'md5': '1ff84c70acaddbb03288c6cc5ee1879f',
+ 'info_dict': {
+ 'id': '105',
+ 'ext': 'mp4',
+ 'title': 'Kelis - 4th Of July / Embed Player',
+ 'age_limit': 0,
+ 'display_id': 'kelis-4th-of-july',
+ 'thumbnail': r're:https?://www\.kvs-demo\.com/contents/videos_screenshots/.+\.jpg',
+ },
+ }, {
+ # twitter:player:stream
+ # https://github.com/ytdl-org/youtube-dl/commit/371ddb14fe651d4a1e5a8310d6d7c0e395cd92b0
+ 'url': 'https://beltzlaw.com/',
+ 'info_dict': {
+ 'id': 'beltzlaw-1',
+ 'ext': 'mp4',
+ 'title': 'Beltz Law Group | Dallas Traffic Ticket, Accident & Criminal Attorney (1)',
+ 'age_limit': 0,
+ 'description': 'md5:5bdf23fcb76801dc3b31e74cabf82147',
+ 'thumbnail': r're:https?://beltzlaw\.com/wp-content/uploads/.+\.jpg',
+ 'timestamp': int, # varies
+ 'upload_date': str,
+ '_old_archive_ids': ['generic beltzlaw'],
+ },
+ }, {
+ # twitter:player
+ # https://github.com/ytdl-org/youtube-dl/commit/329179073b93e37ab76e759d1fe96d8f984367f3
+ 'url': 'https://cine.ar/',
+ 'md5': 'd3e33335e339f04008690118698dfd08',
+ 'info_dict': {
+ 'id': 'cine-1',
+ 'ext': 'webm',
+ 'title': 'CINE.AR (1)',
+ 'age_limit': 0,
+ 'description': 'md5:a4e58f9e2291c940e485f34251898c4a',
+ 'thumbnail': r're:https?://cine\.ar/img/.+\.png',
+ '_old_archive_ids': ['generic cine'],
+ },
+ 'params': {'format': 'webm'},
+ }, {
+ # JSON-LD: multiple @type
+ # https://github.com/yt-dlp/yt-dlp/commit/f3c0c77304bc0e5614a65c45629de22f067685ac
+ 'url': 'https://www.nu.nl/280161/video/hoe-een-bladvlo-dit-verwoestende-japanse-onkruid-moet-vernietigen.html',
+ 'info_dict': {
+ 'id': 'ipy2AcGL',
+ 'ext': 'mp4',
+ 'title': 'Hoe een bladvlo dit verwoestende Japanse onkruid moet vernietigen',
+ 'age_limit': 0,
+ 'description': 'md5:6a9d644bab0dc2dc06849c2505d8383d',
+ 'duration': 111.0,
+ 'thumbnail': r're:https?://images\.nu\.nl/.+\.jpg',
+ 'timestamp': 1586584674,
+ 'upload_date': '20200411',
+ },
+ 'params': {'extractor_args': {'generic': {'impersonate': ['chrome']}}},
+ }, {
+ # JSON-LD: unexpected @type
+ # https://github.com/yt-dlp/yt-dlp/pull/5145
+ 'url': 'https://www.autoweek.nl/autotests/artikel/porsche-911-gt3-rs-rij-impressie-2/',
+ 'info_dict': {
+ 'id': 'porsche-911-gt3-rs-rij-impressie-2',
+ 'ext': 'mp4',
+ 'title': 'Test: Porsche 911 GT3 RS - AutoWeek',
+ 'age_limit': 0,
+ 'description': 'md5:a17b5bd84288448d8f11b838505718fc',
+ 'direct': True,
+ 'thumbnail': r're:https?://images\.autoweek\.nl/.+',
+ 'timestamp': 1664920902,
+ 'upload_date': '20221004',
+ },
+ 'params': {'extractor_args': {'generic': {'impersonate': ['chrome']}}},
+ }, {
+ # JSON-LD: VideoObject
+ # https://github.com/ytdl-org/youtube-dl/commit/6e6b70d65f0681317c425bfe1e157f3474afbbe8
+ 'url': 'https://breezy.hr/',
+ 'info_dict': {
+ 'id': 'k6gl2kt2eq',
+ 'ext': 'mp4',
+ 'title': 'Breezy HR\'s ATS helps you find & hire employees sooner',
+ 'age_limit': 0,
+ 'average_rating': 4.5,
+ 'description': 'md5:eee75fdd3044c538003f3be327ba01e1',
+ 'duration': 60.1,
+ 'thumbnail': r're:https?://cdn\.prod\.website-files\.com/.+\.webp',
+ 'timestamp': 1485734400,
+ 'upload_date': '20170130',
+ },
+ }, {
+ # Video.js: VOD HLS
+ # https://github.com/yt-dlp/yt-dlp/pull/6775
+ 'url': 'https://gist.githubusercontent.com/bashonly/2aae0862c50f4a4b84f220c315767208/raw/e3380d413749dabbe804c9c2d8fd9a45142475c7/videojs_hls_test.html',
+ 'info_dict': {
+ 'id': 'videojs_hls_test',
+ 'ext': 'mp4',
+ 'title': 'video',
+ 'age_limit': 0,
+ 'duration': 1800,
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ # Video.js: YouTube
+ # https://github.com/ytdl-org/youtube-dl/commit/63d990d2859d0e981da2e416097655798334431b
+ 'url': 'https://ortcam.com/solidworks-%d1%83%d1%80%d0%be%d0%ba-6-%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0-%d1%87%d0%b5%d1%80%d1%82%d0%b5%d0%b6%d0%b0_33f9b7351.html?vid=33f9b7351',
+ 'info_dict': {
+ 'id': 'yygqldloqIk',
+ 'ext': 'mp4',
+ 'title': 'SolidWorks. Урок 6 Настройка чертежа',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Education'],
+ 'channel': 'PROстое3D',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCy91Bug3dERhbwGh2m2Ijng',
+ 'channel_url': 'https://www.youtube.com/channel/UCy91Bug3dERhbwGh2m2Ijng',
+ 'comment_count': int,
+ 'description': 'md5:baf95267792646afdbf030e4d06b2ab3',
+ 'duration': 1160,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:17',
+ 'thumbnail': r're:https?://i\.ytimg\.com/vi/.+',
+ 'timestamp': 1363263144,
+ 'upload_date': '20130314',
+ 'uploader': 'PROстое3D',
+ 'uploader_id': '@PROstoe3D',
+ 'uploader_url': 'https://www.youtube.com/@PROstoe3D',
+ 'view_count': int,
+ },
+ 'add_ie': ['Youtube'],
+ }, {
+ # Redirect
+ # https://github.com/ytdl-org/youtube-dl/issues/413
+ 'url': 'https://www.google.com/url?rct=j&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcmQHVoWB5FY',
+ 'info_dict': {
+ 'id': 'cmQHVoWB5FY',
+ 'ext': 'mp4',
+ 'title': 'First Firefox OS phones side-by-side',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Entertainment'],
+ 'channel': 'The Verge',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCddiUEpeqJcYeBxX1IVBKvQ',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCddiUEpeqJcYeBxX1IVBKvQ',
+ 'comment_count': int,
+ 'description': 'md5:7a676046ad24d9ea55cdde4a6657c5b3',
+ 'duration': 207,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:15',
+ 'thumbnail': r're:https?://i\.ytimg\.com/vi/.+',
+ 'timestamp': 1361738430,
+ 'upload_date': '20130224',
+ 'uploader': 'The Verge',
+ 'uploader_id': '@TheVerge',
+ 'uploader_url': 'https://www.youtube.com/@TheVerge',
+ 'view_count': int,
+ },
+ 'add_ie': ['Youtube'],
+ }]
def report_following_redirect(self, new_url):
"""Report information extraction."""
diff --git a/yt_dlp/extractor/glomex.py b/yt_dlp/extractor/glomex.py
index 35ffad56c2..69f11eb15d 100644
--- a/yt_dlp/extractor/glomex.py
+++ b/yt_dlp/extractor/glomex.py
@@ -112,16 +112,17 @@ class GlomexIE(GlomexBaseIE):
_TESTS = [{
'url': 'https://video.glomex.com/sport/v-cb24uwg77hgh-nach-2-0-sieg-guardiola-mit-mancity-vor-naechstem-titel',
- 'md5': 'cec33a943c4240c9cb33abea8c26242e',
'info_dict': {
'id': 'v-cb24uwg77hgh',
'ext': 'mp4',
- 'title': 'md5:38a90cedcfadd72982c81acf13556e0c',
+ 'title': 'Nach 2:0-Sieg: Guardiola mit ManCity vor nächstem Titel',
'description': 'md5:1ea6b6caff1443fcbbba159e432eedb8',
'duration': 29600,
+ 'thumbnail': r're:https?://i[a-z0-9]thumbs\.glomex\.com/.+',
'timestamp': 1619895017,
'upload_date': '20210501',
},
+ 'params': {'skip_download': 'm3u8'},
}]
def _real_extract(self, url):
@@ -140,16 +141,17 @@ class GlomexEmbedIE(GlomexBaseIE):
_TESTS = [{
'url': 'https://player.glomex.com/integration/1/iframe-player.html?integrationId=4059a013k56vb2yd&playlistId=v-cfa6lye0dkdd-sf',
- 'md5': '68f259b98cc01918ac34180142fce287',
'info_dict': {
'id': 'v-cfa6lye0dkdd-sf',
'ext': 'mp4',
+ 'title': 'Φώφη Γεννηματά: Ο επικήδειος λόγος του 17χρονου γιου της, Γιώργου',
+ 'thumbnail': r're:https?://i[a-z0-9]thumbs\.glomex\.com/.+',
'timestamp': 1635337199,
'duration': 133080,
'upload_date': '20211027',
'description': 'md5:e741185fc309310ff5d0c789b437be66',
- 'title': 'md5:35647293513a6c92363817a0fb0a7961',
},
+ 'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://player.glomex.com/integration/1/iframe-player.html?origin=fullpage&integrationId=19syy24xjn1oqlpc&playlistId=rl-vcb49w1fb592p&playlistIndex=0',
'info_dict': {
@@ -157,12 +159,27 @@ class GlomexEmbedIE(GlomexBaseIE):
},
'playlist_count': 100,
}, {
+ # Geo-restricted
'url': 'https://player.glomex.com/integration/1/iframe-player.html?playlistId=cl-bgqaata6aw8x&integrationId=19syy24xjn1oqlpc',
'info_dict': {
'id': 'cl-bgqaata6aw8x',
},
'playlist_mincount': 2,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.skai.gr/news/world/iatrikos-syllogos-tourkias-to-turkovac-aplo-dialyma-erntogan-eiste-apateones-kai-pseytes',
+ 'info_dict': {
+ 'id': 'v-ch2nkhcirwc9-sf',
+ 'ext': 'mp4',
+ 'title': 'Ιατρικός Σύλλογος Τουρκίας: Το Turkovac είναι ένα απλό διάλυμα –Ερντογάν: Είστε απατεώνες και ψεύτες',
+ 'description': 'md5:8b517a61d577efe7e36fde72fd535995',
+ 'duration': 460000,
+ 'thumbnail': r're:https?://i[a-z0-9]thumbs\.glomex\.com/.+',
+ 'timestamp': 1641885019,
+ 'upload_date': '20220111',
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }]
@classmethod
def build_player_url(cls, video_id, integration, origin_url=None):
diff --git a/yt_dlp/extractor/indavideo.py b/yt_dlp/extractor/indavideo.py
index 85e388e0d2..2da1d796e3 100644
--- a/yt_dlp/extractor/indavideo.py
+++ b/yt_dlp/extractor/indavideo.py
@@ -11,7 +11,6 @@ from ..utils import (
class IndavideoEmbedIE(InfoExtractor):
_VALID_URL = r'https?://(?:(?:embed\.)?indavideo\.hu/player/video/|assets\.indavideo\.hu/swf/player\.swf\?.*\b(?:v(?:ID|id))=)(?P<id>[\da-f]+)'
# Some example URLs covered by generic extractor:
- # https://indavideo.hu/video/Vicces_cica_1
# https://index.indavideo.hu/video/Hod_Nemetorszagban
# https://auto.indavideo.hu/video/Sajat_utanfutoban_a_kis_tacsko
# https://film.indavideo.hu/video/f_farkaslesen
@@ -25,14 +24,14 @@ class IndavideoEmbedIE(InfoExtractor):
'ext': 'mp4',
'title': 'Cicatánc',
'description': '',
- 'thumbnail': r're:^https?://.*\.jpg$',
'uploader': 'cukiajanlo',
'uploader_id': '83729',
+ 'thumbnail': r're:https?://pics\.indavideo\.hu/videos/.+\.jpg',
'timestamp': 1439193826,
'upload_date': '20150810',
'duration': 72,
'age_limit': 0,
- 'tags': ['tánc', 'cica', 'cuki', 'cukiajanlo', 'newsroom'],
+ 'tags': 'count:5',
},
}, {
'url': 'https://embed.indavideo.hu/player/video/1bdc3c6d80?autostart=1&hide=1',
@@ -45,14 +44,30 @@ class IndavideoEmbedIE(InfoExtractor):
'ext': 'mp4',
'title': 'Vicces cica',
'description': 'Játszik a tablettel. :D',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://pics\.indavideo\.hu/videos/.+\.jpg',
'uploader': 'Jet_Pack',
'uploader_id': '491217',
'timestamp': 1390821212,
'upload_date': '20140127',
'duration': 7,
'age_limit': 0,
- 'tags': ['cica', 'Jet_Pack'],
+ 'tags': 'count:2',
+ },
+ }, {
+ 'url': 'https://palyazat.indavideo.hu/video/RUSH_1',
+ 'info_dict': {
+ 'id': '3808180',
+ 'ext': 'mp4',
+ 'title': 'RUSH',
+ 'age_limit': 0,
+ 'description': '',
+ 'duration': 650,
+ 'tags': 'count:2',
+ 'thumbnail': r're:https?://pics\.indavideo\.hu/videos/.+\.jpg',
+ 'timestamp': 1729136266,
+ 'upload_date': '20241017',
+ 'uploader': '7summerfilms',
+ 'uploader_id': '1628496',
},
}]
diff --git a/yt_dlp/extractor/joj.py b/yt_dlp/extractor/joj.py
index 0c8e999cdf..d236689734 100644
--- a/yt_dlp/extractor/joj.py
+++ b/yt_dlp/extractor/joj.py
@@ -22,18 +22,17 @@ class JojIE(InfoExtractor):
'id': 'a388ec4c-6019-4a4a-9312-b1bee194e932',
'ext': 'mp4',
'title': 'NOVÉ BÝVANIE',
- 'thumbnail': r're:^https?://.*?$',
'duration': 3118,
+ 'thumbnail': r're:https?://img\.joj\.sk/.+',
},
}, {
'url': 'https://media.joj.sk/embed/CSM0Na0l0p1',
'info_dict': {
'id': 'CSM0Na0l0p1',
'ext': 'mp4',
- 'height': 576,
'title': 'Extrémne rodiny 2 - POKRAČOVANIE (2012/04/09 21:30:00)',
'duration': 3937,
- 'thumbnail': r're:^https?://.*?$',
+ 'thumbnail': r're:https?://img\.joj\.sk/.+',
},
}, {
'url': 'https://media.joj.sk/embed/9i1cxv',
@@ -45,6 +44,15 @@ class JojIE(InfoExtractor):
'url': 'joj:9i1cxv',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Embed detection
+ 'url': 'https://www.noviny.sk/slovensko/238543-slovenskom-sa-prehnala-vlna-silnych-burok',
+ 'info_dict': {
+ 'id': '238543-slovenskom-sa-prehnala-vlna-silnych-burok',
+ 'title': 'Slovenskom sa prehnala vlna silných búrok',
+ },
+ 'playlist_mincount': 5,
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/jwplatform.py b/yt_dlp/extractor/jwplatform.py
index 7d5a931b5f..71391cafa2 100644
--- a/yt_dlp/extractor/jwplatform.py
+++ b/yt_dlp/extractor/jwplatform.py
@@ -8,7 +8,6 @@ class JWPlatformIE(InfoExtractor):
_VALID_URL = r'(?:https?://(?:content\.jwplatform|cdn\.jwplayer)\.com/(?:(?:feed|player|thumb|preview|manifest)s|jw6|v2/media)/|jwplatform:)(?P<id>[a-zA-Z0-9]{8})'
_TESTS = [{
'url': 'http://content.jwplatform.com/players/nPripu9l-ALJ3XQCI.js',
- 'md5': '3aa16e4f6860e6e78b7df5829519aed3',
'info_dict': {
'id': 'nPripu9l',
'ext': 'mp4',
@@ -17,13 +16,12 @@ class JWPlatformIE(InfoExtractor):
'upload_date': '20081127',
'timestamp': 1227796140,
'duration': 32.0,
- 'thumbnail': 'https://cdn.jwplayer.com/v2/media/nPripu9l/poster.jpg?width=720',
+ 'thumbnail': r're:https?://cdn\.jwplayer\.com/v2/media/.+',
},
}, {
'url': 'https://cdn.jwplayer.com/players/nPripu9l-ALJ3XQCI.js',
'only_matching': True,
}]
-
_WEBPAGE_TESTS = [{
# JWPlatform iframe
'url': 'https://www.covermagazine.co.uk/feature/2465255/business-protection-involved',
@@ -33,10 +31,11 @@ class JWPlatformIE(InfoExtractor):
'upload_date': '20160719',
'timestamp': 1468923808,
'title': '2016_05_18 Cover L&G Business Protection V1 FINAL.mp4',
- 'thumbnail': 'https://cdn.jwplayer.com/v2/media/AG26UQXM/poster.jpg?width=720',
+ 'thumbnail': r're:https?://cdn\.jwplayer\.com/v2/media/.+',
'description': '',
'duration': 294.0,
},
+ 'skip': 'Site no longer embeds JWPlatform',
}, {
# Player url not surrounded by quotes
'url': 'https://www.deutsche-kinemathek.de/en/online/streaming/school-trip',
@@ -45,12 +44,12 @@ class JWPlatformIE(InfoExtractor):
'title': 'Klassenfahrt',
'ext': 'mp4',
'upload_date': '20230109',
- 'thumbnail': 'https://cdn.jwplayer.com/v2/media/jUxh5uin/poster.jpg?width=720',
+ 'thumbnail': r're:https?://cdn\.jwplayer\.com/v2/media/.+',
'timestamp': 1673270298,
'description': '',
'duration': 5193.0,
},
- 'params': {'allowed_extractors': ['generic', 'jwplatform']},
+ 'skip': 'Site no longer embeds JWPlatform',
}, {
# iframe src attribute includes backslash before URL string
'url': 'https://www.elespectador.com/colombia/video-asi-se-evito-la-fuga-de-john-poulos-presunto-feminicida-de-valentina-trespalacios-explicacion',
@@ -59,11 +58,24 @@ class JWPlatformIE(InfoExtractor):
'title': 'Así se evitó la fuga de John Poulos, presunto feminicida de Valentina Trespalacios',
'ext': 'mp4',
'upload_date': '20230127',
- 'thumbnail': 'https://cdn.jwplayer.com/v2/media/QD3gsexj/poster.jpg?width=720',
+ 'thumbnail': r're:https?://cdn\.jwplayer\.com/v2/media/.+',
'timestamp': 1674862986,
'description': 'md5:128fd74591c4e1fc2da598c5cb6f5ce4',
'duration': 263.0,
},
+ }, {
+ 'url': 'https://www.skimag.com/video/ski-people-1980',
+ 'info_dict': {
+ 'id': 'YTmgRiNU',
+ 'ext': 'mp4',
+ 'title': 'Ski People (1980)',
+ 'channel': 'snow',
+ 'description': 'md5:cf9c3d101452c91e141f292b19fe4843',
+ 'duration': 5688.0,
+ 'thumbnail': r're:https?://cdn\.jwplayer\.com/v2/media/.+',
+ 'timestamp': 1610407738,
+ 'upload_date': '20210111',
+ },
}]
@classmethod
diff --git a/yt_dlp/extractor/kaltura.py b/yt_dlp/extractor/kaltura.py
index 6d51e32f6d..dc11cbf6be 100644
--- a/yt_dlp/extractor/kaltura.py
+++ b/yt_dlp/extractor/kaltura.py
@@ -41,149 +41,188 @@ class KalturaIE(InfoExtractor):
2: 'ttml',
3: 'vtt',
}
- _TESTS = [
- {
- 'url': 'kaltura:269692:1_1jc2y3e4',
- 'md5': '3adcbdb3dcc02d647539e53f284ba171',
- 'info_dict': {
- 'id': '1_1jc2y3e4',
- 'ext': 'mp4',
- 'title': 'Straight from the Heart',
- 'upload_date': '20131219',
- 'uploader_id': '[email protected]',
- 'description': 'The Allman Brothers Band, 12/16/1981',
- 'thumbnail': 're:^https?://.*/thumbnail/.*',
- 'timestamp': int,
- },
- 'skip': 'The access to this service is forbidden since the specified partner is blocked',
- },
- {
- 'url': 'http://www.kaltura.com/index.php/kwidget/cache_st/1300318621/wid/_269692/uiconf_id/3873291/entry_id/1_1jc2y3e4',
- 'only_matching': True,
+ _TESTS = [{
+ 'url': 'kaltura:269692:1_1jc2y3e4',
+ 'md5': '3adcbdb3dcc02d647539e53f284ba171',
+ 'info_dict': {
+ 'id': '1_1jc2y3e4',
+ 'ext': 'mp4',
+ 'title': 'Straight from the Heart',
+ 'upload_date': '20131219',
+ 'uploader_id': '[email protected]',
+ 'description': 'The Allman Brothers Band, 12/16/1981',
+ 'thumbnail': r're:https?://.+/thumbnail/.+',
+ 'timestamp': int,
},
- {
- 'url': 'https://cdnapisec.kaltura.com/index.php/kwidget/wid/_557781/uiconf_id/22845202/entry_id/1_plr1syf3',
- 'only_matching': True,
+ 'skip': 'The access to this service is forbidden since the specified partner is blocked',
+ }, {
+ 'url': 'http://www.kaltura.com/index.php/kwidget/cache_st/1300318621/wid/_269692/uiconf_id/3873291/entry_id/1_1jc2y3e4',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://cdnapisec.kaltura.com/index.php/kwidget/wid/_557781/uiconf_id/22845202/entry_id/1_plr1syf3',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://cdnapisec.kaltura.com/html5/html5lib/v2.30.2/mwEmbedFrame.php/p/1337/uiconf_id/20540612/entry_id/1_sf5ovm7u?wid=_243342',
+ 'only_matching': True,
+ }, {
+ # video with subtitles
+ 'url': 'kaltura:111032:1_cw786r8q',
+ 'only_matching': True,
+ }, {
+ # video with ttml subtitles (no fileExt)
+ 'url': 'kaltura:1926081:0_l5ye1133',
+ 'info_dict': {
+ 'id': '0_l5ye1133',
+ 'ext': 'mp4',
+ 'title': 'What Can You Do With Python?',
+ 'upload_date': '20160221',
+ 'uploader_id': 'stork',
+ 'thumbnail': r're:https?://.+/thumbnail/.+',
+ 'timestamp': int,
+ 'subtitles': {
+ 'en': [{
+ 'ext': 'ttml',
+ }],
+ },
},
- {
- 'url': 'https://cdnapisec.kaltura.com/html5/html5lib/v2.30.2/mwEmbedFrame.php/p/1337/uiconf_id/20540612/entry_id/1_sf5ovm7u?wid=_243342',
- 'only_matching': True,
+ 'skip': 'Gone. Maybe https://www.safaribooksonline.com/library/tutorials/introduction-to-python-anon/3469/',
+ 'params': {'skip_download': True},
+ }, {
+ 'url': 'https://www.kaltura.com/index.php/extwidget/preview/partner_id/1770401/uiconf_id/37307382/entry_id/0_58u8kme7/embed/iframe?&flashvars[streamerType]=auto',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://www.kaltura.com:443/index.php/extwidget/preview/partner_id/1770401/uiconf_id/37307382/entry_id/0_58u8kme7/embed/iframe?&flashvars[streamerType]=auto',
+ 'only_matching': True,
+ }, {
+ # unavailable source format
+ 'url': 'kaltura:513551:1_66x4rg7o',
+ 'only_matching': True,
+ }, {
+ # html5lib URL using kwidget player
+ 'url': 'https://cdnapisec.kaltura.com/html5/html5lib/v2.46/mwEmbedFrame.php/p/691292/uiconf_id/20499062/entry_id/0_c076mna6?wid=_691292&iframeembed=true&playerId=kaltura_player_1420508608&entry_id=0_c076mna6&flashvars%5BakamaiHD.loadingPolicy%5D=preInitialize&flashvars%5BakamaiHD.asyncInit%5D=true&flashvars%5BstreamerType%5D=hdnetwork',
+ 'info_dict': {
+ 'id': '0_c076mna6',
+ 'ext': 'mp4',
+ 'title': 'md5:4883e7acbcbf42583a2dddc97dee4855',
+ 'duration': 3608,
+ 'uploader_id': '[email protected]',
+ 'timestamp': 1408086874,
+ 'view_count': int,
+ 'upload_date': '20140815',
+ 'thumbnail': r're:https?://cfvod\.kaltura\.com/.+',
},
- {
- # video with subtitles
- 'url': 'kaltura:111032:1_cw786r8q',
- 'only_matching': True,
+ }, {
+ # html5lib playlist URL using kwidget player
+ 'url': 'https://cdnapisec.kaltura.com/html5/html5lib/v2.89/mwEmbedFrame.php/p/2019031/uiconf_id/40436601?wid=1_4j3m32cv&iframeembed=true&playerId=kaltura_player_&flashvars[playlistAPI.kpl0Id]=1_jovey5nu&flashvars[ks]=&&flashvars[imageDefaultDuration]=30&flashvars[localizationCode]=en&flashvars[leadWithHTML5]=true&flashvars[forceMobileHTML5]=true&flashvars[nextPrevBtn.plugin]=true&flashvars[hotspots.plugin]=true&flashvars[sideBarContainer.plugin]=true&flashvars[sideBarContainer.position]=left&flashvars[sideBarContainer.clickToClose]=true&flashvars[chapters.plugin]=true&flashvars[chapters.layout]=vertical&flashvars[chapters.thumbnailRotator]=false&flashvars[streamSelector.plugin]=true&flashvars[EmbedPlayer.SpinnerTarget]=videoHolder&flashvars[dualScreen.plugin]=true&flashvars[playlistAPI.playlistUrl]=https://canvasgatechtest.kaf.kaltura.com/playlist/details/{playlistAPI.kpl0Id}/categoryid/126428551',
+ 'info_dict': {
+ 'id': '1_jovey5nu',
+ 'title': '00-00 Introduction',
},
- {
- # video with ttml subtitles (no fileExt)
- 'url': 'kaltura:1926081:0_l5ye1133',
- 'info_dict': {
- 'id': '0_l5ye1133',
- 'ext': 'mp4',
- 'title': 'What Can You Do With Python?',
- 'upload_date': '20160221',
- 'uploader_id': 'stork',
- 'thumbnail': 're:^https?://.*/thumbnail/.*',
- 'timestamp': int,
- 'subtitles': {
- 'en': [{
- 'ext': 'ttml',
- }],
+ 'playlist': [
+ {
+ 'info_dict': {
+ 'id': '1_b1y5hlvx',
+ 'ext': 'mp4',
+ 'title': 'CS7646_00-00 Introductio_Introduction',
+ 'duration': 91,
+ 'thumbnail': r're:https?://cfvod\.kaltura\.com/.+',
+ 'view_count': int,
+ 'timestamp': 1533154447,
+ 'upload_date': '20180801',
+ 'uploader_id': 'djoyner3',
+ },
+ }, {
+ 'info_dict': {
+ 'id': '1_jfb7mdpn',
+ 'ext': 'mp4',
+ 'title': 'CS7646_00-00 Introductio_Three parts to the course',
+ 'duration': 63,
+ 'thumbnail': r're:https?://cfvod\.kaltura\.com/.+',
+ 'view_count': int,
+ 'timestamp': 1533154489,
+ 'upload_date': '20180801',
+ 'uploader_id': 'djoyner3',
+ },
+ }, {
+ 'info_dict': {
+ 'id': '1_8xflxdp7',
+ 'ext': 'mp4',
+ 'title': 'CS7646_00-00 Introductio_Textbooks',
+ 'duration': 37,
+ 'thumbnail': r're:https?://cfvod\.kaltura\.com/.+',
+ 'view_count': int,
+ 'timestamp': 1533154512,
+ 'upload_date': '20180801',
+ 'uploader_id': 'djoyner3',
+ },
+ }, {
+ 'info_dict': {
+ 'id': '1_3hqew8kn',
+ 'ext': 'mp4',
+ 'title': 'CS7646_00-00 Introductio_Prerequisites',
+ 'duration': 49,
+ 'thumbnail': r're:https?://cfvod\.kaltura\.com/.+',
+ 'view_count': int,
+ 'timestamp': 1533154536,
+ 'upload_date': '20180801',
+ 'uploader_id': 'djoyner3',
},
},
- 'skip': 'Gone. Maybe https://www.safaribooksonline.com/library/tutorials/introduction-to-python-anon/3469/',
- 'params': {
- 'skip_download': True,
- },
- },
- {
- 'url': 'https://www.kaltura.com/index.php/extwidget/preview/partner_id/1770401/uiconf_id/37307382/entry_id/0_58u8kme7/embed/iframe?&flashvars[streamerType]=auto',
- 'only_matching': True,
- },
- {
- 'url': 'https://www.kaltura.com:443/index.php/extwidget/preview/partner_id/1770401/uiconf_id/37307382/entry_id/0_58u8kme7/embed/iframe?&flashvars[streamerType]=auto',
- 'only_matching': True,
+ ],
+ }]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.cornell.edu/VIDEO/nima-arkani-hamed-standard-models-of-particle-physics',
+ 'info_dict': {
+ 'id': '1_sgtvehim',
+ 'ext': 'mp4',
+ 'title': 'Our "Standard Models" of particle physics and cosmology',
+ 'duration': 5420,
+ 'thumbnail': r're:https?://cdnsecakmi\.kaltura\.com/.+',
+ 'timestamp': 1321158993,
+ 'upload_date': '20111113',
+ 'uploader_id': 'kps1',
+ 'view_count': int,
},
- {
- # unavailable source format
- 'url': 'kaltura:513551:1_66x4rg7o',
- 'only_matching': True,
+ }, {
+ 'url': 'https://www.oreilly.com/ideas/my-cloud-makes-pretty-pictures',
+ 'info_dict': {
+ 'id': '0_utuok90b',
+ 'ext': 'mp4',
+ 'title': '06_matthew_brender_raj_dutt',
+ 'duration': 331,
+ 'thumbnail': r're:https?://cfvod\.kaltura\.com/.+',
+ 'timestamp': 1466638791,
+ 'upload_date': '20160622',
+ 'uploader_id': '',
+ 'view_count': int,
},
- {
- # html5lib URL using kwidget player
- 'url': 'https://cdnapisec.kaltura.com/html5/html5lib/v2.46/mwEmbedFrame.php/p/691292/uiconf_id/20499062/entry_id/0_c076mna6?wid=_691292&iframeembed=true&playerId=kaltura_player_1420508608&entry_id=0_c076mna6&flashvars%5BakamaiHD.loadingPolicy%5D=preInitialize&flashvars%5BakamaiHD.asyncInit%5D=true&flashvars%5BstreamerType%5D=hdnetwork',
- 'info_dict': {
- 'id': '0_c076mna6',
- 'ext': 'mp4',
- 'title': 'md5:4883e7acbcbf42583a2dddc97dee4855',
- 'duration': 3608,
- 'uploader_id': '[email protected]',
- 'timestamp': 1408086874,
- 'view_count': int,
- 'upload_date': '20140815',
- 'thumbnail': 'http://cfvod.kaltura.com/p/691292/sp/69129200/thumbnail/entry_id/0_c076mna6/version/100022',
- },
+ }, {
+ 'url': 'https://fod.infobase.com/p_ViewPlaylist.aspx?AssignmentID=NUN8ZY',
+ 'info_dict': {
+ 'id': '0_izeg5utt',
+ 'ext': 'mp4',
+ 'title': '35871',
+ 'duration': 3403,
+ 'thumbnail': r're:https?://cfvod\.kaltura\.com/.+',
+ 'timestamp': 1355743100,
+ 'upload_date': '20121217',
+ 'uploader_id': '[email protected]',
+ 'view_count': int,
},
- {
- # html5lib playlist URL using kwidget player
- 'url': 'https://cdnapisec.kaltura.com/html5/html5lib/v2.89/mwEmbedFrame.php/p/2019031/uiconf_id/40436601?wid=1_4j3m32cv&iframeembed=true&playerId=kaltura_player_&flashvars[playlistAPI.kpl0Id]=1_jovey5nu&flashvars[ks]=&&flashvars[imageDefaultDuration]=30&flashvars[localizationCode]=en&flashvars[leadWithHTML5]=true&flashvars[forceMobileHTML5]=true&flashvars[nextPrevBtn.plugin]=true&flashvars[hotspots.plugin]=true&flashvars[sideBarContainer.plugin]=true&flashvars[sideBarContainer.position]=left&flashvars[sideBarContainer.clickToClose]=true&flashvars[chapters.plugin]=true&flashvars[chapters.layout]=vertical&flashvars[chapters.thumbnailRotator]=false&flashvars[streamSelector.plugin]=true&flashvars[EmbedPlayer.SpinnerTarget]=videoHolder&flashvars[dualScreen.plugin]=true&flashvars[playlistAPI.playlistUrl]=https://canvasgatechtest.kaf.kaltura.com/playlist/details/{playlistAPI.kpl0Id}/categoryid/126428551',
- 'info_dict': {
- 'id': '1_jovey5nu',
- 'title': '00-00 Introduction',
- },
- 'playlist': [
- {
- 'info_dict': {
- 'id': '1_b1y5hlvx',
- 'ext': 'mp4',
- 'title': 'CS7646_00-00 Introductio_Introduction',
- 'duration': 91,
- 'thumbnail': 'http://cfvod.kaltura.com/p/2019031/sp/201903100/thumbnail/entry_id/1_b1y5hlvx/version/100001',
- 'view_count': int,
- 'timestamp': 1533154447,
- 'upload_date': '20180801',
- 'uploader_id': 'djoyner3',
- },
- }, {
- 'info_dict': {
- 'id': '1_jfb7mdpn',
- 'ext': 'mp4',
- 'title': 'CS7646_00-00 Introductio_Three parts to the course',
- 'duration': 63,
- 'thumbnail': 'http://cfvod.kaltura.com/p/2019031/sp/201903100/thumbnail/entry_id/1_jfb7mdpn/version/100001',
- 'view_count': int,
- 'timestamp': 1533154489,
- 'upload_date': '20180801',
- 'uploader_id': 'djoyner3',
- },
- }, {
- 'info_dict': {
- 'id': '1_8xflxdp7',
- 'ext': 'mp4',
- 'title': 'CS7646_00-00 Introductio_Textbooks',
- 'duration': 37,
- 'thumbnail': 'http://cfvod.kaltura.com/p/2019031/sp/201903100/thumbnail/entry_id/1_8xflxdp7/version/100001',
- 'view_count': int,
- 'timestamp': 1533154512,
- 'upload_date': '20180801',
- 'uploader_id': 'djoyner3',
- },
- }, {
- 'info_dict': {
- 'id': '1_3hqew8kn',
- 'ext': 'mp4',
- 'title': 'CS7646_00-00 Introductio_Prerequisites',
- 'duration': 49,
- 'thumbnail': 'http://cfvod.kaltura.com/p/2019031/sp/201903100/thumbnail/entry_id/1_3hqew8kn/version/100001',
- 'view_count': int,
- 'timestamp': 1533154536,
- 'upload_date': '20180801',
- 'uploader_id': 'djoyner3',
- },
- },
- ],
+ }, {
+ 'url': 'https://www.cns.nyu.edu/~eero/math-tools17/Videos/lecture-05sep2017.html',
+ 'info_dict': {
+ 'id': '1_9gzouybz',
+ 'ext': 'mp4',
+ 'title': 'lecture-05sep2017',
+ 'duration': 7219,
+ 'thumbnail': r're:https?://cfvod\.kaltura\.com/.+',
+ 'timestamp': 1505340777,
+ 'upload_date': '20170913',
+ 'uploader_id': 'eps2',
+ 'view_count': int,
},
- ]
+ }]
@classmethod
def _extract_embed_urls(cls, url, webpage):
diff --git a/yt_dlp/extractor/kinja.py b/yt_dlp/extractor/kinja.py
index 99c8a12247..67c089104c 100644
--- a/yt_dlp/extractor/kinja.py
+++ b/yt_dlp/extractor/kinja.py
@@ -89,6 +89,15 @@ class KinjaEmbedIE(InfoExtractor):
'url': 'https://kinja.com/ajax/inset/iframe?id=youtube-video-00QyL0AgPAE',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'http://www.clickhole.com/video/dont-understand-bitcoin-man-will-mumble-explanatio-2537',
+ 'info_dict': {
+ 'id': '106351',
+ 'ext': 'mp4',
+ 'title': 'Don’t Understand Bitcoin? This Man Will Mumble An Explanation At You',
+ },
+ 'skip': 'Invalid URL',
+ }]
_JWPLATFORM_PROVIDER = ('cdn.jwplayer.com/v2/media/', 'JWPlatform')
_PROVIDER_MAP = {
'fb': ('facebook.com/video.php?v=', 'Facebook'),
diff --git a/yt_dlp/extractor/libsyn.py b/yt_dlp/extractor/libsyn.py
index 4ca521a106..8772fb7632 100644
--- a/yt_dlp/extractor/libsyn.py
+++ b/yt_dlp/extractor/libsyn.py
@@ -18,12 +18,10 @@ class LibsynIE(InfoExtractor):
'info_dict': {
'id': '6385796',
'ext': 'mp3',
- 'title': 'Champion Minded - Developing a Growth Mindset',
- # description fetched using another request:
- # http://html5-player.libsyn.com/embed/getitemdetails?item_id=6385796
- # 'description': 'In this episode, Allistair talks about the importance of developing a growth mindset, not only in sports, but in life too.',
+ 'title': 'The Allistair McCaw Podcast - Developing a Growth Mindset',
+ 'duration': 834.0,
+ 'thumbnail': r're:https?://assets\.libsyn\.com/.+',
'upload_date': '20180320',
- 'thumbnail': 're:^https?://.*',
},
}, {
'url': 'https://html5-player.libsyn.com/embed/episode/id/3727166/height/75/width/200/theme/standard/direction/no/autoplay/no/autonext/no/thumbnail/no/preload/no/no_addthis/no/',
@@ -32,8 +30,32 @@ class LibsynIE(InfoExtractor):
'id': '3727166',
'ext': 'mp3',
'title': 'Clients From Hell Podcast - How a Sex Toy Company Kickstarted my Freelance Career',
+ 'thumbnail': r're:https?://assets\.libsyn\.com/.+',
'upload_date': '20150818',
- 'thumbnail': 're:^https?://.*',
+ },
+ 'skip': 'Invalid URL',
+ }]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://html5-player.libsyn.com/',
+ 'md5': '50cff329596b8f674d4449ed077ef2f9',
+ 'info_dict': {
+ 'id': '2378831',
+ 'ext': 'mp3',
+ 'title': 'md5:54108b15f98e1b4056612c10b50106b2',
+ 'duration': 3561.0,
+ 'thumbnail': r're:https?://assets\.libsyn\.com/.+',
+ 'upload_date': '20130630',
+ },
+ }, {
+ 'url': 'https://undergroundwellness.com/podcasts/306-5-steps-to-permanent-gut-healing/',
+ 'md5': '23576952577f9604520a730d90371761',
+ 'info_dict': {
+ 'id': '3793998',
+ 'ext': 'mp3',
+ 'title': 'Underground Wellness Radio - Jack Tips: 5 Steps to Permanent Gut Healing',
+ 'duration': 3989.0,
+ 'thumbnail': r're:https?://assets\.libsyn\.com/.+',
+ 'upload_date': '20141126',
},
}]
diff --git a/yt_dlp/extractor/mainstreaming.py b/yt_dlp/extractor/mainstreaming.py
index fb9350584a..6d249888ad 100644
--- a/yt_dlp/extractor/mainstreaming.py
+++ b/yt_dlp/extractor/mainstreaming.py
@@ -16,91 +16,103 @@ class MainStreamingIE(InfoExtractor):
_EMBED_REGEX = [rf'<iframe[^>]+?src=["\']?(?P<url>{_VALID_URL})["\']?']
IE_DESC = 'MainStreaming Player'
- _TESTS = [
- {
- # Live stream offline, has alternative content id
- 'url': 'https://webtools-e18da6642b684f8aa9ae449862783a56.msvdn.net/embed/53EN6GxbWaJC',
- 'info_dict': {
- 'id': '53EN6GxbWaJC',
- 'title': 'Diretta homepage 2021-12-31 12:00',
- 'description': '',
- 'live_status': 'was_live',
- 'ext': 'mp4',
- 'thumbnail': r're:https?://[A-Za-z0-9-]*\.msvdn.net/image/\w+/poster',
- },
- 'expected_warnings': [
- 'Ignoring alternative content ID: WDAF1KOWUpH3',
- 'MainStreaming said: Live event is OFFLINE',
- ],
- 'skip': 'live stream offline',
- }, {
- # playlist
- 'url': 'https://webtools-e18da6642b684f8aa9ae449862783a56.msvdn.net/embed/WDAF1KOWUpH3',
- 'info_dict': {
- 'id': 'WDAF1KOWUpH3',
- 'title': 'Playlist homepage',
- },
- 'playlist_mincount': 2,
- }, {
- # livestream
- 'url': 'https://webtools-859c1818ed614cc5b0047439470927b0.msvdn.net/embed/tDoFkZD3T1Lw',
- 'info_dict': {
- 'id': 'tDoFkZD3T1Lw',
- 'title': r're:Class CNBC Live \d{4}-\d{2}-\d{2} \d{2}:\d{2}$',
- 'live_status': 'is_live',
- 'ext': 'mp4',
- 'thumbnail': r're:https?://[A-Za-z0-9-]*\.msvdn.net/image/\w+/poster',
- },
- 'skip': 'live stream',
- }, {
- 'url': 'https://webtools-f5842579ff984c1c98d63b8d789673eb.msvdn.net/embed/EUlZfGWkGpOd?autoPlay=false',
- 'info_dict': {
- 'id': 'EUlZfGWkGpOd',
- 'title': 'La Settimana ',
- 'description': '03 Ottobre ore 02:00',
- 'ext': 'mp4',
- 'live_status': 'not_live',
- 'thumbnail': r're:https?://[A-Za-z0-9-]*\.msvdn.net/image/\w+/poster',
- 'duration': 1512,
- },
- }, {
- # video without webtools- prefix
- 'url': 'https://f5842579ff984c1c98d63b8d789673eb.msvdn.net/embed/MfuWmzL2lGkA?autoplay=false&T=1635860445',
- 'info_dict': {
- 'id': 'MfuWmzL2lGkA',
- 'title': 'TG Mattina',
- 'description': '06 Ottobre ore 08:00',
- 'ext': 'mp4',
- 'live_status': 'not_live',
- 'thumbnail': r're:https?://[A-Za-z0-9-]*\.msvdn.net/image/\w+/poster',
- 'duration': 789.04,
- },
- }, {
- # always-on livestream with DVR
- 'url': 'https://webtools-f5842579ff984c1c98d63b8d789673eb.msvdn.net/embed/HVvPMzy',
- 'info_dict': {
- 'id': 'HVvPMzy',
- 'title': r're:^Diretta LaC News24 \d{4}-\d{2}-\d{2} \d{2}:\d{2}$',
- 'description': 'canale all news',
- 'live_status': 'is_live',
- 'ext': 'mp4',
- 'thumbnail': r're:https?://[A-Za-z0-9-]*\.msvdn.net/image/\w+/poster',
- },
- 'params': {
- 'skip_download': True,
- },
- }, {
- # no host
- 'url': 'https://webtools.msvdn.net/embed/MfuWmzL2lGkA',
- 'only_matching': True,
- }, {
- 'url': 'https://859c1818ed614cc5b0047439470927b0.msvdn.net/amp_embed/tDoFkZD3T1Lw',
- 'only_matching': True,
- }, {
- 'url': 'https://859c1818ed614cc5b0047439470927b0.msvdn.net/content/tDoFkZD3T1Lw#',
- 'only_matching': True,
+ _TESTS = [{
+ # Live stream offline, has alternative content id
+ 'url': 'https://webtools-e18da6642b684f8aa9ae449862783a56.msvdn.net/embed/53EN6GxbWaJC',
+ 'info_dict': {
+ 'id': '53EN6GxbWaJC',
+ 'title': 'Diretta homepage 2021-12-31 12:00',
+ 'description': '',
+ 'live_status': 'was_live',
+ 'ext': 'mp4',
+ 'thumbnail': r're:https?://[\w-]+\.msvdn\.net/image/\w+/poster',
},
- ]
+ 'expected_warnings': [
+ 'Ignoring alternative content ID: WDAF1KOWUpH3',
+ 'MainStreaming said: Live event is OFFLINE',
+ ],
+ 'skip': 'live stream offline',
+ }, {
+ # playlist
+ 'url': 'https://webtools-e18da6642b684f8aa9ae449862783a56.msvdn.net/embed/WDAF1KOWUpH3',
+ 'info_dict': {
+ 'id': 'WDAF1KOWUpH3',
+ 'title': 'Playlist homepage',
+ },
+ 'playlist_mincount': 2,
+ }, {
+ # livestream
+ 'url': 'https://webtools-859c1818ed614cc5b0047439470927b0.msvdn.net/embed/tDoFkZD3T1Lw',
+ 'info_dict': {
+ 'id': 'tDoFkZD3T1Lw',
+ 'title': str,
+ 'live_status': 'is_live',
+ 'ext': 'mp4',
+ 'thumbnail': r're:https?://[\w-]+\.msvdn\.net/image/\w+/poster',
+ },
+ 'skip': 'live stream',
+ }, {
+ 'url': 'https://webtools-f5842579ff984c1c98d63b8d789673eb.msvdn.net/embed/EUlZfGWkGpOd?autoPlay=false',
+ 'info_dict': {
+ 'id': 'EUlZfGWkGpOd',
+ 'title': 'La Settimana ',
+ 'description': '03 Ottobre ore 02:00',
+ 'ext': 'mp4',
+ 'live_status': 'not_live',
+ 'thumbnail': r're:https?://[\w-]+\.msvdn\.net/image/\w+/poster',
+ 'duration': 1512,
+ },
+ 'skip': 'Invalid URL',
+ }, {
+ # video without webtools- prefix
+ 'url': 'https://f5842579ff984c1c98d63b8d789673eb.msvdn.net/embed/MfuWmzL2lGkA?autoplay=false&T=1635860445',
+ 'info_dict': {
+ 'id': 'MfuWmzL2lGkA',
+ 'title': 'TG Mattina',
+ 'description': '06 Ottobre ore 08:00',
+ 'ext': 'mp4',
+ 'live_status': 'not_live',
+ 'thumbnail': r're:https?://[\w-]+\.msvdn\.net/image/\w+/poster',
+ 'duration': 789.04,
+ },
+ 'skip': 'Invalid URL',
+ }, {
+ # always-on livestream with DVR
+ 'url': 'https://webtools-f5842579ff984c1c98d63b8d789673eb.msvdn.net/embed/HVvPMzy',
+ 'info_dict': {
+ 'id': 'HVvPMzy',
+ 'title': str,
+ 'description': 'canale all news',
+ 'live_status': 'is_live',
+ 'ext': 'mp4',
+ 'thumbnail': r're:https?://[\w-]+\.msvdn\.net/image/\w+/poster',
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ # no host
+ 'url': 'https://webtools.msvdn.net/embed/MfuWmzL2lGkA',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://859c1818ed614cc5b0047439470927b0.msvdn.net/amp_embed/tDoFkZD3T1Lw',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://859c1818ed614cc5b0047439470927b0.msvdn.net/content/tDoFkZD3T1Lw#',
+ 'only_matching': True,
+ }]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Embed detection
+ 'url': 'https://www.lacplay.it/video/in-evidenza_728/lac-storie-p-250-i-santi-pietro-e-paolo_77297/',
+ 'info_dict': {
+ 'id': 'u7kiX5DUaHYr',
+ 'ext': 'mp4',
+ 'title': 'I Santi Pietro e Paolo',
+ 'description': 'md5:ff6be24916ba6b9ae990bf5f3df4911e',
+ 'duration': 1700.0,
+ 'thumbnail': r're:https?://.+',
+ 'tags': '06/07/2025',
+ 'live_status': 'not_live',
+ },
+ }]
def _playlist_entries(self, host, playlist_content):
for entry in playlist_content:
diff --git a/yt_dlp/extractor/medialaan.py b/yt_dlp/extractor/medialaan.py
index bce20dcfd7..c80b6dff12 100644
--- a/yt_dlp/extractor/medialaan.py
+++ b/yt_dlp/extractor/medialaan.py
@@ -42,6 +42,7 @@ class MedialaanIE(InfoExtractor):
'id': '193993',
'ext': 'mp4',
'title': 'De terugkeer van Ally de Aap en wie vertrekt er nog bij NAC?',
+ 'thumbnail': r're:https?://images\.mychannels\.video/imgix/.+',
'timestamp': 1611663540,
'upload_date': '20210126',
'duration': 238,
@@ -68,6 +69,19 @@ class MedialaanIE(InfoExtractor):
'url': 'https://embed.mychannels.video/embed/193993',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.demorgen.be/snelnieuws/tom-waes-promoot-alcoholtesten-op-werchter-ik-ben-de-laatste-persoon-die-met-de-vinger-moet-wijzen~b7457c0d/',
+ 'info_dict': {
+ 'id': '1576607',
+ 'ext': 'mp4',
+ 'title': 'Tom Waes blaastest',
+ 'duration': 62,
+ 'thumbnail': r're:https?://video-images\.persgroep\.be/aws_generated.+\.jpg',
+ 'timestamp': 1751730795,
+ 'upload_date': '20250705',
+ },
+ 'params': {'extractor_args': {'generic': {'impersonate': ['chrome']}}},
+ }]
@classmethod
def _extract_embed_urls(cls, url, webpage):
diff --git a/yt_dlp/extractor/megatvcom.py b/yt_dlp/extractor/megatvcom.py
index 93c7e7dc08..826a9a3b1f 100644
--- a/yt_dlp/extractor/megatvcom.py
+++ b/yt_dlp/extractor/megatvcom.py
@@ -31,10 +31,9 @@ class MegaTVComIE(MegaTVComBaseIE):
IE_NAME = 'megatvcom'
IE_DESC = 'megatv.com videos'
_VALID_URL = r'https?://(?:www\.)?megatv\.com/(?:\d{4}/\d{2}/\d{2}|[^/]+/(?P<id>\d+))/(?P<slug>[^/]+)'
-
_TESTS = [{
+ # FIXME: Unable to extract article id
'url': 'https://www.megatv.com/2021/10/23/egkainia-gia-ti-nea-skini-omega-tou-dimotikou-theatrou-peiraia/',
- 'md5': '6546a1a37fff0dd51c9dce5f490b7d7d',
'info_dict': {
'id': '520979',
'ext': 'mp4',
@@ -43,20 +42,19 @@ class MegaTVComIE(MegaTVComBaseIE):
'timestamp': 1634975747,
'upload_date': '20211023',
'display_id': 'egkainia-gia-ti-nea-skini-omega-tou-dimotikou-theatrou-peiraia',
- 'thumbnail': 'https://www.megatv.com/wp-content/uploads/2021/10/ΠΕΙΡΑΙΑΣ-1024x450.jpg',
+ 'thumbnail': r're:https?://www\.megatv\.com/wp-content/uploads/.+\.jpg',
},
}, {
'url': 'https://www.megatv.com/tvshows/527800/epeisodio-65-12/',
- 'md5': 'cba2085d45c1abeb8e7e9b7e1d6c0072',
'info_dict': {
'id': '527800',
'ext': 'mp4',
- 'title': 'md5:fc322cb51f682eecfe2f54cd5ab3a157',
+ 'title': 'Η Γη της Ελιάς: Επεισόδιο 65 - A\' ΚΥΚΛΟΣ ',
'description': 'md5:b2b7ed3690a78f2a0156eb790fdc00df',
'timestamp': 1636048859,
'upload_date': '20211104',
'display_id': 'epeisodio-65-12',
- 'thumbnail': 'https://www.megatv.com/wp-content/uploads/2021/11/16-1-1.jpg',
+ 'thumbnail': r're:https?://www\.megatv\.com/wp-content/uploads/.+\.jpg',
},
}]
@@ -104,8 +102,8 @@ class MegaTVComEmbedIE(MegaTVComBaseIE):
IE_DESC = 'megatv.com embedded videos'
_VALID_URL = r'(?:https?:)?//(?:www\.)?megatv\.com/embed/?\?p=(?P<id>\d+)'
_EMBED_REGEX = [rf'''<iframe[^>]+?src=(?P<_q1>["'])(?P<url>{_VALID_URL})(?P=_q1)''']
-
_TESTS = [{
+ # FIXME: Unable to extract article id
'url': 'https://www.megatv.com/embed/?p=2020520979',
'md5': '6546a1a37fff0dd51c9dce5f490b7d7d',
'info_dict': {
@@ -119,6 +117,7 @@ class MegaTVComEmbedIE(MegaTVComBaseIE):
'thumbnail': 'https://www.megatv.com/wp-content/uploads/2021/10/ΠΕΙΡΑΙΑΣ-1024x450.jpg',
},
}, {
+ # FIXME: Unable to extract article id
'url': 'https://www.megatv.com/embed/?p=2020534081',
'md5': '6ac8b3ce4dc6120c802f780a1e6b3812',
'info_dict': {
@@ -132,6 +131,15 @@ class MegaTVComEmbedIE(MegaTVComBaseIE):
'thumbnail': 'https://www.megatv.com/wp-content/uploads/2021/11/Capture-266.jpg',
},
}]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Unable to extract article id
+ 'url': 'https://www.in.gr/2021/12/18/greece/apokalypsi-mega-poios-parelave-tin-ereyna-tsiodra-ek-merous-tis-kyvernisis-o-prothypourgos-telika-gnorize/',
+ 'info_dict': {
+ 'id': 'apokalypsi-mega-poios-parelave-tin-ereyna-tsiodra-ek-merous-tis-kyvernisis-o-prothypourgos-telika-gnorize',
+ 'title': 'md5:5e569cf996ec111057c2764ec272848f',
+ },
+ 'playlist_count': 2,
+ }]
def _match_canonical_url(self, webpage):
LINK_RE = r'''(?x)
diff --git a/yt_dlp/extractor/mlb.py b/yt_dlp/extractor/mlb.py
index b2b35a7121..7037a9df66 100644
--- a/yt_dlp/extractor/mlb.py
+++ b/yt_dlp/extractor/mlb.py
@@ -105,89 +105,85 @@ class MLBIE(MLBBaseIE):
r'<iframe[^>]+?src=(["\'])(?P<url>https?://m(?:lb)?\.mlb\.com/shared/video/embed/embed\.html\?.+?)\1',
r'data-video-link=["\'](?P<url>http://m\.mlb\.com/video/[^"\']+)',
]
- _TESTS = [
- {
- 'url': 'https://www.mlb.com/mariners/video/ackleys-spectacular-catch/c-34698933',
- 'md5': '632358dacfceec06bad823b83d21df2d',
- 'info_dict': {
- 'id': '34698933',
- 'ext': 'mp4',
- 'title': "Ackley's spectacular catch",
- 'description': 'md5:7f5a981eb4f3cbc8daf2aeffa2215bf0',
- 'duration': 66,
- 'timestamp': 1405995000,
- 'upload_date': '20140722',
- 'thumbnail': r're:^https?://.*\.jpg$',
- },
- },
- {
- 'url': 'https://www.mlb.com/video/stanton-prepares-for-derby/c-34496663',
- 'md5': 'bf2619bf9cacc0a564fc35e6aeb9219f',
- 'info_dict': {
- 'id': '34496663',
- 'ext': 'mp4',
- 'title': 'Stanton prepares for Derby',
- 'description': 'md5:d00ce1e5fd9c9069e9c13ab4faedfa57',
- 'duration': 46,
- 'timestamp': 1405120200,
- 'upload_date': '20140711',
- 'thumbnail': r're:^https?://.*\.jpg$',
- },
- },
- {
- 'url': 'https://www.mlb.com/video/cespedes-repeats-as-derby-champ/c-34578115',
- 'md5': '99bb9176531adc600b90880fb8be9328',
- 'info_dict': {
- 'id': '34578115',
- 'ext': 'mp4',
- 'title': 'Cespedes repeats as Derby champ',
- 'description': 'md5:08df253ce265d4cf6fb09f581fafad07',
- 'duration': 488,
- 'timestamp': 1405414336,
- 'upload_date': '20140715',
- 'thumbnail': r're:^https?://.*\.jpg$',
- },
- },
- {
- 'url': 'https://www.mlb.com/video/bautista-on-home-run-derby/c-34577915',
- 'md5': 'da8b57a12b060e7663ee1eebd6f330ec',
- 'info_dict': {
- 'id': '34577915',
- 'ext': 'mp4',
- 'title': 'Bautista on Home Run Derby',
- 'description': 'md5:b80b34031143d0986dddc64a8839f0fb',
- 'duration': 52,
- 'timestamp': 1405405122,
- 'upload_date': '20140715',
- 'thumbnail': r're:^https?://.*\.jpg$',
- },
- },
- {
- 'url': 'https://www.mlb.com/video/hargrove-homers-off-caldwell/c-1352023483?tid=67793694',
- 'only_matching': True,
- },
- {
- 'url': 'http://m.mlb.com/shared/video/embed/embed.html?content_id=35692085&topic_id=6479266&width=400&height=224&property=mlb',
- 'only_matching': True,
+ _TESTS = [{
+ 'url': 'https://www.mlb.com/mariners/video/ackleys-spectacular-catch/c-34698933',
+ 'info_dict': {
+ 'id': '34698933',
+ 'ext': 'mp4',
+ 'title': 'Ackley\'s spectacular catch',
+ 'description': 'md5:7f5a981eb4f3cbc8daf2aeffa2215bf0',
+ 'duration': 66,
+ 'timestamp': 1405995000,
+ 'upload_date': '20140722',
+ 'thumbnail': r're:https?://.+\.jpg',
},
- {
- 'url': 'http://mlb.mlb.com/shared/video/embed/embed.html?content_id=36599553',
- 'only_matching': True,
+ }, {
+ 'url': 'https://www.mlb.com/video/stanton-prepares-for-derby/c-34496663',
+ 'info_dict': {
+ 'id': '34496663',
+ 'ext': 'mp4',
+ 'title': 'Stanton prepares for Derby',
+ 'description': 'md5:d00ce1e5fd9c9069e9c13ab4faedfa57',
+ 'duration': 46,
+ 'timestamp': 1405120200,
+ 'upload_date': '20140711',
+ 'thumbnail': r're:https?://.+\.jpg',
},
- {
- 'url': 'http://mlb.mlb.com/es/video/play.jsp?content_id=36599553',
- 'only_matching': True,
+ }, {
+ 'url': 'https://www.mlb.com/video/cespedes-repeats-as-derby-champ/c-34578115',
+ 'info_dict': {
+ 'id': '34578115',
+ 'ext': 'mp4',
+ 'title': 'Cespedes repeats as Derby champ',
+ 'description': 'md5:08df253ce265d4cf6fb09f581fafad07',
+ 'duration': 488,
+ 'timestamp': 1405414336,
+ 'upload_date': '20140715',
+ 'thumbnail': r're:https?://.+\.jpg',
},
- {
- 'url': 'https://www.mlb.com/cardinals/video/piscottys-great-sliding-catch/c-51175783',
- 'only_matching': True,
+ }, {
+ 'url': 'https://www.mlb.com/video/bautista-on-home-run-derby/c-34577915',
+ 'info_dict': {
+ 'id': '34577915',
+ 'ext': 'mp4',
+ 'title': 'Bautista on Home Run Derby',
+ 'description': 'md5:b80b34031143d0986dddc64a8839f0fb',
+ 'duration': 52,
+ 'timestamp': 1405405122,
+ 'upload_date': '20140715',
+ 'thumbnail': r're:https?://.+\.jpg',
},
- {
- # From http://m.mlb.com/news/article/118550098/blue-jays-kevin-pillar-goes-spidey-up-the-wall-to-rob-tim-beckham-of-a-homer
- 'url': 'http://mlb.mlb.com/shared/video/embed/m-internal-embed.html?content_id=75609783&property=mlb&autoplay=true&hashmode=false&siteSection=mlb/multimedia/article_118550098/article_embed&club=mlb',
- 'only_matching': True,
+ }, {
+ 'url': 'https://www.mlb.com/video/hargrove-homers-off-caldwell/c-1352023483?tid=67793694',
+ 'only_matching': True,
+ }, {
+ 'url': 'http://m.mlb.com/shared/video/embed/embed.html?content_id=35692085&topic_id=6479266&width=400&height=224&property=mlb',
+ 'only_matching': True,
+ }, {
+ 'url': 'http://mlb.mlb.com/shared/video/embed/embed.html?content_id=36599553',
+ 'only_matching': True,
+ }, {
+ 'url': 'http://mlb.mlb.com/es/video/play.jsp?content_id=36599553',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://www.mlb.com/cardinals/video/piscottys-great-sliding-catch/c-51175783',
+ 'only_matching': True,
+ }, {
+ # From http://m.mlb.com/news/article/118550098/blue-jays-kevin-pillar-goes-spidey-up-the-wall-to-rob-tim-beckham-of-a-homer
+ 'url': 'http://mlb.mlb.com/shared/video/embed/m-internal-embed.html?content_id=75609783&property=mlb&autoplay=true&hashmode=false&siteSection=mlb/multimedia/article_118550098/article_embed&club=mlb',
+ 'only_matching': True,
+ }]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.mlbdailydish.com/2013/2/25/4028804/mlb-classic-video-vault-open-watch-embed-share',
+ 'info_dict': {
+ 'id': 'mlb-classic-video-vault-open-watch-embed-share',
+ 'title': 'MLB Classic vault is open! Don\'t avert your eyes!',
+ 'age_limit': 0,
+ 'description': 'All the video needed to hold you over until real baseball starts next month.',
+ 'thumbnail': r're:https?://cdn\.vox-cdn\.com/thumbor/.+\.jpg',
},
- ]
+ 'playlist_count': 3,
+ }]
_TIMESTAMP_KEY = 'date'
@staticmethod
@@ -215,20 +211,19 @@ class MLBIE(MLBBaseIE):
class MLBVideoIE(MLBBaseIE):
_VALID_URL = r'https?://(?:www\.)?mlb\.com/(?:[^/]+/)*video/(?P<id>[^/?&#]+)'
- _TEST = {
+ _TESTS = [{
'url': 'https://www.mlb.com/mariners/video/ackley-s-spectacular-catch-c34698933',
- 'md5': '632358dacfceec06bad823b83d21df2d',
'info_dict': {
'id': 'c04a8863-f569-42e6-9f87-992393657614',
'ext': 'mp4',
- 'title': "Ackley's spectacular catch",
+ 'title': 'Ackley\'s spectacular catch',
'description': 'md5:7f5a981eb4f3cbc8daf2aeffa2215bf0',
'duration': 66,
'timestamp': 1405995000,
'upload_date': '20140722',
- 'thumbnail': r're:^https?://.+',
+ 'thumbnail': r're:https?://.+',
},
- }
+ }]
_TIMESTAMP_KEY = 'timestamp'
@classmethod
diff --git a/yt_dlp/extractor/nbc.py b/yt_dlp/extractor/nbc.py
index bd4862bde0..caa9dc0175 100644
--- a/yt_dlp/extractor/nbc.py
+++ b/yt_dlp/extractor/nbc.py
@@ -138,95 +138,88 @@ class NBCUniversalBaseIE(ThePlatformBaseIE):
class NBCIE(NBCUniversalBaseIE):
_VALID_URL = r'https?(?P<permalink>://(?:www\.)?nbc\.com/(?:classic-tv/)?[^/?#]+/video/[^/?#]+/(?P<id>\w+))'
- _TESTS = [
- {
- 'url': 'http://www.nbc.com/the-tonight-show/video/jimmy-fallon-surprises-fans-at-ben-jerrys/2848237',
- 'info_dict': {
- 'id': '2848237',
- 'ext': 'mp4',
- 'title': 'Jimmy Fallon Surprises Fans at Ben & Jerry\'s',
- 'description': 'Jimmy gives out free scoops of his new "Tonight Dough" ice cream flavor by surprising customers at the Ben & Jerry\'s scoop shop.',
- 'timestamp': 1424246400,
- 'upload_date': '20150218',
- 'uploader': 'NBCU-COM',
- 'episode': 'Jimmy Fallon Surprises Fans at Ben & Jerry\'s',
- 'episode_number': 86,
- 'season': 'Season 2',
- 'season_number': 2,
- 'series': 'Tonight',
- 'duration': 236.504,
- 'tags': 'count:2',
- 'thumbnail': r're:https?://.+\.jpg',
- 'categories': ['Series/The Tonight Show Starring Jimmy Fallon'],
- 'media_type': 'Full Episode',
- 'age_limit': 14,
- '_old_archive_ids': ['theplatform 2848237'],
- },
- 'params': {
- 'skip_download': 'm3u8',
- },
+ _TESTS = [{
+ 'url': 'http://www.nbc.com/the-tonight-show/video/jimmy-fallon-surprises-fans-at-ben-jerrys/2848237',
+ 'info_dict': {
+ 'id': '2848237',
+ 'ext': 'mp4',
+ 'title': 'Jimmy Fallon Surprises Fans at Ben & Jerry\'s',
+ 'description': 'Jimmy gives out free scoops of his new "Tonight Dough" ice cream flavor by surprising customers at the Ben & Jerry\'s scoop shop.',
+ 'timestamp': 1424246400,
+ 'upload_date': '20150218',
+ 'uploader': 'NBCU-COM',
+ 'episode': 'Jimmy Fallon Surprises Fans at Ben & Jerry\'s',
+ 'episode_number': 86,
+ 'season': 'Season 2',
+ 'season_number': 2,
+ 'series': 'Tonight',
+ 'duration': 236.504,
+ 'tags': 'count:2',
+ 'thumbnail': r're:https?://.+\.jpg',
+ 'categories': ['Series/The Tonight Show Starring Jimmy Fallon'],
+ 'media_type': 'Full Episode',
+ 'age_limit': 14,
+ '_old_archive_ids': ['theplatform 2848237'],
},
- {
- 'url': 'https://www.nbc.com/the-golden-globe-awards/video/oprah-winfrey-receives-cecil-b-de-mille-award-at-the-2018-golden-globes/3646439',
- 'info_dict': {
- 'id': '3646439',
- 'ext': 'mp4',
- 'title': 'Oprah Winfrey Receives Cecil B. de Mille Award at the 2018 Golden Globes',
- 'episode': 'Oprah Winfrey Receives Cecil B. de Mille Award at the 2018 Golden Globes',
- 'episode_number': 1,
- 'season': 'Season 75',
- 'season_number': 75,
- 'series': 'Golden Globes',
- 'description': 'Oprah Winfrey receives the Cecil B. de Mille Award at the 75th Annual Golden Globe Awards.',
- 'uploader': 'NBCU-COM',
- 'upload_date': '20180107',
- 'timestamp': 1515312000,
- 'duration': 569.703,
- 'tags': 'count:8',
- 'thumbnail': r're:https?://.+\.jpg',
- 'media_type': 'Highlight',
- 'age_limit': 0,
- 'categories': ['Series/The Golden Globe Awards'],
- '_old_archive_ids': ['theplatform 3646439'],
- },
- 'params': {
- 'skip_download': 'm3u8',
- },
+ 'params': {
+ 'skip_download': 'm3u8',
},
- {
- # Needs to be extracted from webpage instead of GraphQL
- 'url': 'https://www.nbc.com/paris2024/video/ali-truwit-found-purpose-pool-after-her-life-changed/para24_sww_alitruwittodayshow_240823',
- 'info_dict': {
- 'id': 'para24_sww_alitruwittodayshow_240823',
- 'ext': 'mp4',
- 'title': 'Ali Truwit found purpose in the pool after her life changed',
- 'description': 'md5:c16d7489e1516593de1cc5d3f39b9bdb',
- 'uploader': 'NBCU-SPORTS',
- 'duration': 311.077,
- 'thumbnail': r're:https?://.+\.jpg',
- 'episode': 'Ali Truwit found purpose in the pool after her life changed',
- 'timestamp': 1724435902.0,
- 'upload_date': '20240823',
- '_old_archive_ids': ['theplatform para24_sww_alitruwittodayshow_240823'],
- },
- 'params': {
- 'skip_download': 'm3u8',
- },
+ }, {
+ 'url': 'https://www.nbc.com/the-golden-globe-awards/video/oprah-winfrey-receives-cecil-b-de-mille-award-at-the-2018-golden-globes/3646439',
+ 'info_dict': {
+ 'id': '3646439',
+ 'ext': 'mp4',
+ 'title': 'Oprah Winfrey Receives Cecil B. de Mille Award at the 2018 Golden Globes',
+ 'episode': 'Oprah Winfrey Receives Cecil B. de Mille Award at the 2018 Golden Globes',
+ 'episode_number': 1,
+ 'season': 'Season 75',
+ 'season_number': 75,
+ 'series': 'Golden Globes',
+ 'description': 'Oprah Winfrey receives the Cecil B. de Mille Award at the 75th Annual Golden Globe Awards.',
+ 'uploader': 'NBCU-COM',
+ 'upload_date': '20180107',
+ 'timestamp': 1515312000,
+ 'duration': 569.703,
+ 'tags': 'count:8',
+ 'thumbnail': r're:https?://.+\.jpg',
+ 'media_type': 'Highlight',
+ 'age_limit': 0,
+ 'categories': ['Series/The Golden Globe Awards'],
+ '_old_archive_ids': ['theplatform 3646439'],
},
- {
- 'url': 'https://www.nbc.com/quantum-leap/video/bens-first-leap-nbcs-quantum-leap/NBCE125189978',
- 'only_matching': True,
+ 'params': {
+ 'skip_download': 'm3u8',
},
- {
- 'url': 'https://www.nbc.com/classic-tv/charles-in-charge/video/charles-in-charge-pilot/n3310',
- 'only_matching': True,
+ }, {
+ # Needs to be extracted from webpage instead of GraphQL
+ 'url': 'https://www.nbc.com/paris2024/video/ali-truwit-found-purpose-pool-after-her-life-changed/para24_sww_alitruwittodayshow_240823',
+ 'info_dict': {
+ 'id': 'para24_sww_alitruwittodayshow_240823',
+ 'ext': 'mp4',
+ 'title': 'Ali Truwit found purpose in the pool after her life changed',
+ 'description': 'md5:c16d7489e1516593de1cc5d3f39b9bdb',
+ 'uploader': 'NBCU-SPORTS',
+ 'duration': 311.077,
+ 'thumbnail': r're:https?://.+\.jpg',
+ 'episode': 'Ali Truwit found purpose in the pool after her life changed',
+ 'timestamp': 1724435902.0,
+ 'upload_date': '20240823',
+ '_old_archive_ids': ['theplatform para24_sww_alitruwittodayshow_240823'],
},
- {
- # Percent escaped url
- 'url': 'https://www.nbc.com/up-all-night/video/day-after-valentine%27s-day/n2189',
- 'only_matching': True,
+ 'params': {
+ 'skip_download': 'm3u8',
},
- ]
+ }, {
+ 'url': 'https://www.nbc.com/quantum-leap/video/bens-first-leap-nbcs-quantum-leap/NBCE125189978',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://www.nbc.com/classic-tv/charles-in-charge/video/charles-in-charge-pilot/n3310',
+ 'only_matching': True,
+ }, {
+ # Percent escaped url
+ 'url': 'https://www.nbc.com/up-all-night/video/day-after-valentine%27s-day/n2189',
+ 'only_matching': True,
+ }]
_SOFTWARE_STATEMENT = 'eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiI1Yzg2YjdkYy04NDI3LTRjNDUtOGQwZi1iNDkzYmE3MmQwYjQiLCJuYmYiOjE1Nzg3MDM2MzEsImlzcyI6ImF1dGguYWRvYmUuY29tIiwiaWF0IjoxNTc4NzAzNjMxfQ.QQKIsBhAjGQTMdAqRTqhcz2Cddr4Y2hEjnSiOeKKki4nLrkDOsjQMmqeTR0hSRarraxH54wBgLvsxI7LHwKMvr7G8QpynNAxylHlQD3yhN9tFhxt4KR5wW3as02B-W2TznK9bhNWPKIyHND95Uo2Mi6rEQoq8tM9O09WPWaanE5BX_-r6Llr6dPq5F0Lpx2QOn2xYRb1T4nFxdFTNoss8GBds8OvChTiKpXMLHegLTc1OS4H_1a8tO_37jDwSdJuZ8iTyRLV4kZ2cpL6OL5JPMObD4-HQiec_dfcYgMKPiIfP9ZqdXpec2SVaCLsWEk86ZYvD97hLIQrK5rrKd1y-A'
def _real_extract(self, url):
@@ -378,6 +371,15 @@ class NBCSportsIE(InfoExtractor):
'url': 'https://www.nbcsports.com/boston/video/report-card-pats-secondary-no-match-josh-allen',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'http://www.riderfans.com/forum/showthread.php?121827-Freeman&s=e98fa1ea6dc08e886b1678d35212494a',
+ 'info_dict': {
+ 'id': 'ln7x1qSThw4k',
+ 'ext': 'flv',
+ 'title': "PFT Live: New leader in the 'new-look' defense",
+ },
+ 'skip': 'Invalid URL',
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
@@ -389,7 +391,7 @@ class NBCSportsIE(InfoExtractor):
class NBCSportsStreamIE(AdobePassIE):
_WORKING = False
_VALID_URL = r'https?://stream\.nbcsports\.com/.+?\bpid=(?P<id>\d+)'
- _TEST = {
+ _TESTS = [{
'url': 'http://stream.nbcsports.com/nbcsn/generic?pid=206559',
'info_dict': {
'id': '206559',
@@ -402,7 +404,7 @@ class NBCSportsStreamIE(AdobePassIE):
'skip_download': True,
},
'skip': 'Requires Adobe Pass Authentication',
- }
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
@@ -449,98 +451,100 @@ class NBCNewsIE(ThePlatformIE): # XXX: Do not subclass from concrete IE
_VALID_URL = r'(?x)https?://(?:www\.)?(?:nbcnews|today|msnbc)\.com/([^/]+/)*(?:.*-)?(?P<id>[^/?]+)'
_EMBED_REGEX = [r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//www\.nbcnews\.com/widget/video-embed/[^"\']+)\1']
- _TESTS = [
- {
- 'url': 'http://www.nbcnews.com/watch/nbcnews-com/how-twitter-reacted-to-the-snowden-interview-269389891880',
- 'md5': 'fb3dcd2d7b1dd9804305fa2fc95ab610', # md5 tends to fluctuate
- 'info_dict': {
- 'id': '269389891880',
- 'ext': 'mp4',
- 'title': 'How Twitter Reacted To The Snowden Interview',
- 'description': 'md5:65a0bd5d76fe114f3c2727aa3a81fe64',
- 'timestamp': 1401363060,
- 'upload_date': '20140529',
- 'duration': 46.0,
- 'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/140529/p_tweet_snow_140529.jpg',
- },
- },
- {
- 'url': 'http://www.nbcnews.com/feature/dateline-full-episodes/full-episode-family-business-n285156',
- 'md5': 'fdbf39ab73a72df5896b6234ff98518a',
- 'info_dict': {
- 'id': '529953347624',
- 'ext': 'mp4',
- 'title': 'FULL EPISODE: Family Business',
- 'description': 'md5:757988edbaae9d7be1d585eb5d55cc04',
- },
- 'skip': 'This page is unavailable.',
+ _TESTS = [{
+ 'url': 'http://www.nbcnews.com/watch/nbcnews-com/how-twitter-reacted-to-the-snowden-interview-269389891880',
+ 'md5': 'fb3dcd2d7b1dd9804305fa2fc95ab610', # md5 tends to fluctuate
+ 'info_dict': {
+ 'id': '269389891880',
+ 'ext': 'mp4',
+ 'title': 'How Twitter Reacted To The Snowden Interview',
+ 'description': 'md5:65a0bd5d76fe114f3c2727aa3a81fe64',
+ 'timestamp': 1401363060,
+ 'upload_date': '20140529',
+ 'duration': 46.0,
+ 'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/140529/p_tweet_snow_140529.jpg',
},
- {
- 'url': 'http://www.nbcnews.com/nightly-news/video/nightly-news-with-brian-williams-full-broadcast-february-4-394064451844',
- 'md5': '40d0e48c68896359c80372306ece0fc3',
- 'info_dict': {
- 'id': '394064451844',
- 'ext': 'mp4',
- 'title': 'Nightly News with Brian Williams Full Broadcast (February 4)',
- 'description': 'md5:1c10c1eccbe84a26e5debb4381e2d3c5',
- 'timestamp': 1423104900,
- 'upload_date': '20150205',
- 'duration': 1236.0,
- 'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/__NEW/nn_netcast_150204.jpg',
- },
+ }, {
+ 'url': 'http://www.nbcnews.com/feature/dateline-full-episodes/full-episode-family-business-n285156',
+ 'md5': 'fdbf39ab73a72df5896b6234ff98518a',
+ 'info_dict': {
+ 'id': '529953347624',
+ 'ext': 'mp4',
+ 'title': 'FULL EPISODE: Family Business',
+ 'description': 'md5:757988edbaae9d7be1d585eb5d55cc04',
},
- {
- 'url': 'http://www.nbcnews.com/business/autos/volkswagen-11-million-vehicles-could-have-suspect-software-emissions-scandal-n431456',
- 'md5': 'ffb59bcf0733dc3c7f0ace907f5e3939',
- 'info_dict': {
- 'id': 'n431456',
- 'ext': 'mp4',
- 'title': "Volkswagen U.S. Chief: We 'Totally Screwed Up'",
- 'description': 'md5:d22d1281a24f22ea0880741bb4dd6301',
- 'upload_date': '20150922',
- 'timestamp': 1442917800,
- 'duration': 37.0,
- 'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/__NEW/x_lon_vwhorn_150922.jpg',
- },
+ 'skip': 'This page is unavailable.',
+ }, {
+ 'url': 'http://www.nbcnews.com/nightly-news/video/nightly-news-with-brian-williams-full-broadcast-february-4-394064451844',
+ 'md5': '40d0e48c68896359c80372306ece0fc3',
+ 'info_dict': {
+ 'id': '394064451844',
+ 'ext': 'mp4',
+ 'title': 'Nightly News with Brian Williams Full Broadcast (February 4)',
+ 'description': 'md5:1c10c1eccbe84a26e5debb4381e2d3c5',
+ 'timestamp': 1423104900,
+ 'upload_date': '20150205',
+ 'duration': 1236.0,
+ 'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/__NEW/nn_netcast_150204.jpg',
},
- {
- 'url': 'http://www.today.com/video/see-the-aurora-borealis-from-space-in-stunning-new-nasa-video-669831235788',
- 'md5': '693d1fa21d23afcc9b04c66b227ed9ff',
- 'info_dict': {
- 'id': '669831235788',
- 'ext': 'mp4',
- 'title': 'See the aurora borealis from space in stunning new NASA video',
- 'description': 'md5:74752b7358afb99939c5f8bb2d1d04b1',
- 'upload_date': '20160420',
- 'timestamp': 1461152093,
- 'duration': 69.0,
- 'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/201604/2016-04-20T11-35-09-133Z--1280x720.jpg',
- },
+ }, {
+ 'url': 'http://www.nbcnews.com/business/autos/volkswagen-11-million-vehicles-could-have-suspect-software-emissions-scandal-n431456',
+ 'md5': 'ffb59bcf0733dc3c7f0ace907f5e3939',
+ 'info_dict': {
+ 'id': 'n431456',
+ 'ext': 'mp4',
+ 'title': "Volkswagen U.S. Chief: We 'Totally Screwed Up'",
+ 'description': 'md5:d22d1281a24f22ea0880741bb4dd6301',
+ 'upload_date': '20150922',
+ 'timestamp': 1442917800,
+ 'duration': 37.0,
+ 'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/__NEW/x_lon_vwhorn_150922.jpg',
},
- {
- 'url': 'http://www.msnbc.com/all-in-with-chris-hayes/watch/the-chaotic-gop-immigration-vote-314487875924',
- 'md5': '6d236bf4f3dddc226633ce6e2c3f814d',
- 'info_dict': {
- 'id': '314487875924',
- 'ext': 'mp4',
- 'title': 'The chaotic GOP immigration vote',
- 'description': 'The Republican House votes on a border bill that has no chance of getting through the Senate or signed by the President and is drawing criticism from all sides.',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'timestamp': 1406937606,
- 'upload_date': '20140802',
- 'duration': 940.0,
- },
+ }, {
+ 'url': 'http://www.today.com/video/see-the-aurora-borealis-from-space-in-stunning-new-nasa-video-669831235788',
+ 'md5': '693d1fa21d23afcc9b04c66b227ed9ff',
+ 'info_dict': {
+ 'id': '669831235788',
+ 'ext': 'mp4',
+ 'title': 'See the aurora borealis from space in stunning new NASA video',
+ 'description': 'md5:74752b7358afb99939c5f8bb2d1d04b1',
+ 'upload_date': '20160420',
+ 'timestamp': 1461152093,
+ 'duration': 69.0,
+ 'thumbnail': 'https://media-cldnry.s-nbcnews.com/image/upload/MSNBC/Components/Video/201604/2016-04-20T11-35-09-133Z--1280x720.jpg',
},
- {
- 'url': 'http://www.nbcnews.com/watch/dateline/full-episode--deadly-betrayal-386250819952',
- 'only_matching': True,
+ 'skip': 'Invalid URL',
+ }, {
+ 'url': 'http://www.msnbc.com/all-in-with-chris-hayes/watch/the-chaotic-gop-immigration-vote-314487875924',
+ 'md5': '6d236bf4f3dddc226633ce6e2c3f814d',
+ 'info_dict': {
+ 'id': '314487875924',
+ 'ext': 'mp4',
+ 'title': 'The chaotic GOP immigration vote',
+ 'description': 'The Republican House votes on a border bill that has no chance of getting through the Senate or signed by the President and is drawing criticism from all sides.',
+ 'thumbnail': r're:https?://.+\.jpg',
+ 'timestamp': 1406937606,
+ 'upload_date': '20140802',
+ 'duration': 940.0,
},
- {
- # From http://www.vulture.com/2016/06/letterman-couldnt-care-less-about-late-night.html
- 'url': 'http://www.nbcnews.com/widget/video-embed/701714499682',
- 'only_matching': True,
+ 'skip': 'Invalid URL',
+ }, {
+ 'url': 'http://www.nbcnews.com/watch/dateline/full-episode--deadly-betrayal-386250819952',
+ 'only_matching': True,
+ }, {
+ # From http://www.vulture.com/2016/06/letterman-couldnt-care-less-about-late-night.html
+ 'url': 'http://www.nbcnews.com/widget/video-embed/701714499682',
+ 'only_matching': True,
+ }]
+ _WEBPAGE_TESTS = [{
+ 'url': 'http://www.vulture.com/2016/06/letterman-couldnt-care-less-about-late-night.html',
+ 'info_dict': {
+ 'id': 'x_dtl_oa_LettermanliftPR_160608',
+ 'ext': 'mp4',
+ 'title': 'David Letterman: A Preview',
},
- ]
+ 'skip': 'Invalid URL',
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
@@ -610,10 +614,10 @@ class NBCOlympicsIE(InfoExtractor):
'display_id': 'watch-final-minutes-team-usas-mens-basketball-gold',
'title': 'Watch the final minutes of Team USA\'s men\'s basketball gold',
'description': 'md5:f704f591217305c9559b23b877aa8d31',
+ 'episode': 'Watch the final minutes of Team USA\'s men\'s basketball gold',
'uploader': 'NBCU-SPORTS',
'duration': 387.053,
- 'thumbnail': r're:https://.+/.+\.jpg',
- 'chapters': [],
+ 'thumbnail': r're:https?://.+\.jpg',
'timestamp': 1723346984,
'upload_date': '20240811',
},
@@ -652,33 +656,31 @@ class NBCOlympicsStreamIE(AdobePassIE):
_WORKING = False
IE_NAME = 'nbcolympics:stream'
_VALID_URL = r'https?://stream\.nbcolympics\.com/(?P<id>[0-9a-z-]+)'
- _TESTS = [
- {
- 'note': 'Tokenized m3u8 source URL',
- 'url': 'https://stream.nbcolympics.com/womens-soccer-group-round-11',
- 'info_dict': {
- 'id': '2019740',
- 'ext': 'mp4',
- 'title': r"re:Women's Group Stage - Netherlands vs\. Brazil [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$",
- },
- 'params': {
- 'skip_download': 'm3u8',
- },
- 'skip': 'Livestream',
- }, {
- 'note': 'Plain m3u8 source URL',
- 'url': 'https://stream.nbcolympics.com/gymnastics-event-finals-mens-floor-pommel-horse-womens-vault-bars',
- 'info_dict': {
- 'id': '2021729',
- 'ext': 'mp4',
- 'title': r're:Event Finals: M Floor, W Vault, M Pommel, W Uneven Bars [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
- },
- 'params': {
- 'skip_download': 'm3u8',
- },
- 'skip': 'Livestream',
+ _TESTS = [{
+ 'note': 'Tokenized m3u8 source URL',
+ 'url': 'https://stream.nbcolympics.com/womens-soccer-group-round-11',
+ 'info_dict': {
+ 'id': '2019740',
+ 'ext': 'mp4',
+ 'title': r"re:Women's Group Stage - Netherlands vs\. Brazil [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$",
+ },
+ 'params': {
+ 'skip_download': 'm3u8',
},
- ]
+ 'skip': 'Livestream',
+ }, {
+ 'note': 'Plain m3u8 source URL',
+ 'url': 'https://stream.nbcolympics.com/gymnastics-event-finals-mens-floor-pommel-horse-womens-vault-bars',
+ 'info_dict': {
+ 'id': '2021729',
+ 'ext': 'mp4',
+ 'title': r're:Event Finals: M Floor, W Vault, M Pommel, W Uneven Bars [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
+ },
+ 'params': {
+ 'skip_download': 'm3u8',
+ },
+ 'skip': 'Livestream',
+ }]
def _real_extract(self, url):
display_id = self._match_id(url)
@@ -758,9 +760,7 @@ class NBCStationsIE(InfoExtractor):
'channel_id': 'KNBC',
'channel': 'nbclosangeles',
},
- 'params': {
- 'skip_download': 'm3u8',
- },
+ 'skip': 'Site changed',
}, {
'url': 'https://www.telemundoarizona.com/responde/huracan-complica-reembolso-para-televidente-de-tucson/2247002/',
'info_dict': {
diff --git a/yt_dlp/extractor/panopto.py b/yt_dlp/extractor/panopto.py
index 9f307a53e2..4a9431e72c 100644
--- a/yt_dlp/extractor/panopto.py
+++ b/yt_dlp/extractor/panopto.py
@@ -73,163 +73,179 @@ class PanoptoBaseIE(InfoExtractor):
class PanoptoIE(PanoptoBaseIE):
_VALID_URL = PanoptoBaseIE.BASE_URL_RE + r'/Pages/(Viewer|Embed)\.aspx.*(?:\?|&)id=(?P<id>[a-f0-9-]+)'
_EMBED_REGEX = [rf'<iframe[^>]+src=["\'](?P<url>{PanoptoBaseIE.BASE_URL_RE}/Pages/(Viewer|Embed|Sessions/List)\.aspx[^"\']+)']
- _TESTS = [
- {
- 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=26b3ae9e-4a48-4dcc-96ba-0befba08a0fb',
- 'info_dict': {
- 'id': '26b3ae9e-4a48-4dcc-96ba-0befba08a0fb',
- 'title': 'Panopto for Business - Use Cases',
- 'timestamp': 1459184200,
- 'thumbnail': r're:https://demo\.hosted\.panopto\.com/.+',
- 'upload_date': '20160328',
- 'ext': 'mp4',
- 'cast': [],
- 'chapters': [],
- 'duration': 88.17099999999999,
- 'average_rating': int,
- 'uploader_id': '2db6b718-47a0-4b0b-9e17-ab0b00f42b1e',
- 'channel_id': 'e4c6a2fc-1214-4ca0-8fb7-aef2e29ff63a',
- 'channel': 'Showcase Videos',
- },
+ _TESTS = [{
+ 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=26b3ae9e-4a48-4dcc-96ba-0befba08a0fb',
+ 'info_dict': {
+ 'id': '26b3ae9e-4a48-4dcc-96ba-0befba08a0fb',
+ 'title': 'Panopto for Business - Use Cases',
+ 'timestamp': 1459184200,
+ 'thumbnail': r're:https?://demo\.hosted\.panopto\.com/.+',
+ 'upload_date': '20160328',
+ 'ext': 'mp4',
+ 'cast': [],
+ 'chapters': [],
+ 'duration': 88.17099999999999,
+ 'average_rating': int,
+ 'tags': [],
+ 'uploader_id': '2db6b718-47a0-4b0b-9e17-ab0b00f42b1e',
+ 'channel_id': 'bb0b58ff-b31b-47a0-9aa2-af6f0113613a',
+ 'channel': 'Product',
},
- {
- 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=ed01b077-c9e5-4c7b-b8ff-15fa306d7a59',
- 'info_dict': {
- 'id': 'ed01b077-c9e5-4c7b-b8ff-15fa306d7a59',
- 'title': 'Overcoming Top 4 Challenges of Enterprise Video',
- 'uploader': 'Panopto Support',
- 'timestamp': 1449409251,
- 'thumbnail': r're:https://demo\.hosted\.panopto\.com/.+',
- 'upload_date': '20151206',
- 'ext': 'mp4',
- 'chapters': 'count:12',
- 'cast': ['Panopto Support'],
- 'uploader_id': 'a96d1a31-b4de-489b-9eee-b4a5b414372c',
- 'average_rating': int,
- 'description': 'md5:4391837802b3fc856dadf630c4b375d1',
- 'duration': 1088.2659999999998,
- 'channel_id': '9f3c1921-43bb-4bda-8b3a-b8d2f05a8546',
- 'channel': 'Webcasts',
- },
+ }, {
+ 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=ed01b077-c9e5-4c7b-b8ff-15fa306d7a59',
+ 'info_dict': {
+ 'id': 'ed01b077-c9e5-4c7b-b8ff-15fa306d7a59',
+ 'title': 'Overcoming Top 4 Challenges of Enterprise Video',
+ 'uploader': 'Panopto Support',
+ 'timestamp': 1449409251,
+ 'thumbnail': r're:https?://demo\.hosted\.panopto\.com/.+',
+ 'upload_date': '20151206',
+ 'ext': 'mp4',
+ 'chapters': 'count:13',
+ 'cast': ['Panopto Support'],
+ 'tags': [],
+ 'uploader_id': 'a96d1a31-b4de-489b-9eee-b4a5b414372c',
+ 'average_rating': int,
+ 'description': 'md5:4391837802b3fc856dadf630c4b375d1',
+ 'duration': 1088.2659999999998,
+ 'channel_id': '9f3c1921-43bb-4bda-8b3a-b8d2f05a8546',
+ 'channel': 'Webcasts',
},
- {
- # Extra params in URL
- 'url': 'https://howtovideos.hosted.panopto.com/Panopto/Pages/Viewer.aspx?randomparam=thisisnotreal&id=5fa74e93-3d87-4694-b60e-aaa4012214ed&advance=true',
- 'info_dict': {
- 'id': '5fa74e93-3d87-4694-b60e-aaa4012214ed',
- 'ext': 'mp4',
- 'duration': 129.513,
- 'cast': ['Kathryn Kelly'],
- 'uploader_id': '316a0a58-7fa2-4cd9-be1c-64270d284a56',
- 'timestamp': 1569845768,
- 'tags': ['Viewer', 'Enterprise'],
- 'chapters': [],
- 'upload_date': '20190930',
- 'thumbnail': r're:https://howtovideos\.hosted\.panopto\.com/.+',
- 'description': 'md5:2d844aaa1b1a14ad0e2601a0993b431f',
- 'title': 'Getting Started: View a Video',
- 'average_rating': int,
- 'uploader': 'Kathryn Kelly',
- 'channel_id': 'fb93bc3c-6750-4b80-a05b-a921013735d3',
- 'channel': 'Getting Started',
- },
+ }, {
+ # Extra params in URL
+ 'url': 'https://howtovideos.hosted.panopto.com/Panopto/Pages/Viewer.aspx?randomparam=thisisnotreal&id=5fa74e93-3d87-4694-b60e-aaa4012214ed&advance=true',
+ 'info_dict': {
+ 'id': '5fa74e93-3d87-4694-b60e-aaa4012214ed',
+ 'ext': 'mp4',
+ 'duration': 129.513,
+ 'cast': ['Kathryn Kelly'],
+ 'uploader_id': '316a0a58-7fa2-4cd9-be1c-64270d284a56',
+ 'timestamp': 1569845768,
+ 'tags': ['Viewer', 'Enterprise'],
+ 'chapters': [],
+ 'upload_date': '20190930',
+ 'thumbnail': r're:https?://howtovideos\.hosted\.panopto\.com/.+',
+ 'description': 'md5:2d844aaa1b1a14ad0e2601a0993b431f',
+ 'title': 'Getting Started: View a Video',
+ 'average_rating': int,
+ 'uploader': 'Kathryn Kelly',
+ 'channel_id': 'fb93bc3c-6750-4b80-a05b-a921013735d3',
+ 'channel': 'Getting Started',
},
- {
- # Does not allow normal Viewer.aspx. AUDIO livestream has no url, so should be skipped and only give one stream.
- 'url': 'https://unisa.au.panopto.com/Panopto/Pages/Embed.aspx?id=9d9a0fa3-e99a-4ebd-a281-aac2017f4da4',
- 'info_dict': {
- 'id': '9d9a0fa3-e99a-4ebd-a281-aac2017f4da4',
- 'ext': 'mp4',
- 'cast': ['LTS CLI Script'],
- 'chapters': [],
- 'duration': 2178.45,
- 'description': 'md5:ee5cf653919f55b72bce2dbcf829c9fa',
- 'channel_id': 'b23e673f-c287-4cb1-8344-aae9005a69f8',
- 'average_rating': int,
- 'uploader_id': '38377323-6a23-41e2-9ff6-a8e8004bf6f7',
- 'uploader': 'LTS CLI Script',
- 'timestamp': 1572458134,
- 'title': 'WW2 Vets Interview 3 Ronald Stanley George',
- 'thumbnail': r're:https://unisa\.au\.panopto\.com/.+',
- 'channel': 'World War II Veteran Interviews',
- 'upload_date': '20191030',
- },
+ 'skip': 'Invalid URL',
+ }, {
+ # Does not allow normal Viewer.aspx. AUDIO livestream has no url, so should be skipped and only give one stream.
+ 'url': 'https://unisa.au.panopto.com/Panopto/Pages/Embed.aspx?id=9d9a0fa3-e99a-4ebd-a281-aac2017f4da4',
+ 'info_dict': {
+ 'id': '9d9a0fa3-e99a-4ebd-a281-aac2017f4da4',
+ 'ext': 'mp4',
+ 'cast': ['LTS CLI Script'],
+ 'chapters': [],
+ 'duration': 2178.45,
+ 'description': 'md5:ee5cf653919f55b72bce2dbcf829c9fa',
+ 'channel_id': 'b23e673f-c287-4cb1-8344-aae9005a69f8',
+ 'average_rating': int,
+ 'uploader_id': '38377323-6a23-41e2-9ff6-a8e8004bf6f7',
+ 'uploader': 'LTS CLI Script',
+ 'tags': [],
+ 'timestamp': 1572458134,
+ 'title': 'WW2 Vets Interview 3 Ronald Stanley George',
+ 'thumbnail': r're:https?://unisa\.au\.panopto\.com/.+',
+ 'channel': 'World War II Veteran Interviews',
+ 'upload_date': '20191030',
},
- {
- # Slides/storyboard
- 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=a7f12f1d-3872-4310-84b0-f8d8ab15326b',
- 'info_dict': {
- 'id': 'a7f12f1d-3872-4310-84b0-f8d8ab15326b',
- 'ext': 'mhtml',
- 'timestamp': 1448798857,
- 'duration': 4712.681,
- 'title': 'Cache Memory - CompSci 15-213, Lecture 12',
- 'channel_id': 'e4c6a2fc-1214-4ca0-8fb7-aef2e29ff63a',
- 'uploader_id': 'a96d1a31-b4de-489b-9eee-b4a5b414372c',
- 'upload_date': '20151129',
- 'average_rating': 0,
- 'uploader': 'Panopto Support',
- 'channel': 'Showcase Videos',
- 'description': 'md5:55e51d54233ddb0e6c2ed388ca73822c',
- 'cast': ['ISR Videographer', 'Panopto Support'],
- 'chapters': 'count:28',
- 'thumbnail': r're:https://demo\.hosted\.panopto\.com/.+',
- },
- 'params': {'format': 'mhtml', 'skip_download': True},
+ }, {
+ # Slides/storyboard
+ 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=a7f12f1d-3872-4310-84b0-f8d8ab15326b',
+ 'info_dict': {
+ 'id': 'a7f12f1d-3872-4310-84b0-f8d8ab15326b',
+ 'ext': 'mhtml',
+ 'timestamp': 1448798857,
+ 'duration': 4712.681,
+ 'title': 'Cache Memory - CompSci 15-213, Lecture 12',
+ 'channel_id': '0202d932-6d28-4fb2-b373-af6f0121c8f0',
+ 'uploader_id': 'a96d1a31-b4de-489b-9eee-b4a5b414372c',
+ 'upload_date': '20151129',
+ 'average_rating': 0,
+ 'uploader': 'Panopto Support',
+ 'channel': 'Customer Demonstrations',
+ 'description': 'md5:55e51d54233ddb0e6c2ed388ca73822c',
+ 'cast': ['ISR Videographer', 'Panopto Support'],
+ 'chapters': 'count:28',
+ 'tags': [],
+ 'thumbnail': r're:https?://demo\.hosted\.panopto\.com/.+',
},
- {
- 'url': 'https://na-training-1.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=8285224a-9a2b-4957-84f2-acb0000c4ea9',
- 'info_dict': {
- 'id': '8285224a-9a2b-4957-84f2-acb0000c4ea9',
- 'ext': 'mp4',
- 'chapters': [],
- 'title': 'Company Policy',
- 'average_rating': 0,
- 'timestamp': 1615058901,
- 'channel': 'Human Resources',
- 'tags': ['HumanResources'],
- 'duration': 1604.243,
- 'thumbnail': r're:https://na-training-1\.hosted\.panopto\.com/.+',
- 'uploader_id': '8e8ba0a3-424f-40df-a4f1-ab3a01375103',
- 'uploader': 'Cait M.',
- 'upload_date': '20210306',
- 'cast': ['Cait M.'],
- 'subtitles': {'en-US': [{'ext': 'srt', 'data': 'md5:a3f4d25963fdeace838f327097c13265'}],
- 'es-ES': [{'ext': 'srt', 'data': 'md5:57e9dad365fd0fbaf0468eac4949f189'}]},
- },
- 'params': {'writesubtitles': True, 'skip_download': True},
- }, {
- # On Panopto there are two subs: "Default" and en-US. en-US is blank and should be skipped.
- 'url': 'https://na-training-1.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=940cbd41-f616-4a45-b13e-aaf1000c915b',
- 'info_dict': {
- 'id': '940cbd41-f616-4a45-b13e-aaf1000c915b',
- 'ext': 'mp4',
- 'subtitles': 'count:1',
- 'title': 'HR Benefits Review Meeting*',
- 'cast': ['Panopto Support'],
- 'chapters': [],
- 'timestamp': 1575024251,
- 'thumbnail': r're:https://na-training-1\.hosted\.panopto\.com/.+',
- 'channel': 'Zoom',
- 'description': 'md5:04f90a9c2c68b7828144abfb170f0106',
- 'uploader': 'Panopto Support',
- 'average_rating': 0,
- 'duration': 409.34499999999997,
- 'uploader_id': 'b6ac04ad-38b8-4724-a004-a851004ea3df',
- 'upload_date': '20191129',
-
- },
- 'params': {'writesubtitles': True, 'skip_download': True},
+ 'params': {'format': 'mhtml', 'skip_download': True},
+ }, {
+ 'url': 'https://na-training-1.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=8285224a-9a2b-4957-84f2-acb0000c4ea9',
+ 'info_dict': {
+ 'id': '8285224a-9a2b-4957-84f2-acb0000c4ea9',
+ 'ext': 'mp4',
+ 'chapters': [],
+ 'title': 'Company Policy',
+ 'average_rating': 0,
+ 'timestamp': 1615058901,
+ 'channel': 'Human Resources',
+ 'tags': ['HumanResources'],
+ 'duration': 1604.243,
+ 'thumbnail': r're:https?://na-training-1\.hosted\.panopto\.com/.+',
+ 'uploader_id': '8e8ba0a3-424f-40df-a4f1-ab3a01375103',
+ 'uploader': 'Cait M.',
+ 'upload_date': '20210306',
+ 'cast': ['Cait M.'],
},
- {
- 'url': 'https://ucc.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=0e8484a4-4ceb-4d98-a63f-ac0200b455cb',
- 'only_matching': True,
+ 'params': {'writesubtitles': True, 'skip_download': True},
+ }, {
+ # On Panopto there are two subs: "Default" and en-US. en-US is blank and should be skipped.
+ 'url': 'https://na-training-1.hosted.panopto.com/Panopto/Pages/Viewer.aspx?id=940cbd41-f616-4a45-b13e-aaf1000c915b',
+ 'info_dict': {
+ 'id': '940cbd41-f616-4a45-b13e-aaf1000c915b',
+ 'ext': 'mp4',
+ 'subtitles': 'count:1',
+ 'title': 'HR Benefits Review Meeting*',
+ 'cast': ['Panopto Support'],
+ 'chapters': [],
+ 'timestamp': 1575024251,
+ 'thumbnail': r're:https://na-training-1\.hosted\.panopto\.com/.+',
+ 'channel': 'Zoom',
+ 'description': 'md5:04f90a9c2c68b7828144abfb170f0106',
+ 'uploader': 'Panopto Support',
+ 'average_rating': 0,
+ 'duration': 409.34499999999997,
+ 'tags': [],
+ 'uploader_id': 'b6ac04ad-38b8-4724-a004-a851004ea3df',
+ 'upload_date': '20191129',
+
},
- {
- 'url': 'https://brown.hosted.panopto.com/Panopto/Pages/Embed.aspx?id=0b3ff73b-36a0-46c5-8455-aadf010a3638',
- 'only_matching': True,
+ 'params': {'writesubtitles': True, 'skip_download': True},
+ }, {
+ 'url': 'https://ucc.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=0e8484a4-4ceb-4d98-a63f-ac0200b455cb',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://brown.hosted.panopto.com/Panopto/Pages/Embed.aspx?id=0b3ff73b-36a0-46c5-8455-aadf010a3638',
+ 'only_matching': True,
+ }]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.monash.edu/learning-teaching/teachhq/learning-technologies/panopto/how-to/insert-a-quiz-into-a-panopto-video',
+ 'info_dict': {
+ 'id': '0bd3f16c-824a-436a-8486-ac5900693aef',
+ 'ext': 'mp4',
+ 'title': 'Quizzes in Panopto',
+ 'average_rating': 0,
+ 'cast': ['Stephanie Luo'],
+ 'chapters': 'count:8',
+ 'channel': 'Panopto',
+ 'description': 'md5:731ce802eee75808b1181db1ff1b5002',
+ 'duration': 185.833,
+ 'tags': [],
+ 'thumbnail': r're:https?://monash\.au\.panopto\.com/.+',
+ 'timestamp': 1607562188,
+ 'upload_date': '20201210',
+ 'uploader': 'Stephanie Luo',
+ 'uploader_id': 'b18ca46d-20df-4ff5-b0b3-aa7a00085617',
},
- ]
+ 'params': {'extractor_args': {'generic': {'impersonate': ['chrome']}}},
+ }]
@classmethod
def suitable(cls, url):
@@ -423,27 +439,23 @@ class PanoptoIE(PanoptoBaseIE):
class PanoptoPlaylistIE(PanoptoBaseIE):
_VALID_URL = PanoptoBaseIE.BASE_URL_RE + r'/Pages/(Viewer|Embed)\.aspx.*(?:\?|&)pid=(?P<id>[a-f0-9-]+)'
- _TESTS = [
- {
- 'url': 'https://howtovideos.hosted.panopto.com/Panopto/Pages/Viewer.aspx?pid=f3b39fcf-882f-4849-93d6-a9f401236d36&id=5fa74e93-3d87-4694-b60e-aaa4012214ed&advance=true',
- 'info_dict': {
- 'title': 'Featured Video Tutorials',
- 'id': 'f3b39fcf-882f-4849-93d6-a9f401236d36',
- 'description': '',
- },
- 'playlist_mincount': 36,
+ _TESTS = [{
+ 'url': 'https://howtovideos.hosted.panopto.com/Panopto/Pages/Viewer.aspx?pid=f3b39fcf-882f-4849-93d6-a9f401236d36&id=5fa74e93-3d87-4694-b60e-aaa4012214ed&advance=true',
+ 'info_dict': {
+ 'id': 'f3b39fcf-882f-4849-93d6-a9f401236d36',
+ 'title': 'Featured Video Tutorials',
+ 'description': '',
},
- {
- 'url': 'https://utsa.hosted.panopto.com/Panopto/Pages/Viewer.aspx?pid=e2900555-3ad4-4bdb-854d-ad2401686190',
- 'info_dict': {
- 'title': 'Library Website Introduction Playlist',
- 'id': 'e2900555-3ad4-4bdb-854d-ad2401686190',
- 'description': 'md5:f958bca50a1cbda15fdc1e20d32b3ecb',
- },
- 'playlist_mincount': 4,
+ 'playlist_mincount': 19,
+ }, {
+ 'url': 'https://utsa.hosted.panopto.com/Panopto/Pages/Viewer.aspx?pid=e2900555-3ad4-4bdb-854d-ad2401686190',
+ 'info_dict': {
+ 'id': 'e2900555-3ad4-4bdb-854d-ad2401686190',
+ 'title': 'Library Website Introduction Playlist',
+ 'description': 'md5:f958bca50a1cbda15fdc1e20d32b3ecb',
},
-
- ]
+ 'playlist_mincount': 4,
+ }]
def _entries(self, base_url, playlist_id, session_list_id):
session_list_info = self._call_api(
@@ -486,35 +498,29 @@ class PanoptoPlaylistIE(PanoptoBaseIE):
class PanoptoListIE(PanoptoBaseIE):
_VALID_URL = PanoptoBaseIE.BASE_URL_RE + r'/Pages/Sessions/List\.aspx'
_PAGE_SIZE = 250
- _TESTS = [
- {
- 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx#folderID=%22e4c6a2fc-1214-4ca0-8fb7-aef2e29ff63a%22',
- 'info_dict': {
- 'id': 'e4c6a2fc-1214-4ca0-8fb7-aef2e29ff63a',
- 'title': 'Showcase Videos',
- },
- 'playlist_mincount': 140,
-
+ _TESTS = [{
+ 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx#folderID=%22e4c6a2fc-1214-4ca0-8fb7-aef2e29ff63a%22',
+ 'info_dict': {
+ 'id': 'e4c6a2fc-1214-4ca0-8fb7-aef2e29ff63a',
+ 'title': 'Showcase Videos',
},
- {
- 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx#view=2&maxResults=250',
- 'info_dict': {
- 'id': 'panopto_list',
- 'title': 'panopto_list',
- },
- 'playlist_mincount': 300,
+ 'playlist_mincount': 8,
+ }, {
+ 'url': 'https://demo.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx#view=2&maxResults=250',
+ 'info_dict': {
+ 'id': 'panopto_list',
+ 'title': 'panopto_list',
},
- {
- # Folder that contains 8 folders and a playlist
- 'url': 'https://howtovideos.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx?noredirect=true#folderID=%224b9de7ae-0080-4158-8496-a9ba01692c2e%22',
- 'info_dict': {
- 'id': '4b9de7ae-0080-4158-8496-a9ba01692c2e',
- 'title': 'Video Tutorials',
- },
- 'playlist_mincount': 9,
+ 'playlist_mincount': 300,
+ }, {
+ # Folder that contains 8 folders and a playlist
+ 'url': 'https://howtovideos.hosted.panopto.com/Panopto/Pages/Sessions/List.aspx?noredirect=true#folderID=%224b9de7ae-0080-4158-8496-a9ba01692c2e%22',
+ 'info_dict': {
+ 'id': '4b9de7ae-0080-4158-8496-a9ba01692c2e',
+ 'title': 'Video Tutorials',
},
-
- ]
+ 'playlist_mincount': 9,
+ }]
def _fetch_page(self, base_url, query_params, display_id, page):
diff --git a/yt_dlp/extractor/peertube.py b/yt_dlp/extractor/peertube.py
index 2b69c7e6cf..4c8205f8ee 100644
--- a/yt_dlp/extractor/peertube.py
+++ b/yt_dlp/extractor/peertube.py
@@ -1331,7 +1331,7 @@ class PeerTubeIE(InfoExtractor):
'ext': 'mp4',
'title': 'What is PeerTube?',
'description': 'md5:3fefb8dde2b189186ce0719fda6f7b10',
- 'thumbnail': r're:https?://.*\.(?:jpg|png)',
+ 'thumbnail': r're:https?://framatube\.org/lazy-static/thumbnails/.+\.jpg',
'timestamp': 1538391166,
'upload_date': '20181001',
'uploader': 'Framasoft',
@@ -1346,19 +1346,34 @@ class PeerTubeIE(InfoExtractor):
'view_count': int,
'like_count': int,
'dislike_count': int,
- 'tags': ['framasoft', 'peertube'],
+ 'tags': 'count:2',
'categories': ['Science & Technology'],
},
+ 'expected_warnings': ['HTTP Error 400: Bad Request'],
+ 'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://peertube2.cpy.re/w/122d093a-1ede-43bd-bd34-59d2931ffc5e',
'info_dict': {
'id': '122d093a-1ede-43bd-bd34-59d2931ffc5e',
'ext': 'mp4',
'title': 'E2E tests',
- 'uploader_id': '37855',
+ 'categories': ['Unknown'],
+ 'channel': 'Main chocobozzz channel',
+ 'channel_id': '5187',
+ 'channel_url': 'https://peertube2.cpy.re/video-channels/chocobozzz_channel',
+ 'description': 'md5:67daf92c833c41c95db874e18fcb2786',
+ 'dislike_count': int,
+ 'duration': 52,
+ 'license': 'Unknown',
+ 'like_count': int,
+ 'tags': [],
+ 'thumbnail': r're:https?://peertube2\.cpy\.re/lazy-static/thumbnails/.+\.jpg',
'timestamp': 1589276219,
'upload_date': '20200512',
'uploader': 'chocobozzz',
+ 'uploader_id': '37855',
+ 'uploader_url': 'https://peertube2.cpy.re/accounts/chocobozzz',
+ 'view_count': int,
},
}, {
'url': 'https://peertube2.cpy.re/w/3fbif9S3WmtTP8gGsC5HBd',
@@ -1366,10 +1381,23 @@ class PeerTubeIE(InfoExtractor):
'id': '3fbif9S3WmtTP8gGsC5HBd',
'ext': 'mp4',
'title': 'E2E tests',
- 'uploader_id': '37855',
+ 'categories': ['Unknown'],
+ 'channel': 'Main chocobozzz channel',
+ 'channel_id': '5187',
+ 'channel_url': 'https://peertube2.cpy.re/video-channels/chocobozzz_channel',
+ 'description': 'md5:67daf92c833c41c95db874e18fcb2786',
+ 'dislike_count': int,
+ 'duration': 52,
+ 'license': 'Unknown',
+ 'like_count': int,
+ 'tags': [],
+ 'thumbnail': r're:https?://peertube2\.cpy\.re/lazy-static/thumbnails/.+\.jpg',
'timestamp': 1589276219,
'upload_date': '20200512',
'uploader': 'chocobozzz',
+ 'uploader_id': '37855',
+ 'uploader_url': 'https://peertube2.cpy.re/accounts/chocobozzz',
+ 'view_count': int,
},
}, {
'url': 'https://peertube2.cpy.re/api/v1/videos/3fbif9S3WmtTP8gGsC5HBd',
@@ -1377,13 +1405,26 @@ class PeerTubeIE(InfoExtractor):
'id': '3fbif9S3WmtTP8gGsC5HBd',
'ext': 'mp4',
'title': 'E2E tests',
- 'uploader_id': '37855',
+ 'categories': ['Unknown'],
+ 'channel': 'Main chocobozzz channel',
+ 'channel_id': '5187',
+ 'channel_url': 'https://peertube2.cpy.re/video-channels/chocobozzz_channel',
+ 'description': 'md5:67daf92c833c41c95db874e18fcb2786',
+ 'dislike_count': int,
+ 'duration': 52,
+ 'license': 'Unknown',
+ 'like_count': int,
+ 'tags': [],
+ 'thumbnail': r're:https?://peertube2\.cpy\.re/lazy-static/thumbnails/.+\.jpg',
'timestamp': 1589276219,
'upload_date': '20200512',
'uploader': 'chocobozzz',
+ 'uploader_id': '37855',
+ 'uploader_url': 'https://peertube2.cpy.re/accounts/chocobozzz',
+ 'view_count': int,
},
}, {
- # Issue #26002
+ # https://github.com/ytdl-org/youtube-dl/issues/26002
'url': 'peertube:spacepub.space:d8943b2d-8280-497b-85ec-bc282ec2afdc',
'info_dict': {
'id': 'd8943b2d-8280-497b-85ec-bc282ec2afdc',
@@ -1394,6 +1435,7 @@ class PeerTubeIE(InfoExtractor):
'upload_date': '20200420',
'uploader': 'Drew DeVault',
},
+ 'skip': 'Invalid URL',
}, {
'url': 'https://peertube.debian.social/videos/watch/0b04f13d-1e18-4f1d-814e-4979aa7c9c44',
'only_matching': True,
@@ -1411,6 +1453,33 @@ class PeerTubeIE(InfoExtractor):
'url': 'peertube:framatube.org:b37a5b9f-e6b5-415c-b700-04a5cd6ec205',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://video.macver.org/w/6gvhZpUGQVd4SQ6oYDc9pC',
+ 'info_dict': {
+ 'id': '6gvhZpUGQVd4SQ6oYDc9pC',
+ 'ext': 'mp4',
+ 'title': 'Minecraft, but if you say a block, it gets deleted',
+ 'categories': ['Gaming'],
+ 'channel': 'Waffle Irons Gaming',
+ 'channel_id': '4',
+ 'channel_url': 'https://video.macver.org/video-channels/waffle_irons',
+ 'description': 'md5:eda8daf64b0dadd00cc248f28eef213c',
+ 'dislike_count': int,
+ 'duration': 1643,
+ 'license': 'Attribution - Non Commercial',
+ 'like_count': int,
+ 'tags': 'count:1',
+ 'thumbnail': r're:https?://video\.macver\.org/lazy-static/thumbnails/.+\.jpg',
+ 'timestamp': 1751142352,
+ 'upload_date': '20250628',
+ 'uploader': 'Bog',
+ 'uploader_id': '3',
+ 'uploader_url': 'https://video.macver.org/accounts/bog',
+ 'view_count': int,
+ },
+ 'expected_warnings': ['HTTP Error 400: Bad Request', 'Ignoring subtitle tracks found in the HLS manifest'],
+ 'params': {'skip_download': 'm3u8'},
+ }]
@staticmethod
def _extract_peertube_url(webpage, source_url):
@@ -1580,31 +1649,47 @@ class PeerTubePlaylistIE(InfoExtractor):
'id': 'hFdJoTuyhNJVa1cDWd1d12',
'description': 'Diversas palestras do Richard Stallman no Brasil.',
'title': 'Richard Stallman no Brasil',
+ 'channel': 'debianbrazilteam',
+ 'channel_id': 1522,
+ 'thumbnail': r're:https?://peertube\.debian\.social/lazy-static/thumbnails/.+\.jpg',
'timestamp': 1599676222,
+ 'upload_date': '20200909',
},
'playlist_mincount': 9,
}, {
'url': 'https://peertube2.cpy.re/a/chocobozzz/videos',
'info_dict': {
'id': 'chocobozzz',
- 'timestamp': 1553874564,
'title': 'chocobozzz',
+ 'channel': 'chocobozzz',
+ 'channel_id': 37855,
+ 'thumbnail': '',
+ 'timestamp': 1553874564,
+ 'upload_date': '20190329',
},
'playlist_mincount': 2,
}, {
'url': 'https://framatube.org/c/bf54d359-cfad-4935-9d45-9d6be93f63e8/videos',
'info_dict': {
'id': 'bf54d359-cfad-4935-9d45-9d6be93f63e8',
- 'timestamp': 1519917377,
'title': 'Les vidéos de Framasoft',
+ 'channel': 'framasoft',
+ 'channel_id': 3,
+ 'thumbnail': '',
+ 'timestamp': 1519917377,
+ 'upload_date': '20180301',
},
'playlist_mincount': 345,
}, {
'url': 'https://peertube2.cpy.re/c/[email protected]/videos',
'info_dict': {
- 'timestamp': 1542287810,
'title': 'Official Blender Open Movies',
+ 'channel': 'blender',
+ 'channel_id': 1926,
+ 'thumbnail': '',
+ 'timestamp': 1540472902,
+ 'upload_date': '20181025',
},
'playlist_mincount': 11,
}]
diff --git a/yt_dlp/extractor/playwire.py b/yt_dlp/extractor/playwire.py
index 8539a4b56c..2323bd0cf9 100644
--- a/yt_dlp/extractor/playwire.py
+++ b/yt_dlp/extractor/playwire.py
@@ -19,6 +19,7 @@ class PlaywireIE(InfoExtractor):
'thumbnail': r're:^https?://.*\.png$',
'duration': 145.94,
},
+ 'skip': 'Invalid URL',
}, {
# m3u8 in f4m
'url': 'http://config.playwire.com/21772/videos/v2/4840492/zeus.json',
@@ -27,10 +28,7 @@ class PlaywireIE(InfoExtractor):
'ext': 'mp4',
'title': 'ITV EL SHOW FULL',
},
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
+ 'skip': 'Invalid URL',
}, {
# Multiple resolutions while bitrates missing
'url': 'http://cdn.playwire.com/11625/embed/85228.html',
@@ -42,6 +40,15 @@ class PlaywireIE(InfoExtractor):
'url': 'http://cdn.playwire.com/v2/12342/config/1532636.json',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.cinemablend.com/new/First-Joe-Dirt-2-Trailer-Teaser-Stupid-Greatness-70874.html',
+ 'info_dict': {
+ 'id': '3519514',
+ 'ext': 'mp4',
+ 'title': 'Joe Dirt 2 Beautiful Loser Teaser Trailer',
+ },
+ 'skip': 'Site no longer embeds Playwire',
+ }]
def _real_extract(self, url):
mobj = self._match_valid_url(url)
diff --git a/yt_dlp/extractor/rutube.py b/yt_dlp/extractor/rutube.py
index 20365ac5d1..1e0e983529 100644
--- a/yt_dlp/extractor/rutube.py
+++ b/yt_dlp/extractor/rutube.py
@@ -115,7 +115,6 @@ class RutubeIE(RutubeBaseIE):
_TESTS = [{
'url': 'https://rutube.ru/video/3eac3b4561676c17df9132a9a1e62e3e/',
- 'md5': '3d73fdfe5bb81b9aef139e22ef3de26a',
'info_dict': {
'id': '3eac3b4561676c17df9132a9a1e62e3e',
'ext': 'mp4',
@@ -128,10 +127,11 @@ class RutubeIE(RutubeBaseIE):
'upload_date': '20131016',
'age_limit': 0,
'view_count': int,
- 'thumbnail': 'https://pic.rutubelist.ru/video/d2/a0/d2a0aec998494a396deafc7ba2c82add.jpg',
+ 'thumbnail': r're:https?://pic\.rutubelist\.ru/video/.+\.(?:jpg|png)',
'categories': ['Новости и СМИ'],
'chapters': [],
},
+ 'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://rutube.ru/play/embed/a10e53b86e8f349080f718582ce4c661',
'only_matching': True,
@@ -146,7 +146,6 @@ class RutubeIE(RutubeBaseIE):
'only_matching': True,
}, {
'url': 'https://rutube.ru/video/private/884fb55f07a97ab673c7d654553e0f48/?p=x2QojCumHTS3rsKHWXN8Lg',
- 'md5': '4fce7b4fcc7b1bcaa3f45eb1e1ad0dd7',
'info_dict': {
'id': '884fb55f07a97ab673c7d654553e0f48',
'ext': 'mp4',
@@ -163,6 +162,7 @@ class RutubeIE(RutubeBaseIE):
'categories': ['Видеоигры'],
'chapters': [],
},
+ 'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://rutube.ru/video/c65b465ad0c98c89f3b25cb03dcc87c6/',
'info_dict': {
@@ -171,7 +171,7 @@ class RutubeIE(RutubeBaseIE):
'chapters': 'count:4',
'categories': ['Бизнес и предпринимательство'],
'description': 'md5:252feac1305257d8c1bab215cedde75d',
- 'thumbnail': 'https://pic.rutubelist.ru/video/71/8f/718f27425ea9706073eb80883dd3787b.png',
+ 'thumbnail': r're:https?://pic\.rutubelist\.ru/video/.+\.(?:jpg|png)',
'duration': 782,
'age_limit': 0,
'uploader_id': '23491359',
@@ -181,6 +181,7 @@ class RutubeIE(RutubeBaseIE):
'title': 'Бизнес с нуля: найм сотрудников. Интервью с директором строительной компании #1',
'uploader': 'Стас Быков',
},
+ 'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://rutube.ru/live/video/c58f502c7bb34a8fcdd976b221fca292/',
'info_dict': {
@@ -188,16 +189,17 @@ class RutubeIE(RutubeBaseIE):
'ext': 'mp4',
'categories': ['Телепередачи'],
'description': '',
- 'thumbnail': 'https://pic.rutubelist.ru/video/14/19/14190807c0c48b40361aca93ad0867c7.jpg',
+ 'thumbnail': r're:https?://pic\.rutubelist\.ru/video/.+\.(?:jpg|png)',
'live_status': 'is_live',
'age_limit': 0,
'uploader_id': '23460655',
'timestamp': 1652972968,
'view_count': int,
'upload_date': '20220519',
- 'title': r're:Первый канал. Прямой эфир \d{4}-\d{2}-\d{2} \d{2}:\d{2}$',
+ 'title': str,
'uploader': 'Первый канал',
},
+ 'skip': 'Invalid URL',
}, {
'url': 'https://rutube.ru/play/embed/03a9cb54bac3376af4c5cb0f18444e01/',
'info_dict': {
@@ -211,11 +213,12 @@ class RutubeIE(RutubeBaseIE):
'duration': 293,
'uploader': 'MOEX - Московская биржа',
'timestamp': 1724946628,
- 'thumbnail': 'https://pic.rutubelist.ru/video/2e/24/2e241fddb459baf0fa54acfca44874f4.jpg',
+ 'thumbnail': r're:https?://pic\.rutubelist\.ru/video/.+\.(?:jpg|png)',
'view_count': int,
'uploader_id': '38420507',
'categories': ['Интервью'],
},
+ 'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://rutube.ru/video/5ab908fccfac5bb43ef2b1e4182256b0/',
'only_matching': True,
@@ -223,6 +226,26 @@ class RutubeIE(RutubeBaseIE):
'url': 'https://rutube.ru/live/video/private/c58f502c7bb34a8fcdd976b221fca292/',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://novate.ru/blogs/170625/73644/',
+ 'info_dict': {
+ 'id': 'b0c96c75a4e5b274721bbced6ed8fb64',
+ 'ext': 'mp4',
+ 'title': 'Где в России находится единственная в своем роде скальная торпедная батарея',
+ 'age_limit': 0,
+ 'categories': ['Наука'],
+ 'chapters': [],
+ 'description': 'md5:2ed82e6b81958a43da6fb4d56f949e1f',
+ 'duration': 182,
+ 'thumbnail': r're:https?://pic\.rutubelist\.ru/video/.+\.(?:jpg|png)',
+ 'timestamp': 1749950158,
+ 'upload_date': '20250615',
+ 'uploader': 'Novate',
+ 'uploader_id': '24044809',
+ 'view_count': int,
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
@@ -256,12 +279,10 @@ class RutubeEmbedIE(RutubeBaseIE):
'chapters': [],
'description': 'md5:a5acea57bbc3ccdc3cacd1f11a014b5b',
'view_count': int,
- 'thumbnail': 'https://pic.rutubelist.ru/video/d3/03/d3031f4670a6e6170d88fb3607948418.jpg',
+ 'thumbnail': r're:https?://pic\.rutubelist\.ru/video/.+\.(?:jpg|png)',
'categories': ['Сериалы'],
},
- 'params': {
- 'skip_download': True,
- },
+ 'params': {'skip_download': 'm3u8'},
}, {
'url': 'https://rutube.ru/play/embed/8083783',
'only_matching': True,
diff --git a/yt_dlp/extractor/rutv.py b/yt_dlp/extractor/rutv.py
index 9bd26ad03e..11270a1f2c 100644
--- a/yt_dlp/extractor/rutv.py
+++ b/yt_dlp/extractor/rutv.py
@@ -16,96 +16,88 @@ class RUTVIE(InfoExtractor):
)
(?P<id>\d+)
'''
- _EMBED_URLS = [
+ _EMBED_REGEX = [
r'<iframe[^>]+?src=(["\'])(?P<url>https?://(?:test)?player\.(?:rutv\.ru|vgtrk\.com)/(?:iframe/(?:swf|video|live)/id|index/iframe/cast_id)/.+?)\1',
r'<meta[^>]+?property=(["\'])og:video\1[^>]+?content=(["\'])(?P<url>https?://(?:test)?player\.(?:rutv\.ru|vgtrk\.com)/flash\d+v/container\.swf\?id=.+?\2)',
]
- _TESTS = [
- {
- 'url': 'http://player.rutv.ru/flash2v/container.swf?id=774471&sid=kultura&fbv=true&isPlay=true&ssl=false&i=560&acc_video_id=episode_id/972347/video_id/978186/brand_id/31724',
- 'info_dict': {
- 'id': '774471',
- 'ext': 'mp4',
- 'title': 'Монологи на все времена',
- 'description': 'md5:18d8b5e6a41fb1faa53819471852d5d5',
- 'duration': 2906,
- },
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
+ _TESTS = [{
+ 'url': 'http://player.rutv.ru/flash2v/container.swf?id=774471&sid=kultura&fbv=true&isPlay=true&ssl=false&i=560&acc_video_id=episode_id/972347/video_id/978186/brand_id/31724',
+ 'info_dict': {
+ 'id': '774471',
+ 'ext': 'mp4',
+ 'title': 'Монологи на все времена. Концерт',
+ 'description': 'md5:18d8b5e6a41fb1faa53819471852d5d5',
+ 'duration': 2906,
+ 'thumbnail': r're:https?://cdn-st2\.smotrim\.ru/.+\.jpg',
},
- {
- 'url': 'https://player.vgtrk.com/flash2v/container.swf?id=774016&sid=russiatv&fbv=true&isPlay=true&ssl=false&i=560&acc_video_id=episode_id/972098/video_id/977760/brand_id/57638',
- 'info_dict': {
- 'id': '774016',
- 'ext': 'mp4',
- 'title': 'Чужой в семье Сталина',
- 'description': '',
- 'duration': 2539,
- },
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ 'url': 'https://player.vgtrk.com/flash2v/container.swf?id=774016&sid=russiatv&fbv=true&isPlay=true&ssl=false&i=560&acc_video_id=episode_id/972098/video_id/977760/brand_id/57638',
+ 'info_dict': {
+ 'id': '774016',
+ 'ext': 'mp4',
+ 'title': 'Чужой в семье Сталина',
+ 'description': '',
+ 'duration': 2539,
},
- {
- 'url': 'http://player.rutv.ru/iframe/swf/id/766888/sid/hitech/?acc_video_id=4000',
- 'info_dict': {
- 'id': '766888',
- 'ext': 'mp4',
- 'title': 'Вести.net: интернет-гиганты начали перетягивание программных "одеял"',
- 'description': 'md5:65ddd47f9830c4f42ed6475f8730c995',
- 'duration': 279,
- },
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
+ 'skip': 'Invalid URL',
+ }, {
+ 'url': 'http://player.rutv.ru/iframe/swf/id/766888/sid/hitech/?acc_video_id=4000',
+ 'info_dict': {
+ 'id': '766888',
+ 'ext': 'mp4',
+ 'title': 'Вести.net: интернет-гиганты начали перетягивание программных "одеял"',
+ 'description': 'md5:65ddd47f9830c4f42ed6475f8730c995',
+ 'duration': 279,
+ 'thumbnail': r're:https?://cdn-st2\.smotrim\.ru/.+\.jpg',
},
- {
- 'url': 'http://player.rutv.ru/iframe/video/id/771852/start_zoom/true/showZoomBtn/false/sid/russiatv/?acc_video_id=episode_id/970443/video_id/975648/brand_id/5169',
- 'info_dict': {
- 'id': '771852',
- 'ext': 'mp4',
- 'title': 'Прямой эфир. Жертвы загадочной болезни: смерть от старости в 17 лет',
- 'description': 'md5:b81c8c55247a4bd996b43ce17395b2d8',
- 'duration': 3096,
- },
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ 'url': 'http://player.rutv.ru/iframe/video/id/771852/start_zoom/true/showZoomBtn/false/sid/russiatv/?acc_video_id=episode_id/970443/video_id/975648/brand_id/5169',
+ 'info_dict': {
+ 'id': '771852',
+ 'ext': 'mp4',
+ 'title': 'Прямой эфир. Жертвы загадочной болезни: смерть от старости в 17 лет',
+ 'description': 'md5:b81c8c55247a4bd996b43ce17395b2d8',
+ 'duration': 3096,
+ 'thumbnail': r're:https?://cdn-st2\.smotrim\.ru/.+\.jpg',
},
- {
- 'url': 'http://player.rutv.ru/iframe/live/id/51499/showZoomBtn/false/isPlay/true/sid/sochi2014',
- 'info_dict': {
- 'id': '51499',
- 'ext': 'flv',
- 'title': 'Сочи-2014. Биатлон. Индивидуальная гонка. Мужчины ',
- 'description': 'md5:9e0ed5c9d2fa1efbfdfed90c9a6d179c',
- },
- 'skip': 'Translation has finished',
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ 'url': 'http://player.rutv.ru/iframe/live/id/51499/showZoomBtn/false/isPlay/true/sid/sochi2014',
+ 'info_dict': {
+ 'id': '51499',
+ 'ext': 'flv',
+ 'title': 'Сочи-2014. Биатлон. Индивидуальная гонка. Мужчины ',
+ 'description': 'md5:9e0ed5c9d2fa1efbfdfed90c9a6d179c',
},
- {
- 'url': 'http://player.rutv.ru/iframe/live/id/21/showZoomBtn/false/isPlay/true/',
- 'info_dict': {
- 'id': '21',
- 'ext': 'mp4',
- 'title': 're:^Россия 24. Прямой эфир [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
- 'is_live': True,
- },
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
+ 'skip': 'Invalid URL',
+ }, {
+ 'url': 'http://player.rutv.ru/iframe/live/id/21/showZoomBtn/false/isPlay/true/',
+ 'info_dict': {
+ 'id': '21',
+ 'ext': 'mp4',
+ 'title': str,
+ 'is_live': True,
},
- {
- 'url': 'https://testplayer.vgtrk.com/iframe/live/id/19201/showZoomBtn/false/isPlay/true/',
- 'only_matching': True,
+ 'skip': 'Invalid URL',
+ }, {
+ 'url': 'https://testplayer.vgtrk.com/iframe/live/id/19201/showZoomBtn/false/isPlay/true/',
+ 'only_matching': True,
+ }]
+ _WEBPAGE_TESTS = [{
+ 'url': 'http://istoriya-teatra.ru/news/item/f00/s05/n0000545/index.shtml',
+ 'info_dict': {
+ 'id': '1952012',
+ 'ext': 'mp4',
+ 'title': 'Новости культуры. Эфир от 10.10.2019 (23:30). Театр Сатиры отмечает день рождения премьерой',
+ 'description': 'md5:fced27112ff01ff8fc4a452fc088bad6',
+ 'duration': 191,
+ 'thumbnail': r're:https?://cdn-st2\.smotrim\.ru/.+\.jpg',
},
- ]
+ 'params': {'skip_download': 'm3u8'},
+ }]
def _real_extract(self, url):
mobj = self._match_valid_url(url)
diff --git a/yt_dlp/extractor/ruutu.py b/yt_dlp/extractor/ruutu.py
index 2dddb39f95..be1560b067 100644
--- a/yt_dlp/extractor/ruutu.py
+++ b/yt_dlp/extractor/ruutu.py
@@ -18,6 +18,7 @@ from ..utils import (
class RuutuIE(InfoExtractor):
+ _WORKING = False
_VALID_URL = r'''(?x)
https?://
(?:
@@ -26,112 +27,111 @@ class RuutuIE(InfoExtractor):
)
(?P<id>\d+)
'''
- _TESTS = [
- {
- 'url': 'http://www.ruutu.fi/video/2058907',
- 'md5': 'ab2093f39be1ca8581963451b3c0234f',
- 'info_dict': {
- 'id': '2058907',
- 'ext': 'mp4',
- 'title': 'Oletko aina halunnut tietää mitä tapahtuu vain hetki ennen lähetystä? - Nyt se selvisi!',
- 'description': 'md5:cfc6ccf0e57a814360df464a91ff67d6',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 114,
- 'age_limit': 0,
- 'upload_date': '20150508',
- },
+ _TESTS = [{
+ 'url': 'http://www.ruutu.fi/video/2058907',
+ 'md5': 'ab2093f39be1ca8581963451b3c0234f',
+ 'info_dict': {
+ 'id': '2058907',
+ 'ext': 'mp4',
+ 'title': 'Oletko aina halunnut tietää mitä tapahtuu vain hetki ennen lähetystä? - Nyt se selvisi!',
+ 'description': 'md5:cfc6ccf0e57a814360df464a91ff67d6',
+ 'thumbnail': r're:^https?://.*\.jpg$',
+ 'duration': 114,
+ 'age_limit': 0,
+ 'upload_date': '20150508',
},
- {
- 'url': 'http://www.ruutu.fi/video/2057306',
- 'md5': '065a10ae4d5b8cfd9d0c3d332465e3d9',
- 'info_dict': {
- 'id': '2057306',
- 'ext': 'mp4',
- 'title': 'Superpesis: katso koko kausi Ruudussa',
- 'description': 'md5:bfb7336df2a12dc21d18fa696c9f8f23',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 40,
- 'age_limit': 0,
- 'upload_date': '20150507',
- 'series': 'Superpesis',
- 'categories': ['Urheilu'],
- },
+ }, {
+ 'url': 'http://www.ruutu.fi/video/2057306',
+ 'md5': '065a10ae4d5b8cfd9d0c3d332465e3d9',
+ 'info_dict': {
+ 'id': '2057306',
+ 'ext': 'mp4',
+ 'title': 'Superpesis: katso koko kausi Ruudussa',
+ 'description': 'md5:bfb7336df2a12dc21d18fa696c9f8f23',
+ 'thumbnail': r're:^https?://.*\.jpg$',
+ 'duration': 40,
+ 'age_limit': 0,
+ 'upload_date': '20150507',
+ 'series': 'Superpesis',
+ 'categories': ['Urheilu'],
},
- {
- 'url': 'http://www.supla.fi/supla/2231370',
- 'md5': 'df14e782d49a2c0df03d3be2a54ef949',
- 'info_dict': {
- 'id': '2231370',
- 'ext': 'mp4',
- 'title': 'Osa 1: Mikael Jungner',
- 'description': 'md5:7d90f358c47542e3072ff65d7b1bcffe',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'age_limit': 0,
- 'upload_date': '20151012',
- 'series': 'Läpivalaisu',
- },
+ }, {
+ 'url': 'http://www.supla.fi/supla/2231370',
+ 'md5': 'df14e782d49a2c0df03d3be2a54ef949',
+ 'info_dict': {
+ 'id': '2231370',
+ 'ext': 'mp4',
+ 'title': 'Osa 1: Mikael Jungner',
+ 'description': 'md5:7d90f358c47542e3072ff65d7b1bcffe',
+ 'thumbnail': r're:^https?://.*\.jpg$',
+ 'age_limit': 0,
+ 'upload_date': '20151012',
+ 'series': 'Läpivalaisu',
},
+ }, {
# Episode where <SourceFile> is "NOT-USED", but has other
# downloadable sources available.
- {
- 'url': 'http://www.ruutu.fi/video/3193728',
- 'only_matching': True,
+ 'url': 'http://www.ruutu.fi/video/3193728',
+ 'only_matching': True,
+ }, {
+ # audio podcast
+ 'url': 'https://www.supla.fi/supla/3382410',
+ 'md5': 'b9d7155fed37b2ebf6021d74c4b8e908',
+ 'info_dict': {
+ 'id': '3382410',
+ 'ext': 'mp3',
+ 'title': 'Mikä ihmeen poltergeist?',
+ 'description': 'md5:bbb6963df17dfd0ecd9eb9a61bf14b52',
+ 'thumbnail': r're:^https?://.*\.jpg$',
+ 'age_limit': 0,
+ 'upload_date': '20190320',
+ 'series': 'Mysteeritarinat',
+ 'duration': 1324,
},
- {
- # audio podcast
- 'url': 'https://www.supla.fi/supla/3382410',
- 'md5': 'b9d7155fed37b2ebf6021d74c4b8e908',
- 'info_dict': {
- 'id': '3382410',
- 'ext': 'mp3',
- 'title': 'Mikä ihmeen poltergeist?',
- 'description': 'md5:bbb6963df17dfd0ecd9eb9a61bf14b52',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'age_limit': 0,
- 'upload_date': '20190320',
- 'series': 'Mysteeritarinat',
- 'duration': 1324,
- },
- 'expected_warnings': [
- 'HTTP Error 502: Bad Gateway',
- 'Failed to download m3u8 information',
- ],
+ 'expected_warnings': [
+ 'HTTP Error 502: Bad Gateway',
+ 'Failed to download m3u8 information',
+ ],
+ }, {
+ 'url': 'http://www.supla.fi/audio/2231370',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://static.nelonenmedia.fi/player/misc/embed_player.html?nid=3618790',
+ 'only_matching': True,
+ }, {
+ # episode
+ 'url': 'https://www.ruutu.fi/video/3401964',
+ 'info_dict': {
+ 'id': '3401964',
+ 'ext': 'mp4',
+ 'title': 'Temptation Island Suomi - Kausi 5 - Jakso 17',
+ 'description': 'md5:87cf01d5e1e88adf0c8a2937d2bd42ba',
+ 'thumbnail': r're:^https?://.*\.jpg$',
+ 'duration': 2582,
+ 'age_limit': 12,
+ 'upload_date': '20190508',
+ 'series': 'Temptation Island Suomi',
+ 'season_number': 5,
+ 'episode_number': 17,
+ 'categories': ['Reality ja tositapahtumat', 'Kotimaiset suosikit', 'Romantiikka ja parisuhde'],
},
- {
- 'url': 'http://www.supla.fi/audio/2231370',
- 'only_matching': True,
+ 'params': {
+ 'skip_download': True,
},
- {
- 'url': 'https://static.nelonenmedia.fi/player/misc/embed_player.html?nid=3618790',
- 'only_matching': True,
+ }, {
+ # premium
+ 'url': 'https://www.ruutu.fi/video/3618715',
+ 'only_matching': True,
+ }]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Broken IE
+ 'url': 'https://www.hs.fi/maailma/art-2000011353059.html',
+ 'info_dict': {
+ 'id': '4746675',
+ 'ext': 'mp4',
+ 'title': 'Yhdysvaltojen Texasin osavaltiota ovat koetelleet tuhoisat tulvat',
},
- {
- # episode
- 'url': 'https://www.ruutu.fi/video/3401964',
- 'info_dict': {
- 'id': '3401964',
- 'ext': 'mp4',
- 'title': 'Temptation Island Suomi - Kausi 5 - Jakso 17',
- 'description': 'md5:87cf01d5e1e88adf0c8a2937d2bd42ba',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 2582,
- 'age_limit': 12,
- 'upload_date': '20190508',
- 'series': 'Temptation Island Suomi',
- 'season_number': 5,
- 'episode_number': 17,
- 'categories': ['Reality ja tositapahtumat', 'Kotimaiset suosikit', 'Romantiikka ja parisuhde'],
- },
- 'params': {
- 'skip_download': True,
- },
- },
- {
- # premium
- 'url': 'https://www.ruutu.fi/video/3618715',
- 'only_matching': True,
- },
- ]
+ }]
_API_BASE = 'https://gatling.nelonenmedia.fi'
@classmethod
diff --git a/yt_dlp/extractor/senategov.py b/yt_dlp/extractor/senategov.py
index dc275e58da..596484d5b7 100644
--- a/yt_dlp/extractor/senategov.py
+++ b/yt_dlp/extractor/senategov.py
@@ -23,13 +23,10 @@ class SenateISVPIE(InfoExtractor):
'id': 'judiciary031715',
'ext': 'mp4',
'title': 'ISVP',
- 'thumbnail': r're:^https?://.*\.(?:jpg|png)$',
+ 'thumbnail': r're:https?://.+\.(?:jpe?g|png)',
'_old_archive_ids': ['senategov judiciary031715'],
},
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
+ 'params': {'skip_download': 'm3u8'},
'expected_warnings': ['Failed to download m3u8 information'],
}, {
'url': 'http://www.senate.gov/isvp/?type=live&comm=commerce&filename=commerce011514.mp4&auto_play=false',
@@ -39,10 +36,6 @@ class SenateISVPIE(InfoExtractor):
'title': 'Integrated Senate Video Player',
'_old_archive_ids': ['senategov commerce011514'],
},
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
'skip': 'This video is not available.',
}, {
'url': 'http://www.senate.gov/isvp/?type=arch&comm=intel&filename=intel090613&hc_location=ufi',
@@ -60,7 +53,7 @@ class SenateISVPIE(InfoExtractor):
'id': 'help090920',
'ext': 'mp4',
'title': 'ISVP',
- 'thumbnail': 'https://www.help.senate.gov/assets/images/video-poster.png',
+ 'thumbnail': r're:https?://.+\.(?:jpe?g|png)',
'_old_archive_ids': ['senategov help090920'],
},
}, {
@@ -68,6 +61,17 @@ class SenateISVPIE(InfoExtractor):
'url': 'http://www.senate.gov/isvp?type=live&comm=banking&filename=banking012715',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Embed detection
+ 'url': 'https://www.hsgac.senate.gov/subcommittees/bmfwra/hearings/match-ready-oversight-of-the-federal-governments-border-management-and-personnel-readiness-efforts-for-the-decade-of-sports/',
+ 'info_dict': {
+ 'id': 'govtaff061025',
+ 'ext': 'mp4',
+ 'title': 'ISVP',
+ 'thumbnail': r're:https?://.+\.(?:jpe?g|png)',
+ '_old_archive_ids': ['senategov govtaff061025'],
+ },
+ }]
_COMMITTEES = {
'ag': ('76440', 'https://ag-f.akamaihd.net', '2036803', 'agriculture'),
@@ -150,10 +154,10 @@ class SenateGovIE(InfoExtractor):
'id': 'help090920',
'display_id': 'vaccines-saving-lives-ensuring-confidence-and-protecting-public-health',
'title': 'Vaccines: Saving Lives, Ensuring Confidence, and Protecting Public Health',
- 'description': 'The U.S. Senate Committee on Health, Education, Labor & Pensions',
+ 'description': 'Full Committee Hearing on September 9, 2020 at 6:00 AM',
'ext': 'mp4',
'age_limit': 0,
- 'thumbnail': 'https://www.help.senate.gov/assets/images/sharelogo.jpg',
+ 'thumbnail': r're:https?://.+\.(?:jpe?g|png)',
'_old_archive_ids': ['senategov help090920'],
},
'params': {'skip_download': 'm3u8'},
@@ -165,7 +169,7 @@ class SenateGovIE(InfoExtractor):
'title': 'Review of the FY2019 Budget Request for the U.S. Army',
'ext': 'mp4',
'age_limit': 0,
- 'thumbnail': 'https://www.appropriations.senate.gov/themes/appropriations/images/video-poster-flash-fit.png',
+ 'thumbnail': r're:https?://.+\.(?:jpe?g|png)',
'_old_archive_ids': ['senategov appropsA051518'],
},
'params': {'skip_download': 'm3u8'},
@@ -178,7 +182,7 @@ class SenateGovIE(InfoExtractor):
'title': '21st Century Communities: Public Transportation Infrastructure Investment and FAST Act Reauthorization',
'description': 'The Official website of The United States Committee on Banking, Housing, and Urban Affairs',
'ext': 'mp4',
- 'thumbnail': 'https://www.banking.senate.gov/themes/banking/images/sharelogo.jpg',
+ 'thumbnail': r're:https?://.+\.(?:jpe?g|png)',
'age_limit': 0,
'_old_archive_ids': ['senategov banking041521'],
},
diff --git a/yt_dlp/extractor/simplecast.py b/yt_dlp/extractor/simplecast.py
index f6bb1306ad..268280e8ff 100644
--- a/yt_dlp/extractor/simplecast.py
+++ b/yt_dlp/extractor/simplecast.py
@@ -76,17 +76,18 @@ class SimplecastIE(SimplecastBaseIE):
'id': 'b6dc49a2-9404-4853-9aa9-9cfc097be876',
'ext': 'mp3',
'title': 'Errant Signal - Chris Franklin & New Wave Video Essays',
+ 'channel_url': 'https://the-re-bind-io-podcast.simplecast.com',
+ 'episode': 'Episode 1',
'episode_number': 1,
'episode_id': 'b6dc49a2-9404-4853-9aa9-9cfc097be876',
'description': 'md5:34752789d3d2702e2d2c975fbd14f357',
+ 'season': 'Season 1',
'season_number': 1,
'season_id': 'e23df0da-bae4-4531-8bbf-71364a88dc13',
'series': 'The RE:BIND.io Podcast',
'duration': 5343,
'timestamp': 1580979475,
'upload_date': '20200206',
- 'webpage_url': r're:^https?://the-re-bind-io-podcast\.simplecast\.com/episodes/errant-signal-chris-franklin-new-wave-video-essays',
- 'channel_url': r're:^https?://the-re-bind-io-podcast\.simplecast\.com$',
}
_TESTS = [{
'url': 'https://api.simplecast.com/episodes/b6dc49a2-9404-4853-9aa9-9cfc097be876',
@@ -96,6 +97,29 @@ class SimplecastIE(SimplecastBaseIE):
'url': 'https://player.simplecast.com/b6dc49a2-9404-4853-9aa9-9cfc097be876',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Embed detection
+ 'url': 'https://poddtoppen.se/podcast/1498417306/the-rebindio-podcast/errant-signal-chris-franklin-new-wave-video-essays',
+ 'md5': '8c93be7be54251bf29ee97464eabe61c',
+ 'info_dict': {
+ 'id': 'b6dc49a2-9404-4853-9aa9-9cfc097be876',
+ 'ext': 'mp3',
+ 'title': 'Errant Signal - Chris Franklin & New Wave Video Essays',
+ 'channel_url': 'https://the-re-bind-io-podcast.simplecast.com',
+ 'description': 'md5:34752789d3d2702e2d2c975fbd14f357',
+ 'display_id': 'errant-signal-chris-franklin-new-wave-video-essays',
+ 'duration': 5343,
+ 'episode': 'Episode 1',
+ 'episode_id': 'b6dc49a2-9404-4853-9aa9-9cfc097be876',
+ 'episode_number': 1,
+ 'season': 'Season 1',
+ 'season_id': 'e23df0da-bae4-4531-8bbf-71364a88dc13',
+ 'season_number': 1,
+ 'series': 'The RE:BIND.io Podcast',
+ 'timestamp': 1580979475,
+ 'upload_date': '20200206',
+ },
+ }]
def _real_extract(self, url):
episode_id = self._match_id(url)
@@ -106,11 +130,11 @@ class SimplecastIE(SimplecastBaseIE):
class SimplecastEpisodeIE(SimplecastBaseIE):
IE_NAME = 'simplecast:episode'
_VALID_URL = r'https?://(?!api\.)[^/]+\.simplecast\.com/episodes/(?P<id>[^/?&#]+)'
- _TEST = {
+ _TESTS = [{
'url': 'https://the-re-bind-io-podcast.simplecast.com/episodes/errant-signal-chris-franklin-new-wave-video-essays',
'md5': '8c93be7be54251bf29ee97464eabe61c',
'info_dict': SimplecastIE._COMMON_TEST_INFO,
- }
+ }]
def _real_extract(self, url):
mobj = self._match_valid_url(url)
@@ -124,7 +148,7 @@ class SimplecastPodcastIE(SimplecastBaseIE):
_VALID_URL = r'https?://(?!(?:api|cdn|embed|feeds|player)\.)(?P<id>[^/]+)\.simplecast\.com(?!/episodes/[^/?&#]+)'
_TESTS = [{
'url': 'https://the-re-bind-io-podcast.simplecast.com',
- 'playlist_mincount': 33,
+ 'playlist_mincount': 32,
'info_dict': {
'id': '07d28d26-7522-42eb-8c53-2bdcfc81c43c',
'title': 'The RE:BIND.io Podcast',
diff --git a/yt_dlp/extractor/soundcloud.py b/yt_dlp/extractor/soundcloud.py
index 404e298978..2cc98c66ce 100644
--- a/yt_dlp/extractor/soundcloud.py
+++ b/yt_dlp/extractor/soundcloud.py
@@ -26,11 +26,47 @@ from ..utils.traversal import traverse_obj
class SoundcloudEmbedIE(InfoExtractor):
_VALID_URL = r'https?://(?:w|player|p)\.soundcloud\.com/player/?.*?\burl=(?P<id>.+)'
_EMBED_REGEX = [r'<iframe[^>]+src=(["\'])(?P<url>(?:https?://)?(?:w\.)?soundcloud\.com/player.+?)\1']
- _TEST = {
+ _TESTS = [{
# from https://www.soundi.fi/uutiset/ennakkokuuntelussa-timo-kaukolammen-station-to-station-to-station-julkaisua-juhlitaan-tanaan-g-livelabissa/
'url': 'https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F922213810&show_artwork=true&maxwidth=640&maxheight=960&dnt=1&secret_token=s-ziYey',
'only_matching': True,
- }
+ }]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://news.sophos.com/en-us/2023/08/10/s3-ep147-what-if-you-type-in-your-password-during-a-meeting/',
+ 'info_dict': {
+ 'id': '1588847423',
+ 'ext': 'm4a',
+ 'title': 'S3 Ep147: What if you type in your password during a meeting?',
+ 'artists': ['Naked Security'],
+ 'description': 'md5:6931a0630b920413c8c904407bf4b3b2',
+ 'duration': 942.762,
+ 'genres': ['Technology'],
+ 'license': 'all-rights-reserved',
+ 'repost_count': int,
+ 'tags': 'count:4',
+ 'thumbnail': r're:https?://[ai]1\.sndcdn\.com/.+\.(?:jpg|png)',
+ 'timestamp': 1691624365,
+ 'track': 'S3 Ep147: What if you type in your password during a meeting?',
+ 'upload_date': '20230809',
+ 'uploader': 'Naked Security',
+ 'uploader_id': '61390843',
+ 'uploader_url': 'https://soundcloud.com/sophossecurity',
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ 'url': 'https://www.guitarplayer.com/lessons/november-2023-guitar-player-lesson-audio',
+ 'info_dict': {
+ 'id': '1695754080',
+ 'title': 'A Tribute to Brian Setzer’s Guitar Mastery',
+ 'album': 'A Tribute to Brian Setzer’s Guitar Mastery',
+ 'album_artists': ['Guitar Player'],
+ 'album_type': 'playlist',
+ 'description': '',
+ 'uploader': 'Guitar Player',
+ 'uploader_id': '489924156',
+ },
+ 'playlist_mincount': 7,
+ }]
def _real_extract(self, url):
query = parse_qs(url)
@@ -407,269 +443,256 @@ class SoundcloudIE(SoundcloudBaseIE):
)
'''
IE_NAME = 'soundcloud'
- _TESTS = [
- {
- 'url': 'http://soundcloud.com/ethmusic/lostin-powers-she-so-heavy',
- 'md5': 'de9bac153e7427a7333b4b0c1b6a18d2',
- 'info_dict': {
- 'id': '62986583',
- 'ext': 'opus',
- 'title': 'Lostin Powers - She so Heavy (SneakPreview) Adrian Ackers Blueprint 1',
- 'track': 'Lostin Powers - She so Heavy (SneakPreview) Adrian Ackers Blueprint 1',
- 'description': 'No Downloads untill we record the finished version this weekend, i was too pumped n i had to post it , earl is prolly gonna b hella p.o\'d',
- 'uploader': 'E.T. ExTerrestrial Music',
- 'uploader_id': '1571244',
- 'timestamp': 1349920598,
- 'upload_date': '20121011',
- 'duration': 143.216,
- 'license': 'all-rights-reserved',
- 'view_count': int,
- 'like_count': int,
- 'comment_count': int,
- 'repost_count': int,
- 'thumbnail': 'https://i1.sndcdn.com/artworks-000031955188-rwb18x-original.jpg',
- 'uploader_url': 'https://soundcloud.com/ethmusic',
- 'tags': 'count:14',
- },
+ _TESTS = [{
+ 'url': 'http://soundcloud.com/ethmusic/lostin-powers-she-so-heavy',
+ 'md5': 'de9bac153e7427a7333b4b0c1b6a18d2',
+ 'info_dict': {
+ 'id': '62986583',
+ 'ext': 'opus',
+ 'title': 'Lostin Powers - She so Heavy (SneakPreview) Adrian Ackers Blueprint 1',
+ 'track': 'Lostin Powers - She so Heavy (SneakPreview) Adrian Ackers Blueprint 1',
+ 'description': 'md5:7b6074e00887ad79f59b647c8fb6d5ae',
+ 'uploader': 'E.T. ExTerrestrial Music',
+ 'uploader_id': '1571244',
+ 'timestamp': 1349920598,
+ 'upload_date': '20121011',
+ 'duration': 143.216,
+ 'license': 'all-rights-reserved',
+ 'view_count': int,
+ 'like_count': int,
+ 'comment_count': int,
+ 'repost_count': int,
+ 'thumbnail': r're:https?://[ai]1\.sndcdn\.com/.+\.(?:jpg|png)',
+ 'uploader_url': 'https://soundcloud.com/ethmusic',
+ 'tags': 'count:14',
},
- # geo-restricted
- {
- 'url': 'https://soundcloud.com/the-concept-band/goldrushed-mastered?in=the-concept-band/sets/the-royal-concept-ep',
- 'info_dict': {
- 'id': '47127627',
- 'ext': 'opus',
- 'title': 'Goldrushed',
- 'track': 'Goldrushed',
- 'description': 'From Stockholm Sweden\r\nPovel / Magnus / Filip / David\r\nwww.theroyalconcept.com',
- 'uploader': 'The Royal Concept',
- 'uploader_id': '9615865',
- 'timestamp': 1337635207,
- 'upload_date': '20120521',
- 'duration': 227.103,
- 'license': 'all-rights-reserved',
- 'view_count': int,
- 'like_count': int,
- 'comment_count': int,
- 'repost_count': int,
- 'uploader_url': 'https://soundcloud.com/the-concept-band',
- 'thumbnail': 'https://i1.sndcdn.com/artworks-v8bFHhXm7Au6-0-original.jpg',
- 'genres': ['Alternative'],
- 'artists': ['The Royal Concept'],
- 'tags': [],
- },
+ }, {
+ # Geo-restricted
+ 'url': 'https://soundcloud.com/the-concept-band/goldrushed-mastered?in=the-concept-band/sets/the-royal-concept-ep',
+ 'info_dict': {
+ 'id': '47127627',
+ 'ext': 'opus',
+ 'title': 'Goldrushed',
+ 'track': 'Goldrushed',
+ 'description': 'md5:c0080b79a3710811d60234f94f391a40',
+ 'uploader': 'The Royal Concept',
+ 'uploader_id': '9615865',
+ 'timestamp': 1337635207,
+ 'upload_date': '20120521',
+ 'duration': 227.103,
+ 'license': 'all-rights-reserved',
+ 'view_count': int,
+ 'like_count': int,
+ 'comment_count': int,
+ 'repost_count': int,
+ 'uploader_url': 'https://soundcloud.com/the-concept-band',
+ 'thumbnail': r're:https?://[ai]1\.sndcdn\.com/.+\.(?:jpg|png)',
+ 'genres': ['Alternative'],
+ 'artists': ['The Royal Concept'],
+ 'tags': [],
},
+ }, {
# private link
- {
- 'url': 'https://soundcloud.com/jaimemf/youtube-dl-test-video-a-y-baw/s-8Pjrp',
- 'md5': 'aa0dd32bfea9b0c5ef4f02aacd080604',
- 'info_dict': {
- 'id': '123998367',
- 'ext': 'mp3',
- 'title': 'Youtube - Dl Test Video \'\' Ä↭',
- 'track': 'Youtube - Dl Test Video \'\' Ä↭',
- 'description': 'test chars: "\'/\\ä↭',
- 'uploader': 'jaimeMF',
- 'uploader_id': '69767071',
- 'timestamp': 1386604920,
- 'upload_date': '20131209',
- 'duration': 9.927,
- 'license': 'all-rights-reserved',
- 'view_count': int,
- 'like_count': int,
- 'comment_count': int,
- 'repost_count': int,
- 'uploader_url': 'https://soundcloud.com/jaimemf',
- 'thumbnail': 'https://a1.sndcdn.com/images/default_avatar_large.png',
- 'genres': ['youtubedl'],
- 'tags': [],
- },
+ 'url': 'https://soundcloud.com/jaimemf/youtube-dl-test-video-a-y-baw/s-8Pjrp',
+ 'md5': 'aa0dd32bfea9b0c5ef4f02aacd080604',
+ 'info_dict': {
+ 'id': '123998367',
+ 'ext': 'mp3',
+ 'title': 'Youtube - Dl Test Video \'\' Ä↭',
+ 'track': 'Youtube - Dl Test Video \'\' Ä↭',
+ 'description': 'md5:610b729ee06ac4cedaa28607212948f3',
+ 'uploader': 'jaimeMF',
+ 'uploader_id': '69767071',
+ 'timestamp': 1386604920,
+ 'upload_date': '20131209',
+ 'duration': 9.927,
+ 'license': 'all-rights-reserved',
+ 'view_count': int,
+ 'like_count': int,
+ 'comment_count': int,
+ 'repost_count': int,
+ 'uploader_url': 'https://soundcloud.com/jaimemf',
+ 'thumbnail': r're:https?://[ai]1\.sndcdn\.com/.+\.(?:jpg|png)',
+ 'genres': ['youtubedl'],
+ 'tags': [],
},
+ }, {
# private link (alt format)
- {
- 'url': 'https://api.soundcloud.com/tracks/123998367?secret_token=s-8Pjrp',
- 'md5': 'aa0dd32bfea9b0c5ef4f02aacd080604',
- 'info_dict': {
- 'id': '123998367',
- 'ext': 'mp3',
- 'title': 'Youtube - Dl Test Video \'\' Ä↭',
- 'track': 'Youtube - Dl Test Video \'\' Ä↭',
- 'description': 'test chars: "\'/\\ä↭',
- 'uploader': 'jaimeMF',
- 'uploader_id': '69767071',
- 'timestamp': 1386604920,
- 'upload_date': '20131209',
- 'duration': 9.927,
- 'license': 'all-rights-reserved',
- 'view_count': int,
- 'like_count': int,
- 'comment_count': int,
- 'repost_count': int,
- 'uploader_url': 'https://soundcloud.com/jaimemf',
- 'thumbnail': 'https://a1.sndcdn.com/images/default_avatar_large.png',
- 'genres': ['youtubedl'],
- 'tags': [],
- },
+ 'url': 'https://api.soundcloud.com/tracks/123998367?secret_token=s-8Pjrp',
+ 'md5': 'aa0dd32bfea9b0c5ef4f02aacd080604',
+ 'info_dict': {
+ 'id': '123998367',
+ 'ext': 'mp3',
+ 'title': 'Youtube - Dl Test Video \'\' Ä↭',
+ 'track': 'Youtube - Dl Test Video \'\' Ä↭',
+ 'description': 'md5:610b729ee06ac4cedaa28607212948f3',
+ 'uploader': 'jaimeMF',
+ 'uploader_id': '69767071',
+ 'timestamp': 1386604920,
+ 'upload_date': '20131209',
+ 'duration': 9.927,
+ 'license': 'all-rights-reserved',
+ 'view_count': int,
+ 'like_count': int,
+ 'comment_count': int,
+ 'repost_count': int,
+ 'uploader_url': 'https://soundcloud.com/jaimemf',
+ 'thumbnail': r're:https?://[ai]1\.sndcdn\.com/.+\.(?:jpg|png)',
+ 'genres': ['youtubedl'],
+ 'tags': [],
},
+ }, {
# downloadable song
- {
- 'url': 'https://soundcloud.com/the80m/the-following',
- 'md5': 'ecb87d7705d5f53e6c02a63760573c75', # wav: '9ffcddb08c87d74fb5808a3c183a1d04'
- 'info_dict': {
- 'id': '343609555',
- 'ext': 'opus', # wav original available with auth
- 'title': 'The Following',
- 'track': 'The Following',
- 'description': '',
- 'uploader': '80M',
- 'uploader_id': '312384765',
- 'uploader_url': 'https://soundcloud.com/the80m',
- 'upload_date': '20170922',
- 'timestamp': 1506120436,
- 'duration': 397.228,
- 'thumbnail': 'https://i1.sndcdn.com/artworks-000243916348-ktoo7d-original.jpg',
- 'license': 'all-rights-reserved',
- 'like_count': int,
- 'comment_count': int,
- 'repost_count': int,
- 'view_count': int,
- 'genres': ['Dance & EDM'],
- 'artists': ['80M'],
- 'tags': ['80M', 'EDM', 'Dance', 'Music'],
- },
- 'expected_warnings': ['Original download format is only available for registered users'],
+ 'url': 'https://soundcloud.com/the80m/the-following',
+ 'md5': 'ecb87d7705d5f53e6c02a63760573c75', # wav: '9ffcddb08c87d74fb5808a3c183a1d04'
+ 'info_dict': {
+ 'id': '343609555',
+ 'ext': 'opus', # wav original available with auth
+ 'title': 'The Following',
+ 'track': 'The Following',
+ 'description': '',
+ 'uploader': '80M',
+ 'uploader_id': '312384765',
+ 'uploader_url': 'https://soundcloud.com/the80m',
+ 'upload_date': '20170922',
+ 'timestamp': 1506120436,
+ 'duration': 397.228,
+ 'thumbnail': r're:https?://[ai]1\.sndcdn\.com/.+\.(?:jpg|png)',
+ 'license': 'all-rights-reserved',
+ 'like_count': int,
+ 'comment_count': int,
+ 'repost_count': int,
+ 'view_count': int,
+ 'genres': ['Dance & EDM'],
+ 'artists': ['80M'],
+ 'tags': 'count:4',
},
+ 'expected_warnings': ['Original download format is only available for registered users'],
+ }, {
# private link, downloadable format
# tags with spaces (e.g. "Uplifting Trance", "Ori Uplift")
- {
- 'url': 'https://soundcloud.com/oriuplift/uponly-238-no-talking-wav/s-AyZUd',
- 'md5': '2e1530d0e9986a833a67cb34fc90ece0', # wav: '64a60b16e617d41d0bef032b7f55441e'
- 'info_dict': {
- 'id': '340344461',
- 'ext': 'opus', # wav original available with auth
- 'title': 'Uplifting Only 238 [No Talking] (incl. Alex Feed Guestmix) (Aug 31, 2017) [wav]',
- 'track': 'Uplifting Only 238 [No Talking] (incl. Alex Feed Guestmix) (Aug 31, 2017) [wav]',
- 'description': 'md5:fa20ee0fca76a3d6df8c7e57f3715366',
- 'uploader': 'Ori Uplift Music',
- 'uploader_id': '12563093',
- 'timestamp': 1504206263,
- 'upload_date': '20170831',
- 'duration': 7449.096,
- 'license': 'all-rights-reserved',
- 'view_count': int,
- 'like_count': int,
- 'comment_count': int,
- 'repost_count': int,
- 'thumbnail': 'https://i1.sndcdn.com/artworks-000240712245-kedn4p-original.jpg',
- 'uploader_url': 'https://soundcloud.com/oriuplift',
- 'genres': ['Trance'],
- 'artists': ['Ori Uplift'],
- 'tags': ['Orchestral', 'Emotional', 'Uplifting Trance', 'Trance', 'Ori Uplift', 'UpOnly'],
- },
- 'expected_warnings': ['Original download format is only available for registered users'],
+ 'url': 'https://soundcloud.com/oriuplift/uponly-238-no-talking-wav/s-AyZUd',
+ 'md5': '2e1530d0e9986a833a67cb34fc90ece0', # wav: '64a60b16e617d41d0bef032b7f55441e'
+ 'info_dict': {
+ 'id': '340344461',
+ 'ext': 'opus', # wav original available with auth
+ 'title': 'Uplifting Only 238 [No Talking] (incl. Alex Feed Guestmix) (Aug 31, 2017) [wav]',
+ 'track': 'Uplifting Only 238 [No Talking] (incl. Alex Feed Guestmix) (Aug 31, 2017) [wav]',
+ 'description': 'md5:fa20ee0fca76a3d6df8c7e57f3715366',
+ 'uploader': 'Ori Uplift Music',
+ 'uploader_id': '12563093',
+ 'timestamp': 1504206263,
+ 'upload_date': '20170831',
+ 'duration': 7449.096,
+ 'license': 'all-rights-reserved',
+ 'view_count': int,
+ 'like_count': int,
+ 'comment_count': int,
+ 'repost_count': int,
+ 'thumbnail': r're:https?://[ai]1\.sndcdn\.com/.+\.(?:jpg|png)',
+ 'uploader_url': 'https://soundcloud.com/oriuplift',
+ 'genres': ['Trance'],
+ 'artists': ['Ori Uplift'],
+ 'tags': 'count:6',
},
+ 'expected_warnings': ['Original download format is only available for registered users'],
+ }, {
# no album art, use avatar pic for thumbnail
- {
- 'url': 'https://soundcloud.com/garyvee/sideways-prod-mad-real',
- 'md5': '59c7872bc44e5d99b7211891664760c2',
- 'info_dict': {
- 'id': '309699954',
- 'ext': 'mp3',
- 'title': 'Sideways (Prod. Mad Real)',
- 'track': 'Sideways (Prod. Mad Real)',
- 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
- 'uploader': 'garyvee',
- 'uploader_id': '2366352',
- 'timestamp': 1488152409,
- 'upload_date': '20170226',
- 'duration': 207.012,
- 'thumbnail': r're:https?://.*\.jpg',
- 'license': 'all-rights-reserved',
- 'view_count': int,
- 'like_count': int,
- 'comment_count': int,
- 'repost_count': int,
- 'uploader_url': 'https://soundcloud.com/garyvee',
- 'artists': ['MadReal'],
- 'tags': [],
- },
- 'params': {
- 'skip_download': True,
- },
+ 'url': 'https://soundcloud.com/garyvee/sideways-prod-mad-real',
+ 'md5': '59c7872bc44e5d99b7211891664760c2',
+ 'info_dict': {
+ 'id': '309699954',
+ 'ext': 'mp3',
+ 'title': 'Sideways (Prod. Mad Real)',
+ 'track': 'Sideways (Prod. Mad Real)',
+ 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
+ 'uploader': 'garyvee',
+ 'uploader_id': '2366352',
+ 'timestamp': 1488152409,
+ 'upload_date': '20170226',
+ 'duration': 207.012,
+ 'thumbnail': r're:https?://[ai]1\.sndcdn\.com/.+\.(?:jpg|png)',
+ 'license': 'all-rights-reserved',
+ 'view_count': int,
+ 'like_count': int,
+ 'comment_count': int,
+ 'repost_count': int,
+ 'uploader_url': 'https://soundcloud.com/garyvee',
+ 'artists': ['MadReal'],
+ 'tags': [],
},
- {
- 'url': 'https://soundcloud.com/giovannisarani/mezzo-valzer',
- 'md5': '8227c3473a4264df6b02ad7e5b7527ac',
- 'info_dict': {
- 'id': '583011102',
- 'ext': 'opus',
- 'title': 'Mezzo Valzer',
- 'track': 'Mezzo Valzer',
- 'description': 'md5:f4d5f39d52e0ccc2b4f665326428901a',
- 'uploader': 'Giovanni Sarani',
- 'uploader_id': '3352531',
- 'timestamp': 1551394171,
- 'upload_date': '20190228',
- 'duration': 180.157,
- 'thumbnail': r're:https?://.*\.jpg',
- 'license': 'all-rights-reserved',
- 'view_count': int,
- 'like_count': int,
- 'comment_count': int,
- 'repost_count': int,
- 'genres': ['Piano'],
- 'uploader_url': 'https://soundcloud.com/giovannisarani',
- 'tags': 'count:10',
- },
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ 'url': 'https://soundcloud.com/giovannisarani/mezzo-valzer',
+ 'md5': '8227c3473a4264df6b02ad7e5b7527ac',
+ 'info_dict': {
+ 'id': '583011102',
+ 'ext': 'm4a',
+ 'title': 'Mezzo Valzer',
+ 'track': 'Mezzo Valzer',
+ 'description': 'md5:f4d5f39d52e0ccc2b4f665326428901a',
+ 'uploader': 'Giovanni Sarani',
+ 'uploader_id': '3352531',
+ 'timestamp': 1551394171,
+ 'upload_date': '20190228',
+ 'duration': 180.134,
+ 'thumbnail': r're:https?://[ai]1\.sndcdn\.com/.+\.(?:jpg|png)',
+ 'license': 'all-rights-reserved',
+ 'view_count': int,
+ 'like_count': int,
+ 'comment_count': int,
+ 'repost_count': int,
+ 'genres': ['Piano'],
+ 'uploader_url': 'https://soundcloud.com/giovannisarani',
+ 'tags': 'count:10',
},
+ 'params': {'skip_download': 'm3u8'},
+ }, {
# .png "original" artwork, 160kbps m4a HLS format
- {
- 'url': 'https://soundcloud.com/skorxh/audio-dealer',
- 'info_dict': {
- 'id': '2011421339',
- 'ext': 'm4a',
- 'title': 'audio dealer',
- 'description': '',
- 'uploader': '$KORCH',
- 'uploader_id': '150292288',
- 'uploader_url': 'https://soundcloud.com/skorxh',
- 'comment_count': int,
- 'view_count': int,
- 'like_count': int,
- 'repost_count': int,
- 'duration': 213.469,
- 'tags': [],
- 'artists': ['$KORXH'],
- 'track': 'audio dealer',
- 'timestamp': 1737143201,
- 'upload_date': '20250117',
- 'license': 'all-rights-reserved',
- 'thumbnail': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-original.png',
- 'thumbnails': [
- {'id': 'mini', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-mini.jpg'},
- {'id': 'tiny', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-tiny.jpg'},
- {'id': 'small', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-small.jpg'},
- {'id': 'badge', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-badge.jpg'},
- {'id': 't67x67', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-t67x67.jpg'},
- {'id': 'large', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-large.jpg'},
- {'id': 't300x300', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-t300x300.jpg'},
- {'id': 'crop', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-crop.jpg'},
- {'id': 't500x500', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-t500x500.jpg'},
- {'id': 'original', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-original.png'},
- ],
- },
- 'params': {'skip_download': 'm3u8', 'format': 'hls_aac_160k'},
- },
- {
- # AAC HQ format available (account with active subscription needed)
- 'url': 'https://soundcloud.com/wandw/the-chainsmokers-ft-daya-dont-let-me-down-ww-remix-1',
- 'only_matching': True,
- },
- {
- # Go+ (account with active subscription needed)
- 'url': 'https://soundcloud.com/taylorswiftofficial/look-what-you-made-me-do',
- 'only_matching': True,
+ 'url': 'https://soundcloud.com/skorxh/audio-dealer',
+ 'info_dict': {
+ 'id': '2011421339',
+ 'ext': 'm4a',
+ 'title': 'audio dealer',
+ 'description': '',
+ 'uploader': '$KORCH',
+ 'uploader_id': '150292288',
+ 'uploader_url': 'https://soundcloud.com/skorxh',
+ 'comment_count': int,
+ 'view_count': int,
+ 'like_count': int,
+ 'repost_count': int,
+ 'duration': 213.469,
+ 'tags': [],
+ 'artists': ['$KORXH'],
+ 'track': 'audio dealer',
+ 'timestamp': 1737143201,
+ 'upload_date': '20250117',
+ 'license': 'all-rights-reserved',
+ 'thumbnail': r're:https?://[ai]1\.sndcdn\.com/.+\.(?:jpg|png)',
+ 'thumbnails': [
+ {'id': 'mini', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-mini.jpg'},
+ {'id': 'tiny', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-tiny.jpg'},
+ {'id': 'small', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-small.jpg'},
+ {'id': 'badge', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-badge.jpg'},
+ {'id': 't67x67', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-t67x67.jpg'},
+ {'id': 'large', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-large.jpg'},
+ {'id': 't300x300', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-t300x300.jpg'},
+ {'id': 'crop', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-crop.jpg'},
+ {'id': 't500x500', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-t500x500.jpg'},
+ {'id': 'original', 'url': 'https://i1.sndcdn.com/artworks-a1wKGMYNreDLTMrT-fGjRiw-original.png'},
+ ],
},
- ]
+ 'params': {'skip_download': 'm3u8', 'format': 'hls_aac_160k'},
+ }, {
+ # AAC HQ format available (account with active subscription needed)
+ 'url': 'https://soundcloud.com/wandw/the-chainsmokers-ft-daya-dont-let-me-down-ww-remix-1',
+ 'only_matching': True,
+ }, {
+ # Go+ (account with active subscription needed)
+ 'url': 'https://soundcloud.com/taylorswiftofficial/look-what-you-made-me-do',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
mobj = self._match_valid_url(url)
@@ -907,7 +930,7 @@ class SoundcloudUserIE(SoundcloudPagedPlaylistBaseIE):
'id': '7098329',
'title': 'Grynpyret (Spotlight)',
},
- 'playlist_mincount': 1,
+ 'playlist_mincount': 0,
}, {
'url': 'https://soundcloud.com/one-thousand-and-one/comments',
'info_dict': {
@@ -998,7 +1021,7 @@ class SoundcloudRelatedIE(SoundcloudPagedPlaylistBaseIE):
'id': '1084577272',
'title': 'Sexapil - Pingers 5 (Recommended)',
},
- 'playlist_mincount': 50,
+ 'playlist_mincount': 49,
}, {
'url': 'https://soundcloud.com/wajang/sexapil-pingers-5/albums',
'info_dict': {
@@ -1045,7 +1068,7 @@ class SoundcloudPlaylistIE(SoundcloudPlaylistBaseIE):
'info_dict': {
'id': '4110309',
'title': 'TILT Brass - Bowery Poetry Club, August \'03 [Non-Site SCR 02]',
- 'description': 're:.*?TILT Brass - Bowery Poetry Club',
+ 'description': 'md5:e4373f7177fe3db292a8552b4ec41bc6',
'uploader': 'Non-Site Records',
'uploader_id': '33660914',
'album_artists': ['Non-Site Records'],
diff --git a/yt_dlp/extractor/sportbox.py b/yt_dlp/extractor/sportbox.py
index ccbb0e8ccf..16a0790037 100644
--- a/yt_dlp/extractor/sportbox.py
+++ b/yt_dlp/extractor/sportbox.py
@@ -8,6 +8,7 @@ from ..utils import (
class SportBoxIE(InfoExtractor):
+ _WORKING = False
_VALID_URL = r'https?://(?:news\.sportbox|matchtv)\.ru/vdl/player(?:/[^/]+/|\?.*?\bn?id=)(?P<id>\d+)'
_EMBED_REGEX = [r'<iframe[^>]+src="(?P<url>https?://(?:news\.sportbox|matchtv)\.ru/vdl/player[^"]+)"']
_TESTS = [{
@@ -17,7 +18,7 @@ class SportBoxIE(InfoExtractor):
'ext': 'mp4',
'title': 'В Новороссийске прошел детский турнир «Поле славы боевой»',
'description': 'В Новороссийске прошел детский турнир «Поле славы боевой»',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'duration': 292,
'view_count': int,
'timestamp': 1426237001,
@@ -40,6 +41,15 @@ class SportBoxIE(InfoExtractor):
'url': 'https://matchtv.ru/vdl/player/media/109158',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'http://www.vestifinance.ru/articles/25753',
+ 'info_dict': {
+ 'id': '25753',
+ 'title': 'Прямые трансляции с Форума-выставки "Госзаказ-2013"',
+ },
+ 'playlist_count': 3,
+ 'skip': 'Invalid URL',
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/springboardplatform.py b/yt_dlp/extractor/springboardplatform.py
index cd3261d554..9a37dd6752 100644
--- a/yt_dlp/extractor/springboardplatform.py
+++ b/yt_dlp/extractor/springboardplatform.py
@@ -30,11 +30,12 @@ class SpringboardPlatformIE(InfoExtractor):
'ext': 'mp4',
'title': 'Redman "BUD like YOU" "Usher Good Kisser" REMIX',
'description': 'Redman "BUD like YOU" "Usher Good Kisser" REMIX',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'timestamp': 1409132328,
'upload_date': '20140827',
'duration': 193,
},
+ 'skip': 'Invalid URL',
}, {
'url': 'http://cms.springboardplatform.com/embed_iframe/159/video/981017/rab007/rapbasement.com/1/1',
'only_matching': True,
@@ -45,6 +46,15 @@ class SpringboardPlatformIE(InfoExtractor):
'url': 'http://cms.springboardplatform.com/xml_feeds_advanced/index/159/rss3/981017/0/0/1/',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.kidzworld.com/article/30935-trolls-the-beat-goes-on-interview-skylar-astin-and-amanda-leighton',
+ 'info_dict': {
+ 'id': '1731611',
+ 'ext': 'mp4',
+ 'title': 'Official Trailer | TROLLS: THE BEAT GOES ON!',
+ },
+ 'skip': 'Invalid URL',
+ }]
def _real_extract(self, url):
mobj = self._match_valid_url(url)
diff --git a/yt_dlp/extractor/substack.py b/yt_dlp/extractor/substack.py
index b70d40f2ca..f0fa00ea57 100644
--- a/yt_dlp/extractor/substack.py
+++ b/yt_dlp/extractor/substack.py
@@ -63,6 +63,29 @@ class SubstackIE(InfoExtractor):
'uploader_id': '61579',
},
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.mollymovieclub.com/p/interstellar',
+ 'info_dict': {
+ 'id': '53602801',
+ 'ext': 'mpga',
+ 'title': 'Interstellar',
+ 'description': 'Listen now | Episode One',
+ 'thumbnail': r're:https?://.+\.jpeg',
+ 'uploader': 'Molly Movie Club',
+ 'uploader_id': '839621',
+ },
+ }, {
+ 'url': 'https://www.blockedandreported.org/p/episode-117-lets-talk-about-depp',
+ 'info_dict': {
+ 'id': '57962052',
+ 'ext': 'mpga',
+ 'title': 'md5:855b2756f0ee10f6723fa00b16266f8d',
+ 'description': 'The takes the takes the takes',
+ 'thumbnail': r're:https?://.+\.jpeg',
+ 'uploader': 'Blocked and Reported',
+ 'uploader_id': '500230',
+ },
+ }]
@classmethod
def _extract_embed_urls(cls, url, webpage):
diff --git a/yt_dlp/extractor/ted.py b/yt_dlp/extractor/ted.py
index 8544c8bed5..1191cd3af4 100644
--- a/yt_dlp/extractor/ted.py
+++ b/yt_dlp/extractor/ted.py
@@ -32,12 +32,12 @@ class TedTalkIE(TedBaseIE):
'title': 'How to break down barriers and not accept limits',
'description': 'md5:000707cece219d1e165b11550d612331',
'view_count': int,
- 'tags': ['personal growth', 'equality', 'activism', 'motivation', 'social change', 'sports'],
+ 'tags': 'count:6',
'uploader': 'Candace Parker',
- 'duration': 676.0,
+ 'duration': 679,
+ 'thumbnail': r're:https?://pi\.tedcdn\.com/.+\.jpg',
'upload_date': '20220114',
'release_date': '20211201',
- 'thumbnail': r're:http.*\.jpg',
},
}]
@@ -162,7 +162,7 @@ class TedSeriesIE(TedBaseIE):
'id': '8_2',
'title': 'The Way We Work Season 2',
'series': 'The Way We Work',
- 'description': 'md5:59469256e533e1a48c4aa926a382234c',
+ 'description': 'md5:36678fe045f6ad7f39da80ea9370cbcd',
'season_number': 2,
},
'playlist_mincount': 8,
@@ -213,7 +213,6 @@ class TedPlaylistIE(TedBaseIE):
class TedEmbedIE(InfoExtractor):
_VALID_URL = r'https?://embed(?:-ssl)?\.ted\.com/'
_EMBED_REGEX = [rf'<iframe[^>]+?src=(["\'])(?P<url>{_VALID_URL}.+?)\1']
-
_TESTS = [{
'url': 'https://embed.ted.com/talks/janet_stovall_how_to_get_serious_about_diversity_and_inclusion_in_the_workplace',
'info_dict': {
@@ -222,14 +221,31 @@ class TedEmbedIE(InfoExtractor):
'title': 'How to get serious about diversity and inclusion in the workplace',
'description': 'md5:0978aafe396e05341f8ecc795d22189d',
'view_count': int,
- 'tags': list,
'uploader': 'Janet Stovall',
- 'duration': 664.0,
+ 'duration': 654,
+ 'tags': 'count:10',
+ 'thumbnail': r're:https?://pi\.tedcdn\.com/.+\.jpg',
'upload_date': '20180822',
'release_date': '20180719',
- 'thumbnail': r're:http.*\.jpg',
},
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://ideas.ted.com/6-ways-to-give-that-arent-about-money/',
+ 'info_dict': {
+ 'id': '123235',
+ 'ext': 'mp4',
+ 'title': 'It\'s time for infectious generosity. Here\'s how',
+ 'description': 'md5:0f972eb2b53ad7d1385fb65f519657b4',
+ 'duration': 1172,
+ 'release_date': '20231128',
+ 'tags': 'count:9',
+ 'thumbnail': r're:https?://pi\.tedcdn\.com/.+\.jpg',
+ 'upload_date': '20240109',
+ 'uploader': 'Chris Anderson',
+ 'view_count': int,
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }]
def _real_extract(self, url):
return self.url_result(re.sub(r'://embed(-ssl)?', '://www', url), TedTalkIE.ie_key())
diff --git a/yt_dlp/extractor/tunein.py b/yt_dlp/extractor/tunein.py
index 05bb2a9fab..90fb04bf3d 100644
--- a/yt_dlp/extractor/tunein.py
+++ b/yt_dlp/extractor/tunein.py
@@ -51,9 +51,9 @@ class TuneInStationIE(TuneInBaseIE):
'url': 'https://tunein.com/radio/Jazz24-885-s34682/',
'info_dict': {
'id': 's34682',
- 'title': 're:^Jazz24',
+ 'title': str,
'description': 'md5:d6d0b89063fd68d529fa7058ee98619b',
- 'thumbnail': 're:^https?://[^?&]+/s34682',
+ 'thumbnail': r're:https?://cdn-profiles\.tunein\.com/.+',
'location': 'Seattle-Tacoma, US',
'ext': 'mp3',
'live_status': 'is_live',
@@ -68,17 +68,26 @@ class TuneInStationIE(TuneInBaseIE):
'url': 'https://tunein.com/radio/BBC-Radio-1-988-s24939/',
'info_dict': {
'id': 's24939',
- 'title': 're:^BBC Radio 1',
- 'description': 'md5:f3f75f7423398d87119043c26e7bfb84',
- 'thumbnail': 're:^https?://[^?&]+/s24939',
+ 'title': str,
+ 'description': 'md5:ee2c56794844610d045f8caf5ff34d0c',
+ 'thumbnail': r're:https?://cdn-profiles\.tunein\.com/.+',
'location': 'London, UK',
- 'ext': 'mp3',
+ 'ext': 'm4a',
'live_status': 'is_live',
},
'params': {
'skip_download': True,
},
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.martiniinthemorning.com/',
+ 'info_dict': {
+ 'id': 's55412',
+ 'ext': 'mp3',
+ 'title': 'TuneInStation video #s55412',
+ },
+ 'expected_warnings': ['unable to extract hydration', 'Extractor failed to obtain "title"'],
+ }]
def _real_extract(self, url):
station_id = self._match_id(url)
@@ -123,9 +132,9 @@ class TuneInPodcastIE(TuneInBaseIE):
'info_dict': {
'id': 'p14',
'title': 'BBC News',
- 'description': 'md5:1218e575eeaff75f48ed978261fa2068',
+ 'description': 'md5:30b9622bcc4bd101d4acd6f38f284aed',
},
- 'playlist_mincount': 200,
+ 'playlist_mincount': 36,
}]
_PAGE_SIZE = 30
@@ -164,9 +173,9 @@ class TuneInPodcastEpisodeIE(TuneInBaseIE):
'url': 'https://tunein.com/podcasts/Technology-Podcasts/Artificial-Intelligence-p1153019/?topicId=236404354',
'info_dict': {
'id': 't236404354',
- 'title': '#351 \u2013 MrBeast: Future of YouTube, Twitter, TikTok, and Instagram',
- 'description': 'md5:e1734db6f525e472c0c290d124a2ad77',
- 'thumbnail': 're:^https?://[^?&]+/p1153019',
+ 'title': '#351 – MrBeast: Future of YouTube, Twitter, TikTok, and Instagram',
+ 'description': 'md5:2784533b98f8ac45c0820b1e4a8d8bb2',
+ 'thumbnail': r're:https?://cdn-profiles\.tunein\.com/.+',
'timestamp': 1673458571,
'upload_date': '20230111',
'series_id': 'p1153019',
@@ -198,18 +207,19 @@ class TuneInPodcastEpisodeIE(TuneInBaseIE):
class TuneInShortenerIE(InfoExtractor):
+ _WORKING = False
IE_NAME = 'tunein:shortener'
IE_DESC = False # Do not list
_VALID_URL = r'https?://tun\.in/(?P<id>[A-Za-z0-9]+)'
- _TEST = {
+ _TESTS = [{
# test redirection
'url': 'http://tun.in/ser7s',
'info_dict': {
'id': 's34682',
- 'title': 're:^Jazz24',
+ 'title': str,
'description': 'md5:d6d0b89063fd68d529fa7058ee98619b',
- 'thumbnail': 're:^https?://[^?&]+/s34682',
+ 'thumbnail': r're:https?://cdn-profiles\.tunein\.com/.+',
'location': 'Seattle-Tacoma, US',
'ext': 'mp3',
'live_status': 'is_live',
@@ -217,7 +227,7 @@ class TuneInShortenerIE(InfoExtractor):
'params': {
'skip_download': True, # live stream
},
- }
+ }]
def _real_extract(self, url):
redirect_id = self._match_id(url)
diff --git a/yt_dlp/extractor/tvc.py b/yt_dlp/extractor/tvc.py
index 7c8c922a61..d1a4650d20 100644
--- a/yt_dlp/extractor/tvc.py
+++ b/yt_dlp/extractor/tvc.py
@@ -8,17 +8,29 @@ from ..utils import (
class TVCIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?tvc\.ru/video/iframe/id/(?P<id>\d+)'
_EMBED_REGEX = [r'<iframe[^>]+?src=(["\'])(?P<url>(?:http:)?//(?:www\.)?tvc\.ru/video/iframe/id/[^"]+)\1']
- _TEST = {
+ _TESTS = [{
'url': 'http://www.tvc.ru/video/iframe/id/74622/isPlay/false/id_stat/channel/?acc_video_id=/channel/brand/id/17/show/episodes/episode_id/39702',
- 'md5': 'bbc5ff531d1e90e856f60fc4b3afd708',
+ 'md5': 'aa6fb3cf384e18a0ad3b30ee2898beba',
'info_dict': {
'id': '74622',
'ext': 'mp4',
- 'title': 'События. "События". Эфир от 22.05.2015 14:30',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'title': 'TVC video #74622',
'duration': 1122,
+ 'thumbnail': r're:https?://cdn\.tvc\.ru/pictures/.+\.jpg',
+ },
+ }]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Embed detection
+ 'url': 'https://krizis-centr.ru/informatsiya/smi-o-tsentre/liniya-zashchity-bitye-zhjony-tv-tsentr',
+ 'md5': '43b8eee579a5cd2b85c9ed5b73d1c671',
+ 'info_dict': {
+ 'id': '123378',
+ 'ext': 'mp4',
+ 'title': 'TVC video #123378',
+ 'duration': 1526,
+ 'thumbnail': r're:https?://cdn\.tvc\.ru/pictures/.+\.jpg',
},
- }
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/tvopengr.py b/yt_dlp/extractor/tvopengr.py
index e208e57f2f..3bb5114f88 100644
--- a/yt_dlp/extractor/tvopengr.py
+++ b/yt_dlp/extractor/tvopengr.py
@@ -22,12 +22,12 @@ class TVOpenGrWatchIE(TVOpenGrBaseIE):
_TESTS = [{
'url': 'https://www.ethnos.gr/watch/101009/nikoskaprabelosdenexoymekanenanasthenhsemethmethmetallaxhomikron',
- 'md5': '8728570e3a72e0f8d9475ba94859fdc1',
'info_dict': {
'id': '101009',
'title': 'md5:51f68773dcb6c70498cd326f45fefdf0',
'display_id': 'nikoskaprabelosdenexoymekanenanasthenhsemethmethmetallaxhomikron',
'description': 'md5:78fff49f18fb3effe41b070e5c7685d6',
+ 'duration': 246.0,
'thumbnail': 'https://opentv-static.siliconweb.com/imgHandler/1920/d573ba71-ec5f-43c6-b4cb-d181f327d3a8.jpg',
'ext': 'mp4',
'upload_date': '20220109',
@@ -35,12 +35,12 @@ class TVOpenGrWatchIE(TVOpenGrBaseIE):
},
}, {
'url': 'https://www.tvopen.gr/watch/100979/se28099agapaomenalla7cepeisodio267cmhthrargiapashskakias',
- 'md5': '38f98a1be0c577db4ea2d1b1c0770c48',
'info_dict': {
'id': '100979',
'title': 'md5:e021f3001e16088ee40fa79b20df305b',
'display_id': 'se28099agapaomenalla7cepeisodio267cmhthrargiapashskakias',
'description': 'md5:ba17db53954134eb8d625d199e2919fb',
+ 'duration': 2420.0,
'thumbnail': 'https://opentv-static.siliconweb.com/imgHandler/1920/9bb71cf1-21da-43a9-9d65-367950fde4e3.jpg',
'ext': 'mp4',
'upload_date': '20220108',
@@ -98,18 +98,32 @@ class TVOpenGrEmbedIE(TVOpenGrBaseIE):
_TESTS = [{
'url': 'https://cdn.ethnos.gr/embed/100963',
- 'md5': '2da147881f45571d81662d94d086628b',
'info_dict': {
'id': '100963',
'display_id': 'koronoiosapotoysdieythyntestonsxoleionselftestgiaosoysdenbrhkan',
'title': 'md5:2c71876fadf0cda6043da0da5fca2936',
'description': 'md5:17482b4432e5ed30eccd93b05d6ea509',
+ 'duration': 118.0,
'thumbnail': 'https://opentv-static.siliconweb.com/imgHandler/1920/5804e07f-799a-4247-a696-33842c94ca37.jpg',
'ext': 'mp4',
'upload_date': '20220108',
'timestamp': 1641600000,
},
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.ethnos.gr/World/article/190604/hparosiaxekinoynoisynomiliessthgeneyhmethskiatoypolemoypanoapothnoykrania',
+ 'info_dict': {
+ 'id': '101119',
+ 'ext': 'mp4',
+ 'title': 'Οι καρποί των διαπραγματεύσεων ΗΠΑ-Ρωσίας | Ώρα Ελλάδος 7:00 > Ρεπορτάζ',
+ 'description': 'Ξεκινούν οι διαπραγματεύσεις ανάμεσα σε Ηνωμένες Πολιτείες και Ρωσία για την Ουκρανία.',
+ 'display_id': 'oikarpoitondiapragmateyseonhparosias',
+ 'duration': 421.0,
+ 'thumbnail': r're:https?://opentv-static\.siliconweb\.com/imgHandler/.+\.jpg',
+ 'timestamp': 1641772800,
+ 'upload_date': '20220110',
+ },
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/twentymin.py b/yt_dlp/extractor/twentymin.py
index a08c591d9b..cc8ef078da 100644
--- a/yt_dlp/extractor/twentymin.py
+++ b/yt_dlp/extractor/twentymin.py
@@ -6,6 +6,7 @@ from ..utils import (
class TwentyMinutenIE(InfoExtractor):
+ _WORKING = False
IE_NAME = '20min'
_VALID_URL = r'''(?x)
https?://
@@ -24,7 +25,7 @@ class TwentyMinutenIE(InfoExtractor):
'id': '469148',
'ext': 'mp4',
'title': '85 000 Franken für 15 perfekte Minuten',
- 'thumbnail': r're:https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
},
}, {
'url': 'http://www.20min.ch/videoplayer/videoplayer.html?params=client@twentyDE|videoId@523629',
@@ -33,7 +34,7 @@ class TwentyMinutenIE(InfoExtractor):
'ext': 'mp4',
'title': 'So kommen Sie bei Eis und Schnee sicher an',
'description': 'md5:117c212f64b25e3d95747e5276863f7d',
- 'thumbnail': r're:https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
},
'params': {
'skip_download': True,
@@ -42,6 +43,16 @@ class TwentyMinutenIE(InfoExtractor):
'url': 'http://www.20min.ch/videotv/?cid=44&vid=468738',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Update _VALID_URL
+ 'url': 'https://www.20min.ch/story/so-kommen-sie-bei-eis-und-schnee-sicher-an-557858045456',
+ 'info_dict': {
+ 'id': '523629',
+ 'ext': 'mp4',
+ 'title': 'So kommen Sie bei Eis und Schnee sicher an',
+ 'description': 'md5:117c212f64b25e3d95747e5276863f7d',
+ },
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/udn.py b/yt_dlp/extractor/udn.py
index 9970e4ff50..cf116bf4e8 100644
--- a/yt_dlp/extractor/udn.py
+++ b/yt_dlp/extractor/udn.py
@@ -22,11 +22,7 @@ class UDNEmbedIE(InfoExtractor):
'title': '生物老師男變女 全校挺"做自己"',
'thumbnail': r're:^https?://.*\.jpg$',
},
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
- 'expected_warnings': ['Failed to parse JSON Expecting value'],
+ 'skip': 'Invalid URL',
}, {
'url': 'https://video.udn.com/embed/news/300040',
'only_matching': True,
@@ -35,6 +31,18 @@ class UDNEmbedIE(InfoExtractor):
'url': 'https://video.udn.com/play/news/303776',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Update _VALID_URL
+ 'url': 'https://video.udn.com/news/1308561',
+ 'info_dict': {
+ 'id': '1308561',
+ 'ext': 'mp4',
+ 'title': '影/丹娜絲颱風暴風圈擴大 上午8:30發布海警',
+ 'thumbnail': r're:https?://cdn\.udn\.com/img/.+\.jpg',
+ },
+ 'expected_warnings': ['Failed to parse JSON'],
+ 'params': {'skip_download': 'm3u8'},
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/vbox7.py b/yt_dlp/extractor/vbox7.py
index f5d0502fb7..5e28975e44 100644
--- a/yt_dlp/extractor/vbox7.py
+++ b/yt_dlp/extractor/vbox7.py
@@ -26,7 +26,7 @@ class Vbox7IE(InfoExtractor):
'ext': 'mp4',
'title': 'Борисов: Притеснен съм за бъдещето на България',
'description': 'По думите му е опасно страната ни да бъде обявена за "сигурна"',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'timestamp': 1470982814,
'upload_date': '20160812',
'uploader': 'zdraveibulgaria',
@@ -48,7 +48,7 @@ class Vbox7IE(InfoExtractor):
'upload_date': '20130207',
'duration': 83,
},
- 'expected_warnings': ['Failed to download m3u8 information'],
+ 'skip': 'Invalid URL',
}, {
'url': 'http://vbox7.com/emb/external.php?vid=a240d20f9c&autoplay=1',
'only_matching': True,
@@ -56,6 +56,21 @@ class Vbox7IE(InfoExtractor):
'url': 'http://i49.vbox7.com/player/ext.swf?vid=0946fff23c&autoplay=1',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://nova.bg/news/view/2016/08/16/156543/%D0%BD%D0%B0-%D0%BA%D0%BE%D1%81%D1%8A%D0%BC-%D0%BE%D1%82-%D0%B2%D0%B7%D1%80%D0%B8%D0%B2-%D0%BE%D1%82%D1%86%D0%B5%D0%BF%D0%B8%D1%85%D0%B0-%D1%86%D1%8F%D0%BB-%D0%BA%D0%B2%D0%B0%D1%80%D1%82%D0%B0%D0%BB-%D0%B7%D0%B0%D1%80%D0%B0%D0%B4%D0%B8-%D0%B8%D0%B7%D1%82%D0%B8%D1%87%D0%B0%D0%BD%D0%B5-%D0%BD%D0%B0-%D0%B3%D0%B0%D0%B7-%D0%B2-%D0%BF%D0%BB%D0%BE%D0%B2%D0%B4%D0%B8%D0%B2/',
+ 'info_dict': {
+ 'id': '5a4d12166d',
+ 'ext': 'mp4',
+ 'title': 'НА КОСЪМ ОТ ВЗРИВ: Отцепиха цял квартал заради изтичане на газ в Пловдив',
+ 'description': 'Инцидентът е станал на бензиностанция',
+ 'duration': 200,
+ 'thumbnail': r're:https?://.+\.jpg',
+ 'timestamp': 1471353501,
+ 'upload_date': '20160816',
+ 'uploader': 'novinitenanova',
+ 'view_count': int,
+ },
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/viddler.py b/yt_dlp/extractor/viddler.py
index 60ebfbd122..78de8a424d 100644
--- a/yt_dlp/extractor/viddler.py
+++ b/yt_dlp/extractor/viddler.py
@@ -6,6 +6,7 @@ from ..utils import (
class ViddlerIE(InfoExtractor):
+ _WORKING = False
_VALID_URL = r'https?://(?:www\.)?viddler\.com/(?:v|embed|player)/(?P<id>[a-z0-9]+)(?:.+?\bsecret=(\d+))?'
_EMBED_REGEX = [r'<(?:iframe[^>]+?src|param[^>]+?value)=(["\'])(?P<url>(?:https?:)?//(?:www\.)?viddler\.com/(?:embed|player)/.+?)\1']
@@ -21,11 +22,12 @@ class ViddlerIE(InfoExtractor):
'timestamp': 1335371429,
'upload_date': '20120425',
'duration': 100.89,
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'view_count': int,
'comment_count': int,
'categories': ['video content', 'high quality video', 'video made easy', 'how to produce video with limited resources', 'viddler'],
},
+ 'skip': 'Invalid URL',
}, {
'url': 'http://www.viddler.com/v/4d03aad9/',
'md5': 'f12c5a7fa839c47a79363bfdf69404fb',
@@ -53,6 +55,7 @@ class ViddlerIE(InfoExtractor):
'view_count': int,
'comment_count': int,
},
+ 'skip': 'Invalid URL',
}, {
# secret protected
'url': 'http://www.viddler.com/v/890c0985?secret=34051570',
@@ -71,6 +74,15 @@ class ViddlerIE(InfoExtractor):
'skip_download': True,
},
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://deadspin.com/i-cant-stop-watching-john-wall-chop-the-nuggets-with-th-1681801597/',
+ 'info_dict': {
+ 'id': '4d03aad9',
+ 'ext': 'mp4',
+ 'title': 'WALL-TO-GORTAT',
+ },
+ 'skip': 'Site no longer embeds Viddler',
+ }]
def _real_extract(self, url):
video_id, secret = self._match_valid_url(url).groups()
diff --git a/yt_dlp/extractor/videa.py b/yt_dlp/extractor/videa.py
index 8dc7ebd15e..210bb10b08 100644
--- a/yt_dlp/extractor/videa.py
+++ b/yt_dlp/extractor/videa.py
@@ -37,7 +37,7 @@ class VideaIE(InfoExtractor):
'id': '8YfIAjxwWGwT8HVQ',
'ext': 'mp4',
'title': 'Az őrült kígyász 285 kígyót enged szabadon',
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://videa\.hu/static/still/.+',
'duration': 21,
'age_limit': 0,
},
@@ -48,7 +48,7 @@ class VideaIE(InfoExtractor):
'id': 'jAHDWfWSJH5XuFhH',
'ext': 'mp4',
'title': 'Supercars előzés',
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://videa\.hu/static/still/.+',
'duration': 64,
'age_limit': 0,
},
@@ -59,7 +59,7 @@ class VideaIE(InfoExtractor):
'id': '8YfIAjxwWGwT8HVQ',
'ext': 'mp4',
'title': 'Az őrült kígyász 285 kígyót enged szabadon',
- 'thumbnail': r're:^https?://.*',
+ 'thumbnail': r're:https?://videa\.hu/static/still/.+',
'duration': 21,
'age_limit': 0,
},
@@ -76,6 +76,25 @@ class VideaIE(InfoExtractor):
'url': 'https://videakid.hu/player/v/8YfIAjxwWGwT8HVQ?autoplay=1',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.kapucziner.hu/',
+ 'info_dict': {
+ 'id': '95yhJCdK2dX1T5Nh',
+ 'ext': 'mp4',
+ 'title': 'Nemzetközi díjat kapott a győri kávémanufaktúra',
+ 'age_limit': 0,
+ 'duration': 207,
+ 'thumbnail': r're:https?://videa\.hu/static/still/.+',
+ },
+ }, {
+ # FIXME: No video formats found
+ 'url': 'https://hirtv.hu/hirtv_kesleltetett',
+ 'info_dict': {
+ 'id': 'IDRqF7W9X0GXHGj1',
+ 'ext': 'mp4',
+ 'title': 'Hír TV - 60 perccel késleltetett adás',
+ },
+ }]
_STATIC_SECRET = 'xHb0ZvME5q8CBcoQi6AngerDu3FGO9fkUlwPmLVY_RTzj2hJIS4NasXWKy1td7p'
@staticmethod
diff --git a/yt_dlp/extractor/videopress.py b/yt_dlp/extractor/videopress.py
index d3c9c8e22e..a63dc89e57 100644
--- a/yt_dlp/extractor/videopress.py
+++ b/yt_dlp/extractor/videopress.py
@@ -23,8 +23,9 @@ class VideoPressIE(InfoExtractor):
'id': 'kUJmAcSf',
'ext': 'mp4',
'title': 'VideoPress Demo',
- 'thumbnail': r're:^https?://.*\.jpg',
- 'duration': 634.6,
+ 'description': '',
+ 'duration': 635.0,
+ 'thumbnail': r're:https?://videos\.files\.wordpress\.com/.+\.jpg',
'timestamp': 1434983935,
'upload_date': '20150622',
'age_limit': 0,
@@ -37,6 +38,20 @@ class VideoPressIE(InfoExtractor):
'url': 'https://video.wordpress.com/embed/kUJmAcSf',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://wordpress.com/support/videopress/',
+ 'info_dict': {
+ 'id': 'BZHMfMfN',
+ 'ext': 'mp4',
+ 'title': 'videopress example',
+ 'age_limit': 0,
+ 'description': '',
+ 'duration': 19.796,
+ 'thumbnail': r're:https?://videos\.files\.wordpress\.com/.+\.jpg',
+ 'timestamp': 1748969554,
+ 'upload_date': '20250603',
+ },
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/viewlift.py b/yt_dlp/extractor/viewlift.py
index 4a7ba9839e..e1c807ebe1 100644
--- a/yt_dlp/extractor/viewlift.py
+++ b/yt_dlp/extractor/viewlift.py
@@ -76,6 +76,7 @@ class ViewLiftEmbedIE(ViewLiftBaseIE):
'timestamp': 1334350096,
'upload_date': '20120413',
},
+ 'skip': 'Invalid URL',
}, {
# invalid labels, 360p is better that 480p
'url': 'http://www.snagfilms.com/embed/player?filmId=17ca0950-a74a-11e0-a92a-0026bb61d036',
@@ -90,6 +91,15 @@ class ViewLiftEmbedIE(ViewLiftBaseIE):
'url': 'http://www.snagfilms.com/embed/player?filmId=0000014c-de2f-d5d6-abcf-ffef58af0017',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'http://whilewewatch.blogspot.ru/2012/06/whilewewatch-whilewewatch-gripping.html',
+ 'info_dict': {
+ 'id': '74849a00-85a9-11e1-9660-123139220831',
+ 'ext': 'mp4',
+ 'title': '#whilewewatch',
+ },
+ 'skip': 'Dead embed URL',
+ }]
def _real_extract(self, url):
domain, film_id = self._match_valid_url(url).groups()
@@ -164,13 +174,14 @@ class ViewLiftIE(ViewLiftBaseIE):
'ext': 'mp4',
'title': 'Lost for Life',
'description': 'md5:ea10b5a50405ae1f7b5269a6ec594102',
- 'thumbnail': r're:^https?://.*\.jpg',
+ 'thumbnail': r're:https?://.+\.jpg',
'duration': 4489,
'categories': 'mincount:3',
'age_limit': 14,
'upload_date': '20150421',
'timestamp': 1429656820,
},
+ 'skip': 'Invalid URL',
}, {
'url': 'http://www.snagfilms.com/show/the_world_cut_project/india',
'md5': 'e6292e5b837642bbda82d7f8bf3fbdfd',
@@ -180,11 +191,12 @@ class ViewLiftIE(ViewLiftBaseIE):
'ext': 'mp4',
'title': 'India',
'description': 'md5:5c168c5a8f4719c146aad2e0dfac6f5f',
- 'thumbnail': r're:^https?://.*\.jpg',
+ 'thumbnail': r're:https?://.+\.jpg',
'duration': 979,
'timestamp': 1399478279,
'upload_date': '20140507',
},
+ 'skip': 'Invalid URL',
}, {
'url': 'http://main.snagfilms.com/augie_alone/s_2_ep_12_love',
'info_dict': {
@@ -193,15 +205,13 @@ class ViewLiftIE(ViewLiftBaseIE):
'ext': 'mp4',
'title': 'S. 2 Ep. 12 - Love',
'description': 'Augie finds love.',
- 'thumbnail': r're:^https?://.*\.jpg',
+ 'thumbnail': r're:https?://.+\.jpg',
'duration': 107,
'upload_date': '20141012',
'timestamp': 1413129540,
'age_limit': 17,
},
- 'params': {
- 'skip_download': True,
- },
+ 'skip': 'Invalid URL',
}, {
'url': 'http://main.snagfilms.com/films/title/the_freebie',
'only_matching': True,
@@ -230,10 +240,10 @@ class ViewLiftIE(ViewLiftBaseIE):
'ext': 'mp4',
'title': 'Shuyopoka',
'description': 'md5:e28f2fb8680096a69c944d37c1fa5ffc',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'upload_date': '20211006',
},
- 'params': {'skip_download': True},
+ 'skip': 'Subscription required',
}, { # Free film
'url': 'https://www.hoichoi.tv/films/title/dadu-no1',
'info_dict': {
@@ -241,10 +251,10 @@ class ViewLiftIE(ViewLiftBaseIE):
'ext': 'mp4',
'title': 'Dadu No.1',
'description': 'md5:605cba408e51a79dafcb824bdeded51e',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'upload_date': '20210827',
},
- 'params': {'skip_download': True},
+ 'skip': 'Subscription required',
}, { # Free episode
'url': 'https://www.hoichoi.tv/webseries/case-jaundice-s01-e01',
'info_dict': {
@@ -252,11 +262,11 @@ class ViewLiftIE(ViewLiftBaseIE):
'ext': 'mp4',
'title': 'Humans Vs. Corona',
'description': 'md5:ca30a682b4528d02a3eb6d0427dd0f87',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'upload_date': '20210830',
'series': 'Case Jaundice',
},
- 'params': {'skip_download': True},
+ 'skip': 'Invalid URL',
}, { # Free video
'url': 'https://www.hoichoi.tv/videos/1549072415320-six-episode-02-hindi',
'info_dict': {
@@ -264,11 +274,11 @@ class ViewLiftIE(ViewLiftBaseIE):
'ext': 'mp4',
'title': 'Woman in red - Hindi',
'description': 'md5:9d21edc1827d32f8633eb67c2054fc31',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'upload_date': '20211006',
'series': 'Six (Hindi)',
},
- 'params': {'skip_download': True},
+ 'skip': 'Invalid URL',
}, { # Free episode
'url': 'https://www.hoichoi.tv/shows/watch-asian-paints-moner-thikana-online-season-1-episode-1',
'info_dict': {
@@ -276,23 +286,25 @@ class ViewLiftIE(ViewLiftBaseIE):
'ext': 'mp4',
'title': 'Jisshu Sengupta',
'description': 'md5:ef6ffae01a3d83438597367400f824ed',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'upload_date': '20211004',
'series': 'Asian Paints Moner Thikana',
},
- 'params': {'skip_download': True},
+ 'skip': 'Invalid URL',
}, { # Free series
'url': 'https://www.hoichoi.tv/shows/watch-moner-thikana-bengali-web-series-online',
'playlist_mincount': 5,
'info_dict': {
'id': 'watch-moner-thikana-bengali-web-series-online',
},
+ 'skip': 'Subscription required',
}, { # Premium series
'url': 'https://www.hoichoi.tv/shows/watch-byomkesh-bengali-web-series-online',
'playlist_mincount': 14,
'info_dict': {
'id': 'watch-byomkesh-bengali-web-series-online',
},
+ 'skip': 'Subscription required',
}, { # Premium movie
'url': 'https://www.hoichoi.tv/movies/detective-2020',
'only_matching': True,
@@ -302,6 +314,7 @@ class ViewLiftIE(ViewLiftBaseIE):
'info_dict': {
'id': 'bn/series/sinpaat',
},
+ 'skip': 'Subscription required',
}, { # Chorki free movie
'url': 'https://www.chorki.com/bn/videos/bangla-movie-bikkhov',
'info_dict': {
@@ -317,9 +330,7 @@ class ViewLiftIE(ViewLiftBaseIE):
'description': 'md5:71492b086450625f4374a3eb824f27dc',
'duration': 8002,
},
- 'params': {
- 'skip_download': True,
- },
+ 'skip': 'Invalid URL',
}, { # Chorki Premium movie
'url': 'https://www.chorki.com/bn/videos/something-like-an-autobiography',
'only_matching': True,
diff --git a/yt_dlp/extractor/vimeo.py b/yt_dlp/extractor/vimeo.py
index c45264bb52..b22bea5204 100644
--- a/yt_dlp/extractor/vimeo.py
+++ b/yt_dlp/extractor/vimeo.py
@@ -544,496 +544,489 @@ class VimeoIE(VimeoBaseInfoExtractor):
# Non-standard embedded Vimeo player
r'<video[^>]+src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?vimeo\.com/[0-9]+)\1',
]
- _TESTS = [
- {
- 'url': 'http://vimeo.com/56015672#at=0',
- 'md5': '8879b6cc097e987f02484baf890129e5',
- 'info_dict': {
- 'id': '56015672',
- 'ext': 'mp4',
- 'title': "youtube-dl test video '' ä↭𝕐-BaW jenozKc",
- 'description': 'md5:2d3305bad981a06ff79f027f19865021',
- 'timestamp': 1355990239,
- 'upload_date': '20121220',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/user7108434',
- 'uploader_id': 'user7108434',
- 'uploader': 'Filippo Valsorda',
- 'duration': 10,
- 'license': 'by-sa',
- },
- 'params': {
- 'format': 'best[protocol=https]',
- },
- 'skip': 'No longer available',
+ _TESTS = [{
+ 'url': 'http://vimeo.com/56015672#at=0',
+ 'md5': '8879b6cc097e987f02484baf890129e5',
+ 'info_dict': {
+ 'id': '56015672',
+ 'ext': 'mp4',
+ 'title': "youtube-dl test video '' ä↭𝕐-BaW jenozKc",
+ 'description': 'md5:2d3305bad981a06ff79f027f19865021',
+ 'timestamp': 1355990239,
+ 'upload_date': '20121220',
+ 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/user7108434',
+ 'uploader_id': 'user7108434',
+ 'uploader': 'Filippo Valsorda',
+ 'duration': 10,
+ 'license': 'by-sa',
},
- {
- 'url': 'https://player.vimeo.com/video/54469442',
- 'md5': '619b811a4417aa4abe78dc653becf511',
- 'note': 'Videos that embed the url in the player page',
- 'info_dict': {
- 'id': '54469442',
- 'ext': 'mp4',
- 'title': 'Kathy Sierra: Building the minimum Badass User, Business of Software 2012',
- 'uploader': 'Business of Software',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/businessofsoftware',
- 'uploader_id': 'businessofsoftware',
- 'duration': 3610,
- 'thumbnail': 'https://i.vimeocdn.com/video/376682406-f34043e7b766af6bef2af81366eacd6724f3fc3173179a11a97a1e26587c9529-d',
- },
- 'params': {
- 'format': 'best[protocol=https]',
- },
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'params': {
+ 'format': 'best[protocol=https]',
},
- {
- 'url': 'http://vimeo.com/68375962',
- 'md5': 'aaf896bdb7ddd6476df50007a0ac0ae7',
- 'note': 'Video protected with password',
- 'info_dict': {
- 'id': '68375962',
- 'ext': 'mp4',
- 'title': 'youtube-dl password protected test video',
- 'timestamp': 1371214555,
- 'upload_date': '20130614',
- 'release_timestamp': 1371214555,
- 'release_date': '20130614',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/user18948128',
- 'uploader_id': 'user18948128',
- 'uploader': 'Jaime Marquínez Ferrándiz',
- 'duration': 10,
- 'comment_count': int,
- 'like_count': int,
- 'view_count': int,
- 'thumbnail': 'https://i.vimeocdn.com/video/440665496-b2c5aee2b61089442c794f64113a8e8f7d5763c3e6b3ebfaf696ae6413f8b1f4-d',
- },
- 'params': {
- 'format': 'best[protocol=https]',
- 'videopassword': 'youtube-dl',
- },
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'skip': 'No longer available',
+ }, {
+ 'url': 'https://player.vimeo.com/video/54469442',
+ 'md5': '619b811a4417aa4abe78dc653becf511',
+ 'note': 'Videos that embed the url in the player page',
+ 'info_dict': {
+ 'id': '54469442',
+ 'ext': 'mp4',
+ 'title': 'Kathy Sierra: Building the minimum Badass User, Business of Software 2012',
+ 'uploader': 'Business of Software',
+ 'uploader_id': 'businessofsoftware',
+ 'uploader_url': 'https://vimeo.com/businessofsoftware',
+ 'duration': 3610,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
},
- {
- 'url': 'http://vimeo.com/channels/keypeele/75629013',
- 'md5': '2f86a05afe9d7abc0b9126d229bbe15d',
- 'info_dict': {
- 'id': '75629013',
- 'ext': 'mp4',
- 'title': 'Key & Peele: Terrorist Interrogation',
- 'description': 'md5:6173f270cd0c0119f22817204b3eb86c',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/atencio',
- 'uploader_id': 'atencio',
- 'uploader': 'Peter Atencio',
- 'channel_id': 'keypeele',
- 'channel_url': r're:https?://(?:www\.)?vimeo\.com/channels/keypeele',
- 'timestamp': 1380339469,
- 'upload_date': '20130928',
- 'duration': 187,
- 'thumbnail': 'https://i.vimeocdn.com/video/450239872-a05512d9b1e55d707a7c04365c10980f327b06d966351bc403a5d5d65c95e572-d',
- 'view_count': int,
- 'comment_count': int,
- 'like_count': int,
- },
- 'params': {'format': 'http-1080p'},
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'params': {'format': 'best[protocol=https]'},
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ 'url': 'http://vimeo.com/68375962',
+ 'md5': 'aaf896bdb7ddd6476df50007a0ac0ae7',
+ 'note': 'Video protected with password',
+ 'info_dict': {
+ 'id': '68375962',
+ 'ext': 'mp4',
+ 'title': 'youtube-dl password protected test video',
+ 'timestamp': 1371214555,
+ 'upload_date': '20130614',
+ 'release_timestamp': 1371214555,
+ 'release_date': '20130614',
+ 'uploader_id': 'user18948128',
+ 'uploader_url': 'https://vimeo.com/user18948128',
+ 'uploader': 'Jaime Marquínez Ferrándiz',
+ 'duration': 10,
+ 'comment_count': int,
+ 'like_count': int,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
},
- {
- 'url': 'http://vimeo.com/76979871',
- 'note': 'Video with subtitles',
- 'info_dict': {
- 'id': '76979871',
- 'ext': 'mp4',
- 'title': 'The New Vimeo Player (You Know, For Videos)',
- 'description': str, # FIXME: Dynamic SEO spam description
- 'timestamp': 1381860509,
- 'upload_date': '20131015',
- 'release_timestamp': 1381860509,
- 'release_date': '20131015',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/staff',
- 'uploader_id': 'staff',
- 'uploader': 'Vimeo',
- 'duration': 62,
- 'comment_count': int,
- 'like_count': int,
- 'thumbnail': 'https://i.vimeocdn.com/video/452001751-8216e0571c251a09d7a8387550942d89f7f86f6398f8ed886e639b0dd50d3c90-d',
- 'subtitles': {
- 'de': 'count:3',
- 'en': 'count:3',
- 'es': 'count:3',
- 'fr': 'count:3',
- },
- },
- 'expected_warnings': [
- 'Ignoring subtitle tracks found in the HLS manifest',
- 'Failed to parse XML: not well-formed',
- ],
+ 'params': {
+ 'format': 'best[protocol=https]',
+ 'videopassword': 'youtube-dl',
},
- {
- # from https://www.ouya.tv/game/Pier-Solar-and-the-Great-Architects/
- 'url': 'https://player.vimeo.com/video/98044508',
- 'note': 'The js code contains assignments to the same variable as the config',
- 'info_dict': {
- 'id': '98044508',
- 'ext': 'mp4',
- 'title': 'Pier Solar OUYA Official Trailer',
- 'uploader': 'Tulio Gonçalves',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/user28849593',
- 'uploader_id': 'user28849593',
- 'duration': 118,
- 'thumbnail': 'https://i.vimeocdn.com/video/478636036-c18440305ef3df9decfb6bf207a61fe39d2d17fa462a96f6f2d93d30492b037d-d',
- },
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ 'url': 'http://vimeo.com/channels/keypeele/75629013',
+ 'md5': '2f86a05afe9d7abc0b9126d229bbe15d',
+ 'info_dict': {
+ 'id': '75629013',
+ 'ext': 'mp4',
+ 'title': 'Key & Peele: Terrorist Interrogation',
+ 'description': 'md5:6173f270cd0c0119f22817204b3eb86c',
+ 'uploader_id': 'atencio',
+ 'uploader_url': 'https://vimeo.com/atencio',
+ 'uploader': 'Peter Atencio',
+ 'channel_id': 'keypeele',
+ 'channel_url': 'https://vimeo.com/channels/keypeele',
+ 'timestamp': 1380339469,
+ 'upload_date': '20130928',
+ 'duration': 187,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'view_count': int,
+ 'comment_count': int,
+ 'like_count': int,
},
- {
- # contains Original format
- 'url': 'https://vimeo.com/33951933',
- # 'md5': '53c688fa95a55bf4b7293d37a89c5c53',
- 'info_dict': {
- 'id': '33951933',
- 'ext': 'mp4',
- 'title': 'FOX CLASSICS - Forever Classic ID - A Full Minute',
- 'uploader': 'The DMCI',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/dmci',
- 'uploader_id': 'dmci',
- 'timestamp': 1324361742,
- 'upload_date': '20111220',
- 'description': 'md5:f37b4ad0f3ded6fa16f38ecde16c3c44',
- 'duration': 60,
- 'comment_count': int,
- 'view_count': int,
- 'thumbnail': 'https://i.vimeocdn.com/video/231174622-dd07f015e9221ff529d451e1cc31c982b5d87bfafa48c4189b1da72824ee289a-d',
- 'like_count': int,
- 'release_timestamp': 1324361742,
- 'release_date': '20111220',
+ 'params': {'format': 'http-1080p'},
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ 'url': 'http://vimeo.com/76979871',
+ 'note': 'Video with subtitles',
+ 'info_dict': {
+ 'id': '76979871',
+ 'ext': 'mp4',
+ 'title': 'The New Vimeo Player (You Know, For Videos)',
+ 'description': str, # FIXME: Dynamic SEO spam description
+ 'timestamp': 1381860509,
+ 'upload_date': '20131015',
+ 'release_timestamp': 1381860509,
+ 'release_date': '20131015',
+ 'uploader_id': 'staff',
+ 'uploader_url': 'https://vimeo.com/staff',
+ 'uploader': 'Vimeo',
+ 'duration': 62,
+ 'comment_count': int,
+ 'like_count': int,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'subtitles': {
+ 'de': 'count:2',
+ 'en': 'count:2',
+ 'es': 'count:2',
+ 'fr': 'count:2',
},
- # 'params': {'format': 'Original'},
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
},
- {
- 'note': 'Contains source format not accessible in webpage',
- 'url': 'https://vimeo.com/393756517',
- # 'md5': 'c464af248b592190a5ffbb5d33f382b0',
- 'info_dict': {
- 'id': '393756517',
- # 'ext': 'mov',
- 'ext': 'mp4',
- 'timestamp': 1582660091,
- 'uploader_id': 'frameworkla',
- 'title': 'Straight To Hell - Sabrina: Netflix',
- 'uploader': 'Framework Studio',
- 'upload_date': '20200225',
- 'duration': 176,
- 'thumbnail': 'https://i.vimeocdn.com/video/859377297-836494a4ef775e9d4edbace83937d9ad34dc846c688c0c419c0e87f7ab06c4b3-d',
- 'uploader_url': 'https://vimeo.com/frameworkla',
- 'comment_count': int,
- 'like_count': int,
- 'release_timestamp': 1582660091,
- 'release_date': '20200225',
- },
- # 'params': {'format': 'source'},
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'expected_warnings': [
+ 'Ignoring subtitle tracks found in the HLS manifest',
+ 'Failed to parse XML: not well-formed',
+ ],
+ }, {
+ # from https://www.ouya.tv/game/Pier-Solar-and-the-Great-Architects/
+ 'url': 'https://player.vimeo.com/video/98044508',
+ 'note': 'The js code contains assignments to the same variable as the config',
+ 'info_dict': {
+ 'id': '98044508',
+ 'ext': 'mp4',
+ 'title': 'Pier Solar OUYA Official Trailer',
+ 'uploader': 'Tulio Gonçalves',
+ 'uploader_id': 'user28849593',
+ 'uploader_url': 'https://vimeo.com/user28849593',
+ 'duration': 118,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
},
- {
- # only available via https://vimeo.com/channels/tributes/6213729 and
- # not via https://vimeo.com/6213729
- 'url': 'https://vimeo.com/channels/tributes/6213729',
- 'info_dict': {
- 'id': '6213729',
- 'ext': 'mp4',
- 'title': 'Vimeo Tribute: The Shining',
- 'uploader': 'Casey Donahue',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/caseydonahue',
- 'uploader_id': 'caseydonahue',
- 'channel_url': r're:https?://(?:www\.)?vimeo\.com/channels/tributes',
- 'channel_id': 'tributes',
- 'timestamp': 1250886430,
- 'upload_date': '20090821',
- 'description': str, # FIXME: Dynamic SEO spam description
- 'duration': 321,
- 'comment_count': int,
- 'view_count': int,
- 'thumbnail': 'https://i.vimeocdn.com/video/22728298-bfc22146f930de7cf497821c7b0b9f168099201ecca39b00b6bd31fcedfca7a6-d',
- 'like_count': int,
- 'tags': ['[the shining', 'vimeohq', 'cv', 'vimeo tribute]'],
- },
- 'params': {
- 'skip_download': True,
- },
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ # contains Original format
+ 'url': 'https://vimeo.com/33951933',
+ # 'md5': '53c688fa95a55bf4b7293d37a89c5c53',
+ 'info_dict': {
+ 'id': '33951933',
+ 'ext': 'mp4',
+ 'title': 'FOX CLASSICS - Forever Classic ID - A Full Minute',
+ 'uploader': 'The DMCI',
+ 'uploader_id': 'dmci',
+ 'uploader_url': 'https://vimeo.com/dmci',
+ 'timestamp': 1324361742,
+ 'upload_date': '20111220',
+ 'description': 'md5:f37b4ad0f3ded6fa16f38ecde16c3c44',
+ 'duration': 60,
+ 'comment_count': int,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'like_count': int,
+ 'release_timestamp': 1324361742,
+ 'release_date': '20111220',
},
- {
- # redirects to ondemand extractor and should be passed through it
- # for successful extraction
- 'url': 'https://vimeo.com/73445910',
- 'info_dict': {
- 'id': '73445910',
- 'ext': 'mp4',
- 'title': 'The Reluctant Revolutionary',
- 'uploader': '10Ft Films',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/tenfootfilms',
- 'uploader_id': 'tenfootfilms',
- 'description': 'md5:0fa704e05b04f91f40b7f3ca2e801384',
- 'upload_date': '20130830',
- 'timestamp': 1377853339,
- },
- 'params': {
- 'skip_download': True,
- },
- 'skip': 'this page is no longer available.',
+ # 'params': {'format': 'Original'},
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ 'note': 'Contains source format not accessible in webpage',
+ 'url': 'https://vimeo.com/393756517',
+ # 'md5': 'c464af248b592190a5ffbb5d33f382b0',
+ 'info_dict': {
+ 'id': '393756517',
+ # 'ext': 'mov',
+ 'ext': 'mp4',
+ 'timestamp': 1582660091,
+ 'uploader_id': 'frameworkla',
+ 'title': 'Straight To Hell - Sabrina: Netflix',
+ 'uploader': 'Framework Studio',
+ 'upload_date': '20200225',
+ 'duration': 176,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'uploader_url': 'https://vimeo.com/frameworkla',
+ 'comment_count': int,
+ 'like_count': int,
+ 'release_timestamp': 1582660091,
+ 'release_date': '20200225',
},
- {
- 'url': 'https://player.vimeo.com/video/68375962',
- 'md5': 'aaf896bdb7ddd6476df50007a0ac0ae7',
- 'info_dict': {
- 'id': '68375962',
- 'ext': 'mp4',
- 'title': 'youtube-dl password protected test video',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/user18948128',
- 'uploader_id': 'user18948128',
- 'uploader': 'Jaime Marquínez Ferrándiz',
- 'duration': 10,
- 'thumbnail': 'https://i.vimeocdn.com/video/440665496-b2c5aee2b61089442c794f64113a8e8f7d5763c3e6b3ebfaf696ae6413f8b1f4-d',
- },
- 'params': {
- 'format': 'best[protocol=https]',
- 'videopassword': 'youtube-dl',
- },
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ # 'params': {'format': 'source'},
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ # only available via https://vimeo.com/channels/tributes/6213729 and
+ # not via https://vimeo.com/6213729
+ 'url': 'https://vimeo.com/channels/tributes/6213729',
+ 'info_dict': {
+ 'id': '6213729',
+ 'ext': 'mp4',
+ 'title': 'Vimeo Tribute: The Shining',
+ 'uploader': 'Casey Donahue',
+ 'uploader_id': 'caseydonahue',
+ 'uploader_url': 'https://vimeo.com/caseydonahue',
+ 'channel_id': 'tributes',
+ 'channel_url': 'https://vimeo.com/channels/tributes',
+ 'timestamp': 1250886430,
+ 'upload_date': '20090821',
+ 'description': str, # FIXME: Dynamic SEO spam description
+ 'duration': 321,
+ 'comment_count': int,
+ 'view_count': int,
+ 'tags': 'count:4',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'like_count': int,
},
- {
- 'url': 'http://vimeo.com/moogaloop.swf?clip_id=2539741',
- 'only_matching': True,
+ 'params': {'skip_download': True},
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ # redirects to ondemand extractor and should be passed through it
+ # for successful extraction
+ 'url': 'https://vimeo.com/73445910',
+ 'info_dict': {
+ 'id': '73445910',
+ 'ext': 'mp4',
+ 'title': 'The Reluctant Revolutionary',
+ 'uploader': '10Ft Films',
+ 'uploader_url': 'https://vimeo.com/tenfootfilms',
+ 'uploader_id': 'tenfootfilms',
+ 'description': 'md5:0fa704e05b04f91f40b7f3ca2e801384',
+ 'upload_date': '20130830',
+ 'timestamp': 1377853339,
},
- {
- 'url': 'https://vimeo.com/109815029',
- 'note': 'Video not completely processed, "failed" seed status',
- 'only_matching': True,
+ 'params': {'skip_download': True},
+ 'skip': 'this page is no longer available.',
+ }, {
+ 'url': 'https://player.vimeo.com/video/68375962',
+ 'md5': 'aaf896bdb7ddd6476df50007a0ac0ae7',
+ 'info_dict': {
+ 'id': '68375962',
+ 'ext': 'mp4',
+ 'title': 'youtube-dl password protected test video',
+ 'uploader_id': 'user18948128',
+ 'uploader_url': 'https://vimeo.com/user18948128',
+ 'uploader': 'Jaime Marquínez Ferrándiz',
+ 'duration': 10,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
},
- {
- 'url': 'https://vimeo.com/groups/travelhd/videos/22439234',
- 'only_matching': True,
+ 'params': {
+ 'format': 'best[protocol=https]',
+ 'videopassword': 'youtube-dl',
},
- {
- 'url': 'https://vimeo.com/album/2632481/video/79010983',
- 'only_matching': True,
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ 'url': 'http://vimeo.com/moogaloop.swf?clip_id=2539741',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://vimeo.com/109815029',
+ 'note': 'Video not completely processed, "failed" seed status',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://vimeo.com/groups/travelhd/videos/22439234',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://vimeo.com/album/2632481/video/79010983',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://vimeo.com/showcase/3253534/video/119195465',
+ 'note': 'A video in a password protected album (showcase)',
+ 'info_dict': {
+ 'id': '119195465',
+ 'ext': 'mp4',
+ 'title': "youtube-dl test video '' ä↭𝕐-BaW jenozKc",
+ 'uploader': 'Philipp Hagemeister',
+ 'uploader_id': 'user20132939',
+ 'description': str, # FIXME: Dynamic SEO spam description
+ 'upload_date': '20150209',
+ 'timestamp': 1423518307,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'duration': 10,
+ 'like_count': int,
+ 'uploader_url': 'https://vimeo.com/user20132939',
+ 'view_count': int,
+ 'comment_count': int,
},
- {
- 'url': 'https://vimeo.com/showcase/3253534/video/119195465',
- 'note': 'A video in a password protected album (showcase)',
- 'info_dict': {
- 'id': '119195465',
- 'ext': 'mp4',
- 'title': "youtube-dl test video '' ä↭𝕐-BaW jenozKc",
- 'uploader': 'Philipp Hagemeister',
- 'uploader_id': 'user20132939',
- 'description': str, # FIXME: Dynamic SEO spam description
- 'upload_date': '20150209',
- 'timestamp': 1423518307,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/default',
- 'duration': 10,
- 'like_count': int,
- 'uploader_url': 'https://vimeo.com/user20132939',
- 'view_count': int,
- 'comment_count': int,
- },
- 'params': {
- 'format': 'best[protocol=https]',
- 'videopassword': 'youtube-dl',
- },
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'params': {
+ 'format': 'best[protocol=https]',
+ 'videopassword': 'youtube-dl',
},
- {
- # source file returns 403: Forbidden
- 'url': 'https://vimeo.com/7809605',
- 'only_matching': True,
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ # source file returns 403: Forbidden
+ 'url': 'https://vimeo.com/7809605',
+ 'only_matching': True,
+ }, {
+ 'note': 'Direct URL with hash',
+ 'url': 'https://vimeo.com/160743502/abd0e13fb4',
+ 'info_dict': {
+ 'id': '160743502',
+ 'ext': 'mp4',
+ 'uploader': 'Julian Tryba',
+ 'uploader_id': 'aliniamedia',
+ 'title': 'Harrisville New Hampshire',
+ 'timestamp': 1459259666,
+ 'upload_date': '20160329',
+ 'release_timestamp': 1459259666,
+ 'license': 'by-nc',
+ 'duration': 159,
+ 'comment_count': int,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'like_count': int,
+ 'uploader_url': 'https://vimeo.com/aliniamedia',
+ 'release_date': '20160329',
},
- {
- 'note': 'Direct URL with hash',
- 'url': 'https://vimeo.com/160743502/abd0e13fb4',
- 'info_dict': {
- 'id': '160743502',
- 'ext': 'mp4',
- 'uploader': 'Julian Tryba',
- 'uploader_id': 'aliniamedia',
- 'title': 'Harrisville New Hampshire',
- 'timestamp': 1459259666,
- 'upload_date': '20160329',
- 'release_timestamp': 1459259666,
- 'license': 'by-nc',
- 'duration': 159,
- 'comment_count': int,
- 'thumbnail': 'https://i.vimeocdn.com/video/562802436-585eeb13b5020c6ac0f171a2234067938098f84737787df05ff0d767f6d54ee9-d',
- 'like_count': int,
- 'uploader_url': 'https://vimeo.com/aliniamedia',
- 'release_date': '20160329',
- 'view_count': int,
- },
- 'params': {'skip_download': True},
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'params': {'skip_download': True},
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ 'url': 'https://vimeo.com/138909882',
+ 'info_dict': {
+ 'id': '138909882',
+ # 'ext': 'm4v',
+ 'ext': 'mp4',
+ 'title': 'Eastnor Castle 2015 Firework Champions - The Promo!',
+ 'description': 'md5:9441e6829ae94f380cc6417d982f63ac',
+ 'uploader_id': 'fireworkchampions',
+ 'uploader': 'Firework Champions',
+ 'upload_date': '20150910',
+ 'timestamp': 1441916295,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'uploader_url': 'https://vimeo.com/fireworkchampions',
+ 'duration': 229,
+ 'like_count': int,
+ 'comment_count': int,
+ 'release_timestamp': 1441916295,
+ 'release_date': '20150910',
},
- {
- 'url': 'https://vimeo.com/138909882',
- 'info_dict': {
- 'id': '138909882',
- # 'ext': 'm4v',
- 'ext': 'mp4',
- 'title': 'Eastnor Castle 2015 Firework Champions - The Promo!',
- 'description': 'md5:9441e6829ae94f380cc6417d982f63ac',
- 'uploader_id': 'fireworkchampions',
- 'uploader': 'Firework Champions',
- 'upload_date': '20150910',
- 'timestamp': 1441916295,
- 'thumbnail': 'https://i.vimeocdn.com/video/534715882-6ff8e4660cbf2fea68282876d8d44f318825dfe572cc4016e73b3266eac8ae3a-d',
- 'uploader_url': 'https://vimeo.com/fireworkchampions',
- 'duration': 229,
- 'view_count': int,
- 'like_count': int,
- 'comment_count': int,
- 'release_timestamp': 1441916295,
- 'release_date': '20150910',
- },
- 'params': {
- 'skip_download': True,
- # 'format': 'source',
- },
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'params': {
+ 'skip_download': True,
+ # 'format': 'source',
},
- {
- 'url': 'https://vimeo.com/channels/staffpicks/143603739',
- 'info_dict': {
- 'id': '143603739',
- 'ext': 'mp4',
- 'uploader': 'Karim Huu Do',
- 'timestamp': 1445846953,
- 'upload_date': '20151026',
- 'title': 'The Shoes - Submarine Feat. Blaine Harrison',
- 'uploader_id': 'karimhd',
- 'description': 'md5:8e2eea76de4504c2e8020a9bcfa1e843',
- 'channel_id': 'staffpicks',
- 'duration': 336,
- 'comment_count': int,
- 'view_count': int,
- 'thumbnail': 'https://i.vimeocdn.com/video/541243181-b593db36a16db2f0096f655da3f5a4dc46b8766d77b0f440df937ecb0c418347-d',
- 'like_count': int,
- 'uploader_url': 'https://vimeo.com/karimhd',
- 'channel_url': 'https://vimeo.com/channels/staffpicks',
- 'tags': 'count:6',
- },
- 'params': {'skip_download': 'm3u8'},
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ 'url': 'https://vimeo.com/channels/staffpicks/143603739',
+ 'info_dict': {
+ 'id': '143603739',
+ 'ext': 'mp4',
+ 'uploader': 'Karim Huu Do',
+ 'timestamp': 1445846953,
+ 'upload_date': '20151026',
+ 'title': 'The Shoes - Submarine Feat. Blaine Harrison',
+ 'uploader_id': 'karimhd',
+ 'description': 'md5:8e2eea76de4504c2e8020a9bcfa1e843',
+ 'channel_id': 'staffpicks',
+ 'duration': 336,
+ 'comment_count': int,
+ 'view_count': int,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'like_count': int,
+ 'uploader_url': 'https://vimeo.com/karimhd',
+ 'channel_url': 'https://vimeo.com/channels/staffpicks',
+ 'tags': 'count:6',
},
- {
- # requires passing unlisted_hash(a52724358e) to load_download_config request
- 'url': 'https://vimeo.com/392479337/a52724358e',
- 'only_matching': True,
+ 'params': {'skip_download': 'm3u8'},
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ # requires passing unlisted_hash(a52724358e) to load_download_config request
+ 'url': 'https://vimeo.com/392479337/a52724358e',
+ 'only_matching': True,
+ }, {
+ # similar, but all numeric: ID must be 581039021, not 9603038895
+ # https://github.com/ytdl-org/youtube-dl/issues/29690
+ 'url': 'https://vimeo.com/581039021/9603038895',
+ 'info_dict': {
+ 'id': '581039021',
+ 'ext': 'mp4',
+ 'timestamp': 1627621014,
+ 'release_timestamp': 1627621014,
+ 'duration': 976,
+ 'comment_count': int,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'like_count': int,
+ 'uploader_url': 'https://vimeo.com/txwestcapital',
+ 'release_date': '20210730',
+ 'uploader': 'Christopher Inks',
+ 'title': 'Thursday, July 29, 2021 BMA Evening Video Update',
+ 'uploader_id': 'txwestcapital',
+ 'upload_date': '20210730',
},
- {
- # similar, but all numeric: ID must be 581039021, not 9603038895
- # issue #29690
- 'url': 'https://vimeo.com/581039021/9603038895',
- 'info_dict': {
- 'id': '581039021',
- 'ext': 'mp4',
- 'timestamp': 1627621014,
- 'release_timestamp': 1627621014,
- 'duration': 976,
- 'comment_count': int,
- 'thumbnail': 'https://i.vimeocdn.com/video/1202249320-4ddb2c30398c0dc0ee059172d1bd5ea481ad12f0e0e3ad01d2266f56c744b015-d',
- 'like_count': int,
- 'uploader_url': 'https://vimeo.com/txwestcapital',
- 'release_date': '20210730',
- 'uploader': 'Christopher Inks',
- 'title': 'Thursday, July 29, 2021 BMA Evening Video Update',
- 'uploader_id': 'txwestcapital',
- 'upload_date': '20210730',
- },
- 'params': {
- 'skip_download': True,
- },
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'params': {'skip_download': True},
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ # chapters must be sorted, see: https://github.com/yt-dlp/yt-dlp/issues/5308
+ 'url': 'https://player.vimeo.com/video/756714419',
+ 'info_dict': {
+ 'id': '756714419',
+ 'ext': 'mp4',
+ 'title': 'Dr Arielle Schwartz - Therapeutic yoga for optimum sleep',
+ 'uploader': 'Alex Howard',
+ 'uploader_id': 'user54729178',
+ 'uploader_url': 'https://vimeo.com/user54729178',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'duration': 2636,
+ 'chapters': [
+ {'start_time': 0, 'end_time': 10, 'title': '<Untitled Chapter 1>'},
+ {'start_time': 10, 'end_time': 106, 'title': 'Welcoming Dr Arielle Schwartz'},
+ {'start_time': 106, 'end_time': 305, 'title': 'What is therapeutic yoga?'},
+ {'start_time': 305, 'end_time': 594, 'title': 'Vagal toning practices'},
+ {'start_time': 594, 'end_time': 888, 'title': 'Trauma and difficulty letting go'},
+ {'start_time': 888, 'end_time': 1059, 'title': "Dr Schwartz' insomnia experience"},
+ {'start_time': 1059, 'end_time': 1471, 'title': 'A strategy for helping sleep issues'},
+ {'start_time': 1471, 'end_time': 1667, 'title': 'Yoga nidra'},
+ {'start_time': 1667, 'end_time': 2121, 'title': 'Wisdom in stillness'},
+ {'start_time': 2121, 'end_time': 2386, 'title': 'What helps us be more able to let go?'},
+ {'start_time': 2386, 'end_time': 2510, 'title': 'Practical tips to help ourselves'},
+ {'start_time': 2510, 'end_time': 2636, 'title': 'Where to find out more'},
+ ],
},
- {
- # chapters must be sorted, see: https://github.com/yt-dlp/yt-dlp/issues/5308
- 'url': 'https://player.vimeo.com/video/756714419',
- 'info_dict': {
- 'id': '756714419',
- 'ext': 'mp4',
- 'title': 'Dr Arielle Schwartz - Therapeutic yoga for optimum sleep',
- 'uploader': 'Alex Howard',
- 'uploader_id': 'user54729178',
- 'uploader_url': 'https://vimeo.com/user54729178',
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/1520099929-[\da-f]+-d',
- 'duration': 2636,
- 'chapters': [
- {'start_time': 0, 'end_time': 10, 'title': '<Untitled Chapter 1>'},
- {'start_time': 10, 'end_time': 106, 'title': 'Welcoming Dr Arielle Schwartz'},
- {'start_time': 106, 'end_time': 305, 'title': 'What is therapeutic yoga?'},
- {'start_time': 305, 'end_time': 594, 'title': 'Vagal toning practices'},
- {'start_time': 594, 'end_time': 888, 'title': 'Trauma and difficulty letting go'},
- {'start_time': 888, 'end_time': 1059, 'title': "Dr Schwartz' insomnia experience"},
- {'start_time': 1059, 'end_time': 1471, 'title': 'A strategy for helping sleep issues'},
- {'start_time': 1471, 'end_time': 1667, 'title': 'Yoga nidra'},
- {'start_time': 1667, 'end_time': 2121, 'title': 'Wisdom in stillness'},
- {'start_time': 2121, 'end_time': 2386, 'title': 'What helps us be more able to let go?'},
- {'start_time': 2386, 'end_time': 2510, 'title': 'Practical tips to help ourselves'},
- {'start_time': 2510, 'end_time': 2636, 'title': 'Where to find out more'},
- ],
- },
- 'params': {
- 'http_headers': {'Referer': 'https://sleepsuperconference.com'},
- 'skip_download': 'm3u8',
- },
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'params': {
+ 'http_headers': {'Referer': 'https://sleepsuperconference.com'},
+ 'skip_download': 'm3u8',
},
- {
- # vimeo.com URL with unlisted hash and Original format
- 'url': 'https://vimeo.com/144579403/ec02229140',
- # 'md5': '6b662c2884e0373183fbde2a0d15cb78',
- 'info_dict': {
- 'id': '144579403',
- 'ext': 'mp4',
- 'title': 'SALESMANSHIP',
- 'description': 'md5:4338302f347a1ff8841b4a3aecaa09f0',
- 'uploader': 'Off the Picture Pictures',
- 'uploader_id': 'offthepicturepictures',
- 'uploader_url': 'https://vimeo.com/offthepicturepictures',
- 'duration': 669,
- 'upload_date': '20151104',
- 'timestamp': 1446607180,
- 'release_date': '20151104',
- 'release_timestamp': 1446607180,
- 'like_count': int,
- 'view_count': int,
- 'comment_count': int,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/1018638656-[\da-f]+-d',
- },
- # 'params': {'format': 'Original'},
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ # vimeo.com URL with unlisted hash and Original format
+ 'url': 'https://vimeo.com/144579403/ec02229140',
+ # 'md5': '6b662c2884e0373183fbde2a0d15cb78',
+ 'info_dict': {
+ 'id': '144579403',
+ 'ext': 'mp4',
+ 'title': 'SALESMANSHIP',
+ 'description': 'md5:4338302f347a1ff8841b4a3aecaa09f0',
+ 'uploader': 'Off the Picture Pictures',
+ 'uploader_id': 'offthepicturepictures',
+ 'uploader_url': 'https://vimeo.com/offthepicturepictures',
+ 'duration': 669,
+ 'upload_date': '20151104',
+ 'timestamp': 1446607180,
+ 'release_date': '20151104',
+ 'release_timestamp': 1446607180,
+ 'like_count': int,
+ 'comment_count': int,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
},
- {
- # player.vimeo.com URL with source format
- 'url': 'https://player.vimeo.com/video/859028877',
- # 'md5': '19ca3d2463441dee2d2f0671ac2916a2',
- 'info_dict': {
- 'id': '859028877',
- 'ext': 'mp4',
- 'title': 'Ariana Grande - Honeymoon Avenue (Live from London)',
- 'uploader': 'Raja Virdi',
- 'uploader_id': 'rajavirdi',
- 'uploader_url': 'https://vimeo.com/rajavirdi',
- 'duration': 300,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/1716727772-[\da-f]+-d',
- },
- # 'params': {'format': 'source'},
- 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ # 'params': {'format': 'Original'},
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }, {
+ # player.vimeo.com URL with source format
+ 'url': 'https://player.vimeo.com/video/859028877',
+ # 'md5': '19ca3d2463441dee2d2f0671ac2916a2',
+ 'info_dict': {
+ 'id': '859028877',
+ 'ext': 'mp4',
+ 'title': 'Ariana Grande - Honeymoon Avenue (Live from London)',
+ 'uploader': 'Raja Virdi',
+ 'uploader_id': 'rajavirdi',
+ 'uploader_url': 'https://vimeo.com/rajavirdi',
+ 'duration': 300,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
},
- {
- # user playlist alias -> https://vimeo.com/258705797
- 'url': 'https://vimeo.com/user26785108/newspiritualguide',
- 'only_matching': True,
+ # 'params': {'format': 'source'},
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'params': {'skip_download': 'm3u8'},
+ }, {
+ # user playlist alias -> https://vimeo.com/258705797
+ 'url': 'https://vimeo.com/user26785108/newspiritualguide',
+ 'only_matching': True,
+ }]
+ _WEBPAGE_TESTS = [{
+ # Referer & password-protected
+ # https://github.com/yt-dlp/yt-dlp/commit/a1a460759815414c6194bc921ac77a5533b6e02e
+ 'url': 'https://gettingthingsdone.com/workflowmap/',
+ 'info_dict': {
+ 'id': '105375912',
+ 'ext': 'mp4',
+ 'title': 'WORKFLOW MAP',
+ 'duration': 1950,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'uploader': 'GTD',
+ 'uploader_id': 'gettingthingsdone',
+ 'uploader_url': 'https://vimeo.com/gettingthingsdone',
},
- # https://gettingthingsdone.com/workflowmap/
- # vimeo embed with check-password page protected by Referer header
- ]
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'skip': 'Password protected',
+ }, {
+ 'url': 'https://www.gsd.harvard.edu/event/i-m-pei-a-centennial-celebration/',
+ 'info_dict': {
+ 'id': '855172304',
+ 'ext': 'mp4',
+ 'title': 'I. M. Pei: A Centennial Celebration',
+ 'duration': 6073,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'uploader': 'Harvard GSD',
+ 'uploader_id': 'harvardgsd',
+ 'uploader_url': 'https://vimeo.com/harvardgsd',
+ },
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ 'params': {
+ 'extractor_args': {'generic': {'impersonate': ['chrome']}},
+ 'skip_download': 'm3u8',
+ },
+ }]
@classmethod
def _extract_embed_urls(cls, url, webpage):
@@ -1408,21 +1401,19 @@ class VimeoOndemandIE(VimeoIE): # XXX: Do not subclass from concrete IE
'ext': 'mp4',
'title': 'המעבדה - במאי יותם פלדמן',
'uploader': 'גם סרטים',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/gumfilms',
'uploader_id': 'gumfilms',
+ 'uploader_url': 'https://vimeo.com/gumfilms',
'description': 'md5:aeeba3dbd4d04b0fa98a4fdc9c639998',
'upload_date': '20140906',
'timestamp': 1410032453,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'comment_count': int,
'license': 'https://creativecommons.org/licenses/by-nc-nd/3.0/',
'duration': 53,
'view_count': int,
'like_count': int,
},
- 'params': {
- 'format': 'best[protocol=https]',
- },
+ 'params': {'format': 'best[protocol=https]'},
'expected_warnings': ['Failed to parse XML: not well-formed'],
}, {
# requires Referer to be passed along with og:video:url
@@ -1432,21 +1423,19 @@ class VimeoOndemandIE(VimeoIE): # XXX: Do not subclass from concrete IE
'ext': 'mp4',
'title': 'Rävlock, rätt läte på rätt plats',
'uploader': 'Lindroth & Norin',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/lindrothnorin',
'uploader_id': 'lindrothnorin',
+ 'uploader_url': 'https://vimeo.com/lindrothnorin',
'description': 'md5:c3c46a90529612c8279fb6af803fc0df',
'upload_date': '20150502',
'timestamp': 1430586422,
'duration': 121,
'comment_count': int,
'view_count': int,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'like_count': int,
'tags': 'count:5',
},
- 'params': {
- 'skip_download': True,
- },
+ 'params': {'skip_download': True},
'expected_warnings': ['Failed to parse XML: not well-formed'],
}, {
'url': 'https://vimeo.com/ondemand/nazmaalik',
@@ -1559,9 +1548,7 @@ class VimeoAlbumIE(VimeoBaseInfoExtractor):
'id': '3253534',
},
'playlist_count': 1,
- 'params': {
- 'videopassword': 'youtube-dl',
- },
+ 'params': {'videopassword': 'youtube-dl'},
}]
_PAGE_SIZE = 100
@@ -1660,7 +1647,7 @@ class VimeoReviewIE(VimeoBaseInfoExtractor):
'uploader_id': 'user170863801',
'uploader_url': 'https://vimeo.com/user170863801',
'duration': 30,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
},
'params': {'skip_download': 'm3u8'},
'expected_warnings': ['Failed to parse XML: not well-formed'],
@@ -1675,7 +1662,7 @@ class VimeoReviewIE(VimeoBaseInfoExtractor):
'uploader_id': 'user21297594',
'description': "Comedian Dick Hardwick's five minute demo filmed in front of a live theater audience.\nEdit by Doug Mattocks",
'duration': 304,
- 'thumbnail': 'https://i.vimeocdn.com/video/450115033-43303819d9ebe24c2630352e18b7056d25197d09b3ae901abdac4c4f1d68de71-d_1280',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'uploader_url': 'https://vimeo.com/user21297594',
},
'skip': '404 Not Found',
@@ -1689,7 +1676,7 @@ class VimeoReviewIE(VimeoBaseInfoExtractor):
'title': 're:(?i)^Death by dogma versus assembling agile . Sander Hoogendoorn',
'uploader': 'DevWeek Events',
'duration': 2773,
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'uploader_id': 'user22258446',
},
'skip': 'video gone',
@@ -1703,9 +1690,7 @@ class VimeoReviewIE(VimeoBaseInfoExtractor):
'uploader': 'TMB',
'uploader_id': 'user37284429',
},
- 'params': {
- 'videopassword': 'holygrail',
- },
+ 'params': {'videopassword': 'holygrail'},
'skip': 'video gone',
}]
@@ -1780,6 +1765,20 @@ class VHXEmbedIE(VimeoBaseInfoExtractor):
IE_NAME = 'vhx:embed'
_VALID_URL = r'https?://embed\.vhx\.tv/videos/(?P<id>\d+)'
_EMBED_REGEX = [r'<iframe[^>]+src="(?P<url>https?://embed\.vhx\.tv/videos/\d+[^"]*)"']
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://demo.vhx.tv/packages/behind-the-scenes-with-sasha/videos/hard-work',
+ 'info_dict': {
+ 'id': '2251259',
+ 'ext': 'mp4',
+ 'title': 'Untitled',
+ 'duration': 30,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
+ 'uploader': 'OTT Videos',
+ 'uploader_id': 'user80538407',
+ 'uploader_url': 'https://vimeo.com/user80538407',
+ },
+ 'expected_warnings': ['Failed to parse XML: not well-formed'],
+ }]
@classmethod
def _extract_embed_urls(cls, url, webpage):
@@ -1810,8 +1809,8 @@ class VimeoProIE(VimeoBaseInfoExtractor):
'info_dict': {
'id': '68093876',
'ext': 'mp4',
- 'uploader_url': r're:https?://(?:www\.)?vimeo\.com/openstreetmapus',
'uploader_id': 'openstreetmapus',
+ 'uploader_url': 'https://vimeo.com/openstreetmapus',
'uploader': 'OpenStreetMap US',
'title': 'Andy Allan - Putting the Carto into OpenStreetMap Cartography',
'description': 'md5:8cf69a1a435f2d763f4adf601e9c3125',
@@ -1819,16 +1818,13 @@ class VimeoProIE(VimeoBaseInfoExtractor):
'upload_date': '20130610',
'timestamp': 1370907556,
'license': 'by',
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
- 'view_count': int,
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'comment_count': int,
'like_count': int,
'release_timestamp': 1370907556,
'release_date': '20130610',
},
- 'params': {
- 'format': 'best[protocol=https]',
- },
+ 'params': {'format': 'best[protocol=https]'},
'expected_warnings': ['Failed to parse XML: not well-formed'],
}, {
# password-protected VimeoPro page with Vimeo player embed
@@ -1837,7 +1833,7 @@ class VimeoProIE(VimeoBaseInfoExtractor):
'id': '764543723',
'ext': 'mp4',
'title': 'Mechanische Systeme in Perfektion: Realität erfassen, Innovation treiben',
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'description': 'md5:2a9d195cd1b0f6f79827107dc88c2420',
'uploader': 'CADFEM',
'uploader_id': 'cadfem',
@@ -1913,7 +1909,7 @@ class VimeoEventIE(VimeoBaseInfoExtractor):
'comment_count': int,
'like_count': int,
'duration': 9810,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'timestamp': 1747502974,
'upload_date': '20250517',
'release_timestamp': 1747502998,
@@ -1935,7 +1931,7 @@ class VimeoEventIE(VimeoBaseInfoExtractor):
'uploader_id': 'mitmedialab',
'uploader_url': 'https://vimeo.com/mitmedialab',
'duration': 23235,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'chapters': 'count:37',
'release_timestamp': 1744290000,
'release_date': '20250410',
@@ -1961,7 +1957,7 @@ class VimeoEventIE(VimeoBaseInfoExtractor):
'comment_count': int,
'like_count': int,
'duration': 4962,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'timestamp': 1736702464,
'upload_date': '20250112',
'release_timestamp': 1736702543,
@@ -1974,7 +1970,7 @@ class VimeoEventIE(VimeoBaseInfoExtractor):
# "24/7" livestream
'url': 'https://vimeo.com/event/4768062',
'info_dict': {
- 'id': '1079901414',
+ 'id': '1097650937',
'ext': 'mp4',
'display_id': '4768062',
'title': r're:GRACELAND CAM \d{4}-\d{2}-\d{2} \d{2}:\d{2}$',
@@ -1982,8 +1978,8 @@ class VimeoEventIE(VimeoBaseInfoExtractor):
'uploader': 'Elvis Presley\'s Graceland',
'uploader_id': 'visitgraceland',
'uploader_url': 'https://vimeo.com/visitgraceland',
- 'release_timestamp': 1745975450,
- 'release_date': '20250430',
+ 'release_timestamp': 1751396691,
+ 'release_date': '20250701',
'live_status': 'is_live',
},
'params': {'skip_download': 'livestream'},
@@ -2002,7 +1998,7 @@ class VimeoEventIE(VimeoBaseInfoExtractor):
'comment_count': int,
'like_count': int,
'duration': 3961,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'timestamp': 1716408008,
'upload_date': '20240522',
'release_timestamp': 1716408062,
@@ -2026,7 +2022,7 @@ class VimeoEventIE(VimeoBaseInfoExtractor):
'comment_count': int,
'like_count': int,
'duration': 4466,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'timestamp': 1612228466,
'upload_date': '20210202',
'release_timestamp': 1612228538,
@@ -2049,7 +2045,7 @@ class VimeoEventIE(VimeoBaseInfoExtractor):
'comment_count': int,
'like_count': int,
'duration': 33115,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'timestamp': 1740261836,
'upload_date': '20250222',
'release_timestamp': 1740261873,
@@ -2100,7 +2096,7 @@ class VimeoEventIE(VimeoBaseInfoExtractor):
'uploader_id': 'mitmedialab',
'uploader_url': 'https://vimeo.com/mitmedialab',
'duration': 23235,
- 'thumbnail': r're:https://i\.vimeocdn\.com/video/\d+-[\da-f]+-d',
+ 'thumbnail': r're:https?://i\.vimeocdn\.com/video/.+',
'chapters': 'count:37',
'release_timestamp': 1744290000,
'release_date': '20250410',
diff --git a/yt_dlp/extractor/viqeo.py b/yt_dlp/extractor/viqeo.py
index 433fdc7a3b..3026e821ca 100644
--- a/yt_dlp/extractor/viqeo.py
+++ b/yt_dlp/extractor/viqeo.py
@@ -24,7 +24,7 @@ class ViqeoIE(InfoExtractor):
'id': 'cde96f09d25f39bee837',
'ext': 'mp4',
'title': 'cde96f09d25f39bee837',
- 'thumbnail': r're:^https?://.*\.jpg$',
+ 'thumbnail': r're:https?://.+\.jpg',
'duration': 76,
},
}, {
@@ -34,6 +34,19 @@ class ViqeoIE(InfoExtractor):
'url': 'https://api.viqeo.tv/v1/data/startup?video%5B%5D=71bbec412ade45c3216c&profile=112',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://viqeo.tv/',
+ 'info_dict': {
+ 'id': 'viqeo',
+ 'title': 'Viqeo video platform',
+ 'age_limit': 0,
+ 'description': 'md5:e8e06e20df92ed66febeaef2533a0d5d',
+ 'thumbnail': r're:https?://static\.tildacdn\.com/.+\.png',
+ 'timestamp': 1751479769,
+ 'upload_date': '20250702',
+ },
+ 'playlist_count': 3,
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/voxmedia.py b/yt_dlp/extractor/voxmedia.py
index 995ef21859..929bfc500b 100644
--- a/yt_dlp/extractor/voxmedia.py
+++ b/yt_dlp/extractor/voxmedia.py
@@ -72,6 +72,7 @@ class VoxMediaIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?(?:(?:theverge|vox|sbnation|eater|polygon|curbed|racked|funnyordie)\.com|recode\.net)/(?:[^/]+/)*(?P<id>[^/?]+)'
_EMBED_REGEX = [r'<iframe[^>]+?src="(?P<url>https?://(?:www\.)?funnyordie\.com/embed/[^"]+)"']
_TESTS = [{
+ # FIXME: Unsupported iframe embed
# Volume embed, Youtube
'url': 'http://www.theverge.com/2014/6/27/5849272/material-world-how-google-discovered-what-software-is-made-of',
'info_dict': {
@@ -156,6 +157,15 @@ class VoxMediaIE(InfoExtractor):
}],
'skip': 'Page no longer contain videos',
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'http://www.theguardian.com/world/2014/mar/11/obama-zach-galifianakis-between-two-ferns',
+ 'info_dict': {
+ 'id': '18e820ec3f',
+ 'ext': 'mp4',
+ 'title': 'Between Two Ferns with Zach Galifianakis: President Barack Obama',
+ },
+ 'skip': 'Invalid URL',
+ }]
def _real_extract(self, url):
display_id = self._match_id(url)
diff --git a/yt_dlp/extractor/wimtv.py b/yt_dlp/extractor/wimtv.py
index 000d1437f0..f922b54623 100644
--- a/yt_dlp/extractor/wimtv.py
+++ b/yt_dlp/extractor/wimtv.py
@@ -30,9 +30,7 @@ class WimTVIE(InfoExtractor):
'duration': 6481,
'thumbnail': r're:https?://.+?/thumbnail/.+?/720$',
},
- 'params': {
- 'skip_download': True,
- },
+ 'skip': 'Invalid URL',
}, {
# live stream
'url': 'https://platform.wim.tv/embed/?live=28e22c22-49db-40f3-8c37-8cbb0ff44556&autostart=true',
@@ -42,9 +40,7 @@ class WimTVIE(InfoExtractor):
'title': 'Streaming MSmotorTV',
'is_live': True,
},
- 'params': {
- 'skip_download': True,
- },
+ 'skip': 'Invalid URL',
}, {
'url': 'https://platform.wim.tv/#/webtv/automotornews/vod/422492b6-539e-474d-9c6b-68c9d5893365',
'only_matching': True,
@@ -52,6 +48,17 @@ class WimTVIE(InfoExtractor):
'url': 'https://platform.wim.tv/#/webtv/renzoarborechannel/cast/f47e0d15-5b45-455e-bf0d-dba8ffa96365',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ 'url': 'http://www.renzoarborechannel.tv/50_sorrisi_da_napoli.htm',
+ 'info_dict': {
+ 'id': '50_sorrisi_da_napoli',
+ 'title': 'Renzo Arbore Channel . TV - 50 Sorrisi da Napoli',
+ 'age_limit': 0,
+ 'timestamp': 1612226372,
+ 'upload_date': '20210202',
+ },
+ 'playlist_count': 40,
+ }]
def _real_initialize(self):
if not self._player:
diff --git a/yt_dlp/extractor/wistia.py b/yt_dlp/extractor/wistia.py
index df7ecb3cdc..53ffb5529a 100644
--- a/yt_dlp/extractor/wistia.py
+++ b/yt_dlp/extractor/wistia.py
@@ -193,12 +193,12 @@ class WistiaIE(WistiaBaseIE):
'info_dict': {
'id': 'a6ndpko1wg',
'ext': 'mp4',
- 'title': 'Episode 2: Boxed Water\'s retention is thirsty',
+ 'title': 'BXO-S02-E02-Boxed_Water-v4.mp4',
'upload_date': '20210324',
- 'description': 'md5:da5994c2c2d254833b412469d9666b7a',
+ 'description': 'md5:3b9296a45aa46010767451b3691b1105',
'duration': 966.0,
'timestamp': 1616614369,
- 'thumbnail': 'https://embed-ssl.wistia.com/deliveries/53dc60239348dc9b9fba3755173ea4c2.png',
+ 'thumbnail': r're:https?://embed(?:-ssl)?\.wistia\.com/.+\.(?:jpg|png)',
},
}, {
'url': 'wistia:5vd7p4bct5',
@@ -211,7 +211,7 @@ class WistiaIE(WistiaBaseIE):
'upload_date': '20220915',
'timestamp': 1663258727,
'duration': 623.019,
- 'thumbnail': r're:https?://embed(?:-ssl)?.wistia.com/.+\.jpg$',
+ 'thumbnail': r're:https?://embed(?:-ssl)?\.wistia\.com/.+\.(?:jpg|png)',
},
}, {
'url': 'wistia:sh7fpupwlt',
@@ -226,7 +226,6 @@ class WistiaIE(WistiaBaseIE):
'url': 'http://fast.wistia.net/embed/medias/sh7fpupwlt.json',
'only_matching': True,
}]
-
_WEBPAGE_TESTS = [{
'url': 'https://www.weidert.com/blog/wistia-channels-video-marketing-tool',
'info_dict': {
@@ -237,8 +236,9 @@ class WistiaIE(WistiaBaseIE):
'timestamp': 1618974400,
'description': 'md5:27abc99a758573560be72600ef95cece',
'upload_date': '20210421',
- 'thumbnail': 'https://embed-ssl.wistia.com/deliveries/6c551820ae950cdee2306d6cbe9ef742.jpg',
+ 'thumbnail': r're:https?://embed(?:-ssl)?\.wistia\.com/.+\.(?:jpg|png)',
},
+ 'skip': 'Invalid URL',
}, {
'url': 'https://study.com/academy/lesson/north-american-exploration-failed-colonies-of-spain-france-england.html#lesson',
'md5': 'b9676d24bf30945d97060638fbfe77f0',
@@ -249,9 +249,19 @@ class WistiaIE(WistiaBaseIE):
'upload_date': '20220915',
'timestamp': 1663258727,
'duration': 623.019,
- 'thumbnail': 'https://embed-ssl.wistia.com/deliveries/83e6ec693e2c05a0ce65809cbaead86a.jpg',
+ 'thumbnail': r're:https?://embed(?:-ssl)?\.wistia\.com/.+\.(?:jpg|png)',
'description': 'a Paywall Videos video',
},
+ }, {
+ 'url': 'https://support.wistia.com/en/articles/8233354-embedding-your-media',
+ 'info_dict': {
+ 'id': '8233354-embedding-your-media',
+ 'title': 'Embedding Your Media | Wistia Help Center',
+ 'age_limit': 0,
+ 'description': 'md5:32a5edc0e266cd61e2d15be28873d614',
+ 'thumbnail': r're:https?://downloads\.intercomcdn\.com/.+\.jpg',
+ },
+ 'playlist_count': 2,
}]
def _real_extract(self, url):
@@ -278,13 +288,13 @@ class WistiaIE(WistiaBaseIE):
class WistiaPlaylistIE(WistiaBaseIE):
_VALID_URL = rf'{WistiaBaseIE._VALID_URL_BASE}playlists/{WistiaBaseIE._VALID_ID_REGEX}'
- _TEST = {
+ _TESTS = [{
'url': 'https://fast.wistia.net/embed/playlists/aodt9etokc',
'info_dict': {
'id': 'aodt9etokc',
},
'playlist_count': 3,
- }
+ }]
def _real_extract(self, url):
playlist_id = self._match_id(url)
@@ -312,7 +322,7 @@ class WistiaChannelIE(WistiaBaseIE):
'description': 'Learn all things Copysmith via short and informative videos!',
},
'playlist_mincount': 7,
- 'expected_warnings': ['falling back to webpage'],
+ 'skip': 'Invalid URL',
}, {
'url': 'https://fast.wistia.net/embed/channel/3802iirk0l',
'info_dict': {
@@ -327,7 +337,7 @@ class WistiaChannelIE(WistiaBaseIE):
'id': 'sp5dqjzw3n',
'ext': 'mp4',
'title': 'The Roof S2: The Modern CRO',
- 'thumbnail': 'https://embed-ssl.wistia.com/deliveries/dadfa9233eaa505d5e0c85c23ff70741.png',
+ 'thumbnail': r're:https?://embed(?:-ssl)?\.wistia\.com/.+\.(?:jpg|png)',
'duration': 86.487,
'description': 'A sales leader on The Roof? Man, they really must be letting anyone up here this season.\n',
'timestamp': 1619790290,
@@ -343,6 +353,7 @@ class WistiaChannelIE(WistiaBaseIE):
'description': 'md5:14a8a93a1dbe236718e6a59f8c8c7bae',
},
'playlist_mincount': 30,
+ 'skip': 'Site no longer embeds Wistia playlists',
}, {
# section instead of div
'url': 'https://360learning.com/studio/onboarding-joei/',
@@ -362,9 +373,9 @@ class WistiaChannelIE(WistiaBaseIE):
'upload_date': '20220530',
'description': 'Learn how to help your company improve and achieve your product related goals.',
'duration': 1854.39,
- 'thumbnail': 'https://embed-ssl.wistia.com/deliveries/12fd19e56413d9d6f04e2185c16a6f8854e25226.png',
+ 'thumbnail': r're:https?://embed(?:-ssl)?\.wistia\.com/.+\.(?:jpg|png)',
},
- 'params': {'noplaylist': True, 'skip_download': True},
+ 'skip': 'Invalid URL',
}]
def _real_extract(self, url):
diff --git a/yt_dlp/extractor/xhamster.py b/yt_dlp/extractor/xhamster.py
index 3cbe27f613..9d90f181ba 100644
--- a/yt_dlp/extractor/xhamster.py
+++ b/yt_dlp/extractor/xhamster.py
@@ -43,7 +43,7 @@ class XHamsterIE(InfoExtractor):
'uploader_id': 'ruseful2011',
'duration': 893,
'age_limit': 18,
- 'thumbnail': 'https://thumb-nss.xhcdn.com/a/u3Vr5F2vvcU3yK59_jJqVA/001/509/445/1280x720.8.jpg',
+ 'thumbnail': r're:https?://.+\.jpg',
'uploader_url': 'https://xhamster.com/users/ruseful2011',
'description': '',
'view_count': int,
@@ -63,11 +63,12 @@ class XHamsterIE(InfoExtractor):
'age_limit': 18,
'description': '',
'view_count': int,
- 'thumbnail': 'https://thumb-nss.xhcdn.com/a/kk5nio_iR-h4Z3frfVtoDw/002/221/348/1280x720.4.jpg',
+ 'thumbnail': r're:https?://.+\.jpg',
'comment_count': int,
},
'params': {
- 'skip_download': True,
+ 'extractor_args': {'generic': {'impersonate': ['chrome']}},
+ 'skip_download': 'm3u8',
},
}, {
# empty seo, unavailable via new URL schema
@@ -86,11 +87,9 @@ class XHamsterIE(InfoExtractor):
'uploader_url': 'https://xhamster.com/users/parejafree',
'description': '',
'view_count': int,
- 'thumbnail': 'https://thumb-nss.xhcdn.com/a/xc8MSwVKcsQeRRiTT-saMQ/005/667/973/1280x720.2.jpg',
- },
- 'params': {
- 'skip_download': True,
+ 'thumbnail': r're:https?://.+\.jpg',
},
+ 'skip': 'Invalid URL',
}, {
# mobile site
'url': 'https://m.xhamster.com/videos/cute-teen-jacqueline-solo-masturbation-8559111',
@@ -390,19 +389,48 @@ class XHamsterIE(InfoExtractor):
class XHamsterEmbedIE(InfoExtractor):
_VALID_URL = rf'https?://(?:[^/?#]+\.)?{XHamsterIE._DOMAINS}/xembed\.php\?video=(?P<id>\d+)'
_EMBED_REGEX = [r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?xhamster\.com/xembed\.php\?video=\d+)\1']
- _TEST = {
+ _TESTS = [{
'url': 'http://xhamster.com/xembed.php?video=3328539',
'info_dict': {
'id': '3328539',
'ext': 'mp4',
'title': 'Pen Masturbation',
+ 'comment_count': int,
+ 'description': '',
+ 'display_id': 'pen-masturbation',
'timestamp': 1406581861,
'upload_date': '20140728',
'uploader': 'ManyakisArt',
'duration': 5,
'age_limit': 18,
+ 'thumbnail': r're:https?://.+\.jpg',
+ 'uploader_id': 'manyakisart',
+ 'uploader_url': 'https://xhamster.com/users/manyakisart',
+ 'view_count': int,
},
- }
+ }]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Embed detection
+ 'url': 'https://xhamster.com/awards/2023',
+ 'info_dict': {
+ 'id': 'xh2VnYn',
+ 'ext': 'mp4',
+ 'title': 'xHamster Awards 2023 - The Winners',
+ 'age_limit': 18,
+ 'comment_count': int,
+ 'description': '',
+ 'display_id': 'xhamster-awards-2023-the-winners',
+ 'duration': 292,
+ 'thumbnail': r're:https?://ic-vt-nss\.xhcdn\.com/.+',
+ 'timestamp': 1700122082,
+ 'upload_date': '20231116',
+ 'uploader': 'xHamster',
+ 'uploader_id': 'xhamster',
+ 'uploader_url': 'https://xhamster.com/users/xhamster',
+ 'view_count': int,
+ },
+ 'params': {'skip_download': 'm3u8'},
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
@@ -437,13 +465,13 @@ class XHamsterUserIE(InfoExtractor):
'info_dict': {
'id': 'firatkaan',
},
- 'playlist_mincount': 1,
+ 'playlist_mincount': 0,
}, {
'url': 'https://xhamster.com/creators/squirt-orgasm-69',
'info_dict': {
'id': 'squirt-orgasm-69',
},
- 'playlist_mincount': 150,
+ 'playlist_mincount': 46,
}, {
'url': 'https://xhday.com/users/mobhunter',
'only_matching': True,
diff --git a/yt_dlp/extractor/yapfiles.py b/yt_dlp/extractor/yapfiles.py
index 8d89d1d109..20adbac069 100644
--- a/yt_dlp/extractor/yapfiles.py
+++ b/yt_dlp/extractor/yapfiles.py
@@ -28,6 +28,15 @@ class YapFilesIE(InfoExtractor):
'url': 'https://api.yapfiles.ru/get_player/?uid=video_player_1872528&plroll=1&adv=1&v=vMDE4NzI1Mjgt690b',
'only_matching': True,
}]
+ _WEBPAGE_TESTS = [{
+ # FIXME: Update _VALID_URL
+ 'url': 'https://www.yapfiles.ru/show/3397030/e34b69aa03829d513d7dc3ace6ec9631.mp4.html',
+ 'info_dict': {
+ 'id': 'vMDE4NzI1Mjgt690b',
+ 'ext': 'mp4',
+ 'title': 'Котята',
+ },
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
diff --git a/yt_dlp/extractor/youtube/_video.py b/yt_dlp/extractor/youtube/_video.py
index 171aa9b5c4..9ff727657c 100644
--- a/yt_dlp/extractor/youtube/_video.py
+++ b/yt_dlp/extractor/youtube/_video.py
@@ -264,1540 +264,1555 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
_GEO_BYPASS = False
IE_NAME = 'youtube'
- _TESTS = [
- {
- 'url': 'https://www.youtube.com/watch?v=BaW_jenozKc&t=1s&end=9',
- 'info_dict': {
- 'id': 'BaW_jenozKc',
- 'ext': 'mp4',
- 'title': 'youtube-dl test video "\'/\\ä↭𝕐',
- 'channel': 'Philipp Hagemeister',
- 'channel_id': 'UCLqxVugv74EIW3VWh2NOa3Q',
- 'channel_url': r're:https?://(?:www\.)?youtube\.com/channel/UCLqxVugv74EIW3VWh2NOa3Q',
- 'upload_date': '20121002',
- 'description': 'md5:8fb536f4877b8a7455c2ec23794dbc22',
- 'categories': ['Science & Technology'],
- 'tags': ['youtube-dl'],
- 'duration': 10,
- 'view_count': int,
- 'like_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,
- 'start_time': 1,
- 'end_time': 9,
- 'comment_count': int,
- 'channel_follower_count': int,
- 'uploader': 'Philipp Hagemeister',
- 'uploader_url': 'https://www.youtube.com/@PhilippHagemeister',
- 'uploader_id': '@PhilippHagemeister',
- 'heatmap': 'count:100',
- 'timestamp': 1349198244,
- },
+ _TESTS = [{
+ 'url': 'https://www.youtube.com/watch?v=BaW_jenozKc&t=1s&end=9',
+ 'info_dict': {
+ 'id': 'BaW_jenozKc',
+ 'ext': 'mp4',
+ 'title': 'youtube-dl test video "\'/\\ä↭𝕐',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Science & Technology'],
+ 'channel': 'Philipp Hagemeister',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCLqxVugv74EIW3VWh2NOa3Q',
+ 'channel_url': 'https://www.youtube.com/channel/UCLqxVugv74EIW3VWh2NOa3Q',
+ 'comment_count': int,
+ 'description': 'md5:8fb536f4877b8a7455c2ec23794dbc22',
+ 'duration': 10,
+ 'end_time': 9,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'playable_in_embed': True,
+ 'start_time': 1,
+ 'tags': 'count:1',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1349198244,
+ 'upload_date': '20121002',
+ 'uploader': 'Philipp Hagemeister',
+ 'uploader_id': '@PhilippHagemeister',
+ 'uploader_url': 'https://www.youtube.com/@PhilippHagemeister',
+ 'view_count': int,
},
- {
- 'url': '//www.YouTube.com/watch?v=yZIXLfi8CZQ',
- 'note': 'Embed-only video (#1746)',
- 'info_dict': {
- 'id': 'yZIXLfi8CZQ',
- 'ext': 'mp4',
- 'upload_date': '20120608',
- 'title': 'Principal Sexually Assaults A Teacher - Episode 117 - 8th June 2012',
- 'description': 'md5:09b78bd971f1e3e289601dfba15ca4f7',
- 'age_limit': 18,
- },
- 'skip': 'Private video',
+ 'skip': 'Video unavailable',
+ }, {
+ 'note': 'Embed-only video (#1746)',
+ 'url': '//www.YouTube.com/watch?v=yZIXLfi8CZQ',
+ 'info_dict': {
+ 'id': 'yZIXLfi8CZQ',
+ 'ext': 'mp4',
+ 'title': 'Principal Sexually Assaults A Teacher - Episode 117 - 8th June 2012',
+ 'age_limit': 18,
+ 'description': 'md5:09b78bd971f1e3e289601dfba15ca4f7',
+ 'upload_date': '20120608',
},
- {
- 'url': 'https://www.youtube.com/watch?v=BaW_jenozKc&v=yZIXLfi8CZQ',
- 'note': 'Use the first video ID in the URL',
- 'info_dict': {
- 'id': 'BaW_jenozKc',
- 'ext': 'mp4',
- 'title': 'youtube-dl test video "\'/\\ä↭𝕐',
- 'channel': 'Philipp Hagemeister',
- 'channel_id': 'UCLqxVugv74EIW3VWh2NOa3Q',
- 'channel_url': r're:https?://(?:www\.)?youtube\.com/channel/UCLqxVugv74EIW3VWh2NOa3Q',
- 'upload_date': '20121002',
- 'description': 'md5:8fb536f4877b8a7455c2ec23794dbc22',
- 'categories': ['Science & Technology'],
- 'tags': ['youtube-dl'],
- 'duration': 10,
- 'view_count': int,
- 'like_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,
- 'comment_count': int,
- 'channel_follower_count': int,
- 'uploader': 'Philipp Hagemeister',
- 'uploader_url': 'https://www.youtube.com/@PhilippHagemeister',
- 'uploader_id': '@PhilippHagemeister',
- 'heatmap': 'count:100',
- 'timestamp': 1349198244,
- },
- 'params': {
- 'skip_download': True,
- },
+ 'skip': 'Private video',
+ }, {
+ 'note': 'Use the first video ID in the URL',
+ 'url': 'https://www.youtube.com/watch?v=BaW_jenozKc&v=yZIXLfi8CZQ',
+ 'info_dict': {
+ 'id': 'BaW_jenozKc',
+ 'ext': 'mp4',
+ 'title': 'youtube-dl test video "\'/\\ä↭𝕐',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Science & Technology'],
+ 'channel': 'Philipp Hagemeister',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCLqxVugv74EIW3VWh2NOa3Q',
+ 'channel_url': 'https://www.youtube.com/channel/UCLqxVugv74EIW3VWh2NOa3Q',
+ 'comment_count': int,
+ 'description': 'md5:8fb536f4877b8a7455c2ec23794dbc22',
+ 'duration': 10,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'playable_in_embed': True,
+ 'tags': 'count:1',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1349198244,
+ 'upload_date': '20121002',
+ 'uploader': 'Philipp Hagemeister',
+ 'uploader_id': '@PhilippHagemeister',
+ 'uploader_url': 'https://www.youtube.com/@PhilippHagemeister',
+ 'view_count': int,
},
- {
- 'url': 'https://www.youtube.com/watch?v=a9LDPn-MO4I',
- 'note': '256k DASH audio (format 141) via DASH manifest',
- 'info_dict': {
- 'id': 'a9LDPn-MO4I',
- 'ext': 'm4a',
- 'upload_date': '20121002',
- 'description': '',
- 'title': 'UHDTV TEST 8K VIDEO.mp4',
- },
- 'params': {
- 'youtube_include_dash_manifest': True,
- 'format': '141',
- },
- 'skip': 'format 141 not served anymore',
+ 'skip': 'Video unavailable',
+ }, {
+ 'note': '256k DASH audio (format 141) via DASH manifest',
+ 'url': 'https://www.youtube.com/watch?v=a9LDPn-MO4I',
+ 'info_dict': {
+ 'id': 'a9LDPn-MO4I',
+ 'ext': 'm4a',
+ 'title': 'UHDTV TEST 8K VIDEO.mp4',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Science & Technology'],
+ 'channel': '8KVIDEO',
+ 'channel_follower_count': int,
+ 'channel_id': 'UC8cn-cnCZ2FnxmjfkoLGpsQ',
+ 'channel_url': 'https://www.youtube.com/channel/UC8cn-cnCZ2FnxmjfkoLGpsQ',
+ 'comment_count': int,
+ 'description': '',
+ 'duration': 60,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:8',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1349185252,
+ 'upload_date': '20121002',
+ 'uploader': '8KVIDEO',
+ 'uploader_id': '@8KVIDEO',
+ 'uploader_url': 'https://www.youtube.com/@8KVIDEO',
+ 'view_count': int,
+ },
+ 'params': {
+ 'format': '141',
+ 'skip_download': True,
+ 'youtube_include_dash_manifest': True,
},
+ 'skip': 'format 141 not served anymore',
+ }, {
# DASH manifest with encrypted signature
- {
- 'url': 'https://www.youtube.com/watch?v=IB3lcPjvWLA',
- 'info_dict': {
- 'id': 'IB3lcPjvWLA',
- 'ext': 'm4a',
- 'title': 'Afrojack, Spree Wilson - The Spark (Official Music Video) ft. Spree Wilson',
- 'description': 'md5:8f5e2b82460520b619ccac1f509d43bf',
- 'duration': 244,
- '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',
- 'tags': 'count:19',
- 'availability': 'public',
- 'categories': ['Music'],
- 'age_limit': 0,
- 'alt_title': 'The Spark',
- 'channel_follower_count': int,
- 'uploader': 'Afrojack',
- 'uploader_url': 'https://www.youtube.com/@Afrojack',
- 'uploader_id': '@Afrojack',
- 'media_type': 'video',
- },
- 'params': {
- 'youtube_include_dash_manifest': True,
- 'format': '141/bestaudio[ext=m4a]',
- },
+ 'url': 'https://www.youtube.com/watch?v=IB3lcPjvWLA',
+ 'info_dict': {
+ 'id': 'IB3lcPjvWLA',
+ 'ext': 'm4a',
+ 'title': 'Afrojack, Spree Wilson - The Spark (Official Music Video) ft. Spree Wilson',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Music'],
+ 'channel': 'Afrojack',
+ 'channel_follower_count': int,
+ 'channel_id': 'UChuZAo1RKL85gev3Eal9_zg',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UChuZAo1RKL85gev3Eal9_zg',
+ 'comment_count': int,
+ 'description': 'md5:8f5e2b82460520b619ccac1f509d43bf',
+ 'duration': 244,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:19',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1381496404,
+ 'upload_date': '20131011',
+ 'uploader': 'Afrojack',
+ 'uploader_id': '@AfrojackVEVO',
+ 'uploader_url': 'https://www.youtube.com/@AfrojackVEVO',
+ 'view_count': int,
},
- # Age-gate videos. See https://github.com/yt-dlp/yt-dlp/pull/575#issuecomment-888837000
- {
- 'note': 'Embed allowed age-gate video; works with web_embedded',
- 'url': 'https://youtube.com/watch?v=HtVdAasjOgU',
- 'info_dict': {
- 'id': 'HtVdAasjOgU',
- 'ext': 'mp4',
- 'title': 'The Witcher 3: Wild Hunt - The Sword Of Destiny Trailer',
- 'description': r're:(?s).{100,}About the Game\n.*?The Witcher 3: Wild Hunt.{100,}',
- 'duration': 142,
- '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,
- 'channel_follower_count': int,
- 'uploader': 'The Witcher',
- 'uploader_url': 'https://www.youtube.com/@thewitcher',
- 'uploader_id': '@thewitcher',
- 'comment_count': int,
- 'channel_is_verified': True,
- 'heatmap': 'count:100',
- 'timestamp': 1401991663,
- 'media_type': 'video',
- },
+ 'params': {
+ 'format': '141/bestaudio[ext=m4a]',
+ 'skip_download': True,
+ 'youtube_include_dash_manifest': True,
},
- {
- 'note': 'Formerly an age-gate video with embed allowed in public site',
- 'url': 'https://youtube.com/watch?v=HsUATh_Nc2U',
- 'info_dict': {
- 'id': 'HsUATh_Nc2U',
- 'ext': 'mp4',
- 'title': 'Godzilla 2 (Official Video)',
- 'description': 'md5:bf77e03fcae5529475e500129b05668a',
- 'upload_date': '20200408',
- 'age_limit': 0,
- 'availability': 'public',
- 'channel_id': 'UCYQT13AtrJC0gsM1far_zJg',
- '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,
- 'channel_follower_count': int,
- 'uploader': 'FlyingKitty',
- 'uploader_url': 'https://www.youtube.com/@FlyingKitty900',
- 'uploader_id': '@FlyingKitty900',
- 'comment_count': int,
- 'channel_is_verified': True,
- 'media_type': 'video',
- },
+ }, {
+ # Age-gated video
+ # https://github.com/yt-dlp/yt-dlp/pull/575#issuecomment-888837000
+ 'note': 'Embed allowed age-gated video; works with web_embedded',
+ 'url': 'https://youtube.com/watch?v=HtVdAasjOgU',
+ 'info_dict': {
+ 'id': 'HtVdAasjOgU',
+ 'ext': 'mp4',
+ 'title': 'The Witcher 3: Wild Hunt - The Sword Of Destiny Trailer',
+ 'age_limit': 18,
+ 'availability': 'needs_auth',
+ 'categories': ['Gaming'],
+ 'channel': 'The Witcher',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCzybXLxv08IApdjdN0mJhEg',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCzybXLxv08IApdjdN0mJhEg',
+ 'comment_count': int,
+ 'description': 'md5:595a43060c51c2a8cb61dd33c18e5fbd',
+ 'duration': 142,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:17',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1401991663,
+ 'upload_date': '20140605',
+ 'uploader': 'The Witcher',
+ 'uploader_id': '@thewitcher',
+ 'uploader_url': 'https://www.youtube.com/@thewitcher',
+ 'view_count': int,
},
- {
- 'note': 'Age-gate video embedable only with clientScreen=EMBED',
- 'url': 'https://youtube.com/watch?v=Tq92D6wQ1mg',
- 'info_dict': {
- 'id': 'Tq92D6wQ1mg',
- 'title': '[MMD] Adios - EVERGLOW [+Motion DL]',
- 'ext': 'mp4',
- 'upload_date': '20191228',
- 'description': 'md5:17eccca93a786d51bc67646756894066',
- 'age_limit': 18,
- 'like_count': int,
- 'availability': 'needs_auth',
- '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',
- 'comment_count': int,
- 'channel_follower_count': int,
- 'uploader': 'Projekt Melody',
- 'uploader_url': 'https://www.youtube.com/@ProjektMelody',
- 'uploader_id': '@ProjektMelody',
- 'timestamp': 1577508724,
- },
- 'skip': 'Age-restricted; requires authentication',
+ 'params': {'skip_download': True},
+ 'skip': 'Age-restricted; requires authentication',
+ }, {
+ 'note': 'Formerly an age-gated video with embed allowed in public site',
+ 'url': 'https://youtube.com/watch?v=HsUATh_Nc2U',
+ 'info_dict': {
+ 'id': 'HsUATh_Nc2U',
+ 'ext': 'mp4',
+ 'title': 'Godzilla 2 (Official Video)',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Entertainment'],
+ 'channel': 'FlyingKitty',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCYQT13AtrJC0gsM1far_zJg',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCYQT13AtrJC0gsM1far_zJg',
+ 'comment_count': int,
+ 'description': 'md5:bf77e03fcae5529475e500129b05668a',
+ 'duration': 177,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:2',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1586358900,
+ 'upload_date': '20200408',
+ 'uploader': 'FlyingKitty',
+ 'uploader_id': '@FlyingKitty900',
+ 'uploader_url': 'https://www.youtube.com/@FlyingKitty900',
+ 'view_count': int,
},
- {
- 'note': 'Non-Agegated non-embeddable video',
- 'url': 'https://youtube.com/watch?v=MeJVWBSsPAY',
- 'info_dict': {
- 'id': 'MeJVWBSsPAY',
- 'ext': 'mp4',
- 'title': 'OOMPH! - Such Mich Find Mich (Lyrics)',
- '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',
- 'channel_url': 'https://www.youtube.com/channel/UCdR3RSDPqub28LjZx0v9-aA',
- 'live_status': 'not_live',
- 'artist': 'OOMPH!',
- 'channel_follower_count': int,
- 'uploader': 'Herr Lurik',
- 'uploader_url': 'https://www.youtube.com/@HerrLurik',
- 'uploader_id': '@HerrLurik',
- 'media_type': 'video',
- },
+ 'params': {'skip_download': True},
+ }, {
+ 'note': 'Age-gated video embedable only with clientScreen=EMBED',
+ 'url': 'https://youtube.com/watch?v=Tq92D6wQ1mg',
+ 'info_dict': {
+ 'id': 'Tq92D6wQ1mg',
+ 'ext': 'mp4',
+ 'title': '[MMD] Adios - EVERGLOW [+Motion DL]',
+ 'age_limit': 18,
+ 'availability': 'needs_auth',
+ 'categories': ['Entertainment'],
+ 'channel': 'Projekt Melody',
+ 'channel_follower_count': int,
+ 'channel_id': 'UC1yoRdFoFJaCY-AGfD9W0wQ',
+ 'channel_url': 'https://www.youtube.com/channel/UC1yoRdFoFJaCY-AGfD9W0wQ',
+ 'comment_count': int,
+ 'description': 'md5:17eccca93a786d51bc67646756894066',
+ 'duration': 106,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:5',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1577508724,
+ 'upload_date': '20191228',
+ 'uploader': 'Projekt Melody',
+ 'uploader_id': '@ProjektMelody',
+ 'uploader_url': 'https://www.youtube.com/@ProjektMelody',
+ 'view_count': int,
},
- {
- 'note': 'Non-bypassable age-gated video',
- 'url': 'https://youtube.com/watch?v=Cr381pDsSsA',
- 'only_matching': True,
+ 'skip': 'Age-restricted; requires authentication',
+ }, {
+ 'note': 'Non-age-gated non-embeddable video',
+ 'url': 'https://youtube.com/watch?v=MeJVWBSsPAY',
+ 'info_dict': {
+ 'id': 'MeJVWBSsPAY',
+ 'ext': 'mp4',
+ 'title': 'OOMPH! - Such Mich Find Mich (Lyrics)',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Music'],
+ 'channel': 'Herr Lurik',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCdR3RSDPqub28LjZx0v9-aA',
+ 'channel_url': 'https://www.youtube.com/channel/UCdR3RSDPqub28LjZx0v9-aA',
+ 'description': 'md5:205c1049102a4dffa61e4831c1f16851',
+ 'duration': 210,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': False,
+ 'tags': 'count:5',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1375214517,
+ 'upload_date': '20130730',
+ 'uploader': 'Herr Lurik',
+ 'uploader_id': '@HerrLurik',
+ 'uploader_url': 'https://www.youtube.com/@HerrLurik',
+ 'view_count': int,
},
- # video_info is None (https://github.com/ytdl-org/youtube-dl/issues/4421)
+ }, {
+ 'note': 'Non-bypassable age-gated video',
+ 'url': 'https://youtube.com/watch?v=Cr381pDsSsA',
+ 'only_matching': True,
+ }, {
+ # video_info is None
+ # https://github.com/ytdl-org/youtube-dl/issues/4421
# YouTube Red ad is not captured for creator
- {
- 'url': '__2ABJjxzNo',
- 'info_dict': {
- 'id': '__2ABJjxzNo',
- 'ext': 'mp4',
- 'duration': 266,
- 'upload_date': '20100430',
- 'creator': 'deadmau5',
- 'description': 'md5:6cbcd3a92ce1bc676fc4d6ab4ace2336',
- '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',
- 'channel_follower_count': int,
- 'uploader': 'deadmau5',
- 'uploader_url': 'https://www.youtube.com/@deadmau5',
- 'uploader_id': '@deadmau5',
- 'media_type': 'video',
- },
- 'expected_warnings': [
- 'DASH manifest missing',
- ],
+ 'url': '__2ABJjxzNo',
+ 'info_dict': {
+ 'id': '__2ABJjxzNo',
+ 'ext': 'mp4',
+ 'title': 'Deadmau5 - Some Chords (HD)',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Music'],
+ 'channel': 'deadmau5',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCYEK6xds6eo-3tr4xRdflmQ',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCYEK6xds6eo-3tr4xRdflmQ',
+ 'comment_count': int,
+ 'description': 'md5:c27e1e9e095a3d9dd99de2f0f377ba06',
+ 'duration': 266,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:14',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1272659179,
+ 'upload_date': '20100430',
+ 'uploader': 'deadmau5',
+ 'uploader_id': '@deadmau5',
+ 'uploader_url': 'https://www.youtube.com/@deadmau5',
+ 'view_count': int,
},
- # Olympics (https://github.com/ytdl-org/youtube-dl/issues/4431)
- {
- 'url': 'lqQg6PlCWgI',
- 'info_dict': {
- 'id': 'lqQg6PlCWgI',
- 'ext': 'mp4',
- 'duration': 6085,
- 'upload_date': '20150827',
- 'description': 'md5:04bbbf3ccceb6795947572ca36f45904',
- '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',
- 'channel_follower_count': int,
- 'uploader': 'Olympics',
- 'uploader_url': 'https://www.youtube.com/@Olympics',
- 'uploader_id': '@Olympics',
- 'channel_is_verified': True,
- 'timestamp': 1440707674,
- 'media_type': 'livestream',
- },
- 'params': {
- 'skip_download': 'requires avconv',
- },
+ 'expected_warnings': ['DASH manifest missing'],
+ 'params': {'skip_download': True},
+ }, {
+ # https://github.com/ytdl-org/youtube-dl/issues/4431
+ 'url': 'lqQg6PlCWgI',
+ 'info_dict': {
+ 'id': 'lqQg6PlCWgI',
+ 'ext': 'mp4',
+ 'title': 'Hockey - Women - GER-AUS - London 2012 Olympic Games',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Sports'],
+ 'channel': 'Olympics',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCTl3QQTvqHFjurroKxexy2Q',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCTl3QQTvqHFjurroKxexy2Q',
+ 'description': 'md5:04bbbf3ccceb6795947572ca36f45904',
+ 'duration': 6085,
+ 'like_count': int,
+ 'live_status': 'was_live',
+ 'media_type': 'livestream',
+ 'playable_in_embed': True,
+ 'release_date': '20120731',
+ 'release_timestamp': 1343767800,
+ 'tags': 'count:10',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1440707674,
+ 'upload_date': '20150827',
+ 'uploader': 'Olympics',
+ 'uploader_id': '@Olympics',
+ 'uploader_url': 'https://www.youtube.com/@Olympics',
+ 'view_count': int,
},
+ 'params': {'skip_download': True},
+ }, {
# Non-square pixels
- {
- 'url': 'https://www.youtube.com/watch?v=_b-2C3KPAM0',
- 'info_dict': {
- 'id': '_b-2C3KPAM0',
- 'ext': 'mp4',
- 'stretched_ratio': 16 / 9.,
- 'duration': 85,
- 'upload_date': '20110310',
- 'description': 'made by Wacom from Korea | 字幕&加油添醋 by TY\'s Allen | 感謝heylisa00cavey1001同學熱情提供梗及翻譯',
- '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',
- 'comment_count': int,
- 'channel_follower_count': int,
- 'uploader': '孫ᄋᄅ',
- 'uploader_url': 'https://www.youtube.com/@AllenMeow',
- 'uploader_id': '@AllenMeow',
- 'timestamp': 1299776999,
- 'media_type': 'video',
- },
+ 'url': 'https://www.youtube.com/watch?v=_b-2C3KPAM0',
+ 'info_dict': {
+ 'id': '_b-2C3KPAM0',
+ 'ext': 'mp4',
+ 'title': '[A-made] 變態妍字幕版 太妍 我就是這樣的人',
+ 'age_limit': 0,
+ 'availability': 'unlisted',
+ 'categories': ['People & Blogs'],
+ 'channel': '孫ᄋᄅ',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCS-xxCmRaA6BFdmgDPA_BIw',
+ 'channel_url': 'https://www.youtube.com/channel/UCS-xxCmRaA6BFdmgDPA_BIw',
+ 'comment_count': int,
+ 'description': 'md5:636f03cf211e7687daffe5bded88a94f',
+ 'duration': 85,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'stretched_ratio': 16 / 9.,
+ 'tags': 'count:11',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1299776999,
+ 'upload_date': '20110310',
+ 'uploader': '孫ᄋᄅ',
+ 'uploader_id': '@AllenMeow',
+ 'uploader_url': 'https://www.youtube.com/@AllenMeow',
+ 'view_count': int,
},
- # url_encoded_fmt_stream_map is empty string
- {
- 'url': 'qEJwOuvDf7I',
- 'info_dict': {
- 'id': 'qEJwOuvDf7I',
- 'ext': 'webm',
- 'title': 'Обсуждение судебной практики по выборам 14 сентября 2014 года в Санкт-Петербурге',
- 'description': '',
- 'upload_date': '20150404',
- },
- 'params': {
- 'skip_download': 'requires avconv',
- },
- 'skip': 'This live event has ended.',
- },
- # Extraction from multiple DASH manifests (https://github.com/ytdl-org/youtube-dl/pull/6097)
- {
- 'url': 'https://www.youtube.com/watch?v=FIl7x6_3R5Y',
- 'info_dict': {
- 'id': 'FIl7x6_3R5Y',
- 'ext': 'webm',
- 'title': 'md5:7b81415841e02ecd4313668cde88737a',
- 'description': 'md5:116377fd2963b81ec4ce64b542173306',
- 'duration': 220,
- 'upload_date': '20150625',
- 'formats': 'mincount:31',
- },
- 'skip': 'not actual anymore',
+ 'params': {'skip_download': True},
+ }, {
+ # url_encoded_fmt_stream_map is empty string (deprecated)
+ # https://github.com/ytdl-org/youtube-dl/commit/3a9fadd6dfc127ed0707b218b11ac10c654af1e2
+ # https://github.com/ytdl-org/youtube-dl/commit/67299f23d8b1894120e875edf97440de87e22308
+ 'url': 'qEJwOuvDf7I',
+ 'only_matching': True,
+ }, {
+ # Extraction from multiple DASH manifests
+ # https://github.com/ytdl-org/youtube-dl/pull/6097
+ 'url': 'https://www.youtube.com/watch?v=FIl7x6_3R5Y',
+ 'info_dict': {
+ 'id': 'FIl7x6_3R5Y',
+ 'ext': 'mp4',
+ 'title': '[60fps] 150614 마마무 솔라 \'Mr. 애매모호\' 라이브 직캠 @대학로 게릴라 콘서트',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['People & Blogs'],
+ 'channel': 'dorappi2000',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCNlmrKRHLHcd2gq6LtPOTlQ',
+ 'channel_url': 'https://www.youtube.com/channel/UCNlmrKRHLHcd2gq6LtPOTlQ',
+ 'description': 'md5:116377fd2963b81ec4ce64b542173306',
+ 'duration': 220,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:12',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1435276932,
+ 'upload_date': '20150626',
+ 'uploader': 'dorappi2000',
+ 'uploader_id': '@dorappi2000',
+ 'uploader_url': 'https://www.youtube.com/@dorappi2000',
+ 'view_count': int,
},
+ 'params': {'skip_download': True},
+ }, {
# DASH manifest with segment_list
- {
- 'url': 'https://www.youtube.com/embed/CsmdDsKjzN8',
- 'md5': '8ce563a1d667b599d21064e982ab9e31',
- 'info_dict': {
- 'id': 'CsmdDsKjzN8',
- 'ext': 'mp4',
- 'upload_date': '20150501', # According to '<meta itemprop="datePublished"', but in other places it's 20150510
- 'description': 'Retransmisión en directo de la XVIII media maratón de Zaragoza.',
- 'title': 'Retransmisión XVIII Media maratón Zaragoza 2015',
- },
- 'params': {
- 'youtube_include_dash_manifest': True,
- 'format': '135', # bestvideo
- },
- 'skip': 'This live event has ended.',
+ # https://github.com/ytdl-org/youtube-dl/pull/5886
+ 'url': 'https://www.youtube.com/embed/CsmdDsKjzN8',
+ 'info_dict': {
+ 'id': 'CsmdDsKjzN8',
+ 'ext': 'mp4',
+ 'title': 'Retransmisión XVIII Media maratón Zaragoza 2015',
+ 'age_limit': 0,
+ 'availability': 'unlisted',
+ 'categories': ['Sports'],
+ 'channel': 'Airtek | LED streaming',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCzTzUmjXxxacNnL8I3m4LnQ',
+ 'channel_url': 'https://www.youtube.com/channel/UCzTzUmjXxxacNnL8I3m4LnQ',
+ 'comment_count': int,
+ 'description': 'md5:fcac84e6c545114766f670236fc10196',
+ 'duration': 4394,
+ 'like_count': int,
+ 'live_status': 'was_live',
+ 'media_type': 'livestream',
+ 'playable_in_embed': True,
+ 'release_date': '20150510',
+ 'release_timestamp': 1431241011,
+ 'tags': 'count:31',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1430505417,
+ 'upload_date': '20150501',
+ 'uploader': 'Airtek | LED streaming',
+ 'uploader_id': '@airtekledstreaming7916',
+ 'uploader_url': 'https://www.youtube.com/@airtekledstreaming7916',
+ 'view_count': int,
},
- {
- # Multifeed videos (multiple cameras), URL can be of any Camera
- # TODO: fix multifeed titles
- 'url': 'https://www.youtube.com/watch?v=zaPI8MvL8pg',
- 'info_dict': {
- 'id': 'zaPI8MvL8pg',
- 'title': 'Terraria 1.2 Live Stream | Let\'s Play - Part 04',
- 'description': 'md5:563ccbc698b39298481ca3c571169519',
- },
- 'playlist': [{
- 'info_dict': {
- 'id': 'j5yGuxZ8lLU',
- 'ext': 'mp4',
- 'title': 'Terraria 1.2 Live Stream | Let\'s Play - Part 04 (Chris)',
- 'description': 'md5:563ccbc698b39298481ca3c571169519',
- 'duration': 10120,
- 'channel_follower_count': int,
- 'channel_url': 'https://www.youtube.com/channel/UCN2XePorRokPB9TEgRZpddg',
- 'availability': 'public',
- 'playable_in_embed': True,
- 'upload_date': '20131105',
- 'categories': ['Gaming'],
- 'live_status': 'was_live',
- 'tags': 'count:24',
- 'release_timestamp': 1383701910,
- 'thumbnail': 'https://i.ytimg.com/vi/j5yGuxZ8lLU/maxresdefault.jpg',
- 'comment_count': int,
- 'age_limit': 0,
- 'like_count': int,
- 'channel_id': 'UCN2XePorRokPB9TEgRZpddg',
- 'channel': 'WiiLikeToPlay',
- 'view_count': int,
- 'release_date': '20131106',
- 'uploader': 'WiiLikeToPlay',
- 'uploader_id': '@WLTP',
- 'uploader_url': 'https://www.youtube.com/@WLTP',
- },
- }, {
- 'info_dict': {
- 'id': 'zaPI8MvL8pg',
- 'ext': 'mp4',
- 'title': 'Terraria 1.2 Live Stream | Let\'s Play - Part 04 (Tyson)',
- 'availability': 'public',
- 'channel_url': 'https://www.youtube.com/channel/UCN2XePorRokPB9TEgRZpddg',
- 'channel': 'WiiLikeToPlay',
- 'channel_follower_count': int,
- 'description': 'md5:563ccbc698b39298481ca3c571169519',
- 'duration': 10108,
- 'age_limit': 0,
- 'like_count': int,
- 'tags': 'count:24',
- 'channel_id': 'UCN2XePorRokPB9TEgRZpddg',
- 'release_timestamp': 1383701915,
- 'comment_count': int,
- 'upload_date': '20131105',
- 'thumbnail': 'https://i.ytimg.com/vi/zaPI8MvL8pg/maxresdefault.jpg',
- 'release_date': '20131106',
- 'playable_in_embed': True,
- 'live_status': 'was_live',
- 'categories': ['Gaming'],
- 'view_count': int,
- 'uploader': 'WiiLikeToPlay',
- 'uploader_id': '@WLTP',
- 'uploader_url': 'https://www.youtube.com/@WLTP',
- },
- }, {
- 'info_dict': {
- 'id': 'R7r3vfO7Hao',
- 'ext': 'mp4',
- 'title': 'Terraria 1.2 Live Stream | Let\'s Play - Part 04 (Spencer)',
- 'thumbnail': 'https://i.ytimg.com/vi/R7r3vfO7Hao/maxresdefault.jpg',
- 'channel_id': 'UCN2XePorRokPB9TEgRZpddg',
- 'like_count': int,
- 'availability': 'public',
- 'playable_in_embed': True,
- 'upload_date': '20131105',
- 'description': 'md5:563ccbc698b39298481ca3c571169519',
- 'channel_follower_count': int,
- 'tags': 'count:24',
- 'release_date': '20131106',
- 'comment_count': int,
- 'channel_url': 'https://www.youtube.com/channel/UCN2XePorRokPB9TEgRZpddg',
- 'channel': 'WiiLikeToPlay',
- 'categories': ['Gaming'],
- 'release_timestamp': 1383701914,
- 'live_status': 'was_live',
- 'age_limit': 0,
- 'duration': 10128,
- 'view_count': int,
- 'uploader': 'WiiLikeToPlay',
- 'uploader_id': '@WLTP',
- 'uploader_url': 'https://www.youtube.com/@WLTP',
- },
- }],
- 'params': {'skip_download': True},
- 'skip': 'Not multifeed anymore',
+ 'params': {
+ 'format': '135', # bestvideo
+ 'skip_download': True,
+ 'youtube_include_dash_manifest': True,
},
- {
- # Multifeed video with comma in title (see https://github.com/ytdl-org/youtube-dl/issues/8536)
- 'url': 'https://www.youtube.com/watch?v=gVfLd0zydlo',
- 'info_dict': {
- 'id': 'gVfLd0zydlo',
- 'title': 'DevConf.cz 2016 Day 2 Workshops 1 14:00 - 15:30',
- },
- 'playlist_count': 2,
- 'skip': 'Not multifeed anymore',
+ }, {
+ # Multi-camera events (deprecated)
+ # https://web.archive.org/web/20200308092705/https://support.google.com/youtube/answer/2853812
+ 'url': 'https://www.youtube.com/watch?v=zaPI8MvL8pg',
+ 'only_matching': True,
+ }, {
+ # Multi-camera events (deprecated)
+ # https://github.com/ytdl-org/youtube-dl/issues/8536
+ 'url': 'https://www.youtube.com/watch?v=gVfLd0zydlo',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://vid.plus/FlRa-iH7PGw',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://zwearz.com/watch/9lWxNJF-ufM/electra-woman-dyna-girl-official-trailer-grace-helbig.html',
+ 'only_matching': True,
+ }, {
+ # Title with JS-like syntax "};"
+ # https://github.com/ytdl-org/youtube-dl/issues/7468
+ # Also tests cut-off URL expansion in video description
+ # https://github.com/ytdl-org/youtube-dl/issues/1892
+ # https://github.com/ytdl-org/youtube-dl/issues/8164
+ 'url': 'https://www.youtube.com/watch?v=lsguqyKfVQg',
+ 'info_dict': {
+ 'id': 'lsguqyKfVQg',
+ 'ext': 'mp4',
+ 'title': '{dark walk}; Loki/AC/Dishonored; collab w/Elflover21',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Film & Animation'],
+ 'channel': 'IronSoulElf',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCTSRgz5jylBvFt_S7wnsqLQ',
+ 'channel_url': 'https://www.youtube.com/channel/UCTSRgz5jylBvFt_S7wnsqLQ',
+ 'comment_count': int,
+ 'description': 'md5:8085699c11dc3f597ce0410b0dcbb34a',
+ 'duration': 133,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:13',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1447959261,
+ 'upload_date': '20151119',
+ 'uploader': 'IronSoulElf',
+ 'uploader_id': '@IronSoulElf',
+ 'uploader_url': 'https://www.youtube.com/@IronSoulElf',
+ 'view_count': int,
},
- {
- 'url': 'https://vid.plus/FlRa-iH7PGw',
- 'only_matching': True,
+ 'params': {'skip_download': True},
+ }, {
+ # Tags with '};'
+ # https://github.com/ytdl-org/youtube-dl/issues/7468
+ 'url': 'https://www.youtube.com/watch?v=Ms7iBXnlUO8',
+ 'only_matching': True,
+ }, {
+ # Video with yt:stretch=17:0
+ 'url': 'https://www.youtube.com/watch?v=Q39EVAstoRM',
+ 'info_dict': {
+ 'id': 'Q39EVAstoRM',
+ 'ext': 'mp4',
+ 'title': 'Clash Of Clans#14 Dicas De Ataque Para CV 4',
+ 'description': 'md5:ee18a25c350637c8faff806845bddee9',
+ 'upload_date': '20151107',
},
- {
- 'url': 'https://zwearz.com/watch/9lWxNJF-ufM/electra-woman-dyna-girl-official-trailer-grace-helbig.html',
- 'only_matching': True,
+ 'skip': 'This video does not exist.',
+ }, {
+ # Video with incomplete 'yt:stretch=16:'
+ 'url': 'https://www.youtube.com/watch?v=FRhJzUSJbGI',
+ 'only_matching': True,
+ }, {
+ # Video licensed under Creative Commons
+ 'url': 'https://www.youtube.com/watch?v=M4gD1WSo5mA',
+ 'info_dict': {
+ 'id': 'M4gD1WSo5mA',
+ 'ext': 'mp4',
+ 'title': 'William Fisher, CopyrightX: Lecture 3.2, The Subject Matter of Copyright: Drama and choreography',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Education'],
+ 'channel': 'The Berkman Klein Center for Internet & Society',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCuLGmD72gJDBwmLw06X58SA',
+ 'channel_url': 'https://www.youtube.com/channel/UCuLGmD72gJDBwmLw06X58SA',
+ 'chapters': 'count:4',
+ 'description': 'md5:a677553cf0840649b731a3024aeff4cc',
+ 'duration': 721,
+ 'license': 'Creative Commons Attribution license (reuse allowed)',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:3',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1422422076,
+ 'upload_date': '20150128',
+ 'uploader': 'The Berkman Klein Center for Internet & Society',
+ 'uploader_id': '@BKCHarvard',
+ 'uploader_url': 'https://www.youtube.com/@BKCHarvard',
+ 'view_count': int,
},
- {
- # Title with JS-like syntax "};" (see https://github.com/ytdl-org/youtube-dl/issues/7468)
- # Also tests cut-off URL expansion in video description (see
- # https://github.com/ytdl-org/youtube-dl/issues/1892,
- # https://github.com/ytdl-org/youtube-dl/issues/8164)
- 'url': 'https://www.youtube.com/watch?v=lsguqyKfVQg',
- 'info_dict': {
- 'id': 'lsguqyKfVQg',
- 'ext': 'mp4',
- 'title': '{dark walk}; Loki/AC/Dishonored; collab w/Elflover21',
- 'alt_title': 'Dark Walk',
- 'description': 'md5:8085699c11dc3f597ce0410b0dcbb34a',
- 'duration': 133,
- 'upload_date': '20151119',
- 'creator': 'Todd Haberman;\nDaniel Law Heath and Aaron Kaplan',
- '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,
- 'channel_follower_count': int,
- 'media_type': 'video',
- },
- 'params': {
- 'skip_download': True,
- },
+ 'params': {'skip_download': True},
+ }, {
+ # https://github.com/ytdl-org/youtube-dl/commit/fd050249afce1bcc9e7f4a127069375467007b55
+ 'url': 'https://www.youtube.com/watch?v=eQcmzGIKrzg',
+ 'info_dict': {
+ 'id': 'eQcmzGIKrzg',
+ 'ext': 'mp4',
+ 'title': 'Democratic Socialism and Foreign Policy | Bernie Sanders',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['News & Politics'],
+ 'channel': 'Bernie Sanders',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCH1dpzjCEiGAt8CXkryhkZg',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCH1dpzjCEiGAt8CXkryhkZg',
+ 'chapters': 'count:5',
+ 'comment_count': int,
+ 'description': 'md5:13a2503d7b5904ef4b223aa101628f39',
+ 'duration': 4060,
+ 'heatmap': 'count:100',
+ 'license': 'Creative Commons Attribution license (reuse allowed)',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:12',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1447987198,
+ 'upload_date': '20151120',
+ 'uploader': 'Bernie Sanders',
+ 'uploader_id': '@BernieSanders',
+ 'uploader_url': 'https://www.youtube.com/@BernieSanders',
+ 'view_count': int,
},
- {
- # Tags with '};' (see https://github.com/ytdl-org/youtube-dl/issues/7468)
- 'url': 'https://www.youtube.com/watch?v=Ms7iBXnlUO8',
- 'only_matching': True,
+ 'params': {'skip_download': True},
+ }, {
+ 'url': 'https://www.youtube.com/watch?feature=player_embedded&amp;amp;v=V36LpHqtcDY',
+ 'only_matching': True,
+ }, {
+ # YouTube Red paid video
+ # https://github.com/ytdl-org/youtube-dl/issues/10059
+ 'url': 'https://www.youtube.com/watch?v=i1Ko8UG-Tdo',
+ 'only_matching': True,
+ }, {
+ # Rental video preview
+ # https://github.com/ytdl-org/youtube-dl/commit/fd050249afce1bcc9e7f4a127069375467007b55
+ 'url': 'https://www.youtube.com/watch?v=yYr8q0y5Jfg',
+ 'info_dict': {
+ 'id': 'uGpuVWrhIzE',
+ 'ext': 'mp4',
+ 'title': 'Piku - Trailer',
+ 'description': 'md5:c36bd60c3fd6f1954086c083c72092eb',
+ 'upload_date': '20150811',
+ 'license': 'Standard YouTube License',
},
- {
- # Video with yt:stretch=17:0
- 'url': 'https://www.youtube.com/watch?v=Q39EVAstoRM',
- 'info_dict': {
- 'id': 'Q39EVAstoRM',
- 'ext': 'mp4',
- 'title': 'Clash Of Clans#14 Dicas De Ataque Para CV 4',
- 'description': 'md5:ee18a25c350637c8faff806845bddee9',
- 'upload_date': '20151107',
- },
- 'params': {
- 'skip_download': True,
- },
- 'skip': 'This video does not exist.',
+ 'skip': 'This video is not available.',
+ }, {
+ # YouTube Red video with episode data
+ 'url': 'https://www.youtube.com/watch?v=iqKdEhx-dD4',
+ 'info_dict': {
+ 'id': 'iqKdEhx-dD4',
+ 'ext': 'mp4',
+ 'title': 'Isolation - Mind Field (Ep 1)',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Entertainment'],
+ 'channel': 'Vsauce',
+ 'channel_follower_count': int,
+ 'channel_id': 'UC6nSFpj9HTCZ5t-N3Rm3-HA',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UC6nSFpj9HTCZ5t-N3Rm3-HA',
+ 'comment_count': int,
+ 'description': 'md5:f540112edec5d09fc8cc752d3d4ba3cd',
+ 'duration': 2085,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:12',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1484761047,
+ 'upload_date': '20170118',
+ 'uploader': 'Vsauce',
+ 'uploader_id': '@Vsauce',
+ 'uploader_url': 'https://www.youtube.com/@Vsauce',
+ 'view_count': int,
},
- {
- # Video with incomplete 'yt:stretch=16:'
- 'url': 'https://www.youtube.com/watch?v=FRhJzUSJbGI',
- 'only_matching': True,
+ 'expected_warnings': ['Skipping DASH manifest'],
+ 'params': {'skip_download': True},
+ }, {
+ # The following content has been identified by the YouTube community
+ # as inappropriate or offensive to some audiences.
+ 'url': 'https://www.youtube.com/watch?v=6SJNVb0GnPI',
+ 'info_dict': {
+ 'id': '6SJNVb0GnPI',
+ 'ext': 'mp4',
+ 'title': 'Race Differences in Intelligence',
+ 'description': 'md5:5d161533167390427a1f8ee89a1fc6f1',
+ 'duration': 965,
+ 'upload_date': '20140124',
},
- {
- # Video licensed under Creative Commons
- 'url': 'https://www.youtube.com/watch?v=M4gD1WSo5mA',
- 'info_dict': {
- 'id': 'M4gD1WSo5mA',
- 'ext': 'mp4',
- 'title': 'md5:e41008789470fc2533a3252216f1c1d1',
- 'description': 'md5:a677553cf0840649b731a3024aeff4cc',
- 'duration': 721,
- 'upload_date': '20150128',
- '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,
- 'channel_follower_count': int,
- 'chapters': list,
- 'uploader': 'The Berkman Klein Center for Internet & Society',
- 'uploader_id': '@BKCHarvard',
- 'uploader_url': 'https://www.youtube.com/@BKCHarvard',
- 'timestamp': 1422422076,
- 'media_type': 'video',
- },
- 'params': {
- 'skip_download': True,
- },
+ 'skip': 'This video has been removed for violating YouTube\'s policy on hate speech.',
+ }, {
+ # itag 212
+ 'url': '1t24XAntNCY',
+ 'only_matching': True,
+ }, {
+ # geo restricted to JP
+ 'url': 'sJL6WA-aGkQ',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://invidio.us/watch?v=BaW_jenozKc',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://redirect.invidious.io/watch?v=BaW_jenozKc',
+ 'only_matching': True,
+ }, {
+ # from https://nitter.pussthecat.org/YouTube/status/1360363141947944964#m
+ 'url': 'https://redirect.invidious.io/Yh0AhrY9GjA',
+ 'only_matching': True,
+ }, {
+ # DRM protected
+ 'url': 'https://www.youtube.com/watch?v=s7_qI6_mIXc',
+ 'only_matching': True,
+ }, {
+ # Video with unsupported adaptive stream type formats
+ # https://github.com/ytdl-org/youtube-dl/commit/4fe54c128a11d394874505af75aaa5a2276aa3ba
+ 'url': 'https://www.youtube.com/watch?v=Z4Vy8R84T1U',
+ 'only_matching': True,
+ }, {
+ # Youtube Music Auto-generated description
+ # TODO: fix metadata extraction
+ # https://github.com/ytdl-org/youtube-dl/issues/20599
+ 'url': 'https://music.youtube.com/watch?v=MgNrAu2pzNs',
+ 'info_dict': {
+ 'id': 'MgNrAu2pzNs',
+ 'ext': 'mp4',
+ 'title': 'Voyeur Girl',
+ 'age_limit': 0,
+ 'album': 'it\'s too much love to know my dear',
+ 'alt_title': 'Voyeur Girl',
+ 'artists': ['Stephen'],
+ 'availability': 'public',
+ 'categories': ['Music'],
+ 'channel': 'Stephen', # TODO: should be 'Stephen - Topic'
+ 'channel_follower_count': int,
+ 'channel_id': 'UC-pWHpBjdGG69N9mM2auIAA',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UC-pWHpBjdGG69N9mM2auIAA',
+ 'comment_count': int,
+ 'creators': ['Stephen'],
+ 'description': 'md5:7ae382a65843d6df2685993e90a8628f',
+ 'duration': 169,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'release_date': '20190313',
+ 'tags': 'count:11',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1552385807,
+ 'track': 'Voyeur Girl',
+ 'upload_date': '20190312',
+ 'uploader': 'Stephen',
+ 'view_count': int,
},
- {
- 'url': 'https://www.youtube.com/watch?v=eQcmzGIKrzg',
- 'info_dict': {
- 'id': 'eQcmzGIKrzg',
- 'ext': 'mp4',
- 'title': 'Democratic Socialism and Foreign Policy | Bernie Sanders',
- 'description': 'md5:13a2503d7b5904ef4b223aa101628f39',
- 'duration': 4060,
- 'upload_date': '20151120',
- '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',
- 'comment_count': int,
- 'channel_follower_count': int,
- 'chapters': list,
- 'uploader': 'Bernie Sanders',
- 'uploader_url': 'https://www.youtube.com/@BernieSanders',
- 'uploader_id': '@BernieSanders',
- 'channel_is_verified': True,
- 'heatmap': 'count:100',
- 'timestamp': 1447987198,
- 'media_type': 'video',
- },
- 'params': {
- 'skip_download': True,
- },
+ 'params': {'skip_download': True},
+ }, {
+ 'url': 'https://www.youtubekids.com/watch?v=3b8nCWDgZ6Q',
+ 'only_matching': True,
+ }, {
+ # invalid -> valid video id redirection
+ # https://github.com/ytdl-org/youtube-dl/pull/25063
+ 'url': 'DJztXj2GPfl',
+ 'info_dict': {
+ 'id': 'DJztXj2GPfk',
+ 'ext': 'mp4',
+ 'title': 'Panjabi MC - Mundian To Bach Ke (The Dictator Soundtrack)',
+ 'description': 'md5:bf577a41da97918e94fa9798d9228825',
+ 'upload_date': '20090125',
+ 'artist': 'Panjabi MC',
+ 'track': 'Beware of the Boys (Mundian to Bach Ke) - Motivo Hi-Lectro Remix',
+ 'album': 'Beware of the Boys (Mundian To Bach Ke)',
},
- {
- 'url': 'https://www.youtube.com/watch?feature=player_embedded&amp;amp;v=V36LpHqtcDY',
- 'only_matching': True,
+ 'skip': 'Video unavailable',
+ }, {
+ # empty description results in an empty string
+ # https://github.com/ytdl-org/youtube-dl/pull/26575
+ 'url': 'https://www.youtube.com/watch?v=x41yOUIvK2k',
+ 'info_dict': {
+ 'id': 'x41yOUIvK2k',
+ 'ext': 'mp4',
+ 'title': 'IMG 3456',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Pets & Animals'],
+ 'channel': 'l\'Or Vert asbl',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCo03ZQPBW5U4UC3regpt1nw',
+ 'channel_url': 'https://www.youtube.com/channel/UCo03ZQPBW5U4UC3regpt1nw',
+ 'description': '',
+ 'duration': 7,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': [],
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1497343210,
+ 'upload_date': '20170613',
+ 'uploader': 'l\'Or Vert asbl',
+ 'uploader_id': '@ElevageOrVert',
+ 'uploader_url': 'https://www.youtube.com/@ElevageOrVert',
+ 'view_count': int,
},
- {
- # YouTube Red paid video (https://github.com/ytdl-org/youtube-dl/issues/10059)
- 'url': 'https://www.youtube.com/watch?v=i1Ko8UG-Tdo',
- 'only_matching': True,
+ 'params': {'skip_download': True},
+ }, {
+ # with '};' inside yt initial data (see [1])
+ # see [2] for an example with '};' inside ytInitialPlayerResponse
+ # 1. https://github.com/ytdl-org/youtube-dl/issues/27093
+ # 2. https://github.com/ytdl-org/youtube-dl/issues/27216
+ 'url': 'https://www.youtube.com/watch?v=CHqg6qOn4no',
+ 'info_dict': {
+ 'id': 'CHqg6qOn4no',
+ 'ext': 'mp4',
+ 'title': 'Part 77 Sort a list of simple types in c#',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Education'],
+ 'channel': 'kudvenkat',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCCTVrRB5KpIiK6V2GGVsR1Q',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCCTVrRB5KpIiK6V2GGVsR1Q',
+ 'chapters': 'count:4',
+ 'comment_count': int,
+ 'description': 'md5:b8746fa52e10cdbf47997903f13b20dc',
+ 'duration': 522,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:12',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1377976349,
+ 'upload_date': '20130831',
+ 'uploader': 'kudvenkat',
+ 'uploader_id': '@Csharp-video-tutorialsBlogspot',
+ 'uploader_url': 'https://www.youtube.com/@Csharp-video-tutorialsBlogspot',
+ 'view_count': int,
},
- {
- # Rental video preview
- 'url': 'https://www.youtube.com/watch?v=yYr8q0y5Jfg',
- 'info_dict': {
- 'id': 'uGpuVWrhIzE',
- 'ext': 'mp4',
- 'title': 'Piku - Trailer',
- 'description': 'md5:c36bd60c3fd6f1954086c083c72092eb',
- 'upload_date': '20150811',
- 'license': 'Standard YouTube License',
- },
- 'params': {
- 'skip_download': True,
- },
- 'skip': 'This video is not available.',
+ 'params': {'skip_download': True},
+ }, {
+ # another example of '};' in ytInitialData
+ 'url': 'https://www.youtube.com/watch?v=gVfgbahppCY',
+ 'only_matching': True,
+ }, {
+ 'url': 'https://www.youtube.com/watch_popup?v=63RmMXCd_bQ',
+ 'only_matching': True,
+ }, {
+ # https://github.com/ytdl-org/youtube-dl/pull/28094
+ 'url': 'OtqTfy26tG0',
+ 'info_dict': {
+ 'id': 'OtqTfy26tG0',
+ 'ext': 'mp4',
+ 'title': 'Burn Out',
+ 'age_limit': 0,
+ 'album': 'Every Day',
+ 'alt_title': 'Burn Out',
+ 'artists': ['The Cinematic Orchestra'],
+ 'availability': 'public',
+ 'categories': ['Music'],
+ 'channel': 'The Cinematic Orchestra',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCIzsJBIyo8hhpFm1NK0uLgw',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCIzsJBIyo8hhpFm1NK0uLgw',
+ 'comment_count': int,
+ 'creators': ['The Cinematic Orchestra'],
+ 'description': 'md5:fee8b19b7ba433cc2957d1c7582067ac',
+ 'duration': 614,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'release_date': '20020513',
+ 'release_year': 2023,
+ 'tags': 'count:3',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1416497379,
+ 'track': 'Burn Out',
+ 'upload_date': '20141120',
+ 'uploader': 'The Cinematic Orchestra',
+ 'view_count': int,
},
- {
- # YouTube Red video with episode data
- 'url': 'https://www.youtube.com/watch?v=iqKdEhx-dD4',
- 'info_dict': {
- 'id': 'iqKdEhx-dD4',
- 'ext': 'mp4',
- 'title': 'Isolation - Mind Field (Ep 1)',
- 'description': 'md5:f540112edec5d09fc8cc752d3d4ba3cd',
- 'duration': 2085,
- 'upload_date': '20170118',
- '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',
- 'channel_follower_count': int,
- 'uploader': 'Vsauce',
- 'uploader_url': 'https://www.youtube.com/@Vsauce',
- 'uploader_id': '@Vsauce',
- 'comment_count': int,
- 'channel_is_verified': True,
- 'timestamp': 1484761047,
- 'media_type': 'video',
- },
- 'params': {
- 'skip_download': True,
- },
- 'expected_warnings': [
- 'Skipping DASH manifest',
- ],
+ 'params': {'skip_download': True},
+ }, {
+ # controversial video, only works with bpctr when authenticated with cookies
+ 'url': 'https://www.youtube.com/watch?v=nGC3D_FkCmg',
+ 'only_matching': True,
+ }, {
+ # controversial video, requires bpctr/contentCheckOk
+ 'url': 'https://www.youtube.com/watch?v=SZJvDhaSDnc',
+ 'info_dict': {
+ 'id': 'SZJvDhaSDnc',
+ 'ext': 'mp4',
+ 'title': 'San Diego teen commits suicide after bullying over embarrassing video',
+ 'age_limit': 18,
+ 'availability': 'needs_auth',
+ 'categories': ['News & Politics'],
+ 'channel': 'CBS Mornings',
+ 'channel_follower_count': int,
+ 'channel_id': 'UC-SJ6nODDmufqBzPBwCvYvQ',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UC-SJ6nODDmufqBzPBwCvYvQ',
+ 'comment_count': int,
+ 'description': 'md5:acde3a73d3f133fc97e837a9f76b53b7',
+ 'duration': 170,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:5',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1405513526,
+ 'upload_date': '20140716',
+ 'uploader': 'CBS Mornings',
+ 'uploader_id': '@CBSMornings',
+ 'uploader_url': 'https://www.youtube.com/@CBSMornings',
+ 'view_count': int,
},
- {
- # The following content has been identified by the YouTube community
- # as inappropriate or offensive to some audiences.
- 'url': 'https://www.youtube.com/watch?v=6SJNVb0GnPI',
- 'info_dict': {
- 'id': '6SJNVb0GnPI',
- 'ext': 'mp4',
- 'title': 'Race Differences in Intelligence',
- 'description': 'md5:5d161533167390427a1f8ee89a1fc6f1',
- 'duration': 965,
- 'upload_date': '20140124',
- },
- 'params': {
- 'skip_download': True,
- },
- 'skip': 'This video has been removed for violating YouTube\'s policy on hate speech.',
+ 'skip': 'Age-restricted; requires authentication',
+ }, {
+ # restricted location
+ # https://github.com/ytdl-org/youtube-dl/issues/28685
+ 'url': 'cBvYw8_A0vQ',
+ 'info_dict': {
+ 'id': 'cBvYw8_A0vQ',
+ 'ext': 'mp4',
+ 'title': '4K Ueno Okachimachi Street Scenes 上野御徒町歩き',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Travel & Events'],
+ 'channel': 'Walk around Japan',
+ 'channel_follower_count': int,
+ 'channel_id': 'UC3o_t8PzBmXf5S9b7GLx1Mw',
+ 'channel_url': 'https://www.youtube.com/channel/UC3o_t8PzBmXf5S9b7GLx1Mw',
+ 'description': 'md5:ea770e474b7cd6722b4c95b833c03630',
+ 'duration': 1456,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:5',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1605884416,
+ 'upload_date': '20201120',
+ 'uploader': 'Walk around Japan',
+ 'uploader_id': '@walkaroundjapan7124',
+ 'uploader_url': 'https://www.youtube.com/@walkaroundjapan7124',
+ 'view_count': int,
},
- {
- # itag 212
- 'url': '1t24XAntNCY',
- 'only_matching': True,
+ 'params': {'skip_download': True},
+ }, {
+ # Has multiple audio streams
+ 'url': 'WaOKSUlf4TM',
+ 'only_matching': True,
+ }, {
+ # Requires Premium: has format 141 when requested using YTM url
+ 'url': 'https://music.youtube.com/watch?v=XclachpHxis',
+ 'only_matching': True,
+ }, {
+ # multiple subtitles with same lang_code
+ 'url': 'https://www.youtube.com/watch?v=wsQiKKfKxug',
+ 'only_matching': True,
+ }, {
+ # Force use android client fallback
+ 'url': 'https://www.youtube.com/watch?v=YOelRv7fMxY',
+ 'info_dict': {
+ 'id': 'YOelRv7fMxY',
+ 'ext': '3gp',
+ 'title': 'DIGGING A SECRET TUNNEL Part 1',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Entertainment'],
+ 'channel': 'colinfurze',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCp68_FLety0O-n9QU6phsgw',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCp68_FLety0O-n9QU6phsgw',
+ 'chapters': 'count:4',
+ 'comment_count': int,
+ 'description': 'md5:5d5991195d599b56cd0c4148907eec50',
+ 'duration': 596,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:6',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1624546829,
+ 'upload_date': '20210624',
+ 'uploader': 'colinfurze',
+ 'uploader_id': '@colinfurze',
+ 'uploader_url': 'https://www.youtube.com/@colinfurze',
+ 'view_count': int,
},
- {
- # geo restricted to JP
- 'url': 'sJL6WA-aGkQ',
- 'only_matching': True,
+ 'params': {
+ 'extractor_args': {'youtube': {'player_client': ['android']}},
+ 'format': '17', # 3gp format available on android
+ 'skip_download': True,
},
- {
- 'url': 'https://invidio.us/watch?v=BaW_jenozKc',
- 'only_matching': True,
+ 'skip': 'Android client broken',
+ }, {
+ # Skip download of additional client configs (remix client config in this case)
+ 'url': 'https://music.youtube.com/watch?v=MgNrAu2pzNs',
+ 'only_matching': True,
+ 'params': {'extractor_args': {'youtube': {'player_skip': ['configs']}}},
+ }, {
+ # shorts
+ 'url': 'https://www.youtube.com/shorts/BGQWPY4IigY',
+ 'only_matching': True,
+ }, {
+ 'note': 'Storyboards',
+ 'url': 'https://www.youtube.com/watch?v=5KLPxDtMqe8',
+ 'info_dict': {
+ 'id': '5KLPxDtMqe8',
+ 'ext': 'mhtml',
+ 'title': 'Your Brain is Plastic',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Education'],
+ 'channel': 'SciShow',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCZYTClx2T1of7BRZ86-8fow',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCZYTClx2T1of7BRZ86-8fow',
+ 'chapters': 'count:5',
+ 'comment_count': int,
+ 'description': 'md5:89cd86034bdb5466cd87c6ba206cd2bc',
+ 'duration': 248,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:12',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1395685455,
+ 'upload_date': '20140324',
+ 'uploader': 'SciShow',
+ 'uploader_id': '@SciShow',
+ 'uploader_url': 'https://www.youtube.com/@SciShow',
+ 'view_count': int,
},
- {
- 'url': 'https://redirect.invidious.io/watch?v=BaW_jenozKc',
- 'only_matching': True,
+ 'params': {
+ 'format': 'mhtml',
+ 'skip_download': True,
},
- {
- # from https://nitter.pussthecat.org/YouTube/status/1360363141947944964#m
- 'url': 'https://redirect.invidious.io/Yh0AhrY9GjA',
- 'only_matching': True,
+ }, {
+ # Ensure video upload_date is in UTC timezone (video was uploaded 1641170939)
+ 'url': 'https://www.youtube.com/watch?v=2NUZ8W2llS4',
+ 'info_dict': {
+ 'id': '2NUZ8W2llS4',
+ 'ext': 'mp4',
+ 'title': 'The NP that test your phone performance 🙂',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Gaming'],
+ 'channel': 'Leon Nguyen',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCRqNBSOHgilHfAczlUmlWHA',
+ 'channel_url': 'https://www.youtube.com/channel/UCRqNBSOHgilHfAczlUmlWHA',
+ 'comment_count': int,
+ 'description': 'md5:144494b24d4f9dfacb97c1bbef5de84d',
+ 'duration': 21,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:23',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1641170939,
+ 'upload_date': '20220103',
+ 'uploader': 'Leon Nguyen',
+ 'uploader_id': '@LeonNguyen',
+ 'uploader_url': 'https://www.youtube.com/@LeonNguyen',
+ 'view_count': int,
},
- {
- # DRM protected
- 'url': 'https://www.youtube.com/watch?v=s7_qI6_mIXc',
- 'only_matching': True,
+ 'params': {'skip_download': True},
+ }, {
+ # date text is premiered video, ensure upload date in UTC (published 1641172509)
+ 'url': 'https://www.youtube.com/watch?v=mzZzzBU6lrM',
+ 'info_dict': {
+ 'id': 'mzZzzBU6lrM',
+ 'ext': 'mp4',
+ 'title': 'I Met GeorgeNotFound In Real Life...',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Entertainment'],
+ 'channel': 'Quackity',
+ 'channel_follower_count': int,
+ 'channel_id': 'UC_8NknAFiyhOUaZqHR3lq3Q',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UC_8NknAFiyhOUaZqHR3lq3Q',
+ 'comment_count': int,
+ 'description': 'md5:42e72df3d4d5965903a2b9359c3ccd25',
+ 'duration': 955,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'release_date': '20220103',
+ 'release_timestamp': 1641172509,
+ 'tags': 'count:26',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1641172509,
+ 'upload_date': '20220103',
+ 'uploader': 'Quackity',
+ 'uploader_id': '@Quackity',
+ 'uploader_url': 'https://www.youtube.com/@Quackity',
+ 'view_count': int,
},
- {
- # Video with unsupported adaptive stream type formats
- 'url': 'https://www.youtube.com/watch?v=Z4Vy8R84T1U',
- 'info_dict': {
- 'id': 'Z4Vy8R84T1U',
- 'ext': 'mp4',
- 'title': 'saman SMAN 53 Jakarta(Sancety) opening COFFEE4th at SMAN 53 Jakarta',
- 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
- 'duration': 433,
- 'upload_date': '20130923',
- 'formats': 'maxcount:10',
- },
- 'params': {
- 'skip_download': True,
- 'youtube_include_dash_manifest': False,
- },
- 'skip': 'not actual anymore',
+ 'params': {'skip_download': True},
+ }, {
+ # continuous livestream.
+ # Upload date was 2022-07-12T05:12:29-07:00, while stream start is 2022-07-12T15:59:30+00:00
+ 'url': 'https://www.youtube.com/watch?v=jfKfPfyJRdk',
+ 'info_dict': {
+ 'id': 'jfKfPfyJRdk',
+ 'ext': 'mp4',
+ 'title': str,
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Music'],
+ 'channel': 'Lofi Girl',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCSJ4gkVC6NrvII8umztf0Ow',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCSJ4gkVC6NrvII8umztf0Ow',
+ 'concurrent_view_count': int,
+ 'description': 'md5:48841fcfc1be6131d729fa7b4a7784cb',
+ 'like_count': int,
+ 'live_status': 'is_live',
+ 'media_type': 'livestream',
+ 'playable_in_embed': True,
+ 'release_date': '20220712',
+ 'release_timestamp': 1657641570,
+ 'tags': 'count:32',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1657627949,
+ 'upload_date': '20220712',
+ 'uploader': 'Lofi Girl',
+ 'uploader_id': '@LofiGirl',
+ 'uploader_url': 'https://www.youtube.com/@LofiGirl',
+ 'view_count': int,
},
- {
- # Youtube Music Auto-generated description
- # TODO: fix metadata extraction
- 'url': 'https://music.youtube.com/watch?v=MgNrAu2pzNs',
- 'info_dict': {
- 'id': 'MgNrAu2pzNs',
- 'ext': 'mp4',
- 'title': 'Voyeur Girl',
- 'description': 'md5:7ae382a65843d6df2685993e90a8628f',
- 'upload_date': '20190312',
- 'artists': ['Stephen'],
- 'creators': ['Stephen'],
- 'track': 'Voyeur Girl',
- 'album': 'it\'s too much love to know my dear',
- 'release_date': '20190313',
- 'alt_title': 'Voyeur Girl',
- 'view_count': int,
- 'playable_in_embed': True,
- 'like_count': int,
- 'categories': ['Music'],
- 'channel_url': 'https://www.youtube.com/channel/UC-pWHpBjdGG69N9mM2auIAA',
- 'channel': 'Stephen', # TODO: should be "Stephen - Topic"
- 'uploader': 'Stephen',
- 'availability': 'public',
- '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',
- 'channel_follower_count': int,
- 'media_type': 'video',
- },
- 'params': {
- 'skip_download': True,
- },
+ 'params': {'skip_download': True},
+ }, {
+ 'url': 'https://www.youtube.com/watch?v=tjjjtzRLHvA',
+ 'info_dict': {
+ 'id': 'tjjjtzRLHvA',
+ 'ext': 'mp4',
+ 'title': 'ハッシュタグ無し };if window.ytcsi',
+ 'age_limit': 0,
+ 'availability': 'unlisted',
+ 'categories': ['Music'],
+ 'channel': 'Lesmiscore',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCdqltm_7iv1Vs6kp6Syke5A',
+ 'channel_url': 'https://www.youtube.com/channel/UCdqltm_7iv1Vs6kp6Syke5A',
+ 'description': '',
+ 'duration': 6,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'short',
+ 'playable_in_embed': True,
+ 'tags': [],
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1648005313,
+ 'upload_date': '20220323',
+ 'uploader': 'Lesmiscore',
+ 'uploader_id': '@lesmiscore',
+ 'uploader_url': 'https://www.youtube.com/@lesmiscore',
+ 'view_count': int,
},
- {
- 'url': 'https://www.youtubekids.com/watch?v=3b8nCWDgZ6Q',
- 'only_matching': True,
+ 'params': {'skip_download': True},
+ }, {
+ # Prefer primary title+description language metadata by default
+ # Do not prefer translated description if primary is empty
+ 'url': 'https://www.youtube.com/watch?v=el3E4MbxRqQ',
+ 'info_dict': {
+ 'id': 'el3E4MbxRqQ',
+ 'ext': 'mp4',
+ 'title': 'dlp test video 2 - primary sv no desc',
+ 'age_limit': 0,
+ 'availability': 'unlisted',
+ 'categories': ['People & Blogs'],
+ 'channel': 'cole-dlp-test-acc',
+ 'channel_id': 'UCiu-3thuViMebBjw_5nWYrA',
+ 'channel_url': 'https://www.youtube.com/channel/UCiu-3thuViMebBjw_5nWYrA',
+ 'description': '',
+ 'duration': 5,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': [],
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1662677394,
+ 'upload_date': '20220908',
+ 'uploader': 'cole-dlp-test-acc',
+ 'uploader_id': '@coletdjnz',
+ 'uploader_url': 'https://www.youtube.com/@coletdjnz',
+ 'view_count': int,
},
- {
- # invalid -> valid video id redirection
- 'url': 'DJztXj2GPfl',
- 'info_dict': {
- 'id': 'DJztXj2GPfk',
- 'ext': 'mp4',
- 'title': 'Panjabi MC - Mundian To Bach Ke (The Dictator Soundtrack)',
- 'description': 'md5:bf577a41da97918e94fa9798d9228825',
- 'upload_date': '20090125',
- 'artist': 'Panjabi MC',
- 'track': 'Beware of the Boys (Mundian to Bach Ke) - Motivo Hi-Lectro Remix',
- 'album': 'Beware of the Boys (Mundian To Bach Ke)',
- },
- 'params': {
- 'skip_download': True,
- },
- 'skip': 'Video unavailable',
+ 'params': {'skip_download': True},
+ }, {
+ # Extractor argument: prefer translated title+description
+ 'url': 'https://www.youtube.com/watch?v=gHKT4uU8Zng',
+ 'info_dict': {
+ 'id': 'gHKT4uU8Zng',
+ 'ext': 'mp4',
+ 'title': 'dlp test video title primary (en-GB)',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['People & Blogs'],
+ 'channel': 'cole-dlp-test-acc',
+ 'channel_id': 'UCiu-3thuViMebBjw_5nWYrA',
+ 'channel_url': 'https://www.youtube.com/channel/UCiu-3thuViMebBjw_5nWYrA',
+ 'description': 'md5:e8c098ba19888e08554f960ffbf6f90e',
+ 'duration': 5,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': [],
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1659073275,
+ 'upload_date': '20220729',
+ 'uploader': 'cole-dlp-test-acc',
+ 'uploader_id': '@coletdjnz',
+ 'uploader_url': 'https://www.youtube.com/@coletdjnz',
+ 'view_count': int,
},
- {
- # empty description results in an empty string
- 'url': 'https://www.youtube.com/watch?v=x41yOUIvK2k',
- 'info_dict': {
- 'id': 'x41yOUIvK2k',
- 'ext': 'mp4',
- 'title': 'IMG 3456',
- 'description': '',
- 'upload_date': '20170613',
- 'view_count': int,
- 'thumbnail': 'https://i.ytimg.com/vi_webp/x41yOUIvK2k/maxresdefault.webp',
- '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': 'l\'Or Vert asbl',
- 'channel_follower_count': int,
- 'uploader': 'l\'Or Vert asbl',
- 'uploader_url': 'https://www.youtube.com/@ElevageOrVert',
- 'uploader_id': '@ElevageOrVert',
- 'timestamp': 1497343210,
- 'media_type': 'video',
- },
- 'params': {
- 'skip_download': True,
- },
+ 'params': {
+ 'extractor_args': {'youtube': {'lang': ['fr']}},
+ 'skip_download': True,
},
- {
- # with '};' inside yt initial data (see [1])
- # see [2] for an example with '};' inside ytInitialPlayerResponse
- # 1. https://github.com/ytdl-org/youtube-dl/issues/27093
- # 2. https://github.com/ytdl-org/youtube-dl/issues/27216
- 'url': 'https://www.youtube.com/watch?v=CHqg6qOn4no',
- 'info_dict': {
- 'id': 'CHqg6qOn4no',
- 'ext': 'mp4',
- 'title': 'Part 77 Sort a list of simple types in c#',
- 'description': 'md5:b8746fa52e10cdbf47997903f13b20dc',
- 'upload_date': '20130831',
- 'channel_id': 'UCCTVrRB5KpIiK6V2GGVsR1Q',
- 'like_count': int,
- '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',
- 'comment_count': int,
- 'channel_follower_count': int,
- 'chapters': list,
- 'uploader': 'kudvenkat',
- 'uploader_url': 'https://www.youtube.com/@Csharp-video-tutorialsBlogspot',
- 'uploader_id': '@Csharp-video-tutorialsBlogspot',
- 'channel_is_verified': True,
- 'heatmap': 'count:100',
- 'timestamp': 1377976349,
- 'media_type': 'video',
- },
- 'params': {
- 'skip_download': True,
- },
+ 'expected_warnings': [r'Preferring "fr" translated fields'],
+ }, {
+ 'note': '6 channel audio',
+ 'url': 'https://www.youtube.com/watch?v=zgdo7-RRjgo',
+ 'only_matching': True,
+ }, {
+ 'note': 'Multiple HLS formats with same itag',
+ 'url': 'https://www.youtube.com/watch?v=kX3nB4PpJko',
+ 'info_dict': {
+ 'id': 'kX3nB4PpJko',
+ 'ext': 'mp4',
+ 'title': 'Last To Take Hand Off Jet, Keeps It!',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Entertainment'],
+ 'channel': 'MrBeast',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCX6OQ3DkcsbYNE6H8uQQuVA',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA',
+ 'comment_count': int,
+ 'description': 'md5:42731fced13eff2c48c099fbb5c1b3a0',
+ 'duration': 937,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': [],
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1668286800,
+ 'upload_date': '20221112',
+ 'uploader': 'MrBeast',
+ 'uploader_id': '@MrBeast',
+ 'uploader_url': 'https://www.youtube.com/@MrBeast',
+ 'view_count': int,
},
- {
- # another example of '};' in ytInitialData
- 'url': 'https://www.youtube.com/watch?v=gVfgbahppCY',
- 'only_matching': True,
+ 'params': {
+ 'extractor_args': {'youtube': {'player_client': ['ios']}},
+ 'format': '233-1',
+ 'skip_download': True,
},
- {
- 'url': 'https://www.youtube.com/watch_popup?v=63RmMXCd_bQ',
- 'only_matching': True,
+ 'skip': 'PO Token Required',
+ }, {
+ 'note': 'Audio formats with Dynamic Range Compression',
+ 'url': 'https://www.youtube.com/watch?v=Tq92D6wQ1mg',
+ 'info_dict': {
+ 'id': 'Tq92D6wQ1mg',
+ 'ext': 'webm',
+ 'title': '[MMD] Adios - EVERGLOW [+Motion DL]',
+ 'age_limit': 18,
+ 'availability': 'needs_auth',
+ 'categories': ['Entertainment'],
+ 'channel': 'Projekt Melody',
+ 'channel_follower_count': int,
+ 'channel_id': 'UC1yoRdFoFJaCY-AGfD9W0wQ',
+ 'channel_url': 'https://www.youtube.com/channel/UC1yoRdFoFJaCY-AGfD9W0wQ',
+ 'comment_count': int,
+ 'description': 'md5:17eccca93a786d51bc67646756894066',
+ 'duration': 106,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:5',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1577508724,
+ 'upload_date': '20191228',
+ 'uploader': 'Projekt Melody',
+ 'uploader_id': '@ProjektMelody',
+ 'uploader_url': 'https://www.youtube.com/@ProjektMelody',
+ 'view_count': int,
},
- {
- # https://github.com/ytdl-org/youtube-dl/pull/28094
- 'url': 'OtqTfy26tG0',
- 'info_dict': {
- 'id': 'OtqTfy26tG0',
- 'ext': 'mp4',
- 'title': 'Burn Out',
- 'description': 'md5:8d07b84dcbcbfb34bc12a56d968b6131',
- 'upload_date': '20141120',
- 'artist': 'The Cinematic Orchestra',
- 'track': 'Burn Out',
- 'album': 'Every Day',
- '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,
- 'channel_follower_count': int,
- 'uploader': 'The Cinematic Orchestra',
- 'comment_count': int,
- 'media_type': 'video',
- },
- 'params': {
- 'skip_download': True,
- },
+ 'params': {
+ 'extractor_args': {'youtube': {'player_client': ['tv_embedded']}},
+ 'format': '251-drc',
+ 'skip_download': True,
},
- {
- # controversial video, only works with bpctr when authenticated with cookies
- 'url': 'https://www.youtube.com/watch?v=nGC3D_FkCmg',
- 'only_matching': True,
+ 'skip': 'Age-restricted; requires authentication',
+ }, {
+ 'note': 'Support /live/ URL + media type for post-live content',
+ 'url': 'https://www.youtube.com/live/qVv6vCqciTM',
+ 'info_dict': {
+ 'id': 'qVv6vCqciTM',
+ 'ext': 'mp4',
+ 'title': '【 #インターネット女クリスマス 】3Dで歌ってはしゃぐインターネットの女たち【月ノ美兎/名取さな】',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Entertainment'],
+ 'channel': 'さなちゃんねる',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCIdEIHpS0TdkqRkHL5OkLtA',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCIdEIHpS0TdkqRkHL5OkLtA',
+ 'chapters': 'count:13',
+ 'comment_count': int,
+ 'description': 'md5:6aebf95cc4a1d731aebc01ad6cc9806d',
+ 'duration': 4438,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'was_live',
+ 'media_type': 'livestream',
+ 'playable_in_embed': True,
+ 'release_date': '20221223',
+ 'release_timestamp': 1671793345,
+ 'tags': 'count:6',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1671798112,
+ 'upload_date': '20221223',
+ 'uploader': 'さなちゃんねる',
+ 'uploader_id': '@sana_natori',
+ 'uploader_url': 'https://www.youtube.com/@sana_natori',
+ 'view_count': int,
},
- {
- # controversial video, requires bpctr/contentCheckOk
- 'url': 'https://www.youtube.com/watch?v=SZJvDhaSDnc',
- 'info_dict': {
- 'id': 'SZJvDhaSDnc',
- 'ext': 'mp4',
- 'title': 'San Diego teen commits suicide after bullying over embarrassing video',
- 'channel_id': 'UC-SJ6nODDmufqBzPBwCvYvQ',
- 'upload_date': '20140716',
- 'description': 'md5:acde3a73d3f133fc97e837a9f76b53b7',
- 'duration': 170,
- 'categories': ['News & Politics'],
- '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,
- 'channel_follower_count': int,
- 'uploader': 'CBS Mornings',
- 'uploader_url': 'https://www.youtube.com/@CBSMornings',
- 'uploader_id': '@CBSMornings',
- 'comment_count': int,
- 'channel_is_verified': True,
- 'timestamp': 1405513526,
- },
- 'skip': 'Age-restricted; requires authentication',
+ 'params': {'skip_download': True},
+ }, {
+ # Fallbacks when webpage and web client is unavailable
+ 'url': 'https://www.youtube.com/watch?v=wSSmNUl9Snw',
+ 'info_dict': {
+ 'id': 'wSSmNUl9Snw',
+ 'ext': 'webm',
+ 'title': 'The Computer Hack That Saved Apollo 14',
+ 'age_limit': 0,
+ # 'availability': 'public',
+ # 'categories': ['Science & Technology'],
+ 'channel': 'Scott Manley',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCxzC4EngIsMrPmbm6Nxvb-A',
+ 'channel_is_verified': True,
+ 'channel_url': 'https://www.youtube.com/channel/UCxzC4EngIsMrPmbm6Nxvb-A',
+ 'chapters': 'count:2',
+ 'comment_count': int,
+ 'description': 'md5:f4bed7b200404b72a394c2f97b782c02',
+ 'duration': 682,
+ 'heatmap': 'count:100',
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:8',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1504198713,
+ 'upload_date': '20170831',
+ 'uploader': 'Scott Manley',
+ 'uploader_id': '@scottmanley',
+ 'uploader_url': 'https://www.youtube.com/@scottmanley',
+ 'view_count': int,
},
- {
- # restricted location, https://github.com/ytdl-org/youtube-dl/issues/28685
- 'url': 'cBvYw8_A0vQ',
- 'info_dict': {
- 'id': 'cBvYw8_A0vQ',
- 'ext': 'mp4',
- 'title': '4K Ueno Okachimachi Street Scenes 上野御徒町歩き',
- 'description': 'md5:ea770e474b7cd6722b4c95b833c03630',
- 'upload_date': '20201120',
- '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/cBvYw8_A0vQ/hqdefault.jpg',
- 'age_limit': 0,
- 'availability': 'public',
- 'channel_url': 'https://www.youtube.com/channel/UC3o_t8PzBmXf5S9b7GLx1Mw',
- 'live_status': 'not_live',
- 'playable_in_embed': True,
- 'channel_follower_count': int,
- 'uploader': 'Walk around Japan',
- 'uploader_url': 'https://www.youtube.com/@walkaroundjapan7124',
- 'uploader_id': '@walkaroundjapan7124',
- 'timestamp': 1605884416,
- 'media_type': 'video',
- },
- 'params': {
- 'skip_download': True,
- },
- }, {
- # Has multiple audio streams
- 'url': 'WaOKSUlf4TM',
- 'only_matching': True,
- }, {
- # Requires Premium: has format 141 when requested using YTM url
- 'url': 'https://music.youtube.com/watch?v=XclachpHxis',
- 'only_matching': True,
- }, {
- # multiple subtitles with same lang_code
- 'url': 'https://www.youtube.com/watch?v=wsQiKKfKxug',
- 'only_matching': True,
- }, {
- # Force use android client fallback
- 'url': 'https://www.youtube.com/watch?v=YOelRv7fMxY',
- 'info_dict': {
- 'id': 'YOelRv7fMxY',
- 'title': 'DIGGING A SECRET TUNNEL Part 1',
- 'ext': '3gp',
- 'upload_date': '20210624',
- 'channel_id': 'UCp68_FLety0O-n9QU6phsgw',
- 'channel_url': r're:https?://(?:www\.)?youtube\.com/channel/UCp68_FLety0O-n9QU6phsgw',
- 'description': 'md5:5d5991195d599b56cd0c4148907eec50',
- 'duration': 596,
- 'categories': ['Entertainment'],
- '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,
- 'channel_follower_count': int,
- 'chapters': list,
- 'uploader': 'colinfurze',
- 'uploader_url': 'https://www.youtube.com/@colinfurze',
- 'uploader_id': '@colinfurze',
- 'comment_count': int,
- 'channel_is_verified': True,
- 'heatmap': 'count:100',
- },
- 'params': {
- 'format': '17', # 3gp format available on android
- 'extractor_args': {'youtube': {'player_client': ['android']}},
- },
- 'skip': 'android client broken',
+ 'params': {
+ 'extractor_args': {'youtube': {
+ 'player_client': ['ios'],
+ 'player_skip': ['webpage'],
+ }},
+ 'skip_download': True,
},
- {
- # Skip download of additional client configs (remix client config in this case)
- 'url': 'https://music.youtube.com/watch?v=MgNrAu2pzNs',
- 'only_matching': True,
- 'params': {
- 'extractor_args': {'youtube': {'player_skip': ['configs']}},
- },
- }, {
- # shorts
- 'url': 'https://www.youtube.com/shorts/BGQWPY4IigY',
- 'only_matching': True,
- }, {
- 'note': 'Storyboards',
- 'url': 'https://www.youtube.com/watch?v=5KLPxDtMqe8',
- 'info_dict': {
- 'id': '5KLPxDtMqe8',
- 'ext': 'mhtml',
- 'format_id': 'sb0',
- 'title': 'Your Brain is Plastic',
- 'description': 'md5:89cd86034bdb5466cd87c6ba206cd2bc',
- 'upload_date': '20140324',
- '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',
- 'availability': 'public',
- 'channel': 'SciShow',
- 'live_status': 'not_live',
- 'duration': 248,
- 'categories': ['Education'],
- 'age_limit': 0,
- 'channel_follower_count': int,
- 'chapters': list,
- 'uploader': 'SciShow',
- 'uploader_url': 'https://www.youtube.com/@SciShow',
- 'uploader_id': '@SciShow',
- 'comment_count': int,
- 'channel_is_verified': True,
- 'heatmap': 'count:100',
- 'timestamp': 1395685455,
- 'media_type': 'video',
- }, 'params': {'format': 'mhtml', 'skip_download': True},
- }, {
- # Ensure video upload_date is in UTC timezone (video was uploaded 1641170939)
- 'url': 'https://www.youtube.com/watch?v=2NUZ8W2llS4',
- 'info_dict': {
- 'id': '2NUZ8W2llS4',
- 'ext': 'mp4',
- 'title': 'The NP that test your phone performance 🙂',
- 'description': 'md5:144494b24d4f9dfacb97c1bbef5de84d',
- 'channel_id': 'UCRqNBSOHgilHfAczlUmlWHA',
- 'channel_url': 'https://www.youtube.com/channel/UCRqNBSOHgilHfAczlUmlWHA',
- 'duration': 21,
- 'view_count': int,
- 'age_limit': 0,
- 'categories': ['Gaming'],
- 'tags': 'count:23',
- 'playable_in_embed': True,
- 'live_status': 'not_live',
- 'upload_date': '20220103',
- 'like_count': int,
- 'availability': 'public',
- 'channel': 'Leon Nguyen',
- 'thumbnail': 'https://i.ytimg.com/vi_webp/2NUZ8W2llS4/maxresdefault.webp',
- 'comment_count': int,
- 'channel_follower_count': int,
- 'uploader': 'Leon Nguyen',
- 'uploader_url': 'https://www.youtube.com/@LeonNguyen',
- 'uploader_id': '@LeonNguyen',
- 'heatmap': 'count:100',
- 'timestamp': 1641170939,
- 'media_type': 'video',
- },
- }, {
- # date text is premiered video, ensure upload date in UTC (published 1641172509)
- 'url': 'https://www.youtube.com/watch?v=mzZzzBU6lrM',
- 'info_dict': {
- 'id': 'mzZzzBU6lrM',
- 'ext': 'mp4',
- 'title': 'I Met GeorgeNotFound In Real Life...',
- 'description': 'md5:978296ec9783a031738b684d4ebf302d',
- 'channel_id': 'UC_8NknAFiyhOUaZqHR3lq3Q',
- 'channel_url': 'https://www.youtube.com/channel/UC_8NknAFiyhOUaZqHR3lq3Q',
- 'duration': 955,
- 'view_count': int,
- 'age_limit': 0,
- 'categories': ['Entertainment'],
- 'tags': 'count:26',
- 'playable_in_embed': True,
- 'live_status': 'not_live',
- 'release_timestamp': 1641172509,
- 'release_date': '20220103',
- 'upload_date': '20220103',
- 'like_count': int,
- 'availability': 'public',
- 'channel': 'Quackity',
- 'thumbnail': 'https://i.ytimg.com/vi/mzZzzBU6lrM/maxresdefault.jpg',
- 'channel_follower_count': int,
- 'uploader': 'Quackity',
- 'uploader_id': '@Quackity',
- 'uploader_url': 'https://www.youtube.com/@Quackity',
- 'comment_count': int,
- 'channel_is_verified': True,
- 'heatmap': 'count:100',
- 'timestamp': 1641172509,
- 'media_type': 'video',
- },
+ 'skip': 'PO Token Required',
+ }, {
+ # uploader_id has non-ASCII characters that are percent-encoded in YT's JSON
+ # https://github.com/yt-dlp/yt-dlp/pull/11818
+ 'url': 'https://www.youtube.com/shorts/18NGQq7p3LY',
+ 'info_dict': {
+ 'id': '18NGQq7p3LY',
+ 'ext': 'mp4',
+ 'title': '아이브 이서 장원영 리즈 삐끼삐끼 챌린지',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['People & Blogs'],
+ 'channel': 'ㅇㅇ',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCC25oTm2J7ZVoi5TngOHg9g',
+ 'channel_url': 'https://www.youtube.com/channel/UCC25oTm2J7ZVoi5TngOHg9g',
+ 'description': '',
+ 'duration': 3,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'short',
+ 'playable_in_embed': True,
+ 'tags': [],
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1724306170,
+ 'upload_date': '20240822',
+ 'uploader': 'ㅇㅇ',
+ 'uploader_id': '@으아-v1k',
+ 'uploader_url': 'https://www.youtube.com/@으아-v1k',
+ 'view_count': int,
},
- { # continuous livestream.
- # Upload date was 2022-07-12T05:12:29-07:00, while stream start is 2022-07-12T15:59:30+00:00
- 'url': 'https://www.youtube.com/watch?v=jfKfPfyJRdk',
- 'info_dict': {
- 'id': 'jfKfPfyJRdk',
- 'ext': 'mp4',
- 'channel_id': 'UCSJ4gkVC6NrvII8umztf0Ow',
- 'like_count': int,
- 'uploader': 'Lofi Girl',
- 'categories': ['Music'],
- 'concurrent_view_count': int,
- 'playable_in_embed': True,
- 'timestamp': 1657627949,
- 'release_date': '20220712',
- 'channel_url': 'https://www.youtube.com/channel/UCSJ4gkVC6NrvII8umztf0Ow',
- 'description': 'md5:452d5c82f72bb7e62a4e0297c3f01c23',
- 'age_limit': 0,
- 'thumbnail': 'https://i.ytimg.com/vi/jfKfPfyJRdk/maxresdefault.jpg',
- 'release_timestamp': 1657641570,
- 'uploader_url': 'https://www.youtube.com/@LofiGirl',
- 'channel_follower_count': int,
- 'channel_is_verified': True,
- 'title': r're:^lofi hip hop radio 📚 beats to relax/study to',
- 'view_count': int,
- 'live_status': 'is_live',
- 'media_type': 'livestream',
- 'tags': 'count:32',
- 'channel': 'Lofi Girl',
- 'availability': 'public',
- 'upload_date': '20220712',
- 'uploader_id': '@LofiGirl',
- },
- 'params': {'skip_download': True},
- }, {
- 'url': 'https://www.youtube.com/watch?v=tjjjtzRLHvA',
- 'info_dict': {
- 'id': 'tjjjtzRLHvA',
- 'ext': 'mp4',
- 'title': 'ハッシュタグ無し };if window.ytcsi',
- 'upload_date': '20220323',
- 'like_count': int,
- 'availability': 'unlisted',
- 'channel': 'Lesmiscore',
- 'thumbnail': r're:^https?://.*\.jpg',
- 'age_limit': 0,
- 'categories': ['Music'],
- 'view_count': int,
- 'description': '',
- 'channel_url': 'https://www.youtube.com/channel/UCdqltm_7iv1Vs6kp6Syke5A',
- 'channel_id': 'UCdqltm_7iv1Vs6kp6Syke5A',
- 'live_status': 'not_live',
- 'playable_in_embed': True,
- 'channel_follower_count': int,
- 'duration': 6,
- 'tags': [],
- 'uploader_id': '@lesmiscore',
- 'uploader': 'Lesmiscore',
- 'uploader_url': 'https://www.youtube.com/@lesmiscore',
- 'timestamp': 1648005313,
- 'media_type': 'short',
- },
- }, {
- # Prefer primary title+description language metadata by default
- # Do not prefer translated description if primary is empty
- 'url': 'https://www.youtube.com/watch?v=el3E4MbxRqQ',
- 'info_dict': {
- 'id': 'el3E4MbxRqQ',
- 'ext': 'mp4',
- 'title': 'dlp test video 2 - primary sv no desc',
- 'description': '',
- 'channel': 'cole-dlp-test-acc',
- 'tags': [],
- 'view_count': int,
- 'channel_url': 'https://www.youtube.com/channel/UCiu-3thuViMebBjw_5nWYrA',
- 'like_count': int,
- 'playable_in_embed': True,
- 'availability': 'unlisted',
- 'thumbnail': r're:^https?://.*\.jpg',
- 'age_limit': 0,
- 'duration': 5,
- 'live_status': 'not_live',
- 'upload_date': '20220908',
- 'categories': ['People & Blogs'],
- 'channel_id': 'UCiu-3thuViMebBjw_5nWYrA',
- 'uploader_url': 'https://www.youtube.com/@coletdjnz',
- 'uploader_id': '@coletdjnz',
- 'uploader': 'cole-dlp-test-acc',
- 'timestamp': 1662677394,
- 'media_type': 'video',
- },
- 'params': {'skip_download': True},
- }, {
- # Extractor argument: prefer translated title+description
- 'url': 'https://www.youtube.com/watch?v=gHKT4uU8Zng',
- 'info_dict': {
- 'id': 'gHKT4uU8Zng',
- 'ext': 'mp4',
- 'channel': 'cole-dlp-test-acc',
- 'tags': [],
- 'duration': 5,
- 'live_status': 'not_live',
- 'channel_id': 'UCiu-3thuViMebBjw_5nWYrA',
- 'upload_date': '20220729',
- 'view_count': int,
- 'categories': ['People & Blogs'],
- 'thumbnail': r're:^https?://.*\.jpg',
- 'title': 'dlp test video title translated (fr)',
- 'availability': 'public',
- 'age_limit': 0,
- 'description': 'dlp test video description translated (fr)',
- 'playable_in_embed': True,
- 'channel_url': 'https://www.youtube.com/channel/UCiu-3thuViMebBjw_5nWYrA',
- 'uploader_url': 'https://www.youtube.com/@coletdjnz',
- 'uploader_id': '@coletdjnz',
- 'uploader': 'cole-dlp-test-acc',
- 'timestamp': 1659073275,
- 'like_count': int,
- 'media_type': 'video',
- },
- 'params': {'skip_download': True, 'extractor_args': {'youtube': {'lang': ['fr']}}},
- 'expected_warnings': [r'Preferring "fr" translated fields'],
- }, {
- 'note': '6 channel audio',
- 'url': 'https://www.youtube.com/watch?v=zgdo7-RRjgo',
- 'only_matching': True,
- }, {
- 'note': 'Multiple HLS formats with same itag',
- 'url': 'https://www.youtube.com/watch?v=kX3nB4PpJko',
- 'info_dict': {
- 'id': 'kX3nB4PpJko',
- 'ext': 'mp4',
- 'categories': ['Entertainment'],
- 'description': 'md5:e8031ff6e426cdb6a77670c9b81f6fa6',
- 'live_status': 'not_live',
- 'duration': 937,
- 'channel_follower_count': int,
- 'thumbnail': 'https://i.ytimg.com/vi_webp/kX3nB4PpJko/maxresdefault.webp',
- 'title': 'Last To Take Hand Off Jet, Keeps It!',
- 'channel': 'MrBeast',
- 'playable_in_embed': True,
- 'view_count': int,
- 'upload_date': '20221112',
- 'channel_url': 'https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA',
- 'age_limit': 0,
- 'availability': 'public',
- 'channel_id': 'UCX6OQ3DkcsbYNE6H8uQQuVA',
- 'like_count': int,
- 'tags': [],
- 'uploader': 'MrBeast',
- 'uploader_url': 'https://www.youtube.com/@MrBeast',
- 'uploader_id': '@MrBeast',
- 'comment_count': int,
- 'channel_is_verified': True,
- 'heatmap': 'count:100',
- 'media_type': 'video',
- },
- 'params': {'extractor_args': {'youtube': {'player_client': ['ios']}}, 'format': '233-1'},
- }, {
- 'note': 'Audio formats with Dynamic Range Compression',
- 'url': 'https://www.youtube.com/watch?v=Tq92D6wQ1mg',
- 'info_dict': {
- 'id': 'Tq92D6wQ1mg',
- 'ext': 'webm',
- 'title': '[MMD] Adios - EVERGLOW [+Motion DL]',
- 'channel_url': 'https://www.youtube.com/channel/UC1yoRdFoFJaCY-AGfD9W0wQ',
- 'channel_id': 'UC1yoRdFoFJaCY-AGfD9W0wQ',
- 'channel_follower_count': int,
- 'description': 'md5:17eccca93a786d51bc67646756894066',
- 'upload_date': '20191228',
- 'tags': ['mmd', 'dance', 'mikumikudance', 'kpop', 'vtuber'],
- 'playable_in_embed': True,
- 'like_count': int,
- 'categories': ['Entertainment'],
- 'thumbnail': 'https://i.ytimg.com/vi/Tq92D6wQ1mg/sddefault.jpg',
- 'age_limit': 18,
- 'channel': 'Projekt Melody',
- 'view_count': int,
- 'availability': 'needs_auth',
- 'comment_count': int,
- 'live_status': 'not_live',
- 'duration': 106,
- 'uploader': 'Projekt Melody',
- 'uploader_id': '@ProjektMelody',
- 'uploader_url': 'https://www.youtube.com/@ProjektMelody',
- 'timestamp': 1577508724,
- },
- 'params': {'extractor_args': {'youtube': {'player_client': ['tv_embedded']}}, 'format': '251-drc'},
- 'skip': 'Age-restricted; requires authentication',
+ 'params': {'skip_download': True},
+ }]
+ _WEBPAGE_TESTS = [{
+ # <object>
+ # https://github.com/ytdl-org/youtube-dl/pull/12696
+ 'url': 'http://www.improbable.com/2017/04/03/untrained-modern-youths-and-ancient-masters-in-selfie-portraits/',
+ 'info_dict': {
+ 'id': 'msN87y-iEx0',
+ 'ext': 'mp4',
+ 'title': 'Feynman: Mirrors FUN TO IMAGINE 6',
+ 'upload_date': '20080526',
+ 'description': 'md5:873c81d308b979f0e23ee7e620b312a3',
+ 'age_limit': 0,
+ 'tags': 'count:8',
+ 'channel_id': 'UCCeo--lls1vna5YJABWAcVA',
+ 'playable_in_embed': True,
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'like_count': int,
+ 'comment_count': int,
+ 'channel': 'Christopher Sykes',
+ 'live_status': 'not_live',
+ 'channel_url': 'https://www.youtube.com/channel/UCCeo--lls1vna5YJABWAcVA',
+ 'availability': 'public',
+ 'duration': 195,
+ 'view_count': int,
+ 'categories': ['Science & Technology'],
+ 'channel_follower_count': int,
+ 'uploader': 'Christopher Sykes',
+ 'uploader_url': 'https://www.youtube.com/@ChristopherSykesDocumentaries',
+ 'uploader_id': '@ChristopherSykesDocumentaries',
+ 'heatmap': 'count:100',
+ 'timestamp': 1211825920,
+ 'media_type': 'video',
},
- {
- 'note': 'Support /live/ URL + media type for post-live content',
- 'url': 'https://www.youtube.com/live/qVv6vCqciTM',
- 'info_dict': {
- 'id': 'qVv6vCqciTM',
- 'ext': 'mp4',
- 'age_limit': 0,
- 'comment_count': int,
- 'chapters': 'count:13',
- 'upload_date': '20221223',
- 'thumbnail': 'https://i.ytimg.com/vi/qVv6vCqciTM/maxresdefault.jpg',
- 'channel_url': 'https://www.youtube.com/channel/UCIdEIHpS0TdkqRkHL5OkLtA',
- 'like_count': int,
- 'release_date': '20221223',
- 'tags': ['Vtuber', '月ノ美兎', '名取さな', 'にじさんじ', 'クリスマス', '3D配信'],
- 'title': '【 #インターネット女クリスマス 】3Dで歌ってはしゃぐインターネットの女たち【月ノ美兎/名取さな】',
- 'view_count': int,
- 'playable_in_embed': True,
- 'duration': 4438,
- 'availability': 'public',
- 'channel_follower_count': int,
- 'channel_id': 'UCIdEIHpS0TdkqRkHL5OkLtA',
- 'categories': ['Entertainment'],
- 'live_status': 'was_live',
- 'media_type': 'livestream',
- 'release_timestamp': 1671793345,
- 'channel': 'さなちゃんねる',
- 'description': 'md5:6aebf95cc4a1d731aebc01ad6cc9806d',
- 'uploader': 'さなちゃんねる',
- 'uploader_url': 'https://www.youtube.com/@sana_natori',
- 'uploader_id': '@sana_natori',
- 'channel_is_verified': True,
- 'heatmap': 'count:100',
- 'timestamp': 1671798112,
- },
+ 'params': {'skip_download': True},
+ }, {
+ # <embed>
+ # https://github.com/ytdl-org/youtube-dl/commit/2b88feedf7993c24b03e0a7ff169a548794de70c
+ 'url': 'https://badzine.de/news/als-marc-zwiebler-taufik-hidayat-schlug',
+ 'info_dict': {
+ 'id': 'bSVcWOq397g',
+ 'ext': 'mp4',
+ 'title': 'TAUFIK TUNJUKKAN KELASNYA !!! : Taufik Hidayat VS Marc Zwiebler Canada Open 2011',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Sports'],
+ 'channel': 'Badminton Addict Id',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCfCpKOwQGUe2FUJzYNadQcQ',
+ 'channel_url': 'https://www.youtube.com/channel/UCfCpKOwQGUe2FUJzYNadQcQ',
+ 'comment_count': int,
+ 'description': 'md5:2c3737da9a575f301a8380b4d60592a8',
+ 'duration': 756,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:9',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1621418412,
+ 'upload_date': '20210519',
+ 'uploader': 'Badminton Addict Id',
+ 'uploader_id': '@badmintonaddictid8958',
+ 'uploader_url': 'https://www.youtube.com/@badmintonaddictid8958',
+ 'view_count': int,
},
- {
- # Fallbacks when webpage and web client is unavailable
- 'url': 'https://www.youtube.com/watch?v=wSSmNUl9Snw',
- 'info_dict': {
- 'id': 'wSSmNUl9Snw',
- 'ext': 'mp4',
- # 'categories': ['Science & Technology'],
- 'view_count': int,
- 'chapters': 'count:2',
- 'channel': 'Scott Manley',
- 'like_count': int,
- 'age_limit': 0,
- # 'availability': 'public',
- 'channel_follower_count': int,
- 'live_status': 'not_live',
- 'upload_date': '20170831',
- 'duration': 682,
- 'tags': 'count:8',
- 'uploader_url': 'https://www.youtube.com/@scottmanley',
- 'description': 'md5:f4bed7b200404b72a394c2f97b782c02',
- 'uploader': 'Scott Manley',
- 'uploader_id': '@scottmanley',
- 'title': 'The Computer Hack That Saved Apollo 14',
- 'channel_id': 'UCxzC4EngIsMrPmbm6Nxvb-A',
- 'thumbnail': r're:^https?://.*\.webp',
- 'channel_url': 'https://www.youtube.com/channel/UCxzC4EngIsMrPmbm6Nxvb-A',
- 'playable_in_embed': True,
- 'comment_count': int,
- 'channel_is_verified': True,
- 'heatmap': 'count:100',
- 'media_type': 'video',
- },
- 'params': {
- 'extractor_args': {'youtube': {'player_client': ['ios'], 'player_skip': ['webpage']}},
- },
+ 'params': {'skip_download': True},
+ }, {
+ # WordPress Plugin: YouTube Video Importer
+ # https://github.com/ytdl-org/youtube-dl/commit/7deef1ba6743bf11247565e63ed7e31d2e8a9382
+ 'url': 'https://lothype.com/2025-chino-hills-hs-snare-quad-features-wgi2025-drumline/',
+ 'info_dict': {
+ 'id': 'lC21AX_pCfA',
+ 'ext': 'mp4',
+ 'title': '2025 Chino Hills HS Snare & Quad Features! #wgi2025 #drumline',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['Music'],
+ 'channel': 'DrumlineAV',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCqdfUdyiQOZMvW5PcTTYikQ',
+ 'channel_url': 'https://www.youtube.com/channel/UCqdfUdyiQOZMvW5PcTTYikQ',
+ 'comment_count': int,
+ 'description': '',
+ 'duration': 48,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'location': 'WESTMINSTER',
+ 'media_type': 'short',
+ 'playable_in_embed': True,
+ 'tags': 'count:72',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1739910835,
+ 'upload_date': '20250218',
+ 'uploader': 'DrumlineAV',
+ 'uploader_id': '@DrumlineAV',
+ 'uploader_url': 'https://www.youtube.com/@DrumlineAV',
+ 'view_count': int,
},
- {
- # uploader_id has non-ASCII characters that are percent-encoded in YT's JSON
- 'url': 'https://www.youtube.com/shorts/18NGQq7p3LY',
- 'info_dict': {
- 'id': '18NGQq7p3LY',
- 'ext': 'mp4',
- 'title': '아이브 이서 장원영 리즈 삐끼삐끼 챌린지',
- 'description': '',
- 'uploader': 'ㅇㅇ',
- 'uploader_id': '@으아-v1k',
- 'uploader_url': 'https://www.youtube.com/@으아-v1k',
- 'channel': 'ㅇㅇ',
- 'channel_id': 'UCC25oTm2J7ZVoi5TngOHg9g',
- 'channel_url': 'https://www.youtube.com/channel/UCC25oTm2J7ZVoi5TngOHg9g',
- 'thumbnail': r're:https?://.+/.+\.jpg',
- 'playable_in_embed': True,
- 'age_limit': 0,
- 'duration': 3,
- 'timestamp': 1724306170,
- 'upload_date': '20240822',
- 'availability': 'public',
- 'live_status': 'not_live',
- 'view_count': int,
- 'like_count': int,
- 'channel_follower_count': int,
- 'categories': ['People & Blogs'],
- 'tags': [],
- 'media_type': 'short',
- },
+ 'params': {'skip_download': True},
+ }, {
+ # lazyYT
+ # https://github.com/ytdl-org/youtube-dl/commit/65f3a228b16c55fee959eee055767a796479270f
+ 'url': 'https://rabota7.ru/%D0%91%D1%83%D1%85%D0%B3%D0%B0%D0%BB%D1%82%D0%B5%D1%80',
+ 'info_dict': {
+ 'id': 'DexR8_tTSsQ',
+ 'ext': 'mp4',
+ 'title': 'Работа бухгалтером в Москве',
+ 'age_limit': 0,
+ 'availability': 'public',
+ 'categories': ['People & Blogs'],
+ 'channel': 'Работа в Москве свежие вакансии',
+ 'channel_follower_count': int,
+ 'channel_id': 'UCG3qz_gefGaMiSBvmaxN5WQ',
+ 'channel_url': 'https://www.youtube.com/channel/UCG3qz_gefGaMiSBvmaxN5WQ',
+ 'description': 'md5:b779d3d70af4efda26cf62b76808c0e3',
+ 'duration': 42,
+ 'like_count': int,
+ 'live_status': 'not_live',
+ 'media_type': 'video',
+ 'playable_in_embed': True,
+ 'tags': 'count:7',
+ 'thumbnail': r're:https?://i\.ytimg\.com/.+',
+ 'timestamp': 1496398980,
+ 'upload_date': '20170602',
+ 'uploader': 'Работа в Москве свежие вакансии',
+ 'uploader_id': '@РаботавМосквесвежиевакансии',
+ 'uploader_url': 'https://www.youtube.com/@РаботавМосквесвежиевакансии',
+ 'view_count': int,
},
- ]
-
- _WEBPAGE_TESTS = [
- # YouTube <object> embed
- {
- 'url': 'http://www.improbable.com/2017/04/03/untrained-modern-youths-and-ancient-masters-in-selfie-portraits/',
- 'md5': '873c81d308b979f0e23ee7e620b312a3',
- 'info_dict': {
- 'id': 'msN87y-iEx0',
- 'ext': 'mp4',
- 'title': 'Feynman: Mirrors FUN TO IMAGINE 6',
- 'upload_date': '20080526',
- 'description': 'md5:873c81d308b979f0e23ee7e620b312a3',
- 'age_limit': 0,
- 'tags': ['feynman', 'mirror', 'science', 'physics', 'imagination', 'fun', 'cool', 'puzzle'],
- 'channel_id': 'UCCeo--lls1vna5YJABWAcVA',
- 'playable_in_embed': True,
- 'thumbnail': 'https://i.ytimg.com/vi/msN87y-iEx0/hqdefault.jpg',
- 'like_count': int,
- 'comment_count': int,
- 'channel': 'Christopher Sykes',
- 'live_status': 'not_live',
- 'channel_url': 'https://www.youtube.com/channel/UCCeo--lls1vna5YJABWAcVA',
- 'availability': 'public',
- 'duration': 195,
- 'view_count': int,
- 'categories': ['Science & Technology'],
- 'channel_follower_count': int,
- 'uploader': 'Christopher Sykes',
- 'uploader_url': 'https://www.youtube.com/@ChristopherSykesDocumentaries',
- 'uploader_id': '@ChristopherSykesDocumentaries',
- 'heatmap': 'count:100',
- 'timestamp': 1211825920,
- 'media_type': 'video',
- },
- 'params': {
- 'skip_download': True,
- },
+ 'params': {
+ 'extractor_args': {'generic': {'impersonate': ['chrome']}},
+ 'skip_download': True,
},
- ]
+ }, {
+ # data-video-url=
+ # https://github.com/ytdl-org/youtube-dl/pull/2948
+ 'url': 'https://www.uca.ac.uk/',
+ 'info_dict': {
+ 'id': 'www.uca.ac',
+ 'title': 'UCA | Creative Arts Degrees UK | University for the Creative Arts',
+ 'age_limit': 0,
+ 'description': 'md5:179c7a06ea1ed01b94ff5d56cb18d73b',
+ 'thumbnail': '/media/uca-2020/hero-headers/2025-prospectus-all-2x2.jpg',
+ },
+ 'playlist_count': 10,
+ 'params': {'skip_download': True},
+ }]
_PLAYER_JS_VARIANT_MAP = {
'main': 'player_ias.vflset/en_US/base.js',
diff --git a/yt_dlp/extractor/zapiks.py b/yt_dlp/extractor/zapiks.py
index 2916367c82..fcfebcdc51 100644
--- a/yt_dlp/extractor/zapiks.py
+++ b/yt_dlp/extractor/zapiks.py
@@ -13,35 +13,39 @@ from ..utils import (
class ZapiksIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?zapiks\.(?:fr|com)/(?:(?:[a-z]{2}/)?(?P<display_id>.+?)\.html|index\.php\?.*\bmedia_id=(?P<id>\d+))'
_EMBED_REGEX = [r'<iframe[^>]+src="(?P<url>https?://(?:www\.)?zapiks\.fr/index\.php\?.+?)"']
- _TESTS = [
- {
- 'url': 'http://www.zapiks.fr/ep2s3-bon-appetit-eh-be-viva.html',
- 'md5': 'aeb3c473b2d564b2d46d664d28d5f050',
- 'info_dict': {
- 'id': '80798',
- 'ext': 'mp4',
- 'title': 'EP2S3 - Bon Appétit - Eh bé viva les pyrénées con!',
- 'description': 'md5:7054d6f6f620c6519be1fe710d4da847',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 528,
- 'timestamp': 1359044972,
- 'upload_date': '20130124',
- 'view_count': int,
- },
+ _TESTS = [{
+ 'url': 'http://www.zapiks.fr/ep2s3-bon-appetit-eh-be-viva.html',
+ 'md5': 'aeb3c473b2d564b2d46d664d28d5f050',
+ 'info_dict': {
+ 'id': '80798',
+ 'ext': 'mp4',
+ 'title': 'EP2S3 - Bon Appétit - Eh bé viva les pyrénées con!',
+ 'description': 'md5:7054d6f6f620c6519be1fe710d4da847',
+ 'thumbnail': r're:https?://zpks\.com/.+\.jpg',
+ 'duration': 528,
+ 'timestamp': 1359044972,
+ 'upload_date': '20130124',
+ 'view_count': int,
},
- {
- 'url': 'http://www.zapiks.com/ep3s5-bon-appetit-baqueira-m-1.html',
- 'only_matching': True,
+ }, {
+ 'url': 'http://www.zapiks.com/ep3s5-bon-appetit-baqueira-m-1.html',
+ 'only_matching': True,
+ }, {
+ 'url': 'http://www.zapiks.com/nl/ep3s5-bon-appetit-baqueira-m-1.html',
+ 'only_matching': True,
+ }, {
+ 'url': 'http://www.zapiks.fr/index.php?action=playerIframe&amp;media_id=118046&amp;width=640&amp;height=360&amp;autoStart=false&amp;language=fr',
+ 'only_matching': True,
+ }]
+ _WEBPAGE_TESTS = [{
+ 'url': 'https://www.skipass.com/news/116090-bon-appetit-s5ep3-baqueira-mi-cor.html',
+ 'info_dict': {
+ 'id': '118046',
+ 'ext': 'mp4',
+ 'title': 'EP3S5 - Bon Appétit - Baqueira Mi Corazon !',
+ 'thumbnail': r're:https?://zpks\.com/.+\.jpg',
},
- {
- 'url': 'http://www.zapiks.com/nl/ep3s5-bon-appetit-baqueira-m-1.html',
- 'only_matching': True,
- },
- {
- 'url': 'http://www.zapiks.fr/index.php?action=playerIframe&amp;media_id=118046&amp;width=640&amp;height=360&amp;autoStart=false&amp;language=fr',
- 'only_matching': True,
- },
- ]
+ }]
def _real_extract(self, url):
mobj = self._match_valid_url(url)