pukkandan
19a0394044
[cleanup] Misc cleanup and refactor ( #2173 )
3 years ago
pukkandan
f82711587c
[cleanup] Sort imports
...
Using https://github.com/PyCQA/isort
isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
3 years ago
pukkandan
86e5f3ed2e
[cleanup] Upgrade syntax
...
Using https://github.com/asottile/pyupgrade
1. `__future__` imports and `coding: utf-8` were removed
2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format`
3. f-strings were cherry-picked from `pyupgrade --py36-plus`
Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
3 years ago
pukkandan
f9934b9614
[cleanup] Mark some compat variables for removal ( #2173 )
...
Authored by fstirlitz, pukkandan
3 years ago
pukkandan
ebc7d3ff1f
[docs] Minor improvements ( #3309 , #3343 )
...
Authored by: cffswb, danielyli
Co-authored-by: Daniel Li <dan@danielyli.com>
Co-authored-by: cffswb <karte577@gmail.com>
3 years ago
pukkandan
a44ca5a470
[cleanup] Misc fixes
...
Closes https://github.com/yt-dlp/yt-dlp/pull/3213 , Closes https://github.com/yt-dlp/yt-dlp/pull/3117
Related: https://github.com/yt-dlp/yt-dlp/issues/3146#issuecomment-1077323114 , https://github.com/yt-dlp/yt-dlp/pull/3277#discussion_r841019671 , a825ffbffa (commitcomment-68538986)
, https://github.com/yt-dlp/yt-dlp/issues/2360 , 5fa3c9a88f (r70393519)
, 5fa3c9a88f (r70393254)
3 years ago
pukkandan
5c3895fff1
[outtmpl] Limit changes during sanitization
...
Closes #2761
3 years ago
pukkandan
b1a7cd056a
Treat multiple `--match-filters` as OR
...
Closes #3144
3 years ago
pukkandan
ae6a1b9585
[docs] Minor improvements
...
Closes #3127 , Closes #3081 , Closes #3177
3 years ago
coletdev
d5820461e8
Use certificates from `certifi` if installed ( #3115 )
...
Fixes #3102 and most `CERTIFICATE_VERIFY_FAILED` issues
Authored by: coletdjnz
3 years ago
coletdev
e248be3319
[panopto] Add extractors ( #2908 )
...
Based on https://github.com/ytdl-org/youtube-dl/pull/13449
Closes #1946
Authored by: coletdjnz, kmark
3 years ago
pukkandan
d1b5f70bc9
[cleanup] Refactor `__init__.py` ( #2570 )
...
* Split `__init__` code into multiple functions
* Clean up validation code by grouping similar types of options
* Expose `parse_options` to third parties
3 years ago
pukkandan
8b7539d27c
Implement `--add-header` without modifying `std_headers`
...
Closes #2526 , #1614
3 years ago
Emanuel Hoogeveen
45806d44a7
[downloader] Obey `--file-access-retries` when deleting/renaming ( #2224 )
...
Authored by: ehoogeveen-medweb
3 years ago
pukkandan
09b49e1f68
Add pre-processor stage `after_filter`
...
* Move `_match_entry` and `post_extract` to `process_video_result`. It is also left in `process_info` for API compat
* `--list-...` options and `--force-write-archive` now obey filtering options
* Move `SponsorBlockPP` to `after_filter`. Closes https://github.com/yt-dlp/yt-dlp/issues/2536
* Reverts 4ec82a72bb
since this commit addresses the issue it was solving
3 years ago
pukkandan
3856407a86
[options] Rename `--clean-infojson` to `--clean-info-json`
3 years ago
pukkandan
db2e129ca0
[options] Better ambiguous option resolution
...
Eg: `--write-auto` no longer results in
> ambiguous option: --write-auto (--write-auto-subs, --write-automatic-subs?)
3 years ago
pukkandan
455a15e2dc
[cleanup,docs] Minor fixes
...
Closes #2541 , #2484
3 years ago
pukkandan
88f23a18e0
[docs,cleanup] Fix linter and misc cleanup
...
Closes #2419
3 years ago
pukkandan
bb66c24797
Add option `--print-to-file`
...
Closes #2372
3 years ago
pukkandan
fc5fa964c7
[docs] Improvements
3 years ago
xtkoba
f81c62a6a4
Add option --legacy-server-connect ( #778 )
...
to allow HTTPS connection to servers that do not support RFC 5746 secure renegotiation
Authored by: xtkoba
3 years ago
pukkandan
3b603dbdf1
Add option `--concat-playlist`
...
Closes #1855 , related: #382
3 years ago
pukkandan
ed8d87f911
[cleanup, docs] Minor fixes
...
Closes #2230
3 years ago
pukkandan
ed5835b451
Allow `--print` to be run at any post-processing stage
3 years ago
pukkandan
9e907ebddf
[cleanup] Misc cleanup
3 years ago
pukkandan
06e57990f7
Allow multiple and nested configuration files
3 years ago
pukkandan
ebed8b3732
Add more post-processing stages
...
playlist = After entire playlist
after_video = After downloading all formats of a video
3 years ago
pukkandan
1e43a6f733
Allow `--exec` to be run at any post-processing stage
...
Deprecates `--exec-before-download`
3 years ago
pukkandan
ca30f449a1
Add `--print playlist:` to print fields per playlist
3 years ago
pukkandan
042931a507
Allow escaped `,` in `--extractor-args`
...
Closes #2152
3 years ago
pukkandan
6a34813a0d
[docs] Add examples for using `TYPES:` in `-P`/`-o`
3 years ago
Matt Broadway
f59f5ef8b6
[cookies] Support other keyrings ( #2032 )
...
Authored by: mbway
3 years ago
Emanuel Hoogeveen
205a0654c0
Add option `--file-access-retries` ( #2066 )
...
Closes #517
Authored by: ehoogeveen-medweb
3 years ago
pukkandan
b69fd25c25
[cleanup] Misc cleanup
...
Closes #1942 #1976 #2020 #2058 #1984
3 years ago
The Hatsune Daishi
adbc4ec4bb
[dash,youtube] Download live from start to end ( #888 )
...
* Add option `--live-from-start` to enable downloading live videos from start
* Add key `is_from_start` in formats to identify formats (of live videos) that downloads from start
* [dash] Create protocol `http_dash_segments_generator` that allows a function to be passed instead of fragments
* [fragment] Allow multiple live dash formats to download simultaneously
* [youtube] Implement fragment re-fetching for the live dash formats
* [youtube] Re-extract dash manifest every 5 hours (manifest expires in 6hrs)
* [postprocessor/ffmpeg] Add `FFmpegFixupDuplicateMoovPP` to fixup duplicated moov atoms
Known issue: Ctrl+C doesn't work on Windows when downloading multiple formats
Closes #1521
Authored by: nao20010128nao, pukkandan
3 years ago
Unit 193
e75bb0d6c3
[cleanup] Fix some typos ( #2033 )
...
Authored by: unit193
3 years ago
pukkandan
940a67a3e2
[docs] Change all examples to use double quotes
...
to be platform-agnostic
3 years ago
Nil Admirari
8157a09d22
[SponsorBlock] Add Filler and Highlight categories ( #1664 )
...
Authored by: nihil-admirari, pukkandan
3 years ago
pukkandan
acc0d6a411
Allow `--no-write-thumbnail` to override `--write-all-thumbnail`
...
Closes #1900
3 years ago
pukkandan
2aa5e2cc01
Ensure same config file is not loaded multiple times
3 years ago
pukkandan
f304da8a29
[cleanup] Misc cleanup
...
Closes #1805 , closes #1800
3 years ago
pukkandan
f2ebc5c7be
Option `--wait-for-video` to wait for scheduled streams
3 years ago
pukkandan
b222c27145
Option `--break-per-input` to apply --break-on... to each input URL
3 years ago
pukkandan
dac5df5a98
Add option `--embed-info-json` to embed info-json in mkv
...
Closes #1644
3 years ago
pukkandan
f279aaee8e
Add compat-option embed-metadata
3 years ago
pukkandan
44bcb8d122
Fix bug in parsing `--add-header`
...
Closes #1614
3 years ago
pukkandan
a4211baff5
[cleanup] Minor cleanup
3 years ago
pukkandan
31c49255bf
[ExtractAudio] Rescale --audio-quality correctly
...
Authored by: CrypticSignal, pukkandan
3 years ago
pukkandan
0930b11fda
[docs,cleanup] Improve docs and minor cleanup
...
Closes #1387 , #1404 , #1408 , #1485 , #1415 , #1450 , #1492
3 years ago
pukkandan
9f1a1c36e6
Separate `--check-all-formats` from `--check-formats`
...
Previously, `--check-formats` tested only the selected video formats, but ALL thumbnails
3 years ago
pukkandan
19b824f693
Re-implement deprecated option `--id`
...
Despite `--title`, `--literal` etc being deprecated,
`--id` is still documented in youtube-dl and so should be kept
3 years ago
Zirro
1e520b5535
Add option `--no-batch-file` ( #1335 )
...
Authored by: Zirro
3 years ago
pukkandan
2d9ec70423
[ModifyChapters] Allow removing sections by timestamp
...
Eg: --remove-chapters "*10:15-15:00".
The `*` prefix is used so as to avoid any conflicts with other valid regex
3 years ago
pukkandan
7b38649845
Fix verbose head not showing custom configs
3 years ago
pukkandan
b5ae35ee6d
[cleanup] Misc cleanup
3 years ago
pukkandan
819e05319b
Improved progress reporting (See desc) ( #1125 )
...
* Separate `--console-title` and `--no-progress`
* Add option `--progress` to show progress-bar even in quiet mode
* Fix and refactor `minicurses`
* Use `minicurses` for all progress reporting
* Standardize use of terminal sequences and enable color support for windows 10
* Add option `--progress-template` to customize progress-bar and console-title
* Add postprocessor hooks and progress reporting
Closes : #906 , #901 , #1085 , #1170
3 years ago
pukkandan
e6f21b3d92
[docs,cleanup] Some minor refactoring and improve docs
3 years ago
pukkandan
3ae5e79774
[postprocessor] Add plugin support
...
Adds option `--use-postprocessor` to enable them
3 years ago
pukkandan
b19404591a
Separate the options `--ignore-errors` and `--no-abort-on-error`
...
In youtube-dl, `-i` ignores both download and post-processing error, and
treats the download as successful even if the post-processor fails.
yt-dlp used to skip the entire video on either error and there was no
option to ignore the post-processing errors like youtube-dl does.
By splitting the option into two, now either just the download errors
(--no-abort-on-error, default on CLI) or all errors (--ignore-errors)
can be ignored as per the users' needs
Closes #893
3 years ago
pukkandan
1f8471e22c
Ignore empty entries in `_list_from_options_callback`
3 years ago
pukkandan
7303f84abe
[options] Fix `--no-config` and refactor reading of config files
...
Closes #912 , #914
3 years ago
pukkandan
0001fcb586
Add option `--netrc-location`
...
Closes #792 , #963
3 years ago
pukkandan
d21bba7853
[options] Strip spaces in list-like switches
3 years ago
pukkandan
ca46b94134
[cookies] Make browser names case insensitive
3 years ago
pukkandan
165efb823b
[ModifyChapters] fixes (See desc)
...
* [docs] Fix typo
* Do not enable `sponskrub` by default
* Fix `--force-keyframes-at-cuts`
* Don't embed subtitles if the video has been cut. Previously, running `--remove-chapters` with `--embed-subs` multiple times caused repeated cuts and out-of-sync subtitles
* Store `_real_duration` to prevent running ffprobe multiple times
3 years ago
pukkandan
dd594deb2a
Fix `--no-get-comments`
...
Closes #882
3 years ago
pukkandan
9ee4f0bb5b
Release 2021.09.02
3 years ago
Nil Admirari
7a340e0df3
Native SponsorBlock implementation and related improvements ( #360 )
...
SponsorBlock options:
* The fetched sponsor sections are written to infojson
* `--sponsorblock-remove` removes specified chapters from file
* `--sponsorblock-mark` marks the specified sponsor sections as chapters
* `--sponsorblock-chapter-title` to specify sponsor chapter template
* `--sponsorblock-api` to use a different API
Related improvements:
* Split `--embed-chapters` from `--embed-metadata`
* Add `--remove-chapters` to remove arbitrary chapters
* Add `--force-keyframes-at-cuts` for more accurate cuts when removing and splitting chapters
Deprecates all `--sponskrub` options
Authored by: nihil-admirari, pukkandan
3 years ago
pukkandan
2e7781a93c
[docs] Fix some typos
...
Closes #677 , #774
3 years ago
CeruleanSky
1c36c1f320
Fix `--no-prefer-free-formats` ( #787 )
...
Authored by: CeruleanSky
3 years ago
coletdjnz
0bb1bc1b10
[youtube] Remove annotations and deprecate `--write-annotations` ( #765 )
...
Closes #692
Authored by: coletdjnz
3 years ago
pukkandan
330690a214
[downloader/ffmpeg] Allow passing custom arguments before -i
...
Closes #686
3 years ago
pukkandan
88acdbc269
[extractor] Better error message for DRM ( #729 )
...
Closes #636
3 years ago
pukkandan
8f18aca871
Let `--match-filter` reject entries early
...
Makes redundant: `--match-title`, `--reject-title`, `--min-views`, `--max-views`
3 years ago
pukkandan
31654882e9
[options] Add `_set_from_options_callback`
3 years ago
pukkandan
ad3dc496bb
Misc fixes - See desc
...
* Remove unnecessary uses of _list_from_options_callback
* Fix download tests - Bug from 6e84b21559
* Rename ExecAfterDownloadPP to ExecPP and refactor its tests
* Ensure _write_ytdl_file closes file handle on error - Potential fix for #517
3 years ago
pukkandan
e9f4ccd19e
Add option `--replace-in-metadata`
3 years ago
pukkandan
3448870205
[docs] Fix some mistakes and improve doc
3 years ago
pukkandan
c681cb5d93
Allow multiple `--exec` and `--exec-before-download`
3 years ago
pukkandan
b7b04c782e
Add option `--no-simulate` to not simulate even when `--print` or `--list...` are used
...
* Deprecates `--print-json`
* Some listings like `--list-extractors` are handled by `yt_dlp` and so are not affected by this. These have been documented as such
Addresses: https://github.com/ytdl-org/youtube-dl/issues/29675 , https://github.com/ytdl-org/youtube-dl/issues/29580#issuecomment-882046305
3 years ago
pukkandan
57015a4a3f
[youtube] extractor-arg to show live dash formats
...
If replay is enabled, these formats can be used to download the last 4 hours
3 years ago
pukkandan
a047eeb6d2
Add regex to `--match-filter`
...
This does not fully deprecate `--match-title`/`--reject-title`
since `--match-filter` is only checked after the extraction is complete,
while `--match-title` can often be checked from the flat playlist.
Fixes: https://github.com/ytdl-org/youtube-dl/issues/9092 , https://github.com/ytdl-org/youtube-dl/issues/23035
3 years ago
Max Teegen
77b87f0519
Add all format filtering operators also to `--match-filter`
...
PR: https://github.com/ytdl-org/youtube-dl/pull/27361
Authored by: max-te
3 years ago
pukkandan
dbf5416a20
[cleanup] Refactor some code
3 years ago
pukkandan
d74a58a186
Set `home:` as the default key for `-P`
3 years ago
pukkandan
e4f0275711
Add compat-option `no-clean-infojson`
3 years ago
pukkandan
7d1eb38af1
Add format types `j`, `l`, `q` for outtmpl
...
Closes #345
3 years ago
Matt Broadway
982ee69a74
Add option `--cookies-from-browser` to load cookies from a browser ( #488 )
...
* also adds `--no-cookies-from-browser`
Original PR: https://github.com/ytdl-org/youtube-dl/pull/29201
Authored by: mbway
3 years ago
pukkandan
0ba692acc8
[youtube] Extract more thumbnails
...
* The thumbnail URLs are hard-coded and their actual existence is tested lazily
* Added option `--no-check-formats` to not test them
Closes #340 , Related: #402 , #337 , https://github.com/ytdl-org/youtube-dl/issues/29049
3 years ago
pukkandan
5520aa2dc9
Add option `--exec-before-download`
...
Closes #530
3 years ago
pukkandan
4bb6b02f93
Improve `extractor_args` parsing
3 years ago
pukkandan
5d3a0e794b
Add `--extractor-args` to pass extractor-specific arguments
3 years ago
pukkandan
6aecd87106
Release 2021.06.23
3 years ago
pukkandan
51d9739f80
Add option `--throttled-rate` below which video data is re-extracted
...
Currently only for HTTP downloads
Closes #430 , workaround for https://github.com/ytdl-org/youtube-dl/issues/29326
3 years ago
pukkandan
e36d50c5dd
[websockets] Add `WebSocketFragmentFD` ( #399 )
...
Necessary for #392
Co-authored by: nao20010128nao, pukkandan
3 years ago
pukkandan
7e067091e8
[options] Rename `--add-metadata` to `--embed-metadata`
...
and clarify that it embeds chapter markers
3 years ago
pukkandan
f89b3e2d7a
Skip fixup of existing files and add `--fixup force` to force it
3 years ago
pukkandan
fd7cfb6444
[cleanup] Refactor fixup
3 years ago
pukkandan
8ba8714880
[EmbedThumbnail] Fix for already downloaded thumbnail
4 years ago