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
46 from ..utils
._utils
import _UnsafeExtensionError
49 class GenericIE(InfoExtractor
):
50 IE_DESC
= 'Generic downloader that works on some sites'
53 _NETRC_MACHINE
= False # Suppress username warning
55 # Direct link to a video
57 'url': 'http://media.w3.org/2010/05/sintel/trailer.mp4',
58 'md5': '67d406c2bcb6af27fa886f31aa934bbe',
63 'upload_date': '20100513',
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',
73 'id': 'FictionJunction-Parallel_Hearts',
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',
92 'skip_download': True, # infinite live stream
94 'expected_warnings': [
95 r
'501.*Not Implemented',
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',
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',
107 'title': '5_Lennart_Poettering_-_Systemd',
108 'upload_date': '20141120',
110 'timestamp': 1416498816.0,
112 'expected_warnings': [
113 'URL could be a direct video link, returning it as such.',
118 'url': 'http://phihag.de/2014/youtube-dl/rss2.xml',
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',
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.*',
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',
145 # RSS feed with item with description and thumbnails
147 'url': 'https://anchor.fm/s/dd00e14/podcast/rss',
149 'id': 'https://anchor.fm/s/dd00e14/podcast/rss',
150 'title': 're:.*100% Hydrogen.*',
151 'description': 're:.*In this episode.*',
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',
162 'thumbnail': r
're:^https?://.*\.jpg$',
166 'season': 'Season 1',
168 'episode': 'Episode 1',
172 'skip_download': True,
175 # RSS feed with enclosures and unsupported link URLs
177 'url': 'http://www.hellointernet.fm/podcast?format=rss',
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,
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',
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',
201 'title': 'Automatics, robotics and biocybernetics',
202 'description': 'md5:815fc1deb6b3a2bff99de2d5325be482',
203 'upload_date': '20130627',
204 'formats': 'mincount:16',
205 'subtitles': 'mincount:1',
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',
219 'formats': 'mincount:1',
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',
231 'title': 'video_1637',
232 'formats': 'mincount:3',
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',
242 'id': 'smil-service',
244 'title': 'smil-service',
245 'formats': 'mincount:1',
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',
257 'title': '571de1fd-47bc-48db-abf9-238872a58d1f',
258 'formats': 'mincount:3',
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',
268 'id': 'mZlp2ctYIUEB',
270 'title': 'Tikibad ontruimd wegens brand',
271 'description': 'md5:05ca046ff47b931f9b04855015e163a4',
272 'thumbnail': r
're:^https?://.*\.jpg$',
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',
285 'id': 'car-20120827-manifest',
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',
300 'formats': 'mincount:8',
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',
315 'upload_date': '20140720',
316 'formats': 'mincount:11',
320 'skip_download': True,
322 'skip': 'video gone',
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',
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',
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',
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',
353 'skip_download': False,
357 'url': 'http://www.hodiho.fr/2013/02/regis-plante-sa-jeep.html',
358 'md5': '85b90ccc9d73b4acd9138d3af4c27f89',
360 'id': '13601338388002',
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',
373 'title': 'The Pony Mash',
374 'uploader': 'M_Pallante',
376 'skip': 'There is a limit of 200 free downloads / month for the test song',
380 'url': 'http://www.tested.com/science/weird/460206-tested-grinding-coffee-2000-frames-second/',
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
392 'skip_download': True,
397 'url': 'http://www.theguardian.com/world/2014/mar/11/obama-zach-galifianakis-between-two-ferns',
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'],
409 'url': 'http://www.rg.ru/2014/03/15/reg-dfo/anklav-anons.html',
413 'title': 'Охотское море стало целиком российским',
414 'description': 'md5:5ed62483b14663e2a95ebbe115eb8f43',
418 'skip_download': True,
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/',
427 'title': 'Дошкольное воспитание',
432 'url': 'http://www.vestifinance.ru/articles/25753',
435 'title': 'Прямые трансляции с Форума-выставки "Госзаказ-2013"',
440 'title': 'Госзаказ. День 3',
446 'title': 'Госзаказ. День 2',
452 'title': 'Госзаказ. День 1',
458 'skip_download': True,
463 'url': 'http://www.kinomyvi.tv/news/detail/Pervij-dublirovannij-trejler--Uzhastikov-_nOw1',
465 'id': 'f4dafcad-ff21-423d-89b5-146cfd89fa1e',
467 'title': 'Ужастики, русский трейлер (2015)',
468 'thumbnail': r
're:^https?://.*\.jpg$',
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',
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',
487 'url': 'http://en.support.wordpress.com/videos/ted-talks/',
488 'md5': '65fdff94098e4a607385a60c5177c638',
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',
502 'id': '06e53103ca9aa',
504 'title': 'Macross Episode 001 Watch Macross Episode 001 onl',
505 'description': 'No description',
510 'url': 'http://www.tv-replay.fr/redirection/20-03-14/x-enius-arte-10753389.html',
511 'md5': '7653032cbb25bf6c80d80f217055fa43',
513 'id': '048195-004_PLUS7-F',
516 'description': 'md5:d5fdf32ef6613cdbfd516ae658abf168',
517 'upload_date': '20140320',
520 'skip_download': 'Requires rtmpdump',
522 'skip': 'video gone',
526 'url': 'http://www.tsprod.com/replay-du-concert-alcaline-de-calogero',
530 'title': 'Alcaline, le concert avec Calogero',
531 'description': 'md5:61f08036dcc8f47e9cfc33aed08ffaff',
532 'upload_date': '20150226',
533 'timestamp': 1424989860,
538 'skip_download': True,
540 'expected_warnings': [
546 'url': 'http://www.wired.com/2014/04/honda-asimo/',
547 'md5': 'ba0dfe966fa007657bd1443ee672db0f',
549 'id': '53501be369702d3275860000',
551 'title': 'Honda’s New Asimo Robot Is More Human Than Ever',
556 'url': 'http://www.spi0n.com/zap-spi0n-com-n216/',
557 'md5': '441aeeb82eb72c422c7f14ec533999cd',
559 'id': 'k2mm4bCdJ6CQ2i7c8o2',
561 'title': 'Le Zap de Spi0n n°216 - Zapping du Web',
562 'description': 'md5:faf028e48a461b8b7fad38f1e104b119',
564 'uploader_id': 'xgditw',
565 'upload_date': '20140425',
566 'timestamp': 1398441542,
568 'add_ie': ['Dailymotion'],
572 'url': 'http://www.bumm.sk/krimi/2017/07/05/biztonsagi-kamera-buktatta-le-az-agg-ferfit-utlegelo-apolot',
576 'title': 'Care worker punches elderly dementia patient in head 11 times',
577 'description': 'md5:3a743dee84e57e48ec68bf67113199a5',
579 'add_ie': ['DailyMail'],
581 'skip_download': True,
586 'url': 'http://www.badzine.de/ansicht/datum/2014/06/09/so-funktioniert-die-neue-englische-badminton-liga.html',
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'],
598 'skip_download': True,
603 'url': 'http://www.vulture.com/2016/06/new-key-peele-sketches-released.html',
604 'md5': 'ca1aef97695ef2c1d6973256a57e5252',
606 'id': '769f7ec0-0692-4d62-9b45-0d88074bffc1',
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',
620 'title': 'Asphalt 8: Airborne - Update - Welcome to Dubai!',
621 'uploader': 'Gameloft',
622 'uploader_id': 'gameloft',
623 'upload_date': '20140828',
624 'description': 'md5:c80da9ed3d83ae6d1876c834de03e1c4',
627 'skip_download': True,
632 'url': 'http://www.handjobhub.com/video/busty-blonde-siri-tit-fuck-while-wank-6313.html',
633 'md5': '9d65602bf31c6e20014319c7d07fba27',
635 'id': '5123ea6d5e5a7',
638 'uploader': 'www.handjobhub.com',
639 'title': 'Busty Blonde Siri Tit Fuck While Wank at HandjobHub.com',
644 'url': 'http://umpire-empire.com/index.php/topic/58125-laz-decides-no-thats-low/',
645 'md5': '96f09a37e44da40dd083e12d9a683327',
649 'title': 'Ump changes call to ball',
650 'description': 'md5:71c11215384298a172a6dcb4c2e20685',
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/',
663 'title': 'Drip Brennan Dunn Workshop',
664 'description': 'a JV Webinars video from getdrip-1',
666 'timestamp': 1463607249,
667 'upload_date': '20160518',
670 'skip_download': True,
672 'skip': 'webpage 404 not found',
676 'url': 'http://nakedsecurity.sophos.com/2014/10/29/sscc-171-are-you-sure-that-1234-is-a-bad-password-podcast/',
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',
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/',
702 'location': 'Paris, France',
707 'skip_download': True,
712 'url': 'http://www.esa.int/Our_Activities/Space_Science/Rosetta/Philae_comet_touch-down_webcast',
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/',
726 'title': 're:^FSTV [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
730 'skip_download': True,
735 'url': 'https://skiplagged.com/',
738 'title': 'Skiplagged: The smart way to find cheap flights',
740 'playlist_mincount': 1,
741 'add_ie': ['Youtube'],
745 'url': 'http://undergroundwellness.com/podcasts/306-5-steps-to-permanent-gut-healing/',
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',
757 'url': 'http://www.abc.net.au/7.30/content/2015/s4164797.htm',
759 'id': '730m_DandD_1901_512k',
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',
771 'uploader': 'deadspin',
772 'title': 'WALL-TO-GORTAT',
773 'timestamp': 1422285291,
774 'upload_date': '20150126',
776 'add_ie': ['Viddler'],
780 'url': 'http://thedailyshow.cc.com/podcast/episodetwelve',
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/',
792 'url': 'http://media.nationalarchives.gov.uk/index.php/webinar-using-discovery-national-archives-online-catalogue/',
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',
805 'url': 'http://www.suffolk.edu/sjc/live.php',
809 'title': 'Massachusetts Supreme Judicial Court Oral Arguments',
810 'uploader': 'www.suffolk.edu',
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',
823 'upload_date': '20180306',
824 'title': 'md5:91eb1862f6526415214f62c00b453936',
825 'description': 'md5:73048ae50ae953da10549d1d2fe9b3aa',
826 'timestamp': 1520367225,
829 'skip_download': True,
834 'url': 'http://www.indiedb.com/games/king-machine/videos',
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',
849 'title': 'SolidWorks. Урок 6 Настройка чертежа',
850 'description': 'md5:baf95267792646afdbf030e4d06b2ab3',
851 'upload_date': '20130314',
852 'uploader': 'PROстое3D',
853 'uploader_id': 'PROstoe3D',
856 'skip_download': True,
860 # Video.js embed, single format
861 'url': 'https://www.vooplayer.com/v3/watch/watch.php?v=NzgwNTg=',
865 'title': 'Step 1 - Good Foundation',
866 'description': 'md5:d1e7ff33a29fc3eb1673d6c270d344f4',
869 'skip_download': True,
871 'skip': '404 Not Found',
875 'url': 'http://www.rtlnieuws.nl/nieuws/buitenland/aanslagen-kopenhagen',
876 'playlist_mincount': 5,
878 'id': 'aanslagen-kopenhagen',
879 'title': 'Aanslagen Kopenhagen',
884 'url': 'http://www.skipass.com/news/116090-bon-appetit-s5ep3-baqueira-mi-cor.html',
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',
897 'upload_date': '20150127',
898 'uploader_id': 'PremierMedia',
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',
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',
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',
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',
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',
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',
969 'title': 'lecture-05sep2017',
970 'description': 'md5:40f347d91fd4ba047e511c5321064b49',
971 'upload_date': '20170913',
972 'uploader_id': 'eps2',
973 'timestamp': 1505340777,
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/',
986 'title': 'Main Twerk (Video)',
987 'upload_date': '20171208',
988 'uploader_id': 'sebastian.salinas@thechive.com',
989 'timestamp': 1512713057,
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/',
1002 'title': 'Стас Намин: «Мы нарушили девственность Кремля»',
1003 'thumbnail': r
're:^https?://.*\.jpg$',
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
1018 'title': "'O Sole Mio",
1019 'thumbnail': r
're:^https?://.*\.jpg$',
1024 'skip_download': True,
1026 'skip': 'This video is unavailable.',
1030 'url': 'http://muz-tv.ru/kinozal/view/7400/',
1034 'title': 'Тайны перевала Дятлова • 1 серия 2 часть',
1035 'description': 'Документальный сериал-расследование одной из самых жутких тайн ХХ века',
1036 'thumbnail': r
're:^https?://.*\.jpg$',
1040 'skip': 'HTTP Error 404: Not Found',
1044 'url': 'http://www.cinemablend.com/new/First-Joe-Dirt-2-Trailer-Teaser-Stupid-Greatness-70874.html',
1048 'title': 'Joe Dirt 2 Beautiful Loser Teaser Trailer',
1049 'thumbnail': r
're:^https?://.*\.png$',
1053 # Crooks and Liars embed
1055 'url': 'http://crooksandliars.com/2015/04/fox-friends-says-protecting-atheists',
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/',
1070 'id': 'MTE3MjUtMzQ2MzA',
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',
1083 'id': 'ln7x1qSThw4k',
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',
1095 'url': 'http://www.vulture.com/2016/06/letterman-couldnt-care-less-about-late-night.html',
1096 'md5': '1aa589c675898ae6d37a17913cf68d66',
1098 'id': 'x_dtl_oa_LettermanliftPR_160608',
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',
1109 'url': 'https://video.udn.com/news/300346',
1110 'md5': 'fd2060e988c326991037b9aff9df21a6',
1114 'title': '中一中男師變性 全校師生力挺',
1115 'thumbnail': r
're:^https?://.*\.jpg$',
1119 'skip_download': True,
1121 'expected_warnings': ['Failed to parse JSON Expecting value'],
1125 'url': 'http://www.clickhole.com/video/dont-understand-bitcoin-man-will-mumble-explanatio-2537',
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,
1139 'url': 'http://whilewewatch.blogspot.ru/2012/06/whilewewatch-whilewewatch-gripping.html',
1141 'id': '74849a00-85a9-11e1-9660-123139220831',
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',
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',
1163 'id': '030273-562_PLUS7-F',
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',
1174 'id': '149298443_480_16c25b74_2',
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',
1186 'title': 'Une nouvelle espèce de dinosaure découverte en Argentine',
1187 'uploader': 'www.rtl.be',
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',
1199 'id': '4909620399001',
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',
1215 'id': '599637780109885',
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/',
1224 'id': '1754168231264132',
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',
1232 'skip_download': True,
1235 # Facebook API embed
1237 'url': 'http://www.lothype.com/blue-stars-2016-preview-standstill-full-show/',
1238 'md5': 'a47372ee61b39a7b90287094d447d94e',
1240 'id': '10153467542406923',
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',
1250 'id': 'HNTXWDXV9Is',
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',
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',
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',
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',
1306 'id': 'b41dda37-d8e7-4d3f-b1b5-9a9db578bdfe',
1308 'title': 'Big Buck Bunny',
1309 'description': 'Royalty free test video',
1310 'timestamp': 1432816365,
1311 'upload_date': '20150528',
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/',
1324 'title': 'НА КОСЪМ ОТ ВЗРИВ: Изтичане на газ на бензиностанция в Пловдив',
1327 'skip_download': True,
1329 'add_ie': ['Vbox7'],
1333 'url': 'http://www.dagbladet.no/2016/02/23/nyheter/nordlys/ski/troms/ver/43254897/',
1336 'title': 'Etter ett års planlegging, klaffet endelig alt: - Jeg måtte ta en liten dans',
1338 'playlist_mincount': 3,
1342 'url': 'http://forum.dvdtalk.com/movie-talk/623756-deleted-magic-star-wars-ot-deleted-alt-scenes-docu-style.html',
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,
1351 'url': 'http://www.20min.ch/schweiz/news/story/So-kommen-Sie-bei-Eis-und-Schnee-sicher-an-27032552',
1355 'title': 'So kommen Sie bei Eis und Schnee sicher an',
1356 'description': 'md5:117c212f64b25e3d95747e5276863f7d',
1359 'skip_download': True,
1361 'add_ie': ['TwentyMinuten'],
1365 'url': 'https://en.support.wordpress.com/videopress/',
1369 'title': 'IMG_5786',
1370 'timestamp': 1435711927,
1371 'upload_date': '20150701',
1374 'skip_download': True,
1376 'add_ie': ['VideoPress'],
1380 'url': 'http://magazzino.friday.ru/videos/vipuski/kazan-2',
1382 'id': '9b3d5bee0a8740bf70dfd29d3ea43541',
1384 'title': 'Магаззино: Казань 2',
1385 'description': 'md5:99bccdfac2269f0e8fdbc4bbc9db184a',
1386 'uploader': 'Магаззино',
1387 'upload_date': '20170228',
1388 'uploader_id': '996642',
1391 'skip_download': True,
1393 'add_ie': ['Rutube'],
1397 'url': 'https://www.skai.gr/news/world/iatrikos-syllogos-tourkias-to-turkovac-aplo-dialyma-erntogan-eiste-apateones-kai-pseytes',
1399 'id': 'v-ch2nkhcirwc9-sf',
1401 'title': 'md5:786e1e24e06c55993cee965ef853a0c1',
1402 'description': 'md5:8b517a61d577efe7e36fde72fd535995',
1403 'timestamp': 1641885019,
1404 'upload_date': '20220111',
1406 'thumbnail': 'https://i3thumbs.glomex.com/dC1idjJwdndiMjRzeGwvMjAyMi8wMS8xMS8wNy8xMF8zNV82MWRkMmQ2YmU5ZTgyLmpwZw==/profile:player-960x540',
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/',
1413 'id': 'apokalypsi-mega-poios-parelave-tin-ereyna-tsiodra-ek-merous-tis-kyvernisis-o-prothypourgos-telika-gnorize',
1414 'title': 'md5:5e569cf996ec111057c2764ec272848f',
1417 'md5': '1afa26064ff00ccb91617957dbc73dc1',
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',
1429 'md5': '4a1c220695f1ef865a8b7966a53e2474',
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/',
1445 'id': '2022/tv/news-themata-ianouarios/20220114-apotis6-gouales-pita.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',
1461 'id': 'govtaff020316',
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',
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',
1480 'id': '95d035dc5c8a401588e9c0e6bd1e9c92',
1482 'title': '07448641',
1483 'timestamp': 1499890639,
1484 'upload_date': '20170712',
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/',
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',
1504 'id': '8caf6e88-d0ec-11e5-90d3-34c2c42653ac',
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'],
1516 'url': 'https://www.noviny.sk/slovensko/238543-slovenskom-sa-prehnala-vlna-silnych-burok',
1518 'id': '238543-slovenskom-sa-prehnala-vlna-silnych-burok',
1519 'title': 'Slovenskom sa prehnala vlna silných búrok',
1521 'playlist_mincount': 5,
1525 # AMP embed (see https://www.ampproject.org/docs/reference/components/amp-video)
1526 'url': 'https://tvrain.ru/amp/418921/',
1527 'md5': 'cc00413936695987e8de148b67d14f1d',
1531 'title': 'Стас Намин: «Мы нарушили девственность Кремля»',
1535 # multiple HTML5 videos on one page
1536 'url': 'https://www.paragon-software.com/home/rk-free/keyscenarios.html',
1538 'id': 'keyscenarios',
1539 'title': 'Rescue Kit 14 Free Edition - Getting started',
1541 'playlist_count': 4,
1545 'url': 'https://youtube-dl-demo.neocities.org/vshare.html',
1546 'md5': '17b39f55b5497ae8b59f5fbce8e35886',
1549 'title': 'vl14062007715967',
1554 'url': 'http://www.heidelberg-laureate-forum.org/blog/video/lecture-friday-september-23-2016-sir-c-antony-r-hoare/',
1555 'md5': 'aecd089f55b1cb5a59032cb049d3a356',
1557 'id': '90227f51a80c4d8f86c345a7fa62bd9a1d',
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',
1570 'title': 'Official Trailer | TROLLS: THE BEAT GOES ON!',
1571 'description': 'md5:eb5f23826a027ba95277d105f248b825',
1572 'timestamp': 1516100691,
1573 'upload_date': '20180116',
1576 'skip_download': True,
1578 'add_ie': ['SpringboardPlatform'],
1581 'url': 'https://www.yapfiles.ru/show/1872528/690b05d3054d2dbe1e69523aa21bb3b1.mp4.html',
1583 'id': 'vMDE4NzI1Mjgt690b',
1587 'add_ie': ['YapFiles'],
1589 'skip_download': True,
1593 # CloudflareStream embed
1594 'url': 'https://www.cloudflare.com/products/cloudflare-stream/',
1596 'id': '31c9291ab41fac05471db4e73aa11717',
1598 'title': '31c9291ab41fac05471db4e73aa11717',
1600 'add_ie': ['CloudflareStream'],
1602 'skip_download': True,
1607 'url': 'https://joinpeertube.org/fr/home/',
1610 'title': 'Reprenez le contrôle de vos vidéos ! #JoinPeertube',
1612 'playlist_count': 2,
1616 'url': 'https://streetkitchen.hu/receptek/igy_kell_otthon_hamburgert_sutni/',
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'],
1629 'skip_download': True,
1633 # APA embed via JWPlatform embed
1634 'url': 'http://www.vol.at/blue-man-group/5593454',
1638 'title': '"Blau ist mysteriös": Die Blue Man Group im Interview',
1639 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
1640 'thumbnail': r
're:^https?://.*\.jpg$',
1642 'timestamp': 1519211149,
1643 'upload_date': '20180221',
1646 'skip_download': True,
1650 'url': 'http://share-videos.se/auto/video/83645793?uid=13',
1651 'md5': 'b68d276de422ab07ee1d49388103f457',
1654 'title': 'Lock up and get excited',
1657 'skip': 'TODO: fix nested playlists processing in tests',
1661 'url': 'https://viqeo.tv/',
1664 'title': 'All-new video platform',
1666 'playlist_count': 6,
1670 # 'url': 'https://www.cookscountry.com/episode/554-smoky-barbecue-favorites',
1672 # 'id': '5b400b834b32992a310622b9',
1674 # 'title': 'Smoky Barbecue Favorites',
1675 # 'thumbnail': r're:^https?://.*\.jpe?g',
1676 # 'description': 'md5:5ff01e76316bd8d46508af26dc86023b',
1677 # 'upload_date': '20170909',
1678 # 'timestamp': 1504915200,
1680 # 'add_ie': [ZypeIE.ie_key()],
1682 # 'skip_download': True,
1687 'url': 'https://video.sibnet.ru/shell.php?videoid=3422904',
1691 'title': 'Доставщик пиццы спросил разрешения сыграть на фортепиано',
1692 'description': 'md5:89209cdc587dab1e4a090453dbaa2cb1',
1693 'thumbnail': r
're:^https?://.*\.jpg$',
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',
1704 'id': 'k6aKkGHd9FJs4mtJN39',
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,
1714 'skip_download': True,
1719 'url': 'https://www.ethnos.gr/World/article/190604/hparosiaxekinoynoisynomiliessthgeneyhmethskiatoypolemoypanoapothnoykrania',
1720 'md5': 'eb0c3995d0a6f18f6538c8e057865d7d',
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',
1735 'url': 'https://blog.tomeuvizoso.net/2019/01/a-panfrost-milestone.html',
1736 'md5': 'f1bc19b6ea1b0fd1d81e84ca9ec467ac',
1738 'id': 'BLOGGER-video-3c740e3a49197e16-796',
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',
1750 # 'id': 'nyvTSJMKId',
1752 # 'title': 'Flipagram by sjuria101 featuring Midnight Memories by One Direction',
1753 # 'description': '#love for cats.',
1754 # 'timestamp': 1461244995,
1755 # 'upload_date': '20160421',
1758 # 'force_generic_extractor': True,
1763 'url': 'https://demo.vhx.tv/category-c/videos/file-example-mp4-480-1-5mg-copy',
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',
1777 'id': '8c99cb6e-b29c-4bc9-9173-7bf9979225ab',
1779 'title': 'Senate candidates wave to voters on Anchorage streets',
1780 'description': 'md5:91f51a6511f090617353dc720318b20e',
1781 'timestamp': 1604378735,
1782 'upload_date': '20201103',
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',
1794 'title': 'Burgemeester Aboutaleb spreekt relschoppers toe',
1795 'timestamp': 1611740340,
1796 'upload_date': '20210127',
1801 # Simplecast player embed
1802 'url': 'https://www.bio.org/podcast',
1805 'title': 'I AM BIO Podcast | BIO',
1807 'playlist_mincount': 52,
1809 # WimTv embed player
1810 'url': 'http://www.msmotor.tv/wearefmi-pt-2-2021/',
1812 'id': 'wearefmi-pt-2-2021',
1813 'title': '#WEAREFMI – PT.2 – 2021 – MsMotorTV',
1815 'playlist_count': 1,
1818 'url': 'https://www.kvs-demo.com/videos/105/kelis-4th-of-july/',
1821 'display_id': 'kelis-4th-of-july',
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',
1828 'skip_download': True,
1830 'expected_warnings': ['Untested major version'],
1833 'url': 'https://www.kvs-demo.com/embed/105/',
1836 'display_id': 'kelis-4th-of-july',
1838 'title': 'Kelis - 4th Of July / Embed Player',
1839 'thumbnail': r
're:https://(?:www\.)?kvs-demo.com/contents/videos_screenshots/0/105/preview.jpg',
1842 'skip_download': True,
1845 'url': 'https://youix.com/video/leningrad-zoj/',
1846 'md5': '94f96ba95706dc3880812b27b7d8a2b8',
1849 'display_id': 'leningrad-zoj',
1851 'title': 'Клип: Ленинград - ЗОЖ скачать, смотреть онлайн | Youix.com',
1852 'thumbnail': r
're:https://youix.com/contents/videos_screenshots/18000/18485/preview(?:_480x320_youix_com.mp4)?\.jpg',
1856 'url': 'https://youix.com/embed/18485',
1857 'md5': '94f96ba95706dc3880812b27b7d8a2b8',
1860 'display_id': 'leningrad-zoj',
1862 'title': 'Ленинград - ЗОЖ',
1863 'thumbnail': r
're:https://youix.com/contents/videos_screenshots/18000/18485/preview(?:_480x320_youix_com.mp4)?\.jpg',
1867 'url': 'https://bogmedia.org/videos/21217/40-nochey-40-nights-2016/',
1868 'md5': '94166bdb26b4cb1fb9214319a629fc51',
1871 'display_id': '40-nochey-2016',
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',
1884 'display_id': 'syren-de-mer-onlyfans-05-07-2020have-a-happy-safe-holiday5f014e68a220979bdb8cd-source',
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',
1896 'id': 'zv89llsvexdz',
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',
1909 'id': '33hgok7dfbz71',
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/',
1921 'id': 'EUlZfGWkGpOd',
1922 'title': 'La Settimana ',
1923 'description': '03 Ottobre ore 02:00',
1925 'live_status': 'not_live',
1926 'thumbnail': r
're:https?://[A-Za-z0-9-]*\.msvdn.net/image/\w+/poster',
1931 # Multiple gfycat iframe embeds
1932 'url': 'https://www.gezip.net/bbs/board.php?bo_table=entertaine&wr_id=613422',
1934 'title': '재이, 윤, 세은 황금 드레스를 입고 빛난다',
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',
1943 'title': '옳게 된 크롭 니트 스테이씨 아이사',
1946 'playlist_count': 6,
1949 # Multiple gfycat embeds, with uppercase "IFR" in urls
1950 'url': 'https://kkzz.kr/?vid=2295',
1952 'title': '지방시 앰버서더 에스파 카리나 움짤',
1955 'playlist_count': 9,
1959 'url': 'https://www.monash.edu/learning-teaching/teachhq/learning-technologies/panopto/how-to/insert-a-quiz-into-a-panopto-video',
1962 'id': '0bd3f16c-824a-436a-8486-ac5900693aef',
1963 'title': 'Quizzes in Panopto',
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',
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$',
1976 'series': 'Madventures Suomi',
1977 'description': 'md5:aa55b44bd06a1e337a6f1d0b46507381',
1978 'categories': ['Matkailu', 'Elämäntyyli'],
1980 'upload_date': '20220308',
1984 # Multiple Ruutu embeds
1985 'url': 'https://www.hs.fi/kotimaa/art-2000008762560.html',
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',
1999 'title': 'Puolustusvoimat siirsi panssariajoneuvoja harjoituksiin Niinisaloon 2.5.2022',
2000 'thumbnail': r
're:^https?://.+\.jpg$',
2003 'upload_date': '20220504',
2007 # Webpage contains double BOM
2008 'url': 'https://www.filmarkivet.se/movies/paris-d-moll/',
2009 'md5': 'df02cadc719dcc63d43288366f037754',
2011 'id': 'paris-d-moll',
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,
2022 'url': 'https://www.mollymovieclub.com/p/interstellar?s=r#details',
2023 'md5': '198bde8bed23d0b23c70725c83c9b6d9',
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',
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',
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',
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',
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',
2078 'note': 'JSON LD with unexpected data type',
2079 'url': 'https://www.autoweek.nl/autotests/artikel/porsche-911-gt3-rs-rij-impressie-2/',
2081 'id': 'porsche-911-gt3-rs-rij-impressie-2',
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$',
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',
2096 'id': 'cauky-lidi-70-dil-babis-predstavil-pohadky-prymulanek-nebo-andrejovy-nove-saty-ac867',
2098 'title': 'čauky lidi 70 finall',
2099 'description': 'čauky lidi 70 finall',
2101 'upload_date': '20220606',
2102 'timestamp': 1654513791,
2109 'url': 'https://shooshtime.com/videos/284002/just-out-of-the-shower-joi/',
2110 'md5': 'e2f0a4c329f7986280b7328e24036d60',
2113 'display_id': 'just-out-of-the-shower-joi',
2115 'title': 'Just Out Of The Shower JOI - Shooshtime',
2116 'thumbnail': 'https://i.shoosh.co/contents/videos_screenshots/284000/284002/preview.mp4.jpg',
2122 'note': 'Live HLS direct link',
2123 'url': 'https://d18j67ugtrocuq.cloudfront.net/out/v1/2767aec339144787926bd0322f72c6e9/index.m3u8',
2126 'title': r
're:index',
2128 'live_status': 'is_live',
2131 'skip_download': 'm3u8',
2135 'note': 'Video.js VOD HLS',
2136 'url': 'https://gist.githubusercontent.com/bashonly/2aae0862c50f4a4b84f220c315767208/raw/e3380d413749dabbe804c9c2d8fd9a45142475c7/videojs_hls_test.html',
2138 'id': 'videojs_hls_test',
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):
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}
),
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)
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'
2200 headers
= m3u8_format
.get('http_headers') or info
.get('http_headers')
2201 duration
= self
._extract
_m
3u8_vod
_duration
(
2202 m3u8_format
['url'], info
.get('id'), note
='Checking m3u8 live status',
2203 errnote
='Failed to download m3u8 media playlist', headers
=headers
)
2205 info
['live_status'] = 'is_live'
2206 info
['duration'] = info
.get('duration') or duration
2208 def _extract_rss(self
, url
, video_id
, doc
):
2210 'itunes': 'http://www.itunes.com/dtds/podcast-1.0.dtd',
2214 for it
in doc
.findall('./channel/item'):
2216 (e
.attrib
.get('url') for e
in it
.findall('./enclosure')),
2217 xpath_text(it
, 'link', fatal
=False))
2221 guid
= try_call(lambda: it
.find('guid').text
)
2223 next_url
= smuggle_url(next_url
, {'force_videoid': guid
})
2226 return xpath_text(it
, xpath_with_ns(f
'./itunes:{key}', NS_MAP
), default
=None)
2229 '_type': 'url_transparent',
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()),
2243 '_type': 'playlist',
2245 'title': try_call(lambda: doc
.find('./channel/title').text
),
2246 'description': try_call(lambda: doc
.find('./channel/description').text
),
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('/')
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
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
)))
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]
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
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()))
2310 for key
in url_keys
:
2311 if '/get_file/' not in flashvars
[key
]:
2313 format_id
= flashvars
.get(f
'{key}_text', key
)
2315 'url': urljoin(url
, self
._kvs
_get
_real
_url
(flashvars
[key
], flashvars
['license_code'])),
2316 'format_id': format_id
,
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
2325 'id': flashvars
['video_id'],
2326 'display_id': display_id
,
2328 'thumbnail': urljoin(url
, thumbnail
),
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" ',
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)
2362 if ':' not in default_search
:
2363 default_search
+= ':'
2364 return self
.url_result(default_search
+ 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
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
)
2392 new_url
= smuggle_url(new_url
, {'force_videoid': force_videoid
})
2393 return self
.url_result(new_url
)
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
)
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
)
2410 if format_id
.endswith('mpegurl') or ext
== 'm3u8':
2411 formats
, subtitles
= self
._extract
_m
3u8_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
_f
4m
_formats
(url
, video_id
, headers
=headers
)
2418 'format_id': format_id
,
2421 'vcodec': 'none' if m
.group('type') == 'audio' else None,
2423 info_dict
['direct'] = True
2426 'subtitles': subtitles
,
2427 'http_headers': headers
or None,
2429 self
._extra
_manifest
_info
(info_dict
, url
)
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
_m
3u8_formats
_and
_subtitles
(url
, video_id
, 'mp4')
2442 self
._extra
_manifest
_info
(info_dict
, url
)
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'
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?
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')
2481 elif re
.match(r
'^(?:{[^}]+})?smil$', doc
.tag
):
2482 smil
= self
._parse
_smil
(doc
, url
, video_id
)
2483 self
.report_detected('SMIL file')
2485 elif doc
.tag
== '{http://xspf.org/ns/0/}playlist':
2486 self
.report_detected('XSPF playlist')
2487 return self
.playlist_result(
2489 doc
, video_id
, xspf_url
=url
,
2490 xspf_base_url
=full_response
.url
),
2492 elif re
.match(r
'(?i)^(?:{[^}]+})?MPD$', doc
.tag
):
2493 info_dict
['formats'], info_dict
['subtitles'] = self
._parse
_mpd
_formats
_and
_subtitles
(
2495 mpd_base_url
=full_response
.url
.rpartition('/')[0],
2497 self
._extra
_manifest
_info
(info_dict
, url
)
2498 self
.report_detected('DASH manifest')
2500 elif re
.match(r
'^{http://ns\.adobe\.com/f4m/[12]\.0}manifest$', doc
.tag
):
2501 info_dict
['formats'] = self
._parse
_f
4m
_formats
(doc
, url
, video_id
)
2502 self
.report_detected('F4M manifest')
2504 except xml
.etree
.ElementTree
.ParseError
:
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
)
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)
2543 for ie
in self
._downloader
._ies
.values():
2544 if ie
.ie_key() in smuggled_data
.get('block_ies', []):
2546 gen
= ie
.extract_from_webpage(self
._downloader
, url
, webpage
)
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
)
2562 jwplayer_data
= self
._find
_jwplayer
_data
(
2563 webpage
, video_id
, transform_source
=js_to_json
)
2565 if isinstance(jwplayer_data
.get('playlist'), str):
2566 self
.report_detected('JW Player playlist')
2567 return [self
.url_result(jwplayer_data
['playlist'], 'JWPlatform')]
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')
2574 except ExtractorError
:
2575 # See https://github.com/ytdl-org/youtube-dl/pull/16735
2580 r
'(?s)\bvideojs\s*\(.+?([a-zA-Z0-9_$]+)\.src\s*\(\s*((?:\[.+?\]|{.+?}))\s*\)\s*;',
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):
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
_m
3u8_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
)
2613 'ext': (mimetype2ext(src_type
)
2614 or ext
if ext
in KNOWN_EXTENSIONS
else 'mp4'),
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'))
2627 subtitles
.setdefault(dict_get(sub
, ('language', 'srclang')) or 'und', []).append({
2628 'url': urllib
.parse
.urljoin(url
, sub_src
),
2629 'name': sub
.get('label'),
2631 'Referer': actual_url
,
2634 if formats
or subtitles
:
2635 self
.report_detected('video.js embed')
2636 info_dict
= {'formats': formats
, 'subtitles': subtitles
}
2638 self
._extra
_manifest
_info
(info_dict
, src
)
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)
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,
2666 def check_video(vurl):
2667 if YoutubeIE.suitable(vurl):
2669 if RtmpIE.suitable(vurl):
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))
2681 self.report_detected('JW Player in SFWObject')
2683 # Look for gorilla-vid style embedding
2684 found = filter_video(re.findall(r'''(?sx)
2688 jwplayer\s*\(\s*["'][^'"]+["']\s*\)\s*\.setup
2691 ['"]?file['"]?\s
*:\s
*["\'](.*?)["\']''', webpage))
2693 self.report_detected('JW Player embed')
2695 # Broaden the search a little bit
2696 found = filter_video(re.findall(r'[^A-Za-z0-9]?(?:file|source)=(http[^\'"&]*)', webpage))
2698 self.report_detected('video file')
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))
2704 self.report_detected('JW Player JS loader')
2707 found = filter_video(re.findall(r'''(?xs
)
2708 flowplayer\
("[^"]+",\s*
2710 \s*\{[^}]+? ["']?clip["']?\s
*:\s
*\
{\s
*
2711 ["']?url["']?\s*:\s*["']([^
"']+)["']
2714 self.report_detected('Flow Player
')
2718 r"cinerama\.embedPlayer\(\s*\'[^
']+\',\s*'([^
']+)'", webpage)
2720 self.report_detected('Cinerama player')
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))
2729 self.report_detected('Twitter card')
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))
2738 self.report_detected('Open Graph video info')
2740 REDIRECT_REGEX = r'[0-9]{,2};\s*(?:URL|url)=\'?([^\'"]+)'
2742 r'(?i
)<meta\s
+(?
=(?
:[a
-z
-]+="[^"]+"\s+)*http-equiv="refresh
")'
2743 rf'(?:[a-z-]+="[^
"]+"\s
+)*?content
="{REDIRECT_REGEX}',
2746 # Look also in Refresh HTTP header
2747 refresh_header = urlh and urlh.headers.get('Refresh')
2749 found = re.search(REDIRECT_REGEX, refresh_header)
2751 new_url = urllib.parse.urljoin(url, unescapeHTML(found.group(1)))
2753 self.report_following_redirect(new_url)
2754 return [self.url_result(new_url)]
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)]
2770 domain_name = self._search_regex(r'^(?:https?://)?([^/]*)/.*', url, 'video uploader', default=None)
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'))
2785 video_id = os.path.splitext(video_id)[0]
2787 'referer': actual_url,
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(),
2804 entries.append(entry_info_dict)
2807 ext = determine_ext(video_url)
2809 entry_info_dict = {**self._extract_smil_info(video_url, video_id), **entry_info_dict}
2811 return [self._extract_xspf_playlist(video_url, video_id)]
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)
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)
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
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}),
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)