A feature-rich command-line audio/video downloader
Release 2022.05.18
pukkandanb14d523558c0
diff --git a/CONTRIBUTORS b/CONTRIBUTORSindex 9b29acb0c3..14d7e2b71a 100644--- a/CONTRIBUTORS+++ b/CONTRIBUTORS@@ -231,3 +231,20 @@ Fam0rbohwazdodrianvvto33+ca-za+connercsbn+diegorodriguezv+ekangmonyet+elyse0+evansp+GiedriusS+HE7086+JordanWeatherby+m4tu4g+MarwenDallel+nevack+putnam+rand-net+vertan+Wikidepia+Yiptendiff --git a/Changelog.md b/Changelog.mdindex 52ea033676..ad81905da7 100644--- a/Changelog.md+++ b/Changelog.md@@ -11,6 +11,124 @@-->+### 2022.05.18++* Add support for SSL client certificate authentication by [coletdjnz](https://github.com/coletdjnz), [dirkf](https://github.com/dirkf)+ * Adds `--client-certificate`, `--client-certificate-key`, `--client-certificate-password`+* Add `--match-filter -` to interactively ask for each video+* `--max-downloads` should obey `--break-per-input`+* Allow use of weaker ciphers with `--legacy-server-connect`+* Don't imply `-s` for later stages of `-O`+* Fix `--date today`+* Fix `--skip-unavailable-fragments`+* Fix color in `-q -F`+* Fix redirect HTTP method handling by [coletdjnz](https://github.com/coletdjnz)+* Improve `--clean-infojson`+* Remove warning for videos with an empty title+* Run `FFmpegFixupM3u8PP` for live-streams if needed+* Show name of downloader in verbose log+* [cookies] Allow `cookiefile` to be a text stream+* [cookies] Report progress when importing cookies+* [downloader/ffmpeg] Specify headers for each URL by [elyse0](https://github.com/elyse0)+* [fragment] Do not change chunk-size when `--test`+* [fragment] Make single thread download work for `--live-from-start` by [Lesmiscore](https://github.com/Lesmiscore)+* [hls] Fix `byte_range` for `EXT-X-MAP` fragment by [fstirlitz](https://github.com/fstirlitz)+* [http] Fix retrying on read timeout by [coletdjnz](https://github.com/coletdjnz)+* [ffmpeg] Fix features detection+* [EmbedSubtitle] Enable for more video extensions+* [EmbedThumbnail] Disable thumbnail conversion for mkv by [evansp](https://github.com/evansp)+* [EmbedThumbnail] Do not obey `-k`+* [EmbedThumbnail] Do not remove id3v1 tags+* [FFmpegMetadata] Remove `\0` from metadata+* [FFmpegMetadata] Remove filename from attached info-json+* [FixupM3u8] Obey `--hls-prefer-mpegts`+* [Sponsorblock] Don't crash when duration is unknown+* [XAttrMetadata] Refactor and document dependencies+* [extractor] Document netrc machines+* [extractor] Update `manifest_url`s after redirect by [elyse0](https://github.com/elyse0)+* [extractor] Update dash `manifest_url` after redirects by [elyse0](https://github.com/elyse0)+* [extractor] Use `classmethod`/`property` where possible+* [generic] Refactor `_extract_rss`+* [utils] `is_html`: Handle double BOM+* [utils] `locked_file`: Ignore illegal seek on `truncate` by [jakeogh](https://github.com/jakeogh)+* [utils] `sanitize_path`: Fix when path is empty string+* [utils] `write_string`: Workaround newline issue in `conhost`+* [utils] `certifi`: Make sure the pem file exists+* [utils] Fix `WebSocketsWrapper`+* [utils] `locked_file`: Do not give executable bits for newly created files by [Lesmiscore](https://github.com/Lesmiscore)+* [utils] `YoutubeDLCookieJar`: Detect and reject JSON file by [Lesmiscore](https://github.com/Lesmiscore)+* [test] Convert warnings into errors and fix some existing warnings by [fstirlitz](https://github.com/fstirlitz)+* [dependencies] Create module with all dependency imports+* [compat] Split into sub-modules by [fstirlitz](https://github.com/fstirlitz), [pukkandan](https://github.com/pukkandan)+* [compat] Implement `compat.imghdr`+* [build] Add `make uninstall` by [MrRawes](https://github.com/MrRawes)+* [build] Avoid use of `install -D`+* [build] Fix `Makefile` by [putnam](https://github.com/putnam)+* [build] Fix `--onedir` on macOS+* [build] Add more test-runners+* [cleanup] Deprecate some compat vars by [fstirlitz](https://github.com/fstirlitz), [pukkandan](https://github.com/pukkandan)+* [cleanup] Remove unused code paths, extractors, scripts and tests by [fstirlitz](https://github.com/fstirlitz)+* [cleanup] Upgrade syntax (`pyupgrade`) and sort imports (`isort`)+* [cleanup, docs, build] Misc fixes+* [BilibiliLive] Add extractor by [HE7086](https://github.com/HE7086), [pukkandan](https://github.com/pukkandan)+* [Fifa] Add Extractor by [Bricio](https://github.com/Bricio)+* [goodgame] Add extractor by [nevack](https://github.com/nevack)+* [gronkh] Add playlist extractors by [hatienl0i261299](https://github.com/hatienl0i261299)+* [icareus] Add extractor by [tpikonen](https://github.com/tpikonen), [pukkandan](https://github.com/pukkandan)+* [iwara] Add playlist extractors by [i6t](https://github.com/i6t)+* [Likee] Add extractor by [hatienl0i261299](https://github.com/hatienl0i261299)+* [masters] Add extractor by [m4tu4g](https://github.com/m4tu4g)+* [nebula] Add support for subscriptions by [hheimbuerger](https://github.com/hheimbuerger)+* [Podchaser] Add extractors by [connercsbn](https://github.com/connercsbn)+* [rokfin:search] Add extractor by [P-reducible](https://github.com/P-reducible), [pukkandan](https://github.com/pukkandan)+* [youtube] Add `:ytnotifications` extractor by [krichbanana](https://github.com/krichbanana)+* [youtube] Add YoutubeStoriesIE (`ytstories:<channel UCID>`) by [coletdjnz](https://github.com/coletdjnz)+* [ZingMp3] Add chart and user extractors by [hatienl0i261299](https://github.com/hatienl0i261299)+* [adn] Update AES key by [elyse0](https://github.com/elyse0)+* [adobepass] Allow cookies for authenticating MSO+* [bandcamp] Exclude merch links by [Yipten](https://github.com/Yipten)+* [chingari] Fix archiving and tests+* [DRTV] Improve `_VALID_URL` by [vertan](https://github.com/vertan)+* [facebook] Improve thumbnail extraction by [Wikidepia](https://github.com/Wikidepia)+* [fc2] Stop heatbeating once FFmpeg finishes by [Lesmiscore](https://github.com/Lesmiscore)+* [Gofile] Fix extraction and support password-protected links by [mehq](https://github.com/mehq)+* [hotstar, cleanup] Refactor extractors+* [InfoQ] Don't fail on missing audio format by [evansp](https://github.com/evansp)+* [Jamendo] Extract more metadata by [evansp](https://github.com/evansp)+* [kaltura] Update API calls by [flashdagger](https://github.com/flashdagger)+* [KhanAcademy] Fix extractor by [rand-net](https://github.com/rand-net)+* [LCI] Fix extractor by [MarwenDallel](https://github.com/MarwenDallel)+* [lrt] Support livestreams by [GiedriusS](https://github.com/GiedriusS)+* [niconico] Set `expected_protocol` to a public field+* [Niconico] Support 2FA by [ekangmonyet](https://github.com/ekangmonyet)+* [Olympics] Fix format extension+* [openrec:movie] Enable fallback for /movie/ URLs+* [PearVideo] Add fallback for formats by [hatienl0i261299](https://github.com/hatienl0i261299)+* [radiko] Fix extractor by [Lesmiscore](https://github.com/Lesmiscore)+* [rai] Add `release_year`+* [reddit] Prevent infinite loop+* [rokfin] Implement login by [P-reducible](https://github.com/P-reducible), [pukkandan](https://github.com/pukkandan)+* [ruutu] Support hs.fi embeds by [tpikonen](https://github.com/tpikonen), [pukkandan](https://github.com/pukkandan)+* [spotify] Detect iframe embeds by [fstirlitz](https://github.com/fstirlitz)+* [telegram] Fix metadata extraction+* [tmz, cleanup] Update tests by [diegorodriguezv](https://github.com/diegorodriguezv)+* [toggo] Fix `_VALID_URL` by [ca-za](https://github.com/ca-za)+* [trovo] Update to new API by [nyuszika7h](https://github.com/nyuszika7h)+* [TVer] Improve extraction by [Lesmiscore](https://github.com/Lesmiscore)+* [twitcasting] Pass headers for each formats by [Lesmiscore](https://github.com/Lesmiscore)+* [VideocampusSachsen] Improve extractor by [FestplattenSchnitzel](https://github.com/FestplattenSchnitzel)+* [vimeo] Fix extractors+* [wat] Fix extraction of multi-language videos and subtitles by [elyse0](https://github.com/elyse0)+* [wistia] Fix `_VALID_URL` by [dirkf](https://github.com/dirkf)+* [youtube, cleanup] Minor refactoring by [coletdjnz](https://github.com/coletdjnz), [pukkandan](https://github.com/pukkandan)+* [youtube] Added piped instance urls by [JordanWeatherby](https://github.com/JordanWeatherby)+* [youtube] Deprioritize auto-generated thumbnails+* [youtube] Deprioritize format 22 (often damaged)+* [youtube] Fix episode metadata extraction+* [zee5] Fix extractor by [Ashish0804](https://github.com/Ashish0804)+* [zingmp3, cleanup] Refactor extractors++### 2022.04.08* Use certificates from `certifi` if installed by [coletdjnz](https://github.com/coletdjnz)diff --git a/README.md b/README.mdindex 7809c389a4..256388f306 100644--- a/README.md+++ b/README.md@@ -472,9 +472,10 @@ You can also fork the project on github and run your fork's [build workflow](.gia file that is in the archive--break-on-reject Stop the download process when encounteringa file that has been filtered out- --break-per-input Make --break-on-existing and --break-on-- reject act only on the current input URL- --no-break-per-input --break-on-existing and --break-on-reject+ --break-per-input Make --break-on-existing, --break-on-reject+ and --max-downloads act only on the current+ input URL+ --no-break-per-input --break-on-existing and similar optionsterminates the entire download queue--skip-playlist-after-errors N Number of allowed failures until the restof the playlist is skippeddiff --git a/supportedsites.md b/supportedsites.mdindex 7663c09d40..bbbfc6f94e 100644--- a/supportedsites.md+++ b/supportedsites.md@@ -376,6 +376,7 @@- **fc2:embed**- **fc2:live**- **Fczenit**+ - **Fifa**- **Filmmodu**- **filmon**- **filmon:channel**@@ -447,6 +448,7 @@- **GodTube**- **Gofile**- **Golem**+ - **goodgame:stream**- **google:podcasts**- **google:podcasts:feed**- **GoogleDrive**@@ -455,6 +457,8 @@- **GoToStage**- **GPUTechConf**- **Gronkh**+ - **gronkh:feed**+ - **gronkh:vods**- **Groupon**- **hbo**- **HearThisAt**@@ -492,6 +496,7 @@- **HungamaSong**- **huya:live**: huya.com- **Hypem**+ - **Icareus**- **ign.com**- **IGNArticle**- **IGNVideo**@@ -528,6 +533,8 @@- **ivi:compilation**: ivi.ru compilations- **ivideon**: Ivideon TV- **Iwara**+ - **iwara:playlist**+ - **iwara:user**- **Izlesene**- **Jable**- **JablePlaylist**@@ -587,6 +594,8 @@- **Libsyn**- **life**: Life.ru- **life:embed**+ - **likee**+ - **likee:user**- **limelight**- **limelight:channel**- **limelight:channel_list**@@ -605,7 +614,8 @@- **loc**: Library of Congress- **LocalNews8**- **LoveHomePorn**- - **lrt.lt**+ - **LRTStream**+ - **LRTVOD**- **lynda**: [<abbr title="netrc machine"><em>lynda</em></abbr>] lynda.com videos- **lynda:course**: [<abbr title="netrc machine"><em>lynda</em></abbr>] lynda.com online courses- **m6**@@ -626,6 +636,7 @@- **Markiza**- **MarkizaPage**- **massengeschmack.tv**+ - **Masters**- **MatchTV**- **MDR**: MDR.DE and KiKA- **MedalTV**@@ -747,7 +758,8 @@- **ndr:embed:base**- **NDTV**- **Nebula**: [<abbr title="netrc machine"><em>watchnebula</em></abbr>]- - **nebula:collection**: [<abbr title="netrc machine"><em>watchnebula</em></abbr>]+ - **nebula:channel**: [<abbr title="netrc machine"><em>watchnebula</em></abbr>]+ - **nebula:subscriptions**: [<abbr title="netrc machine"><em>watchnebula</em></abbr>]- **NerdCubedFeed**- **netease:album**: 网易云音乐 - 专辑- **netease:djradio**: 网易云音乐 - 电台@@ -927,6 +939,7 @@- **pluralsight**: [<abbr title="netrc machine"><em>pluralsight</em></abbr>]- **pluralsight:course**- **PlutoTV**+ - **Podchaser**- **podomatic**- **Pokemon**- **PokemonSoundLibrary**@@ -1026,9 +1039,10 @@- **RICE**- **RMCDecouverte**- **RockstarGames**- - **Rokfin**- - **rokfin:channel**- - **rokfin:stack**+ - **Rokfin**: [<abbr title="netrc machine"><em>rokfin</em></abbr>]+ - **rokfin:channel**: Rokfin Channels+ - **rokfin:search**: Rokfin Search; "rkfnsearch:" prefix+ - **rokfin:stack**: Rokfin Stacks- **RoosterTeeth**: [<abbr title="netrc machine"><em>roosterteeth</em></abbr>]- **RoosterTeethSeries**: [<abbr title="netrc machine"><em>roosterteeth</em></abbr>]- **RottenTomatoes**@@ -1370,8 +1384,6 @@- **video.google:search**: Google Video search; "gvsearch:" prefix- **video.sky.it**- **video.sky.it:live**- - **VideocampusSachsen**- - **VideocampusSachsenEmbed**- **VideoDetective**- **videofy.me**- **videomore**@@ -1400,6 +1412,7 @@- **vimeo:watchlater**: [<abbr title="netrc machine"><em>vimeo</em></abbr>] Vimeo watch later list, ":vimeowatchlater" keyword (requires authentication)- **Vimm:recording**- **Vimm:stream**+ - **Vimp**- **Vimple**: Vimple - one-click video hosting- **Vine**- **vine:user**@@ -1525,11 +1538,13 @@- **youtube:favorites**: YouTube liked videos; ":ytfav" keyword (requires cookies)- **youtube:history**: Youtube watch history; ":ythis" keyword (requires cookies)- **youtube:music:search_url**: YouTube music search URLs with selectable sections (Eg: #songs)+ - **youtube:notif**: YouTube notifications; ":ytnotif" keyword (requires cookies)- **youtube:playlist**: YouTube playlists- **youtube:recommended**: YouTube recommended videos; ":ytrec" keyword- **youtube:search**: YouTube search; "ytsearch:" prefix- **youtube:search:date**: YouTube search, newest videos first; "ytsearchdate:" prefix- **youtube:search_url**: YouTube search URLs with sorting and filter support+ - **youtube:stories**: YouTube channel stories; "ytstories:" prefix- **youtube:subscriptions**: YouTube subscriptions feed; ":ytsubs" keyword (requires cookies)- **youtube:tab**: YouTube Tabs- **youtube:user**: YouTube user videos; "ytuser:" prefix@@ -1550,6 +1565,10 @@- **Zhihu**- **zingmp3**: zingmp3.vn- **zingmp3:album**+ - **zingmp3:chart-home**+ - **zingmp3:chart-music-video**+ - **zingmp3:user**+ - **zingmp3:week-chart**- **zoom**- **Zype**- **generic**: Generic downloader that works on some sites