[ie/wistia] Support password-protected videos (#11100)
[yt-dlp3.git] / yt_dlp / extractor / generic.py
blob04cffaa86162a1b73f98f7af55352dd5b579487e
1 import os
2 import re
3 import types
4 import urllib.parse
5 import xml.etree.ElementTree
7 from .common import InfoExtractor
8 from .commonprotocols import RtmpIE
9 from .youtube import YoutubeIE
10 from ..compat import compat_etree_fromstring
11 from ..utils import (
12 KNOWN_EXTENSIONS,
13 MEDIA_EXTENSIONS,
14 ExtractorError,
15 UnsupportedError,
16 determine_ext,
17 determine_protocol,
18 dict_get,
19 extract_basic_auth,
20 filter_dict,
21 format_field,
22 int_or_none,
23 is_html,
24 js_to_json,
25 merge_dicts,
26 mimetype2ext,
27 orderedSet,
28 parse_duration,
29 parse_resolution,
30 smuggle_url,
31 str_or_none,
32 traverse_obj,
33 try_call,
34 unescapeHTML,
35 unified_timestamp,
36 unsmuggle_url,
37 update_url_query,
38 url_or_none,
39 urlhandle_detect_ext,
40 urljoin,
41 variadic,
42 xpath_attr,
43 xpath_text,
44 xpath_with_ns,
46 from ..utils._utils import _UnsafeExtensionError
49 class GenericIE(InfoExtractor):
50 IE_DESC = 'Generic downloader that works on some sites'
51 _VALID_URL = r'.*'
52 IE_NAME = 'generic'
53 _NETRC_MACHINE = False # Suppress username warning
54 _TESTS = [
55 # Direct link to a video
57 'url': 'http://media.w3.org/2010/05/sintel/trailer.mp4',
58 'md5': '67d406c2bcb6af27fa886f31aa934bbe',
59 'info_dict': {
60 'id': 'trailer',
61 'ext': 'mp4',
62 'title': 'trailer',
63 'upload_date': '20100513',
64 'direct': True,
65 'timestamp': 1273772943.0,
68 # Direct link to media delivered compressed (until Accept-Encoding is *)
70 'url': 'http://calimero.tk/muzik/FictionJunction-Parallel_Hearts.flac',
71 'md5': '128c42e68b13950268b648275386fc74',
72 'info_dict': {
73 'id': 'FictionJunction-Parallel_Hearts',
74 'ext': 'flac',
75 'title': 'FictionJunction-Parallel_Hearts',
76 'upload_date': '20140522',
78 'expected_warnings': [
79 'URL could be a direct video link, returning it as such.',
81 'skip': 'URL invalid',
83 # Direct download with broken HEAD
85 'url': 'http://ai-radio.org:8000/radio.opus',
86 'info_dict': {
87 'id': 'radio',
88 'ext': 'opus',
89 'title': 'radio',
91 'params': {
92 'skip_download': True, # infinite live stream
94 'expected_warnings': [
95 r'501.*Not Implemented',
96 r'400.*Bad Request',
99 # Direct link with incorrect MIME type
101 'url': 'http://ftp.nluug.nl/video/nluug/2014-11-20_nj14/zaal-2/5_Lennart_Poettering_-_Systemd.webm',
102 'md5': '4ccbebe5f36706d85221f204d7eb5913',
103 'info_dict': {
104 'url': 'http://ftp.nluug.nl/video/nluug/2014-11-20_nj14/zaal-2/5_Lennart_Poettering_-_Systemd.webm',
105 'id': '5_Lennart_Poettering_-_Systemd',
106 'ext': 'webm',
107 'title': '5_Lennart_Poettering_-_Systemd',
108 'upload_date': '20141120',
109 'direct': True,
110 'timestamp': 1416498816.0,
112 'expected_warnings': [
113 'URL could be a direct video link, returning it as such.',
116 # RSS feed
118 'url': 'http://phihag.de/2014/youtube-dl/rss2.xml',
119 'info_dict': {
120 'id': 'https://phihag.de/2014/youtube-dl/rss2.xml',
121 'title': 'Zero Punctuation',
122 'description': 're:.*groundbreaking video review series.*',
124 'playlist_mincount': 11,
126 # RSS feed with enclosure
128 'url': 'http://podcastfeeds.nbcnews.com/audio/podcast/MSNBC-MADDOW-NETCAST-M4V.xml',
129 'info_dict': {
130 'id': 'http://podcastfeeds.nbcnews.com/nbcnews/video/podcast/MSNBC-MADDOW-NETCAST-M4V.xml',
131 'title': 'MSNBC Rachel Maddow (video)',
132 'description': 're:.*her unique approach to storytelling.*',
134 'playlist': [{
135 'info_dict': {
136 'ext': 'mov',
137 'id': 'pdv_maddow_netcast_mov-12-03-2020-223726',
138 'title': 'MSNBC Rachel Maddow (video) - 12-03-2020-223726',
139 'description': 're:.*her unique approach to storytelling.*',
140 'upload_date': '20201204',
143 'skip': 'Dead link',
145 # RSS feed with item with description and thumbnails
147 'url': 'https://anchor.fm/s/dd00e14/podcast/rss',
148 'info_dict': {
149 'id': 'https://anchor.fm/s/dd00e14/podcast/rss',
150 'title': 're:.*100% Hydrogen.*',
151 'description': 're:.*In this episode.*',
153 'playlist': [{
154 'info_dict': {
155 'ext': 'm4a',
156 'id': '818a5d38-01cd-152f-2231-ee479677fa82',
157 'title': 're:Hydrogen!',
158 'description': 're:.*In this episode we are going.*',
159 'timestamp': 1567977776,
160 'upload_date': '20190908',
161 'duration': 423,
162 'thumbnail': r're:^https?://.*\.jpg$',
163 'episode_number': 1,
164 'season_number': 1,
165 'age_limit': 0,
166 'season': 'Season 1',
167 'direct': True,
168 'episode': 'Episode 1',
171 'params': {
172 'skip_download': True,
175 # RSS feed with enclosures and unsupported link URLs
177 'url': 'http://www.hellointernet.fm/podcast?format=rss',
178 'info_dict': {
179 'id': 'http://www.hellointernet.fm/podcast?format=rss',
180 'description': 'CGP Grey and Brady Haran talk about YouTube, life, work, whatever.',
181 'title': 'Hello Internet',
183 'playlist_mincount': 100,
185 # RSS feed with guid
187 'url': 'https://www.omnycontent.com/d/playlist/a7b4f8fe-59d9-4afc-a79a-a90101378abf/bf2c1d80-3656-4449-9d00-a903004e8f84/efbff746-e7c1-463a-9d80-a903004e8f8f/podcast.rss',
188 'info_dict': {
189 'id': 'https://www.omnycontent.com/d/playlist/a7b4f8fe-59d9-4afc-a79a-a90101378abf/bf2c1d80-3656-4449-9d00-a903004e8f84/efbff746-e7c1-463a-9d80-a903004e8f8f/podcast.rss',
190 'description': 'md5:be809a44b63b0c56fb485caf68685520',
191 'title': 'The Little Red Podcast',
193 'playlist_mincount': 76,
195 # SMIL from http://videolectures.net/promogram_igor_mekjavic_eng
197 'url': 'http://videolectures.net/promogram_igor_mekjavic_eng/video/1/smil.xml',
198 'info_dict': {
199 'id': 'smil',
200 'ext': 'mp4',
201 'title': 'Automatics, robotics and biocybernetics',
202 'description': 'md5:815fc1deb6b3a2bff99de2d5325be482',
203 'upload_date': '20130627',
204 'formats': 'mincount:16',
205 'subtitles': 'mincount:1',
207 'params': {
208 'force_generic_extractor': True,
209 'skip_download': True,
212 # SMIL from http://www1.wdr.de/mediathek/video/livestream/index.html
214 'url': 'http://metafilegenerator.de/WDR/WDR_FS/hds/hds.smil',
215 'info_dict': {
216 'id': 'hds',
217 'ext': 'flv',
218 'title': 'hds',
219 'formats': 'mincount:1',
221 'params': {
222 'skip_download': True,
225 # SMIL from https://www.restudy.dk/video/play/id/1637
227 'url': 'https://www.restudy.dk/awsmedia/SmilDirectory/video_1637.xml',
228 'info_dict': {
229 'id': 'video_1637',
230 'ext': 'flv',
231 'title': 'video_1637',
232 'formats': 'mincount:3',
234 'params': {
235 'skip_download': True,
238 # SMIL from http://adventure.howstuffworks.com/5266-cool-jobs-iditarod-musher-video.htm
240 'url': 'http://services.media.howstuffworks.com/videos/450221/smil-service.smil',
241 'info_dict': {
242 'id': 'smil-service',
243 'ext': 'flv',
244 'title': 'smil-service',
245 'formats': 'mincount:1',
247 'params': {
248 'skip_download': True,
251 # SMIL from http://new.livestream.com/CoheedandCambria/WebsterHall/videos/4719370
253 'url': 'http://api.new.livestream.com/accounts/1570303/events/1585861/videos/4719370.smil',
254 'info_dict': {
255 'id': '4719370',
256 'ext': 'mp4',
257 'title': '571de1fd-47bc-48db-abf9-238872a58d1f',
258 'formats': 'mincount:3',
260 'params': {
261 'skip_download': True,
264 # XSPF playlist from http://www.telegraaf.nl/tv/nieuws/binnenland/24353229/__Tikibad_ontruimd_wegens_brand__.html
266 'url': 'http://www.telegraaf.nl/xml/playlist/2015/8/7/mZlp2ctYIUEB.xspf',
267 'info_dict': {
268 'id': 'mZlp2ctYIUEB',
269 'ext': 'mp4',
270 'title': 'Tikibad ontruimd wegens brand',
271 'description': 'md5:05ca046ff47b931f9b04855015e163a4',
272 'thumbnail': r're:^https?://.*\.jpg$',
273 'duration': 33,
275 'params': {
276 'skip_download': True,
278 'skip': '404 Not Found',
280 # MPD from http://dash-mse-test.appspot.com/media.html
282 'url': 'http://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-manifest.mpd',
283 'md5': '4b57baab2e30d6eb3a6a09f0ba57ef53',
284 'info_dict': {
285 'id': 'car-20120827-manifest',
286 'ext': 'mp4',
287 'title': 'car-20120827-manifest',
288 'formats': 'mincount:9',
289 'upload_date': '20130904',
290 'timestamp': 1378272859.0,
293 # m3u8 served with Content-Type: audio/x-mpegURL; charset=utf-8
295 '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',
296 'info_dict': {
297 'id': 'content',
298 'ext': 'mp4',
299 'title': 'content',
300 'formats': 'mincount:8',
302 'params': {
303 # m3u8 downloads
304 'skip_download': True,
306 'skip': 'video gone',
308 # m3u8 served with Content-Type: text/plain
310 'url': 'http://www.nacentapps.com/m3u8/index.m3u8',
311 'info_dict': {
312 'id': 'index',
313 'ext': 'mp4',
314 'title': 'index',
315 'upload_date': '20140720',
316 'formats': 'mincount:11',
318 'params': {
319 # m3u8 downloads
320 'skip_download': True,
322 'skip': 'video gone',
324 # google redirect
326 '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',
327 'info_dict': {
328 'id': 'cmQHVoWB5FY',
329 'ext': 'mp4',
330 'upload_date': '20130224',
331 'uploader_id': '@TheVerge',
332 'description': r're:^Chris Ziegler takes a look at the\.*',
333 'uploader': 'The Verge',
334 'title': 'First Firefox OS phones side-by-side',
336 'params': {
337 'skip_download': False,
341 # redirect in Refresh HTTP header
342 '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',
343 'info_dict': {
344 'id': 'pO8h3EaFRdo',
345 'ext': 'mp4',
346 'title': 'Tripeo Boiler Room x Dekmantel Festival DJ Set',
347 'description': 'md5:6294cc1af09c4049e0652b51a2df10d5',
348 'upload_date': '20150917',
349 'uploader_id': 'brtvofficial',
350 'uploader': 'Boiler Room',
352 'params': {
353 'skip_download': False,
357 'url': 'http://www.hodiho.fr/2013/02/regis-plante-sa-jeep.html',
358 'md5': '85b90ccc9d73b4acd9138d3af4c27f89',
359 'info_dict': {
360 'id': '13601338388002',
361 'ext': 'mp4',
362 'uploader': 'www.hodiho.fr',
363 'title': 'R\u00e9gis plante sa Jeep',
366 # bandcamp page with custom domain
368 'add_ie': ['Bandcamp'],
369 'url': 'http://bronyrock.com/track/the-pony-mash',
370 'info_dict': {
371 'id': '3235767654',
372 'ext': 'mp3',
373 'title': 'The Pony Mash',
374 'uploader': 'M_Pallante',
376 'skip': 'There is a limit of 200 free downloads / month for the test song',
378 # embed.ly video
380 'url': 'http://www.tested.com/science/weird/460206-tested-grinding-coffee-2000-frames-second/',
381 'info_dict': {
382 'id': '9ODmcdjQcHQ',
383 'ext': 'mp4',
384 'title': 'Tested: Grinding Coffee at 2000 Frames Per Second',
385 'upload_date': '20140225',
386 'description': 'md5:06a40fbf30b220468f1e0957c0f558ff',
387 'uploader': 'Tested',
388 'uploader_id': 'testedcom',
390 # No need to test YoutubeIE here
391 'params': {
392 'skip_download': True,
395 # funnyordie embed
397 'url': 'http://www.theguardian.com/world/2014/mar/11/obama-zach-galifianakis-between-two-ferns',
398 'info_dict': {
399 'id': '18e820ec3f',
400 'ext': 'mp4',
401 'title': 'Between Two Ferns with Zach Galifianakis: President Barack Obama',
402 'description': 'Episode 18: President Barack Obama sits down with Zach Galifianakis for his most memorable interview yet.',
404 # HEAD requests lead to endless 301, while GET is OK
405 'expected_warnings': ['301'],
407 # RUTV embed
409 'url': 'http://www.rg.ru/2014/03/15/reg-dfo/anklav-anons.html',
410 'info_dict': {
411 'id': '776940',
412 'ext': 'mp4',
413 'title': 'Охотское море стало целиком российским',
414 'description': 'md5:5ed62483b14663e2a95ebbe115eb8f43',
416 'params': {
417 # m3u8 download
418 'skip_download': True,
421 # TVC embed
423 '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/',
424 'info_dict': {
425 'id': '55304',
426 'ext': 'mp4',
427 'title': 'Дошкольное воспитание',
430 # SportBox embed
432 'url': 'http://www.vestifinance.ru/articles/25753',
433 'info_dict': {
434 'id': '25753',
435 'title': 'Прямые трансляции с Форума-выставки "Госзаказ-2013"',
437 'playlist': [{
438 'info_dict': {
439 'id': '370908',
440 'title': 'Госзаказ. День 3',
441 'ext': 'mp4',
443 }, {
444 'info_dict': {
445 'id': '370905',
446 'title': 'Госзаказ. День 2',
447 'ext': 'mp4',
449 }, {
450 'info_dict': {
451 'id': '370902',
452 'title': 'Госзаказ. День 1',
453 'ext': 'mp4',
456 'params': {
457 # m3u8 download
458 'skip_download': True,
461 # Myvi.ru embed
463 'url': 'http://www.kinomyvi.tv/news/detail/Pervij-dublirovannij-trejler--Uzhastikov-_nOw1',
464 'info_dict': {
465 'id': 'f4dafcad-ff21-423d-89b5-146cfd89fa1e',
466 'ext': 'mp4',
467 'title': 'Ужастики, русский трейлер (2015)',
468 'thumbnail': r're:^https?://.*\.jpg$',
469 'duration': 153,
471 'skip': 'Site dead',
473 # XHamster embed
475 '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',
476 'info_dict': {
477 'id': 'showthread',
478 'title': '[NSFL] [FM15] which pumiscer was this ( vid ) ( alfa as fuck srx )',
480 'playlist_mincount': 7,
481 # This forum does not allow <iframe> syntaxes anymore
482 # Now HTML tags are displayed as-is
483 'skip': 'No videos on this page',
485 # Embedded TED video
487 'url': 'http://en.support.wordpress.com/videos/ted-talks/',
488 'md5': '65fdff94098e4a607385a60c5177c638',
489 'info_dict': {
490 'id': '1969',
491 'ext': 'mp4',
492 'title': 'Hidden miracles of the natural world',
493 'uploader': 'Louie Schwartzberg',
494 'description': 'md5:8145d19d320ff3e52f28401f4c4283b9',
497 # nowvideo embed hidden behind percent encoding
499 'url': 'http://www.waoanime.tv/the-super-dimension-fortress-macross-episode-1/',
500 'md5': '2baf4ddd70f697d94b1c18cf796d5107',
501 'info_dict': {
502 'id': '06e53103ca9aa',
503 'ext': 'flv',
504 'title': 'Macross Episode 001 Watch Macross Episode 001 onl',
505 'description': 'No description',
508 # arte embed
510 'url': 'http://www.tv-replay.fr/redirection/20-03-14/x-enius-arte-10753389.html',
511 'md5': '7653032cbb25bf6c80d80f217055fa43',
512 'info_dict': {
513 'id': '048195-004_PLUS7-F',
514 'ext': 'flv',
515 'title': 'X:enius',
516 'description': 'md5:d5fdf32ef6613cdbfd516ae658abf168',
517 'upload_date': '20140320',
519 'params': {
520 'skip_download': 'Requires rtmpdump',
522 'skip': 'video gone',
524 # francetv embed
526 'url': 'http://www.tsprod.com/replay-du-concert-alcaline-de-calogero',
527 'info_dict': {
528 'id': 'EV_30231',
529 'ext': 'mp4',
530 'title': 'Alcaline, le concert avec Calogero',
531 'description': 'md5:61f08036dcc8f47e9cfc33aed08ffaff',
532 'upload_date': '20150226',
533 'timestamp': 1424989860,
534 'duration': 5400,
536 'params': {
537 # m3u8 downloads
538 'skip_download': True,
540 'expected_warnings': [
541 'Forbidden',
544 # Condé Nast embed
546 'url': 'http://www.wired.com/2014/04/honda-asimo/',
547 'md5': 'ba0dfe966fa007657bd1443ee672db0f',
548 'info_dict': {
549 'id': '53501be369702d3275860000',
550 'ext': 'mp4',
551 'title': 'Honda’s New Asimo Robot Is More Human Than Ever',
554 # Dailymotion embed
556 'url': 'http://www.spi0n.com/zap-spi0n-com-n216/',
557 'md5': '441aeeb82eb72c422c7f14ec533999cd',
558 'info_dict': {
559 'id': 'k2mm4bCdJ6CQ2i7c8o2',
560 'ext': 'mp4',
561 'title': 'Le Zap de Spi0n n°216 - Zapping du Web',
562 'description': 'md5:faf028e48a461b8b7fad38f1e104b119',
563 'uploader': 'Spi0n',
564 'uploader_id': 'xgditw',
565 'upload_date': '20140425',
566 'timestamp': 1398441542,
568 'add_ie': ['Dailymotion'],
570 # DailyMail embed
572 'url': 'http://www.bumm.sk/krimi/2017/07/05/biztonsagi-kamera-buktatta-le-az-agg-ferfit-utlegelo-apolot',
573 'info_dict': {
574 'id': '1495629',
575 'ext': 'mp4',
576 'title': 'Care worker punches elderly dementia patient in head 11 times',
577 'description': 'md5:3a743dee84e57e48ec68bf67113199a5',
579 'add_ie': ['DailyMail'],
580 'params': {
581 'skip_download': True,
584 # YouTube embed
586 'url': 'http://www.badzine.de/ansicht/datum/2014/06/09/so-funktioniert-die-neue-englische-badminton-liga.html',
587 'info_dict': {
588 'id': 'FXRb4ykk4S0',
589 'ext': 'mp4',
590 'title': 'The NBL Auction 2014',
591 'uploader': 'BADMINTON England',
592 'uploader_id': 'BADMINTONEvents',
593 'upload_date': '20140603',
594 'description': 'md5:9ef128a69f1e262a700ed83edb163a73',
596 'add_ie': ['Youtube'],
597 'params': {
598 'skip_download': True,
601 # MTVServices embed
603 'url': 'http://www.vulture.com/2016/06/new-key-peele-sketches-released.html',
604 'md5': 'ca1aef97695ef2c1d6973256a57e5252',
605 'info_dict': {
606 'id': '769f7ec0-0692-4d62-9b45-0d88074bffc1',
607 'ext': 'mp4',
608 'title': 'Key and Peele|October 10, 2012|2|203|Liam Neesons - Uncensored',
609 'description': 'Two valets share their love for movie star Liam Neesons.',
610 'timestamp': 1349922600,
611 'upload_date': '20121011',
614 # YouTube embed via <data-embed-url="">
616 'url': 'https://play.google.com/store/apps/details?id=com.gameloft.android.ANMP.GloftA8HM',
617 'info_dict': {
618 'id': '4vAffPZIT44',
619 'ext': 'mp4',
620 'title': 'Asphalt 8: Airborne - Update - Welcome to Dubai!',
621 'uploader': 'Gameloft',
622 'uploader_id': 'gameloft',
623 'upload_date': '20140828',
624 'description': 'md5:c80da9ed3d83ae6d1876c834de03e1c4',
626 'params': {
627 'skip_download': True,
630 # Flowplayer
632 'url': 'http://www.handjobhub.com/video/busty-blonde-siri-tit-fuck-while-wank-6313.html',
633 'md5': '9d65602bf31c6e20014319c7d07fba27',
634 'info_dict': {
635 'id': '5123ea6d5e5a7',
636 'ext': 'mp4',
637 'age_limit': 18,
638 'uploader': 'www.handjobhub.com',
639 'title': 'Busty Blonde Siri Tit Fuck While Wank at HandjobHub.com',
642 # MLB embed
644 'url': 'http://umpire-empire.com/index.php/topic/58125-laz-decides-no-thats-low/',
645 'md5': '96f09a37e44da40dd083e12d9a683327',
646 'info_dict': {
647 'id': '33322633',
648 'ext': 'mp4',
649 'title': 'Ump changes call to ball',
650 'description': 'md5:71c11215384298a172a6dcb4c2e20685',
651 'duration': 48,
652 'timestamp': 1401537900,
653 'upload_date': '20140531',
654 'thumbnail': r're:^https?://.*\.jpg$',
657 # Wistia standard embed (async)
659 'url': 'https://www.getdrip.com/university/brennan-dunn-drip-workshop/',
660 'info_dict': {
661 'id': '807fafadvk',
662 'ext': 'mp4',
663 'title': 'Drip Brennan Dunn Workshop',
664 'description': 'a JV Webinars video from getdrip-1',
665 'duration': 4986.95,
666 'timestamp': 1463607249,
667 'upload_date': '20160518',
669 'params': {
670 'skip_download': True,
672 'skip': 'webpage 404 not found',
674 # Soundcloud embed
676 'url': 'http://nakedsecurity.sophos.com/2014/10/29/sscc-171-are-you-sure-that-1234-is-a-bad-password-podcast/',
677 'info_dict': {
678 'id': '174391317',
679 'ext': 'mp3',
680 'description': 'md5:ff867d6b555488ad3c52572bb33d432c',
681 'uploader': 'Sophos Security',
682 'title': 'Chet Chat 171 - Oct 29, 2014',
683 'upload_date': '20141029',
686 # Soundcloud multiple embeds
688 'url': 'http://www.guitarplayer.com/lessons/1014/legato-workout-one-hour-to-more-fluid-performance---tab/52809',
689 'info_dict': {
690 'id': '52809',
691 'title': 'Guitar Essentials: Legato Workout—One-Hour to Fluid Performance | TAB + AUDIO',
693 'playlist_mincount': 7,
695 # TuneIn station embed
697 'url': 'http://radiocnrv.com/promouvoir-radio-cnrv/',
698 'info_dict': {
699 'id': '204146',
700 'ext': 'mp3',
701 'title': 'CNRV',
702 'location': 'Paris, France',
703 'is_live': True,
705 'params': {
706 # Live stream
707 'skip_download': True,
710 # Livestream embed
712 'url': 'http://www.esa.int/Our_Activities/Space_Science/Rosetta/Philae_comet_touch-down_webcast',
713 'info_dict': {
714 'id': '67864563',
715 'ext': 'flv',
716 'upload_date': '20141112',
717 'title': 'Rosetta #CometLanding webcast HL 10',
720 # Another Livestream embed, without 'new.' in URL
722 'url': 'https://www.freespeech.org/',
723 'info_dict': {
724 'id': '123537347',
725 'ext': 'mp4',
726 'title': 're:^FSTV [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
728 'params': {
729 # Live stream
730 'skip_download': True,
733 # LazyYT
735 'url': 'https://skiplagged.com/',
736 'info_dict': {
737 'id': 'skiplagged',
738 'title': 'Skiplagged: The smart way to find cheap flights',
740 'playlist_mincount': 1,
741 'add_ie': ['Youtube'],
743 # Libsyn embed
745 'url': 'http://undergroundwellness.com/podcasts/306-5-steps-to-permanent-gut-healing/',
746 'info_dict': {
747 'id': '3793998',
748 'ext': 'mp3',
749 'upload_date': '20141126',
750 'title': 'Underground Wellness Radio - Jack Tips: 5 Steps to Permanent Gut Healing',
751 'thumbnail': 'https://assets.libsyn.com/secure/item/3793998/?height=90&width=90',
752 'duration': 3989.0,
755 # Cinerama player
757 'url': 'http://www.abc.net.au/7.30/content/2015/s4164797.htm',
758 'info_dict': {
759 'id': '730m_DandD_1901_512k',
760 'ext': 'mp4',
761 'uploader': 'www.abc.net.au',
762 'title': 'Game of Thrones with dice - Dungeons and Dragons fantasy role-playing game gets new life - 19/01/2015',
765 # embedded viddler video
767 'url': 'http://deadspin.com/i-cant-stop-watching-john-wall-chop-the-nuggets-with-th-1681801597',
768 'info_dict': {
769 'id': '4d03aad9',
770 'ext': 'mp4',
771 'uploader': 'deadspin',
772 'title': 'WALL-TO-GORTAT',
773 'timestamp': 1422285291,
774 'upload_date': '20150126',
776 'add_ie': ['Viddler'],
778 # Libsyn embed
780 'url': 'http://thedailyshow.cc.com/podcast/episodetwelve',
781 'info_dict': {
782 'id': '3377616',
783 'ext': 'mp3',
784 'title': "The Daily Show Podcast without Jon Stewart - Episode 12: Bassem Youssef: Egypt's Jon Stewart",
785 'description': 'md5:601cb790edd05908957dae8aaa866465',
786 'upload_date': '20150220',
788 'skip': 'All The Daily Show URLs now redirect to http://www.cc.com/shows/',
790 # jwplayer YouTube
792 'url': 'http://media.nationalarchives.gov.uk/index.php/webinar-using-discovery-national-archives-online-catalogue/',
793 'info_dict': {
794 'id': 'Mrj4DVp2zeA',
795 'ext': 'mp4',
796 'upload_date': '20150212',
797 'uploader': 'The National Archives UK',
798 'description': 'md5:8078af856dca76edc42910b61273dbbf',
799 'uploader_id': 'NationalArchives08',
800 'title': 'Webinar: Using Discovery, The National Archives’ online catalogue',
803 # jwplayer rtmp
805 'url': 'http://www.suffolk.edu/sjc/live.php',
806 'info_dict': {
807 'id': 'live',
808 'ext': 'flv',
809 'title': 'Massachusetts Supreme Judicial Court Oral Arguments',
810 'uploader': 'www.suffolk.edu',
812 'params': {
813 'skip_download': True,
815 'skip': 'Only has video a few mornings per month, see http://www.suffolk.edu/sjc/',
817 # jwplayer with only the json URL
819 'url': 'https://www.hollywoodreporter.com/news/general-news/dunkirk-team-reveals-what-christopher-nolan-said-oscar-win-meet-your-oscar-winner-1092454',
820 'info_dict': {
821 'id': 'TljWkvWH',
822 'ext': 'mp4',
823 'upload_date': '20180306',
824 'title': 'md5:91eb1862f6526415214f62c00b453936',
825 'description': 'md5:73048ae50ae953da10549d1d2fe9b3aa',
826 'timestamp': 1520367225,
828 'params': {
829 'skip_download': True,
832 # Complex jwplayer
834 'url': 'http://www.indiedb.com/games/king-machine/videos',
835 'info_dict': {
836 'id': 'videos',
837 'ext': 'mp4',
838 'title': 'king machine trailer 1',
839 'description': 'Browse King Machine videos & audio for sweet media. Your eyes will thank you.',
840 'thumbnail': r're:^https?://.*\.jpg$',
844 # Youtube embed, formerly: Video.js embed, multiple formats
845 'url': 'http://ortcam.com/solidworks-урок-6-настройка-чертежа_33f9b7351.html',
846 'info_dict': {
847 'id': 'yygqldloqIk',
848 'ext': 'mp4',
849 'title': 'SolidWorks. Урок 6 Настройка чертежа',
850 'description': 'md5:baf95267792646afdbf030e4d06b2ab3',
851 'upload_date': '20130314',
852 'uploader': 'PROстое3D',
853 'uploader_id': 'PROstoe3D',
855 'params': {
856 'skip_download': True,
860 # Video.js embed, single format
861 'url': 'https://www.vooplayer.com/v3/watch/watch.php?v=NzgwNTg=',
862 'info_dict': {
863 'id': 'watch',
864 'ext': 'mp4',
865 'title': 'Step 1 - Good Foundation',
866 'description': 'md5:d1e7ff33a29fc3eb1673d6c270d344f4',
868 'params': {
869 'skip_download': True,
871 'skip': '404 Not Found',
873 # rtl.nl embed
875 'url': 'http://www.rtlnieuws.nl/nieuws/buitenland/aanslagen-kopenhagen',
876 'playlist_mincount': 5,
877 'info_dict': {
878 'id': 'aanslagen-kopenhagen',
879 'title': 'Aanslagen Kopenhagen',
882 # Zapiks embed
884 'url': 'http://www.skipass.com/news/116090-bon-appetit-s5ep3-baqueira-mi-cor.html',
885 'info_dict': {
886 'id': '118046',
887 'ext': 'mp4',
888 'title': 'EP3S5 - Bon Appétit - Baqueira Mi Corazon !',
891 # Kaltura embed (different embed code)
893 'url': 'http://www.premierchristianradio.com/Shows/Saturday/Unbelievable/Conference-Videos/Os-Guinness-Is-It-Fools-Talk-Unbelievable-Conference-2014',
894 'info_dict': {
895 'id': '1_a52wc67y',
896 'ext': 'flv',
897 'upload_date': '20150127',
898 'uploader_id': 'PremierMedia',
899 'timestamp': int,
900 'title': 'Os Guinness // Is It Fools Talk? // Unbelievable? Conference 2014',
903 # Kaltura embed with single quotes
905 'url': 'http://fod.infobase.com/p_ViewPlaylist.aspx?AssignmentID=NUN8ZY',
906 'info_dict': {
907 'id': '0_izeg5utt',
908 'ext': 'mp4',
909 'title': '35871',
910 'timestamp': 1355743100,
911 'upload_date': '20121217',
912 'uploader_id': 'cplapp@learn360.com',
914 'add_ie': ['Kaltura'],
917 # Kaltura embedded via quoted entry_id
918 'url': 'https://www.oreilly.com/ideas/my-cloud-makes-pretty-pictures',
919 'info_dict': {
920 'id': '0_utuok90b',
921 'ext': 'mp4',
922 'title': '06_matthew_brender_raj_dutt',
923 'timestamp': 1466638791,
924 'upload_date': '20160622',
926 'add_ie': ['Kaltura'],
927 'expected_warnings': [
928 'Could not send HEAD request',
930 'params': {
931 'skip_download': True,
935 # Kaltura embedded, some fileExt broken (#11480)
936 'url': 'http://www.cornell.edu/video/nima-arkani-hamed-standard-models-of-particle-physics',
937 'info_dict': {
938 'id': '1_sgtvehim',
939 'ext': 'mp4',
940 'title': 'Our "Standard Models" of particle physics and cosmology',
941 'description': 'md5:67ea74807b8c4fea92a6f38d6d323861',
942 'timestamp': 1321158993,
943 'upload_date': '20111113',
944 'uploader_id': 'kps1',
946 'add_ie': ['Kaltura'],
949 # Kaltura iframe embed
950 'url': 'http://www.gsd.harvard.edu/event/i-m-pei-a-centennial-celebration/',
951 'md5': 'ae5ace8eb09dc1a35d03b579a9c2cc44',
952 'info_dict': {
953 'id': '0_f2cfbpwy',
954 'ext': 'mp4',
955 'title': 'I. M. Pei: A Centennial Celebration',
956 'description': 'md5:1db8f40c69edc46ca180ba30c567f37c',
957 'upload_date': '20170403',
958 'uploader_id': 'batchUser',
959 'timestamp': 1491232186,
961 'add_ie': ['Kaltura'],
964 # Kaltura iframe embed, more sophisticated
965 'url': 'http://www.cns.nyu.edu/~eero/math-tools/Videos/lecture-05sep2017.html',
966 'info_dict': {
967 'id': '1_9gzouybz',
968 'ext': 'mp4',
969 'title': 'lecture-05sep2017',
970 'description': 'md5:40f347d91fd4ba047e511c5321064b49',
971 'upload_date': '20170913',
972 'uploader_id': 'eps2',
973 'timestamp': 1505340777,
975 'params': {
976 'skip_download': True,
978 'add_ie': ['Kaltura'],
981 # meta twitter:player
982 'url': 'http://thechive.com/2017/12/08/all-i-want-for-christmas-is-more-twerk/',
983 'info_dict': {
984 'id': '0_01b42zps',
985 'ext': 'mp4',
986 'title': 'Main Twerk (Video)',
987 'upload_date': '20171208',
988 'uploader_id': 'sebastian.salinas@thechive.com',
989 'timestamp': 1512713057,
991 'params': {
992 'skip_download': True,
994 'add_ie': ['Kaltura'],
996 # referrer protected EaglePlatform embed
998 'url': 'https://tvrain.ru/lite/teleshow/kak_vse_nachinalos/namin-418921/',
999 'info_dict': {
1000 'id': '582306',
1001 'ext': 'mp4',
1002 'title': 'Стас Намин: «Мы нарушили девственность Кремля»',
1003 'thumbnail': r're:^https?://.*\.jpg$',
1004 'duration': 3382,
1005 'view_count': int,
1007 'params': {
1008 'skip_download': True,
1011 # ClipYou (EaglePlatform) embed (custom URL)
1013 'url': 'http://muz-tv.ru/play/7129/',
1014 # Not checking MD5 as sometimes the direct HTTP link results in 404 and HLS is used
1015 'info_dict': {
1016 'id': '12820',
1017 'ext': 'mp4',
1018 'title': "'O Sole Mio",
1019 'thumbnail': r're:^https?://.*\.jpg$',
1020 'duration': 216,
1021 'view_count': int,
1023 'params': {
1024 'skip_download': True,
1026 'skip': 'This video is unavailable.',
1028 # Pladform embed
1030 'url': 'http://muz-tv.ru/kinozal/view/7400/',
1031 'info_dict': {
1032 'id': '100183293',
1033 'ext': 'mp4',
1034 'title': 'Тайны перевала Дятлова • 1 серия 2 часть',
1035 'description': 'Документальный сериал-расследование одной из самых жутких тайн ХХ века',
1036 'thumbnail': r're:^https?://.*\.jpg$',
1037 'duration': 694,
1038 'age_limit': 0,
1040 'skip': 'HTTP Error 404: Not Found',
1042 # Playwire embed
1044 'url': 'http://www.cinemablend.com/new/First-Joe-Dirt-2-Trailer-Teaser-Stupid-Greatness-70874.html',
1045 'info_dict': {
1046 'id': '3519514',
1047 'ext': 'mp4',
1048 'title': 'Joe Dirt 2 Beautiful Loser Teaser Trailer',
1049 'thumbnail': r're:^https?://.*\.png$',
1050 'duration': 45.115,
1053 # Crooks and Liars embed
1055 'url': 'http://crooksandliars.com/2015/04/fox-friends-says-protecting-atheists',
1056 'info_dict': {
1057 'id': '8RUoRhRi',
1058 'ext': 'mp4',
1059 'title': 'Fox & Friends Says Protecting Atheists From Discrimination Is Anti-Christian!',
1060 'description': 'md5:e1a46ad1650e3a5ec7196d432799127f',
1061 'timestamp': 1428207000,
1062 'upload_date': '20150405',
1063 'uploader': 'Heather',
1066 # Crooks and Liars external embed
1068 'url': 'http://theothermccain.com/2010/02/02/video-proves-that-bill-kristol-has-been-watching-glenn-beck/comment-page-1/',
1069 'info_dict': {
1070 'id': 'MTE3MjUtMzQ2MzA',
1071 'ext': 'mp4',
1072 'title': 'md5:5e3662a81a4014d24c250d76d41a08d5',
1073 'description': 'md5:9b8e9542d6c3c5de42d6451b7d780cec',
1074 'timestamp': 1265032391,
1075 'upload_date': '20100201',
1076 'uploader': 'Heather',
1079 # NBC Sports vplayer embed
1081 'url': 'http://www.riderfans.com/forum/showthread.php?121827-Freeman&s=e98fa1ea6dc08e886b1678d35212494a',
1082 'info_dict': {
1083 'id': 'ln7x1qSThw4k',
1084 'ext': 'flv',
1085 'title': "PFT Live: New leader in the 'new-look' defense",
1086 'description': 'md5:65a19b4bbfb3b0c0c5768bed1dfad74e',
1087 'uploader': 'NBCU-SPORTS',
1088 'upload_date': '20140107',
1089 'timestamp': 1389118457,
1091 'skip': 'Invalid Page URL',
1093 # NBC News embed
1095 'url': 'http://www.vulture.com/2016/06/letterman-couldnt-care-less-about-late-night.html',
1096 'md5': '1aa589c675898ae6d37a17913cf68d66',
1097 'info_dict': {
1098 'id': 'x_dtl_oa_LettermanliftPR_160608',
1099 'ext': 'mp4',
1100 'title': 'David Letterman: A Preview',
1101 '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.',
1102 'upload_date': '20160609',
1103 'timestamp': 1465431544,
1104 'uploader': 'NBCU-NEWS',
1107 # UDN embed
1109 'url': 'https://video.udn.com/news/300346',
1110 'md5': 'fd2060e988c326991037b9aff9df21a6',
1111 'info_dict': {
1112 'id': '300346',
1113 'ext': 'mp4',
1114 'title': '中一中男師變性 全校師生力挺',
1115 'thumbnail': r're:^https?://.*\.jpg$',
1117 'params': {
1118 # m3u8 download
1119 'skip_download': True,
1121 'expected_warnings': ['Failed to parse JSON Expecting value'],
1123 # Kinja embed
1125 'url': 'http://www.clickhole.com/video/dont-understand-bitcoin-man-will-mumble-explanatio-2537',
1126 'info_dict': {
1127 'id': '106351',
1128 'ext': 'mp4',
1129 'title': 'Don’t Understand Bitcoin? This Man Will Mumble An Explanation At You',
1130 'description': 'Migrated from OnionStudios',
1131 'thumbnail': r're:^https?://.*\.jpe?g$',
1132 'uploader': 'clickhole',
1133 'upload_date': '20150527',
1134 'timestamp': 1432744860,
1137 # SnagFilms embed
1139 'url': 'http://whilewewatch.blogspot.ru/2012/06/whilewewatch-whilewewatch-gripping.html',
1140 'info_dict': {
1141 'id': '74849a00-85a9-11e1-9660-123139220831',
1142 'ext': 'mp4',
1143 'title': '#whilewewatch',
1146 # AdobeTVVideo embed
1148 'url': 'https://helpx.adobe.com/acrobat/how-to/new-experience-acrobat-dc.html?set=acrobat--get-started--essential-beginners',
1149 'md5': '43662b577c018ad707a63766462b1e87',
1150 'info_dict': {
1151 'id': '2456',
1152 'ext': 'mp4',
1153 'title': 'New experience with Acrobat DC',
1154 'description': 'New experience with Acrobat DC',
1155 'duration': 248.667,
1158 # Another form of arte.tv embed
1160 'url': 'http://www.tv-replay.fr/redirection/09-04-16/arte-reportage-arte-11508975.html',
1161 'md5': '850bfe45417ddf221288c88a0cffe2e2',
1162 'info_dict': {
1163 'id': '030273-562_PLUS7-F',
1164 'ext': 'mp4',
1165 'title': 'ARTE Reportage - Nulle part, en France',
1166 'description': 'md5:e3a0e8868ed7303ed509b9e3af2b870d',
1167 'upload_date': '20160409',
1170 # Duplicated embedded video URLs
1172 'url': 'http://www.hudl.com/athlete/2538180/highlights/149298443',
1173 'info_dict': {
1174 'id': '149298443_480_16c25b74_2',
1175 'ext': 'mp4',
1176 'title': 'vs. Blue Orange Spring Game',
1177 'uploader': 'www.hudl.com',
1180 # twitter:player:stream embed
1182 'url': 'http://www.rtl.be/info/video/589263.aspx?CategoryID=288',
1183 'info_dict': {
1184 'id': 'master',
1185 'ext': 'mp4',
1186 'title': 'Une nouvelle espèce de dinosaure découverte en Argentine',
1187 'uploader': 'www.rtl.be',
1189 'params': {
1190 # m3u8 downloads
1191 'skip_download': True,
1194 # twitter:player embed
1196 'url': 'http://www.theatlantic.com/video/index/484130/what-do-black-holes-sound-like/',
1197 'md5': 'a3e0df96369831de324f0778e126653c',
1198 'info_dict': {
1199 'id': '4909620399001',
1200 'ext': 'mp4',
1201 'title': 'What Do Black Holes Sound Like?',
1202 'description': 'what do black holes sound like',
1203 'upload_date': '20160524',
1204 'uploader_id': '29913724001',
1205 'timestamp': 1464107587,
1206 'uploader': 'TheAtlantic',
1208 'skip': 'Private Youtube video',
1210 # Facebook <iframe> embed
1212 'url': 'https://www.hostblogger.de/blog/archives/6181-Auto-jagt-Betonmischer.html',
1213 'md5': 'fbcde74f534176ecb015849146dd3aee',
1214 'info_dict': {
1215 'id': '599637780109885',
1216 'ext': 'mp4',
1217 'title': 'Facebook video #599637780109885',
1220 # Facebook <iframe> embed, plugin video
1222 'url': 'http://5pillarsuk.com/2017/06/07/tariq-ramadan-disagrees-with-pr-exercise-by-imams-refusing-funeral-prayers-for-london-attackers/',
1223 'info_dict': {
1224 'id': '1754168231264132',
1225 'ext': 'mp4',
1226 'title': 'About the Imams and Religious leaders refusing to perform funeral prayers for...',
1227 'uploader': 'Tariq Ramadan (official)',
1228 'timestamp': 1496758379,
1229 'upload_date': '20170606',
1231 'params': {
1232 'skip_download': True,
1235 # Facebook API embed
1237 'url': 'http://www.lothype.com/blue-stars-2016-preview-standstill-full-show/',
1238 'md5': 'a47372ee61b39a7b90287094d447d94e',
1239 'info_dict': {
1240 'id': '10153467542406923',
1241 'ext': 'mp4',
1242 'title': 'Facebook video #10153467542406923',
1245 # Wordpress "YouTube Video Importer" plugin
1247 'url': 'http://www.lothype.com/blue-devils-drumline-stanford-lot-2016/',
1248 'md5': 'd16797741b560b485194eddda8121b48',
1249 'info_dict': {
1250 'id': 'HNTXWDXV9Is',
1251 'ext': 'mp4',
1252 'title': 'Blue Devils Drumline Stanford lot 2016',
1253 'upload_date': '20160627',
1254 'uploader_id': 'GENOCIDE8GENERAL10',
1255 'uploader': 'cylus cyrus',
1259 # video stored on custom kaltura server
1260 'url': 'http://www.expansion.com/multimedia/videos.html?media=EQcM30NHIPv',
1261 'md5': '537617d06e64dfed891fa1593c4b30cc',
1262 'info_dict': {
1263 'id': '0_1iotm5bh',
1264 'ext': 'mp4',
1265 'title': 'Elecciones británicas: 5 lecciones para Rajoy',
1266 'description': 'md5:435a89d68b9760b92ce67ed227055f16',
1267 'uploader_id': 'videos.expansion@el-mundo.net',
1268 'upload_date': '20150429',
1269 'timestamp': 1430303472,
1271 'add_ie': ['Kaltura'],
1274 # multiple kaltura embeds, nsfw
1275 'url': 'https://www.quartier-rouge.be/prive/femmes/kamila-avec-video-jaime-sadomie.html',
1276 'info_dict': {
1277 'id': 'kamila-avec-video-jaime-sadomie',
1278 'title': "Kamila avec vídeo “J'aime sadomie”",
1280 'playlist_count': 8,
1283 # Non-standard Vimeo embed
1284 'url': 'https://openclassrooms.com/courses/understanding-the-web',
1285 'md5': '64d86f1c7d369afd9a78b38cbb88d80a',
1286 'info_dict': {
1287 'id': '148867247',
1288 'ext': 'mp4',
1289 'title': 'Understanding the web - Teaser',
1290 'description': 'This is "Understanding the web - Teaser" by openclassrooms on Vimeo, the home for high quality videos and the people who love them.',
1291 'upload_date': '20151214',
1292 'uploader': 'OpenClassrooms',
1293 'uploader_id': 'openclassrooms',
1295 'add_ie': ['Vimeo'],
1298 # generic vimeo embed that requires original URL passed as Referer
1299 'url': 'http://racing4everyone.eu/2016/07/30/formula-1-2016-round12-germany/',
1300 'only_matching': True,
1303 'url': 'https://support.arkena.com/display/PLAY/Ways+to+embed+your+video',
1304 'md5': 'b96f2f71b359a8ecd05ce4e1daa72365',
1305 'info_dict': {
1306 'id': 'b41dda37-d8e7-4d3f-b1b5-9a9db578bdfe',
1307 'ext': 'mp4',
1308 'title': 'Big Buck Bunny',
1309 'description': 'Royalty free test video',
1310 'timestamp': 1432816365,
1311 'upload_date': '20150528',
1312 'is_live': False,
1314 'params': {
1315 'skip_download': True,
1317 'add_ie': ['Arkena'],
1320 '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/',
1321 'info_dict': {
1322 'id': '1c7141f46c',
1323 'ext': 'mp4',
1324 'title': 'НА КОСЪМ ОТ ВЗРИВ: Изтичане на газ на бензиностанция в Пловдив',
1326 'params': {
1327 'skip_download': True,
1329 'add_ie': ['Vbox7'],
1332 # DBTV embeds
1333 'url': 'http://www.dagbladet.no/2016/02/23/nyheter/nordlys/ski/troms/ver/43254897/',
1334 'info_dict': {
1335 'id': '43254897',
1336 'title': 'Etter ett års planlegging, klaffet endelig alt: - Jeg måtte ta en liten dans',
1338 'playlist_mincount': 3,
1341 # Videa embeds
1342 'url': 'http://forum.dvdtalk.com/movie-talk/623756-deleted-magic-star-wars-ot-deleted-alt-scenes-docu-style.html',
1343 'info_dict': {
1344 'id': '623756-deleted-magic-star-wars-ot-deleted-alt-scenes-docu-style',
1345 'title': 'Deleted Magic - Star Wars: OT Deleted / Alt. Scenes Docu. Style - DVD Talk Forum',
1347 'playlist_mincount': 2,
1350 # 20 minuten embed
1351 'url': 'http://www.20min.ch/schweiz/news/story/So-kommen-Sie-bei-Eis-und-Schnee-sicher-an-27032552',
1352 'info_dict': {
1353 'id': '523629',
1354 'ext': 'mp4',
1355 'title': 'So kommen Sie bei Eis und Schnee sicher an',
1356 'description': 'md5:117c212f64b25e3d95747e5276863f7d',
1358 'params': {
1359 'skip_download': True,
1361 'add_ie': ['TwentyMinuten'],
1364 # VideoPress embed
1365 'url': 'https://en.support.wordpress.com/videopress/',
1366 'info_dict': {
1367 'id': 'OcobLTqC',
1368 'ext': 'm4v',
1369 'title': 'IMG_5786',
1370 'timestamp': 1435711927,
1371 'upload_date': '20150701',
1373 'params': {
1374 'skip_download': True,
1376 'add_ie': ['VideoPress'],
1379 # Rutube embed
1380 'url': 'http://magazzino.friday.ru/videos/vipuski/kazan-2',
1381 'info_dict': {
1382 'id': '9b3d5bee0a8740bf70dfd29d3ea43541',
1383 'ext': 'flv',
1384 'title': 'Магаззино: Казань 2',
1385 'description': 'md5:99bccdfac2269f0e8fdbc4bbc9db184a',
1386 'uploader': 'Магаззино',
1387 'upload_date': '20170228',
1388 'uploader_id': '996642',
1390 'params': {
1391 'skip_download': True,
1393 'add_ie': ['Rutube'],
1396 # glomex:embed
1397 'url': 'https://www.skai.gr/news/world/iatrikos-syllogos-tourkias-to-turkovac-aplo-dialyma-erntogan-eiste-apateones-kai-pseytes',
1398 'info_dict': {
1399 'id': 'v-ch2nkhcirwc9-sf',
1400 'ext': 'mp4',
1401 'title': 'md5:786e1e24e06c55993cee965ef853a0c1',
1402 'description': 'md5:8b517a61d577efe7e36fde72fd535995',
1403 'timestamp': 1641885019,
1404 'upload_date': '20220111',
1405 'duration': 460000,
1406 'thumbnail': 'https://i3thumbs.glomex.com/dC1idjJwdndiMjRzeGwvMjAyMi8wMS8xMS8wNy8xMF8zNV82MWRkMmQ2YmU5ZTgyLmpwZw==/profile:player-960x540',
1410 # megatvcom:embed
1411 'url': 'https://www.in.gr/2021/12/18/greece/apokalypsi-mega-poios-parelave-tin-ereyna-tsiodra-ek-merous-tis-kyvernisis-o-prothypourgos-telika-gnorize/',
1412 'info_dict': {
1413 'id': 'apokalypsi-mega-poios-parelave-tin-ereyna-tsiodra-ek-merous-tis-kyvernisis-o-prothypourgos-telika-gnorize',
1414 'title': 'md5:5e569cf996ec111057c2764ec272848f',
1416 'playlist': [{
1417 'md5': '1afa26064ff00ccb91617957dbc73dc1',
1418 'info_dict': {
1419 'ext': 'mp4',
1420 'id': '564916',
1421 'display_id': 'md5:6cdf22d3a2e7bacb274b7295089a1770',
1422 'title': 'md5:33b9dd39584685b62873043670eb52a6',
1423 'description': 'md5:c1db7310f390518ac36dd69d947ef1a1',
1424 'timestamp': 1639753145,
1425 'upload_date': '20211217',
1426 'thumbnail': 'https://www.megatv.com/wp-content/uploads/2021/12/prezerakos-1024x597.jpg',
1428 }, {
1429 'md5': '4a1c220695f1ef865a8b7966a53e2474',
1430 'info_dict': {
1431 'ext': 'mp4',
1432 'id': '564905',
1433 'display_id': 'md5:ead15695e485e649aed2b81ebd699b88',
1434 'title': 'md5:2b71fd54249a3ca34609fe39ae31c47b',
1435 'description': 'md5:c42e12f638d0a97d6de4508e2c4df982',
1436 'timestamp': 1639753047,
1437 'upload_date': '20211217',
1438 'thumbnail': 'https://www.megatv.com/wp-content/uploads/2021/12/tsiodras-mitsotakis-1024x545.jpg',
1443 'url': 'https://www.ertnews.gr/video/manolis-goyalles-o-anthropos-piso-apo-ti-diadiktyaki-vasilopita/',
1444 'info_dict': {
1445 'id': '2022/tv/news-themata-ianouarios/20220114-apotis6-gouales-pita.mp4',
1446 'ext': 'mp4',
1447 'title': 'md5:df64f5b61c06d0e9556c0cdd5cf14464',
1448 'thumbnail': 'https://www.ert.gr/themata/photos/2021/20220114-apotis6-gouales-pita.jpg',
1452 # ThePlatform embedded with whitespaces in URLs
1453 'url': 'http://www.golfchannel.com/topics/shows/golftalkcentral.htm',
1454 'only_matching': True,
1457 # Senate ISVP iframe https
1458 'url': 'https://www.hsgac.senate.gov/hearings/canadas-fast-track-refugee-plan-unanswered-questions-and-implications-for-us-national-security',
1459 'md5': 'fb8c70b0b515e5037981a2492099aab8',
1460 'info_dict': {
1461 'id': 'govtaff020316',
1462 'ext': 'mp4',
1463 'title': 'Integrated Senate Video Player',
1465 'add_ie': ['SenateISVP'],
1468 # Limelight embeds (1 channel embed + 4 media embeds)
1469 'url': 'http://www.sedona.com/FacilitatorTraining2017',
1470 'info_dict': {
1471 'id': 'FacilitatorTraining2017',
1472 'title': 'Facilitator Training 2017',
1474 'playlist_mincount': 5,
1477 # Limelight embed (LimelightPlayerUtil.embed)
1478 'url': 'https://tv5.ca/videos?v=xuu8qowr291ri',
1479 'info_dict': {
1480 'id': '95d035dc5c8a401588e9c0e6bd1e9c92',
1481 'ext': 'mp4',
1482 'title': '07448641',
1483 'timestamp': 1499890639,
1484 'upload_date': '20170712',
1486 'params': {
1487 'skip_download': True,
1489 'add_ie': ['LimelightMedia'],
1492 'url': 'http://kron4.com/2017/04/28/standoff-with-walnut-creek-murder-suspect-ends-with-arrest/',
1493 'info_dict': {
1494 'id': 'standoff-with-walnut-creek-murder-suspect-ends-with-arrest',
1495 'title': 'Standoff with Walnut Creek murder suspect ends',
1496 'description': 'md5:3ccc48a60fc9441eeccfc9c469ebf788',
1498 'playlist_mincount': 4,
1501 # WashingtonPost embed
1502 'url': 'http://www.vanityfair.com/hollywood/2017/04/donald-trump-tv-pitches',
1503 'info_dict': {
1504 'id': '8caf6e88-d0ec-11e5-90d3-34c2c42653ac',
1505 'ext': 'mp4',
1506 'title': "No one has seen the drama series based on Trump's life \u2014 until now",
1507 '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.',
1508 'timestamp': 1455216756,
1509 'uploader': 'The Washington Post',
1510 'upload_date': '20160211',
1512 'add_ie': ['WashingtonPost'],
1515 # JOJ.sk embeds
1516 'url': 'https://www.noviny.sk/slovensko/238543-slovenskom-sa-prehnala-vlna-silnych-burok',
1517 'info_dict': {
1518 'id': '238543-slovenskom-sa-prehnala-vlna-silnych-burok',
1519 'title': 'Slovenskom sa prehnala vlna silných búrok',
1521 'playlist_mincount': 5,
1522 'add_ie': ['Joj'],
1525 # AMP embed (see https://www.ampproject.org/docs/reference/components/amp-video)
1526 'url': 'https://tvrain.ru/amp/418921/',
1527 'md5': 'cc00413936695987e8de148b67d14f1d',
1528 'info_dict': {
1529 'id': '418921',
1530 'ext': 'mp4',
1531 'title': 'Стас Намин: «Мы нарушили девственность Кремля»',
1535 # multiple HTML5 videos on one page
1536 'url': 'https://www.paragon-software.com/home/rk-free/keyscenarios.html',
1537 'info_dict': {
1538 'id': 'keyscenarios',
1539 'title': 'Rescue Kit 14 Free Edition - Getting started',
1541 'playlist_count': 4,
1544 # vshare embed
1545 'url': 'https://youtube-dl-demo.neocities.org/vshare.html',
1546 'md5': '17b39f55b5497ae8b59f5fbce8e35886',
1547 'info_dict': {
1548 'id': '0f64ce6',
1549 'title': 'vl14062007715967',
1550 'ext': 'mp4',
1554 'url': 'http://www.heidelberg-laureate-forum.org/blog/video/lecture-friday-september-23-2016-sir-c-antony-r-hoare/',
1555 'md5': 'aecd089f55b1cb5a59032cb049d3a356',
1556 'info_dict': {
1557 'id': '90227f51a80c4d8f86c345a7fa62bd9a1d',
1558 'ext': 'mp4',
1559 'title': 'Lecture: Friday, September 23, 2016 - Sir Tony Hoare',
1560 'description': 'md5:5a51db84a62def7b7054df2ade403c6c',
1561 'timestamp': 1474354800,
1562 'upload_date': '20160920',
1566 'url': 'http://www.kidzworld.com/article/30935-trolls-the-beat-goes-on-interview-skylar-astin-and-amanda-leighton',
1567 'info_dict': {
1568 'id': '1731611',
1569 'ext': 'mp4',
1570 'title': 'Official Trailer | TROLLS: THE BEAT GOES ON!',
1571 'description': 'md5:eb5f23826a027ba95277d105f248b825',
1572 'timestamp': 1516100691,
1573 'upload_date': '20180116',
1575 'params': {
1576 'skip_download': True,
1578 'add_ie': ['SpringboardPlatform'],
1581 'url': 'https://www.yapfiles.ru/show/1872528/690b05d3054d2dbe1e69523aa21bb3b1.mp4.html',
1582 'info_dict': {
1583 'id': 'vMDE4NzI1Mjgt690b',
1584 'ext': 'mp4',
1585 'title': 'Котята',
1587 'add_ie': ['YapFiles'],
1588 'params': {
1589 'skip_download': True,
1593 # CloudflareStream embed
1594 'url': 'https://www.cloudflare.com/products/cloudflare-stream/',
1595 'info_dict': {
1596 'id': '31c9291ab41fac05471db4e73aa11717',
1597 'ext': 'mp4',
1598 'title': '31c9291ab41fac05471db4e73aa11717',
1600 'add_ie': ['CloudflareStream'],
1601 'params': {
1602 'skip_download': True,
1606 # PeerTube embed
1607 'url': 'https://joinpeertube.org/fr/home/',
1608 'info_dict': {
1609 'id': 'home',
1610 'title': 'Reprenez le contrôle de vos vidéos ! #JoinPeertube',
1612 'playlist_count': 2,
1615 # Indavideo embed
1616 'url': 'https://streetkitchen.hu/receptek/igy_kell_otthon_hamburgert_sutni/',
1617 'info_dict': {
1618 'id': '1693903',
1619 'ext': 'mp4',
1620 'title': 'Így kell otthon hamburgert sütni',
1621 'description': 'md5:f5a730ecf900a5c852e1e00540bbb0f7',
1622 'timestamp': 1426330212,
1623 'upload_date': '20150314',
1624 'uploader': 'StreetKitchen',
1625 'uploader_id': '546363',
1627 'add_ie': ['IndavideoEmbed'],
1628 'params': {
1629 'skip_download': True,
1633 # APA embed via JWPlatform embed
1634 'url': 'http://www.vol.at/blue-man-group/5593454',
1635 'info_dict': {
1636 'id': 'jjv85FdZ',
1637 'ext': 'mp4',
1638 'title': '"Blau ist mysteriös": Die Blue Man Group im Interview',
1639 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
1640 'thumbnail': r're:^https?://.*\.jpg$',
1641 'duration': 254,
1642 'timestamp': 1519211149,
1643 'upload_date': '20180221',
1645 'params': {
1646 'skip_download': True,
1650 'url': 'http://share-videos.se/auto/video/83645793?uid=13',
1651 'md5': 'b68d276de422ab07ee1d49388103f457',
1652 'info_dict': {
1653 'id': '83645793',
1654 'title': 'Lock up and get excited',
1655 'ext': 'mp4',
1657 'skip': 'TODO: fix nested playlists processing in tests',
1660 # Viqeo embeds
1661 'url': 'https://viqeo.tv/',
1662 'info_dict': {
1663 'id': 'viqeo',
1664 'title': 'All-new video platform',
1666 'playlist_count': 6,
1669 # # Zype embed
1670 # 'url': 'https://www.cookscountry.com/episode/554-smoky-barbecue-favorites',
1671 # 'info_dict': {
1672 # 'id': '5b400b834b32992a310622b9',
1673 # 'ext': 'mp4',
1674 # 'title': 'Smoky Barbecue Favorites',
1675 # 'thumbnail': r're:^https?://.*\.jpe?g',
1676 # 'description': 'md5:5ff01e76316bd8d46508af26dc86023b',
1677 # 'upload_date': '20170909',
1678 # 'timestamp': 1504915200,
1679 # },
1680 # 'add_ie': [ZypeIE.ie_key()],
1681 # 'params': {
1682 # 'skip_download': True,
1683 # },
1684 # },
1686 # videojs embed
1687 'url': 'https://video.sibnet.ru/shell.php?videoid=3422904',
1688 'info_dict': {
1689 'id': 'shell',
1690 'ext': 'mp4',
1691 'title': 'Доставщик пиццы спросил разрешения сыграть на фортепиано',
1692 'description': 'md5:89209cdc587dab1e4a090453dbaa2cb1',
1693 'thumbnail': r're:^https?://.*\.jpg$',
1695 'params': {
1696 'skip_download': True,
1698 'expected_warnings': ['Failed to download MPD manifest'],
1701 # DailyMotion embed with DM.player
1702 'url': 'https://www.beinsports.com/us/copa-del-rey/video/the-locker-room-valencia-beat-barca-in-copa/1203804',
1703 'info_dict': {
1704 'id': 'k6aKkGHd9FJs4mtJN39',
1705 'ext': 'mp4',
1706 'title': 'The Locker Room: Valencia Beat Barca In Copa del Rey Final',
1707 'description': 'This video is private.',
1708 'uploader_id': 'x1jf30l',
1709 'uploader': 'beIN SPORTS USA',
1710 'upload_date': '20190528',
1711 'timestamp': 1559062971,
1713 'params': {
1714 'skip_download': True,
1718 # tvopengr:embed
1719 'url': 'https://www.ethnos.gr/World/article/190604/hparosiaxekinoynoisynomiliessthgeneyhmethskiatoypolemoypanoapothnoykrania',
1720 'md5': 'eb0c3995d0a6f18f6538c8e057865d7d',
1721 'info_dict': {
1722 'id': '101119',
1723 'ext': 'mp4',
1724 'display_id': 'oikarpoitondiapragmateyseonhparosias',
1725 'title': 'md5:b979f4d640c568617d6547035528a149',
1726 'description': 'md5:e54fc1977c7159b01cc11cd7d9d85550',
1727 'timestamp': 1641772800,
1728 'upload_date': '20220110',
1729 'thumbnail': 'https://opentv-static.siliconweb.com/imgHandler/1920/70bc39fa-895b-4918-a364-c39d2135fc6d.jpg',
1734 # blogger embed
1735 'url': 'https://blog.tomeuvizoso.net/2019/01/a-panfrost-milestone.html',
1736 'md5': 'f1bc19b6ea1b0fd1d81e84ca9ec467ac',
1737 'info_dict': {
1738 'id': 'BLOGGER-video-3c740e3a49197e16-796',
1739 'ext': 'mp4',
1740 'title': 'Blogger',
1741 'thumbnail': r're:^https?://.*',
1745 # # TODO: find another test
1746 # # http://schema.org/VideoObject
1747 # 'url': 'https://flipagram.com/f/nyvTSJMKId',
1748 # 'md5': '888dcf08b7ea671381f00fab74692755',
1749 # 'info_dict': {
1750 # 'id': 'nyvTSJMKId',
1751 # 'ext': 'mp4',
1752 # 'title': 'Flipagram by sjuria101 featuring Midnight Memories by One Direction',
1753 # 'description': '#love for cats.',
1754 # 'timestamp': 1461244995,
1755 # 'upload_date': '20160421',
1756 # },
1757 # 'params': {
1758 # 'force_generic_extractor': True,
1759 # },
1760 # },
1762 # VHX Embed
1763 'url': 'https://demo.vhx.tv/category-c/videos/file-example-mp4-480-1-5mg-copy',
1764 'info_dict': {
1765 'id': '858208',
1766 'ext': 'mp4',
1767 'title': 'Untitled',
1768 'uploader_id': 'user80538407',
1769 'uploader': 'OTT Videos',
1773 # ArcPublishing PoWa video player
1774 'url': 'https://www.adn.com/politics/2020/11/02/video-senate-candidates-campaign-in-anchorage-on-eve-of-election-day/',
1775 'md5': 'b03b2fac8680e1e5a7cc81a5c27e71b3',
1776 'info_dict': {
1777 'id': '8c99cb6e-b29c-4bc9-9173-7bf9979225ab',
1778 'ext': 'mp4',
1779 'title': 'Senate candidates wave to voters on Anchorage streets',
1780 'description': 'md5:91f51a6511f090617353dc720318b20e',
1781 'timestamp': 1604378735,
1782 'upload_date': '20201103',
1783 'duration': 1581,
1787 # MyChannels SDK embed
1788 # https://www.24kitchen.nl/populair/deskundige-dit-waarom-sommigen-gevoelig-zijn-voor-voedselallergieen
1789 'url': 'https://www.demorgen.be/nieuws/burgemeester-rotterdam-richt-zich-in-videoboodschap-tot-relschoppers-voelt-het-goed~b0bcfd741/',
1790 'md5': '90c0699c37006ef18e198c032d81739c',
1791 'info_dict': {
1792 'id': '194165',
1793 'ext': 'mp4',
1794 'title': 'Burgemeester Aboutaleb spreekt relschoppers toe',
1795 'timestamp': 1611740340,
1796 'upload_date': '20210127',
1797 'duration': 159,
1801 # Simplecast player embed
1802 'url': 'https://www.bio.org/podcast',
1803 'info_dict': {
1804 'id': 'podcast',
1805 'title': 'I AM BIO Podcast | BIO',
1807 'playlist_mincount': 52,
1808 }, {
1809 # WimTv embed player
1810 'url': 'http://www.msmotor.tv/wearefmi-pt-2-2021/',
1811 'info_dict': {
1812 'id': 'wearefmi-pt-2-2021',
1813 'title': '#WEAREFMI – PT.2 – 2021 – MsMotorTV',
1815 'playlist_count': 1,
1816 }, {
1817 # KVS Player
1818 'url': 'https://www.kvs-demo.com/videos/105/kelis-4th-of-july/',
1819 'info_dict': {
1820 'id': '105',
1821 'display_id': 'kelis-4th-of-july',
1822 'ext': 'mp4',
1823 'title': 'Kelis - 4th Of July',
1824 'description': 'Kelis - 4th Of July',
1825 'thumbnail': r're:https://(?:www\.)?kvs-demo.com/contents/videos_screenshots/0/105/preview.jpg',
1827 'params': {
1828 'skip_download': True,
1830 'expected_warnings': ['Untested major version'],
1831 }, {
1832 # KVS Player
1833 'url': 'https://www.kvs-demo.com/embed/105/',
1834 'info_dict': {
1835 'id': '105',
1836 'display_id': 'kelis-4th-of-july',
1837 'ext': 'mp4',
1838 'title': 'Kelis - 4th Of July / Embed Player',
1839 'thumbnail': r're:https://(?:www\.)?kvs-demo.com/contents/videos_screenshots/0/105/preview.jpg',
1841 'params': {
1842 'skip_download': True,
1844 }, {
1845 'url': 'https://youix.com/video/leningrad-zoj/',
1846 'md5': '94f96ba95706dc3880812b27b7d8a2b8',
1847 'info_dict': {
1848 'id': '18485',
1849 'display_id': 'leningrad-zoj',
1850 'ext': 'mp4',
1851 'title': 'Клип: Ленинград - ЗОЖ скачать, смотреть онлайн | Youix.com',
1852 'thumbnail': r're:https://youix.com/contents/videos_screenshots/18000/18485/preview(?:_480x320_youix_com.mp4)?\.jpg',
1854 }, {
1855 # KVS Player
1856 'url': 'https://youix.com/embed/18485',
1857 'md5': '94f96ba95706dc3880812b27b7d8a2b8',
1858 'info_dict': {
1859 'id': '18485',
1860 'display_id': 'leningrad-zoj',
1861 'ext': 'mp4',
1862 'title': 'Ленинград - ЗОЖ',
1863 'thumbnail': r're:https://youix.com/contents/videos_screenshots/18000/18485/preview(?:_480x320_youix_com.mp4)?\.jpg',
1865 }, {
1866 # KVS Player
1867 'url': 'https://bogmedia.org/videos/21217/40-nochey-40-nights-2016/',
1868 'md5': '94166bdb26b4cb1fb9214319a629fc51',
1869 'info_dict': {
1870 'id': '21217',
1871 'display_id': '40-nochey-2016',
1872 'ext': 'mp4',
1873 'title': '40 ночей (2016) - BogMedia.org',
1874 'description': 'md5:4e6d7d622636eb7948275432eb256dc3',
1875 'thumbnail': 'https://bogmedia.org/contents/videos_screenshots/21000/21217/preview_480p.mp4.jpg',
1879 # KVS Player (for sites that serve kt_player.js via non-https urls)
1880 'url': 'http://www.camhub.world/embed/389508',
1881 'md5': 'fbe89af4cfb59c8fd9f34a202bb03e32',
1882 'info_dict': {
1883 'id': '389508',
1884 'display_id': 'syren-de-mer-onlyfans-05-07-2020have-a-happy-safe-holiday5f014e68a220979bdb8cd-source',
1885 'ext': 'mp4',
1886 'title': 'Syren De Mer onlyfans_05-07-2020Have_a_happy_safe_holiday5f014e68a220979bdb8cd_source / Embed плеер',
1887 'thumbnail': r're:https?://www\.camhub\.world/contents/videos_screenshots/389000/389508/preview\.mp4\.jpg',
1891 # Reddit-hosted video that will redirect and be processed by RedditIE
1892 # Redirects to https://www.reddit.com/r/videos/comments/6rrwyj/that_small_heart_attack/
1893 'url': 'https://v.redd.it/zv89llsvexdz',
1894 'md5': '87f5f02f6c1582654146f830f21f8662',
1895 'info_dict': {
1896 'id': 'zv89llsvexdz',
1897 'ext': 'mp4',
1898 'timestamp': 1501941939.0,
1899 'title': 'That small heart attack.',
1900 'upload_date': '20170805',
1901 'uploader': 'Antw87',
1905 # 1080p Reddit-hosted video that will redirect and be processed by RedditIE
1906 'url': 'https://v.redd.it/33hgok7dfbz71/',
1907 'md5': '7a1d587940242c9bb3bd6eb320b39258',
1908 'info_dict': {
1909 'id': '33hgok7dfbz71',
1910 'ext': 'mp4',
1911 'title': "The game Didn't want me to Knife that Guy I guess",
1912 'uploader': 'paraf1ve',
1913 'timestamp': 1636788683.0,
1914 'upload_date': '20211113',
1918 # MainStreaming player
1919 'url': 'https://www.lactv.it/2021/10/03/lac-news24-la-settimana-03-10-2021/',
1920 'info_dict': {
1921 'id': 'EUlZfGWkGpOd',
1922 'title': 'La Settimana ',
1923 'description': '03 Ottobre ore 02:00',
1924 'ext': 'mp4',
1925 'live_status': 'not_live',
1926 'thumbnail': r're:https?://[A-Za-z0-9-]*\.msvdn.net/image/\w+/poster',
1927 'duration': 1512,
1931 # Multiple gfycat iframe embeds
1932 'url': 'https://www.gezip.net/bbs/board.php?bo_table=entertaine&wr_id=613422',
1933 'info_dict': {
1934 'title': '재이, 윤, 세은 황금 드레스를 입고 빛난다',
1935 'id': 'board',
1937 'playlist_count': 8,
1940 # Multiple gfycat gifs (direct links)
1941 'url': 'https://www.gezip.net/bbs/board.php?bo_table=entertaine&wr_id=612199',
1942 'info_dict': {
1943 'title': '옳게 된 크롭 니트 스테이씨 아이사',
1944 'id': 'board',
1946 'playlist_count': 6,
1949 # Multiple gfycat embeds, with uppercase "IFR" in urls
1950 'url': 'https://kkzz.kr/?vid=2295',
1951 'info_dict': {
1952 'title': '지방시 앰버서더 에스파 카리나 움짤',
1953 'id': '?vid=2295',
1955 'playlist_count': 9,
1958 # Panopto embeds
1959 'url': 'https://www.monash.edu/learning-teaching/teachhq/learning-technologies/panopto/how-to/insert-a-quiz-into-a-panopto-video',
1960 'info_dict': {
1961 'ext': 'mp4',
1962 'id': '0bd3f16c-824a-436a-8486-ac5900693aef',
1963 'title': 'Quizzes in Panopto',
1967 # Ruutu embed
1968 'url': 'https://www.nelonen.fi/ohjelmat/madventures-suomi/2160731-riku-ja-tunna-lahtevat-peurajahtiin-tv-sta-tutun-biologin-kanssa---metsastysreissu-huipentuu-kasvissyojan-painajaiseen',
1969 'md5': 'a2513a98d3496099e6eced40f7e6a14b',
1970 'info_dict': {
1971 'id': '4044426',
1972 'ext': 'mp4',
1973 'title': 'Riku ja Tunna lähtevät peurajahtiin tv:stä tutun biologin kanssa – metsästysreissu huipentuu kasvissyöjän painajaiseen!',
1974 'thumbnail': r're:^https?://.+\.jpg$',
1975 'duration': 108,
1976 'series': 'Madventures Suomi',
1977 'description': 'md5:aa55b44bd06a1e337a6f1d0b46507381',
1978 'categories': ['Matkailu', 'Elämäntyyli'],
1979 'age_limit': 0,
1980 'upload_date': '20220308',
1984 # Multiple Ruutu embeds
1985 'url': 'https://www.hs.fi/kotimaa/art-2000008762560.html',
1986 'info_dict': {
1987 'title': 'Koronavirus | Epidemiahuippu voi olla Suomessa ohi, mutta koronaviruksen poistamista yleisvaarallisten tautien joukosta harkitaan vasta syksyllä',
1988 'id': 'art-2000008762560',
1990 'playlist_count': 3,
1993 # Ruutu embed in hs.fi with a single video
1994 'url': 'https://www.hs.fi/kotimaa/art-2000008793421.html',
1995 'md5': 'f8964e65d8fada6e8a562389bf366bb4',
1996 'info_dict': {
1997 'id': '4081841',
1998 'ext': 'mp4',
1999 'title': 'Puolustusvoimat siirsi panssariajoneuvoja harjoituksiin Niinisaloon 2.5.2022',
2000 'thumbnail': r're:^https?://.+\.jpg$',
2001 'duration': 138,
2002 'age_limit': 0,
2003 'upload_date': '20220504',
2007 # Webpage contains double BOM
2008 'url': 'https://www.filmarkivet.se/movies/paris-d-moll/',
2009 'md5': 'df02cadc719dcc63d43288366f037754',
2010 'info_dict': {
2011 'id': 'paris-d-moll',
2012 'ext': 'mp4',
2013 'upload_date': '20220518',
2014 'title': 'Paris d-moll',
2015 'description': 'md5:319e37ea5542293db37e1e13072fe330',
2016 'thumbnail': 'https://www.filmarkivet.se/wp-content/uploads/parisdmoll2.jpg',
2017 'timestamp': 1652833414,
2018 'age_limit': 0,
2022 'url': 'https://www.mollymovieclub.com/p/interstellar?s=r#details',
2023 'md5': '198bde8bed23d0b23c70725c83c9b6d9',
2024 'info_dict': {
2025 'id': '53602801',
2026 'ext': 'mpga',
2027 'title': 'Interstellar',
2028 'description': 'Listen now | Episode One',
2029 'thumbnail': 'md5:c30d9c83f738e16d8551d7219d321538',
2030 'uploader': 'Molly Movie Club',
2031 'uploader_id': '839621',
2035 'url': 'https://www.blockedandreported.org/p/episode-117-lets-talk-about-depp?s=r',
2036 'md5': 'c0cc44ee7415daeed13c26e5b56d6aa0',
2037 'info_dict': {
2038 'id': '57962052',
2039 'ext': 'mpga',
2040 'title': 'md5:855b2756f0ee10f6723fa00b16266f8d',
2041 'description': 'md5:fe512a5e94136ad260c80bde00ea4eef',
2042 'thumbnail': 'md5:2218f27dfe517bb5ac16c47d0aebac59',
2043 'uploader': 'Blocked and Reported',
2044 'uploader_id': '500230',
2048 'url': 'https://www.skimag.com/video/ski-people-1980/',
2049 'md5': '022a7e31c70620ebec18deeab376ee03',
2050 'info_dict': {
2051 'id': 'YTmgRiNU',
2052 'ext': 'mp4',
2053 'title': '1980 Ski People',
2054 'timestamp': 1610407738,
2055 'description': 'md5:cf9c3d101452c91e141f292b19fe4843',
2056 'thumbnail': 'https://cdn.jwplayer.com/v2/media/YTmgRiNU/poster.jpg?width=720',
2057 'duration': 5688.0,
2058 'upload_date': '20210111',
2062 'note': 'JSON LD with multiple @type',
2063 'url': 'https://www.nu.nl/280161/video/hoe-een-bladvlo-dit-verwoestende-japanse-onkruid-moet-vernietigen.html',
2064 'md5': 'c7949f34f57273013fb7ccb1156393db',
2065 'info_dict': {
2066 'id': 'ipy2AcGL',
2067 'ext': 'mp4',
2068 'description': 'md5:6a9d644bab0dc2dc06849c2505d8383d',
2069 'thumbnail': r're:https://media\.nu\.nl/m/.+\.jpg',
2070 'title': 'Hoe een bladvlo dit verwoestende Japanse onkruid moet vernietigen',
2071 'timestamp': 1586577474,
2072 'upload_date': '20200411',
2073 'age_limit': 0,
2074 'duration': 111.0,
2078 'note': 'JSON LD with unexpected data type',
2079 'url': 'https://www.autoweek.nl/autotests/artikel/porsche-911-gt3-rs-rij-impressie-2/',
2080 'info_dict': {
2081 'id': 'porsche-911-gt3-rs-rij-impressie-2',
2082 'ext': 'mp4',
2083 'title': 'Test: Porsche 911 GT3 RS',
2084 '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.',
2085 'timestamp': 1664920902,
2086 'upload_date': '20221004',
2087 'thumbnail': r're:^https://media.autoweek.nl/m/.+\.jpg$',
2088 'age_limit': 0,
2089 'direct': True,
2093 'note': 'server returns data in brotli compression by default if `accept-encoding: *` is specified.',
2094 'url': 'https://www.extra.cz/cauky-lidi-70-dil-babis-predstavil-pohadky-prymulanek-nebo-andrejovy-nove-saty-ac867',
2095 'info_dict': {
2096 'id': 'cauky-lidi-70-dil-babis-predstavil-pohadky-prymulanek-nebo-andrejovy-nove-saty-ac867',
2097 'ext': 'mp4',
2098 'title': 'čauky lidi 70 finall',
2099 'description': 'čauky lidi 70 finall',
2100 'thumbnail': 'h',
2101 'upload_date': '20220606',
2102 'timestamp': 1654513791,
2103 'duration': 318.0,
2104 'direct': True,
2105 'age_limit': 0,
2109 'url': 'https://shooshtime.com/videos/284002/just-out-of-the-shower-joi/',
2110 'md5': 'e2f0a4c329f7986280b7328e24036d60',
2111 'info_dict': {
2112 'id': '284002',
2113 'display_id': 'just-out-of-the-shower-joi',
2114 'ext': 'mp4',
2115 'title': 'Just Out Of The Shower JOI - Shooshtime',
2116 'thumbnail': 'https://i.shoosh.co/contents/videos_screenshots/284000/284002/preview.mp4.jpg',
2117 'height': 720,
2118 'age_limit': 18,
2122 'note': 'Live HLS direct link',
2123 'url': 'https://d18j67ugtrocuq.cloudfront.net/out/v1/2767aec339144787926bd0322f72c6e9/index.m3u8',
2124 'info_dict': {
2125 'id': 'index',
2126 'title': r're:index',
2127 'ext': 'mp4',
2128 'live_status': 'is_live',
2130 'params': {
2131 'skip_download': 'm3u8',
2135 'note': 'Video.js VOD HLS',
2136 'url': 'https://gist.githubusercontent.com/bashonly/2aae0862c50f4a4b84f220c315767208/raw/e3380d413749dabbe804c9c2d8fd9a45142475c7/videojs_hls_test.html',
2137 'info_dict': {
2138 'id': 'videojs_hls_test',
2139 'title': 'video',
2140 'ext': 'mp4',
2141 'age_limit': 0,
2142 'duration': 1800,
2144 'params': {
2145 'skip_download': 'm3u8',
2150 def report_following_redirect(self, new_url):
2151 """Report information extraction."""
2152 self._downloader.to_screen(f'[redirect] Following redirect to {new_url}')
2154 def report_detected(self, name, num=1, note=None):
2155 if num > 1:
2156 name += 's'
2157 elif not num:
2158 return
2159 else:
2160 num = 'a'
2162 self._downloader.write_debug(f'Identified {num} {name}{format_field(note, None, "; %s")}')
2164 def _extra_manifest_info(self, info, manifest_url):
2165 fragment_query = self._configuration_arg('fragment_query', [None], casesense=True)[0]
2166 if fragment_query is not None:
2167 info['extra_param_to_segment_url'] = (
2168 urllib.parse.urlparse(fragment_query).query or fragment_query
2169 or urllib.parse.urlparse(manifest_url).query or None)
2171 key_query = self._configuration_arg('key_query', [None], casesense=True)[0]
2172 if key_query is not None:
2173 info['extra_param_to_key_url'] = (
2174 urllib.parse.urlparse(key_query).query or key_query
2175 or urllib.parse.urlparse(manifest_url).query or None)
2177 def hex_or_none(value):
2178 return value if re.fullmatch(r'(0x)?[\da-f]+', value, re.IGNORECASE) else None
2180 info['hls_aes'] = traverse_obj(self._configuration_arg('hls_key', casesense=True), {
2181 'uri': (0, {url_or_none}), 'key': (0, {hex_or_none}), 'iv': (1, {hex_or_none}),
2182 }) or None
2184 variant_query = self._configuration_arg('variant_query', [None], casesense=True)[0]
2185 if variant_query is not None:
2186 query = urllib.parse.parse_qs(
2187 urllib.parse.urlparse(variant_query).query or variant_query
2188 or urllib.parse.urlparse(manifest_url).query)
2189 for fmt in self._downloader._get_formats(info):
2190 fmt['url'] = update_url_query(fmt['url'], query)
2192 # Attempt to detect live HLS or set VOD duration
2193 m3u8_format = next((f for f in self._downloader._get_formats(info)
2194 if determine_protocol(f) == 'm3u8_native'), None)
2195 if m3u8_format:
2196 is_live = self._configuration_arg('is_live', [None])[0]
2197 if is_live is not None:
2198 info['live_status'] = 'not_live' if is_live == 'false' else 'is_live'
2199 return
2200 headers = m3u8_format.get('http_headers') or info.get('http_headers')
2201 duration = self._extract_m3u8_vod_duration(
2202 m3u8_format['url'], info.get('id'), note='Checking m3u8 live status',
2203 errnote='Failed to download m3u8 media playlist', headers=headers)
2204 if not duration:
2205 info['live_status'] = 'is_live'
2206 info['duration'] = info.get('duration') or duration
2208 def _extract_rss(self, url, video_id, doc):
2209 NS_MAP = {
2210 'itunes': 'http://www.itunes.com/dtds/podcast-1.0.dtd',
2213 entries = []
2214 for it in doc.findall('./channel/item'):
2215 next_url = next(
2216 (e.attrib.get('url') for e in it.findall('./enclosure')),
2217 xpath_text(it, 'link', fatal=False))
2218 if not next_url:
2219 continue
2221 guid = try_call(lambda: it.find('guid').text)
2222 if guid:
2223 next_url = smuggle_url(next_url, {'force_videoid': guid})
2225 def itunes(key):
2226 return xpath_text(it, xpath_with_ns(f'./itunes:{key}', NS_MAP), default=None)
2228 entries.append({
2229 '_type': 'url_transparent',
2230 'url': next_url,
2231 'title': try_call(lambda: it.find('title').text),
2232 'description': xpath_text(it, 'description', default=None),
2233 'timestamp': unified_timestamp(xpath_text(it, 'pubDate', default=None)),
2234 'duration': parse_duration(itunes('duration')),
2235 'thumbnail': url_or_none(xpath_attr(it, xpath_with_ns('./itunes:image', NS_MAP), 'href')),
2236 'episode': itunes('title'),
2237 'episode_number': int_or_none(itunes('episode')),
2238 'season_number': int_or_none(itunes('season')),
2239 'age_limit': {'true': 18, 'yes': 18, 'false': 0, 'no': 0}.get((itunes('explicit') or '').lower()),
2242 return {
2243 '_type': 'playlist',
2244 'id': url,
2245 'title': try_call(lambda: doc.find('./channel/title').text),
2246 'description': try_call(lambda: doc.find('./channel/description').text),
2247 'entries': entries,
2250 @classmethod
2251 def _kvs_get_real_url(cls, video_url, license_code):
2252 if not video_url.startswith('function/0/'):
2253 return video_url # not obfuscated
2255 parsed = urllib.parse.urlparse(video_url[len('function/0/'):])
2256 license_token = cls._kvs_get_license_token(license_code)
2257 urlparts = parsed.path.split('/')
2259 HASH_LENGTH = 32
2260 hash_ = urlparts[3][:HASH_LENGTH]
2261 indices = list(range(HASH_LENGTH))
2263 # Swap indices of hash according to the destination calculated from the license token
2264 accum = 0
2265 for src in reversed(range(HASH_LENGTH)):
2266 accum += license_token[src]
2267 dest = (src + accum) % HASH_LENGTH
2268 indices[src], indices[dest] = indices[dest], indices[src]
2270 urlparts[3] = ''.join(hash_[index] for index in indices) + urlparts[3][HASH_LENGTH:]
2271 return urllib.parse.urlunparse(parsed._replace(path='/'.join(urlparts)))
2273 @staticmethod
2274 def _kvs_get_license_token(license_code):
2275 license_code = license_code.replace('$', '')
2276 license_values = [int(char) for char in license_code]
2278 modlicense = license_code.replace('0', '1')
2279 center = len(modlicense) // 2
2280 fronthalf = int(modlicense[:center + 1])
2281 backhalf = int(modlicense[center:])
2282 modlicense = str(4 * abs(fronthalf - backhalf))[:center + 1]
2284 return [
2285 (license_values[index + offset] + current) % 10
2286 for index, current in enumerate(map(int, modlicense))
2287 for offset in range(4)
2290 def _extract_kvs(self, url, webpage, video_id):
2291 flashvars = self._search_json(
2292 r'(?s:<script\b[^>]*>.*?var\s+flashvars\s*=)',
2293 webpage, 'flashvars', video_id, transform_source=js_to_json)
2295 # extract the part after the last / as the display_id from the
2296 # canonical URL.
2297 display_id = self._search_regex(
2298 r'(?:<link href="https?://[^"]+/(.+?)/?" rel="canonical"\s*/?>'
2299 r'|<link rel="canonical" href="https?://[^"]+/(.+?)/?"\s*/?>)',
2300 webpage, 'display_id', fatal=False)
2301 title = self._html_search_regex(r'<(?:h1|title)>(?:Video: )?(.+?)</(?:h1|title)>', webpage, 'title')
2303 thumbnail = flashvars['preview_url']
2304 if thumbnail.startswith('//'):
2305 protocol, _, _ = url.partition('/')
2306 thumbnail = protocol + thumbnail
2308 url_keys = list(filter(re.compile(r'^video_(?:url|alt_url\d*)$').match, flashvars.keys()))
2309 formats = []
2310 for key in url_keys:
2311 if '/get_file/' not in flashvars[key]:
2312 continue
2313 format_id = flashvars.get(f'{key}_text', key)
2314 formats.append({
2315 'url': urljoin(url, self._kvs_get_real_url(flashvars[key], flashvars['license_code'])),
2316 'format_id': format_id,
2317 'ext': 'mp4',
2318 **(parse_resolution(format_id) or parse_resolution(flashvars[key])),
2319 'http_headers': {'Referer': url},
2321 if not formats[-1].get('height'):
2322 formats[-1]['quality'] = 1
2324 return {
2325 'id': flashvars['video_id'],
2326 'display_id': display_id,
2327 'title': title,
2328 'thumbnail': urljoin(url, thumbnail),
2329 'formats': formats,
2332 def _real_extract(self, url):
2333 if url.startswith('//'):
2334 return self.url_result(self.http_scheme() + url)
2336 parsed_url = urllib.parse.urlparse(url)
2337 if not parsed_url.scheme:
2338 default_search = self.get_param('default_search')
2339 if default_search is None:
2340 default_search = 'fixup_error'
2342 if default_search in ('auto', 'auto_warning', 'fixup_error'):
2343 if re.match(r'^[^\s/]+\.[^\s/]+/', url):
2344 self.report_warning('The url doesn\'t specify the protocol, trying with http')
2345 return self.url_result('http://' + url)
2346 elif default_search != 'fixup_error':
2347 if default_search == 'auto_warning':
2348 if re.match(r'^(?:url|URL)$', url):
2349 raise ExtractorError(
2350 f'Invalid URL: {url!r} . Call yt-dlp like this: yt-dlp -v "https://www.youtube.com/watch?v=BaW_jenozKc" ',
2351 expected=True)
2352 else:
2353 self.report_warning(
2354 f'Falling back to youtube search for {url} . Set --default-search "auto" to suppress this warning.')
2355 return self.url_result('ytsearch:' + url)
2357 if default_search in ('error', 'fixup_error'):
2358 raise ExtractorError(
2359 f'{url!r} is not a valid URL. '
2360 f'Set --default-search "ytsearch" (or run yt-dlp "ytsearch:{url}" ) to search YouTube', expected=True)
2361 else:
2362 if ':' not in default_search:
2363 default_search += ':'
2364 return self.url_result(default_search + url)
2366 original_url = url
2367 url, smuggled_data = unsmuggle_url(url, {})
2368 force_videoid = None
2369 is_intentional = smuggled_data.get('to_generic')
2370 if 'force_videoid' in smuggled_data:
2371 force_videoid = smuggled_data['force_videoid']
2372 video_id = force_videoid
2373 else:
2374 video_id = self._generic_id(url)
2376 # Some webservers may serve compressed content of rather big size (e.g. gzipped flac)
2377 # making it impossible to download only chunk of the file (yet we need only 512kB to
2378 # test whether it's HTML or not). According to yt-dlp default Accept-Encoding
2379 # that will always result in downloading the whole file that is not desirable.
2380 # Therefore for extraction pass we have to override Accept-Encoding to any in order
2381 # to accept raw bytes and being able to download only a chunk.
2382 # It may probably better to solve this by checking Content-Type for application/octet-stream
2383 # after a HEAD request, but not sure if we can rely on this.
2384 full_response = self._request_webpage(url, video_id, headers=filter_dict({
2385 'Accept-Encoding': 'identity',
2386 'Referer': smuggled_data.get('referer'),
2388 new_url = full_response.url
2389 if new_url != extract_basic_auth(url)[0]:
2390 self.report_following_redirect(new_url)
2391 if force_videoid:
2392 new_url = smuggle_url(new_url, {'force_videoid': force_videoid})
2393 return self.url_result(new_url)
2395 info_dict = {
2396 'id': video_id,
2397 'title': self._generic_title(url),
2398 'timestamp': unified_timestamp(full_response.headers.get('Last-Modified')),
2401 # Check for direct link to a video
2402 content_type = full_response.headers.get('Content-Type', '').lower()
2403 m = re.match(r'^(?P<type>audio|video|application(?=/(?:ogg$|(?:vnd\.apple\.|x-)?mpegurl)))/(?P<format_id>[^;\s]+)', content_type)
2404 if m:
2405 self.report_detected('direct video link')
2406 headers = filter_dict({'Referer': smuggled_data.get('referer')})
2407 format_id = str(m.group('format_id'))
2408 ext = determine_ext(url, default_ext=None) or urlhandle_detect_ext(full_response)
2409 subtitles = {}
2410 if format_id.endswith('mpegurl') or ext == 'm3u8':
2411 formats, subtitles = self._extract_m3u8_formats_and_subtitles(url, video_id, 'mp4', headers=headers)
2412 elif format_id.endswith(('mpd', 'dash+xml')) or ext == 'mpd':
2413 formats, subtitles = self._extract_mpd_formats_and_subtitles(url, video_id, headers=headers)
2414 elif format_id == 'f4m' or ext == 'f4m':
2415 formats = self._extract_f4m_formats(url, video_id, headers=headers)
2416 else:
2417 formats = [{
2418 'format_id': format_id,
2419 'url': url,
2420 'ext': ext,
2421 'vcodec': 'none' if m.group('type') == 'audio' else None,
2423 info_dict['direct'] = True
2424 info_dict.update({
2425 'formats': formats,
2426 'subtitles': subtitles,
2427 'http_headers': headers or None,
2429 self._extra_manifest_info(info_dict, url)
2430 return info_dict
2432 if not self.get_param('test', False) and not is_intentional:
2433 force = self.get_param('force_generic_extractor', False)
2434 self.report_warning('%s generic information extractor' % ('Forcing' if force else 'Falling back on'))
2436 first_bytes = full_response.read(512)
2438 # Is it an M3U playlist?
2439 if first_bytes.startswith(b'#EXTM3U'):
2440 self.report_detected('M3U playlist')
2441 info_dict['formats'], info_dict['subtitles'] = self._extract_m3u8_formats_and_subtitles(url, video_id, 'mp4')
2442 self._extra_manifest_info(info_dict, url)
2443 return info_dict
2445 # Maybe it's a direct link to a video?
2446 # Be careful not to download the whole thing!
2447 if not is_html(first_bytes):
2448 self.report_warning(
2449 'URL could be a direct video link, returning it as such.')
2450 ext = determine_ext(url)
2451 if ext not in _UnsafeExtensionError.ALLOWED_EXTENSIONS:
2452 ext = 'unknown_video'
2453 info_dict.update({
2454 'direct': True,
2455 'url': url,
2456 'ext': ext,
2458 return info_dict
2460 webpage = self._webpage_read_content(
2461 full_response, url, video_id, prefix=first_bytes)
2463 if '<title>DPG Media Privacy Gate</title>' in webpage:
2464 webpage = self._download_webpage(url, video_id)
2466 self.report_extraction(video_id)
2468 # Is it an RSS feed, a SMIL file, an XSPF playlist or a MPD manifest?
2469 try:
2470 try:
2471 doc = compat_etree_fromstring(webpage)
2472 except xml.etree.ElementTree.ParseError:
2473 doc = compat_etree_fromstring(webpage.encode())
2474 if doc.tag == 'rss':
2475 self.report_detected('RSS feed')
2476 return self._extract_rss(url, video_id, doc)
2477 elif doc.tag == 'SmoothStreamingMedia':
2478 info_dict['formats'], info_dict['subtitles'] = self._parse_ism_formats_and_subtitles(doc, url)
2479 self.report_detected('ISM manifest')
2480 return info_dict
2481 elif re.match(r'^(?:{[^}]+})?smil$', doc.tag):
2482 smil = self._parse_smil(doc, url, video_id)
2483 self.report_detected('SMIL file')
2484 return smil
2485 elif doc.tag == '{http://xspf.org/ns/0/}playlist':
2486 self.report_detected('XSPF playlist')
2487 return self.playlist_result(
2488 self._parse_xspf(
2489 doc, video_id, xspf_url=url,
2490 xspf_base_url=full_response.url),
2491 video_id)
2492 elif re.match(r'(?i)^(?:{[^}]+})?MPD$', doc.tag):
2493 info_dict['formats'], info_dict['subtitles'] = self._parse_mpd_formats_and_subtitles(
2494 doc,
2495 mpd_base_url=full_response.url.rpartition('/')[0],
2496 mpd_url=url)
2497 self._extra_manifest_info(info_dict, url)
2498 self.report_detected('DASH manifest')
2499 return info_dict
2500 elif re.match(r'^{http://ns\.adobe\.com/f4m/[12]\.0}manifest$', doc.tag):
2501 info_dict['formats'] = self._parse_f4m_formats(doc, url, video_id)
2502 self.report_detected('F4M manifest')
2503 return info_dict
2504 except xml.etree.ElementTree.ParseError:
2505 pass
2507 info_dict.update({
2508 # it's tempting to parse this further, but you would
2509 # have to take into account all the variations like
2510 # Video Title - Site Name
2511 # Site Name | Video Title
2512 # Video Title - Tagline | Site Name
2513 # and so on and so forth; it's just not practical
2514 'title': self._generic_title('', webpage, default='video'),
2515 'description': self._og_search_description(webpage, default=None),
2516 'thumbnail': self._og_search_thumbnail(webpage, default=None),
2517 'age_limit': self._rta_search(webpage),
2520 self._downloader.write_debug('Looking for embeds')
2521 embeds = list(self._extract_embeds(original_url, webpage, urlh=full_response, info_dict=info_dict))
2522 if len(embeds) == 1:
2523 return merge_dicts(embeds[0], info_dict)
2524 elif embeds:
2525 return self.playlist_result(embeds, **info_dict)
2526 raise UnsupportedError(url)
2528 def _extract_embeds(self, url, webpage, *, urlh=None, info_dict={}):
2529 """Returns an iterator of video entries"""
2530 info_dict = types.MappingProxyType(info_dict) # Prevents accidental mutation
2531 video_id = traverse_obj(info_dict, 'display_id', 'id') or self._generic_id(url)
2532 url, smuggled_data = unsmuggle_url(url, {})
2533 actual_url = urlh.url if urlh else url
2535 # Sometimes embedded video player is hidden behind percent encoding
2536 # (e.g. https://github.com/ytdl-org/youtube-dl/issues/2448)
2537 # Unescaping the whole page allows to handle those cases in a generic way
2538 # FIXME: unescaping the whole page may break URLs, commenting out for now.
2539 # There probably should be a second run of generic extractor on unescaped webpage.
2540 # webpage = urllib.parse.unquote(webpage)
2542 embeds = []
2543 for ie in self._downloader._ies.values():
2544 if ie.ie_key() in smuggled_data.get('block_ies', []):
2545 continue
2546 gen = ie.extract_from_webpage(self._downloader, url, webpage)
2547 current_embeds = []
2548 try:
2549 while True:
2550 current_embeds.append(next(gen))
2551 except self.StopExtraction:
2552 self.report_detected(f'{ie.IE_NAME} exclusive embed', len(current_embeds),
2553 embeds and 'discarding other embeds')
2554 return current_embeds
2555 except StopIteration:
2556 self.report_detected(f'{ie.IE_NAME} embed', len(current_embeds))
2557 embeds.extend(current_embeds)
2559 if embeds:
2560 return embeds
2562 jwplayer_data = self._find_jwplayer_data(
2563 webpage, video_id, transform_source=js_to_json)
2564 if jwplayer_data:
2565 if isinstance(jwplayer_data.get('playlist'), str):
2566 self.report_detected('JW Player playlist')
2567 return [self.url_result(jwplayer_data['playlist'], 'JWPlatform')]
2568 try:
2569 info = self._parse_jwplayer_data(
2570 jwplayer_data, video_id, require_title=False, base_url=url)
2571 if traverse_obj(info, 'formats', ('entries', ..., 'formats')):
2572 self.report_detected('JW Player data')
2573 return [info]
2574 except ExtractorError:
2575 # See https://github.com/ytdl-org/youtube-dl/pull/16735
2576 pass
2578 # Video.js embed
2579 mobj = re.search(
2580 r'(?s)\bvideojs\s*\(.+?([a-zA-Z0-9_$]+)\.src\s*\(\s*((?:\[.+?\]|{.+?}))\s*\)\s*;',
2581 webpage)
2582 if mobj is not None:
2583 varname = mobj.group(1)
2584 sources = variadic(self._parse_json(
2585 mobj.group(2), video_id, transform_source=js_to_json, fatal=False) or [])
2586 formats, subtitles, src = [], {}, None
2587 for source in sources:
2588 src = source.get('src')
2589 if not src or not isinstance(src, str):
2590 continue
2591 src = urllib.parse.urljoin(url, src)
2592 src_type = source.get('type')
2593 if isinstance(src_type, str):
2594 src_type = src_type.lower()
2595 ext = determine_ext(src).lower()
2596 if src_type == 'video/youtube':
2597 return [self.url_result(src, YoutubeIE.ie_key())]
2598 if src_type == 'application/dash+xml' or ext == 'mpd':
2599 fmts, subs = self._extract_mpd_formats_and_subtitles(
2600 src, video_id, mpd_id='dash', fatal=False)
2601 formats.extend(fmts)
2602 self._merge_subtitles(subs, target=subtitles)
2603 elif src_type == 'application/x-mpegurl' or ext == 'm3u8':
2604 fmts, subs = self._extract_m3u8_formats_and_subtitles(
2605 src, video_id, 'mp4', entry_protocol='m3u8_native',
2606 m3u8_id='hls', fatal=False)
2607 formats.extend(fmts)
2608 self._merge_subtitles(subs, target=subtitles)
2610 if not formats:
2611 formats.append({
2612 'url': src,
2613 'ext': (mimetype2ext(src_type)
2614 or ext if ext in KNOWN_EXTENSIONS else 'mp4'),
2615 'http_headers': {
2616 'Referer': actual_url,
2619 # https://docs.videojs.com/player#addRemoteTextTrack
2620 # https://html.spec.whatwg.org/multipage/media.html#htmltrackelement
2621 for sub_match in re.finditer(rf'(?s){re.escape(varname)}' + r'\.addRemoteTextTrack\(({.+?})\s*,\s*(?:true|false)\)', webpage):
2622 sub = self._parse_json(
2623 sub_match.group(1), video_id, transform_source=js_to_json, fatal=False) or {}
2624 sub_src = str_or_none(sub.get('src'))
2625 if not sub_src:
2626 continue
2627 subtitles.setdefault(dict_get(sub, ('language', 'srclang')) or 'und', []).append({
2628 'url': urllib.parse.urljoin(url, sub_src),
2629 'name': sub.get('label'),
2630 'http_headers': {
2631 'Referer': actual_url,
2634 if formats or subtitles:
2635 self.report_detected('video.js embed')
2636 info_dict = {'formats': formats, 'subtitles': subtitles}
2637 if formats:
2638 self._extra_manifest_info(info_dict, src)
2639 return [info_dict]
2641 # Look for generic KVS player (before json-ld bc of some urls that break otherwise)
2642 found = self._search_regex((
2643 r'<script\b[^>]+?\bsrc\s*=\s*(["\'])https?://(?:(?!\1)[^?#])+/kt_player\.js\?v=(?P<ver>\d+(?:\.\d+)+)\1[^>]*>',
2644 r'kt_player\s*\(\s*(["\'])(?:(?!\1)[\w\W])+\1\s*,\s*(["\'])https?://(?:(?!\2)[^?#])+/kt_player\.swf\?v=(?P<ver>\d+(?:\.\d+)+)\2\s*,',
2645 ), webpage, 'KVS player', group='ver', default=False)
2646 if found:
2647 self.report_detected('KVS Player')
2648 if found.split('.')[0] not in ('4', '5', '6'):
2649 self.report_warning(f'Untested major version ({found}) in player engine - download may fail.')
2650 return [self._extract_kvs(url, webpage, video_id)]
2652 # Looking for http://schema.org/VideoObject
2653 json_ld = self._search_json_ld(webpage, video_id, default={})
2654 if json_ld.get('url') not in (url, None):
2655 self.report_detected('JSON LD')
2656 is_direct = json_ld.get('ext') not in (None, *MEDIA_EXTENSIONS.manifests)
2657 return [merge_dicts({
2658 '_type': 'video' if is_direct else 'url_transparent',
2659 'url': smuggle_url(json_ld['url'], {
2660 'force_videoid': video_id,
2661 'to_generic': True,
2662 'referer': url,
2664 }, json_ld)]
2666 def check_video(vurl):
2667 if YoutubeIE.suitable(vurl):
2668 return True
2669 if RtmpIE.suitable(vurl):
2670 return True
2671 vpath = urllib.parse.urlparse(vurl).path
2672 vext = determine_ext(vpath, None)
2673 return vext not in (None, 'swf', 'png', 'jpg', 'srt', 'sbv', 'sub', 'vtt', 'ttml', 'js', 'xml')
2675 def filter_video(urls):
2676 return list(filter(check_video, urls))
2678 # Start with something easy: JW Player in SWFObject
2679 found = filter_video(re.findall(r'flashvars: [\'"](?:.*&)?file=(http[^\'"&]*)', webpage))
2680 if found:
2681 self.report_detected('JW Player in SFWObject')
2682 else:
2683 # Look for gorilla-vid style embedding
2684 found = filter_video(re.findall(r'''(?sx)
2686 jw_plugins|
2687 JWPlayerOptions|
2688 jwplayer\s*\(\s*["'][^'"]+["']\s*\)\s*\.setup
2691 ['"]?file['"]?\s*:\s*["\'](.*?)["\']''', webpage))
2692 if found:
2693 self.report_detected('JW Player embed')
2694 if not found:
2695 # Broaden the search a little bit
2696 found = filter_video(re.findall(r'[^A-Za-z0-9]?(?:file|source)=(http[^\'"&]*)', webpage))
2697 if found:
2698 self.report_detected('video file')
2699 if not found:
2700 # Broaden the findall a little bit: JWPlayer JS loader
2701 found = filter_video(re.findall(
2702 r'[^A-Za-z0-9]?(?:file|video_url)["\']?:\s*["\'](http(?![^\'"]+\.[0-9]+[\'"])[^\'"]+)["\']', webpage))
2703 if found:
2704 self.report_detected('JW Player JS loader')
2705 if not found:
2706 # Flow player
2707 found = filter_video(re.findall(r'''(?xs)
2708 flowplayer\("[^"]+",\s*
2709 \{[^}]+?\}\s*,
2710 \s*\{[^}]+? ["']?clip["']?\s*:\s*\{\s*
2711 ["']?url["']?\s*:\s*["']([^"']+)["']
2712 ''', webpage))
2713 if found:
2714 self.report_detected('Flow Player')
2715 if not found:
2716 # Cinerama player
2717 found = re.findall(
2718 r"cinerama\.embedPlayer\(\s*\'[^']+\',\s*'([^']+)'", webpage)
2719 if found:
2720 self.report_detected('Cinerama player')
2721 if not found:
2722 # Try to find twitter cards info
2723 # twitter:player:stream should be checked before twitter:player since
2724 # it is expected to contain a raw stream (see
2725 # https://dev.twitter.com/cards/types/player#On_twitter.com_via_desktop_browser)
2726 found = filter_video(re.findall(
2727 r'<meta (?:property|name)="twitter:player:stream" (?:content|value)="(.+?)"', webpage))
2728 if found:
2729 self.report_detected('Twitter card')
2730 if not found:
2731 # We look for Open Graph info:
2732 # We have to match any number spaces between elements, some sites try to align them, e.g.: statigr.am
2733 m_video_type = re.findall(r'<meta.*?property="og:video:type".*?content="video/(.*?)"', webpage)
2734 # We only look in og:video if the MIME type is a video, don't try if it's a Flash player:
2735 if m_video_type is not None:
2736 found = filter_video(re.findall(r'<meta.*?property="og:(?:video|audio)".*?content="(.*?)"', webpage))
2737 if found:
2738 self.report_detected('Open Graph video info')
2739 if not found:
2740 REDIRECT_REGEX = r'[0-9]{,2};\s*(?:URL|url)=\'?([^\'"]+)'
2741 found = re.search(
2742 r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")'
2743 rf'(?:[a-z-]+="[^"]+"\s+)*?content="{REDIRECT_REGEX}',
2744 webpage)
2745 if not found:
2746 # Look also in Refresh HTTP header
2747 refresh_header = urlh and urlh.headers.get('Refresh')
2748 if refresh_header:
2749 found = re.search(REDIRECT_REGEX, refresh_header)
2750 if found:
2751 new_url = urllib.parse.urljoin(url, unescapeHTML(found.group(1)))
2752 if new_url != url:
2753 self.report_following_redirect(new_url)
2754 return [self.url_result(new_url)]
2755 else:
2756 found = None
2758 if not found:
2759 # twitter:player is a https URL to iframe player that may or may not
2760 # be supported by yt-dlp thus this is checked the very last (see
2761 # https://dev.twitter.com/cards/types/player#On_twitter.com_via_desktop_browser)
2762 embed_url = self._html_search_meta('twitter:player', webpage, default=None)
2763 if embed_url and embed_url != url:
2764 self.report_detected('twitter:player iframe')
2765 return [self.url_result(embed_url)]
2767 if not found:
2768 return []
2770 domain_name = self._search_regex(r'^(?:https?://)?([^/]*)/.*', url, 'video uploader', default=None)
2772 entries = []
2773 for video_url in orderedSet(found):
2774 video_url = video_url.encode().decode('unicode-escape')
2775 video_url = unescapeHTML(video_url)
2776 video_url = video_url.replace('\\/', '/')
2777 video_url = urllib.parse.urljoin(url, video_url)
2778 video_id = urllib.parse.unquote(os.path.basename(video_url))
2780 # Sometimes, jwplayer extraction will result in a YouTube URL
2781 if YoutubeIE.suitable(video_url):
2782 entries.append(self.url_result(video_url, 'Youtube'))
2783 continue
2785 video_id = os.path.splitext(video_id)[0]
2786 headers = {
2787 'referer': actual_url,
2790 entry_info_dict = {
2791 'id': video_id,
2792 'uploader': domain_name,
2793 'title': info_dict['title'],
2794 'age_limit': info_dict['age_limit'],
2795 'http_headers': headers,
2798 if RtmpIE.suitable(video_url):
2799 entry_info_dict.update({
2800 '_type': 'url_transparent',
2801 'ie_key': RtmpIE.ie_key(),
2802 'url': video_url,
2804 entries.append(entry_info_dict)
2805 continue
2807 ext = determine_ext(video_url)
2808 if ext == 'smil':
2809 entry_info_dict = {**self._extract_smil_info(video_url, video_id), **entry_info_dict}
2810 elif ext == 'xspf':
2811 return [self._extract_xspf_playlist(video_url, video_id)]
2812 elif ext == 'm3u8':
2813 entry_info_dict['formats'], entry_info_dict['subtitles'] = self._extract_m3u8_formats_and_subtitles(video_url, video_id, ext='mp4', headers=headers)
2814 self._extra_manifest_info(entry_info_dict, video_url)
2815 elif ext == 'mpd':
2816 entry_info_dict['formats'], entry_info_dict['subtitles'] = self._extract_mpd_formats_and_subtitles(video_url, video_id, headers=headers)
2817 self._extra_manifest_info(entry_info_dict, video_url)
2818 elif ext == 'f4m':
2819 entry_info_dict['formats'] = self._extract_f4m_formats(video_url, video_id, headers=headers)
2820 elif re.search(r'(?i)\.(?:ism|smil)/manifest', video_url) and video_url != url:
2821 # Just matching .ism/manifest is not enough to be reliably sure
2822 # whether it's actually an ISM manifest or some other streaming
2823 # manifest since there are various streaming URL formats
2824 # possible (see [1]) as well as some other shenanigans like
2825 # .smil/manifest URLs that actually serve an ISM (see [2]) and
2826 # so on.
2827 # Thus the most reasonable way to solve this is to delegate
2828 # to generic extractor in order to look into the contents of
2829 # the manifest itself.
2830 # 1. https://azure.microsoft.com/en-us/documentation/articles/media-services-deliver-content-overview/#streaming-url-formats
2831 # 2. https://svs.itworkscdn.net/lbcivod/smil:itwfcdn/lbci/170976.smil/Manifest
2832 entry_info_dict = self.url_result(
2833 smuggle_url(video_url, {'to_generic': True}),
2834 GenericIE.ie_key())
2835 else:
2836 entry_info_dict['url'] = video_url
2838 entries.append(entry_info_dict)
2840 if len(entries) > 1:
2841 for num, e in enumerate(entries, start=1):
2842 # 'url' results don't have a title
2843 if e.get('title') is not None:
2844 e['title'] = '{} ({})'.format(e['title'], num)
2845 return entries