pukkandan
8dc5930511
[utils, cleanup] Consolidate known media extensions
2 years ago
pukkandan
6a7d3a0a09
[ffmpeg] Set `ffmpeg_location` in a contextvar
...
Fixes #2191 for the CLI, but not when used through the API
2 years ago
pukkandan
6929b41a21
Remove Python 3.6 support
...
Closes #3764
2 years ago
pukkandan
134c913cca
Discard info_dict from memory if no longer needed
...
Closes #1399
2 years ago
pukkandan
f2df407165
[cleanup] Misc cleanup
2 years ago
pukkandan
54007a45f1
[cleanup] Consistent style for file heads
2 years ago
pukkandan
ac66811112
[compat] Remove more functions
...
Removing any more will require changes to a large number of extractors
2 years ago
pukkandan
28163422a6
Fix `--downloader native`
...
Bug in 7b2c3f47c6
2 years ago
pukkandan
8372be7469
[update] Self-restart after update
2 years ago
pukkandan
6d1b34896e
Update to ytdl-commit-8a158a9
...
[NHK] Use new API URL
6508688e88
Closes #2337 , Closes #4063
2 years ago
pukkandan
7b2c3f47c6
[cleanup] Misc
2 years ago
pukkandan
7e9a612585
Add option `--lazy-playlist` to process entries as they are received
2 years ago
pukkandan
7e88d7d78f
Add slicing notation to `--playlist-items`
...
* Adds support for negative indices and step
* Add `-I` as alias for `--playlist-index`
* Deprecates `--playlist-start`, `--playlist-end`, `--playlist-reverse`, `--no-playlist-reverse`
Closes #2951 , Closes #2853
2 years ago
pukkandan
560738f34d
[extractor] Import `_ALL_CLASSES` lazily
...
This significantly speeds up `import yt_dlp` in the absence of `lazy_extractors`
2 years ago
pukkandan
5ec1b6b716
Add option `--download-sections` to download video partially
...
Closes #52 , Closes #3932
2 years ago
pukkandan
e0ab98541c
[ExtractAudio] Allow conditional conversion
...
Closes #1715
2 years ago
pukkandan
35faefee5d
[ExtractAudio, cleanup] Refactor
2 years ago
pukkandan
00bbc5f177
[ThumbnailsConvertor] Allow conditional conversion
...
Closes #3970
2 years ago
pukkandan
f95b9dee45
[extractor] Add dev option `--load-pages`
2 years ago
pukkandan
6b9e832db7
`--config-location -` to provide options interactively
3 years ago
pukkandan
c4a62b99f6
Fix bug in 23326151c4
3 years ago
pukkandan
c487cf0010
[cleanup] Misc
3 years ago
pukkandan
e79969b242
Return an error code if update fails
...
Closes #3802
3 years ago
pukkandan
23326151c4
Add option --retry-sleep ( #3059 )
...
Closes #2852
3 years ago
pukkandan
9e49146352
Add option `--alias`
3 years ago
pukkandan
21633673c3
[cleanup] Minor fixes
3 years ago
pukkandan
82d020804d
[extractor] Use classmethod/property where possible
...
and refactor lazy extractors accordingly.
This reduces the need to create extractor instances
3 years ago
pukkandan
8dcce6a89c
[extractor] Document netrc machines
...
Closes #3169
3 years ago
coletdev
bb58c9ed5c
Add support for SSL client certificate authentication ( #3435 )
...
Adds `--client-certificate`, `--client-certificate-key`, `--client-certificate-password`
Authored-by: coletdjnz
Co-authored-by: df <fieldhouse@gmx.net>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
3 years ago
pukkandan
62f6f1cbf2
Don't imply `-s` for later stages of `-O`
3 years ago
pukkandan
19a0394044
[cleanup] Misc cleanup and refactor ( #2173 )
3 years ago
pukkandan
3d3bb1688b
[docs] Improve embedding docs and other minor fixes
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
felix
cfb0511d82
[cleanup] Remove unused code paths ( #2173 )
...
Notes:
* `_windows_write_string`: Fixed in 3.6
* https://bugs.python.org/issue1602
* PEP: https://www.python.org/dev/peps/pep-0528
* Windows UTF-8 fix: Fixed in 3.3
* https://bugs.python.org/issue13216
* `__loader__`: is always present in 3.3+
* https://bugs.python.org/issue14646
* `workaround_optparse_bug9161`: Fixed in 2.7
* https://bugs.python.org/issue9161
Authored by: fstirlitz
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
231025c463
Fix bug in 52efa4b312
...
Closes #3173
3 years ago
pukkandan
e880c92c65
Exit after `--dump-user-agent`
...
Bug in d1b5f70bc9
Closes #3055
3 years ago
pukkandan
da1d734fbe
Remove incorrect warning for `--dateafter`
...
Closes #3030
3 years ago
pukkandan
07ff290dce
Fix `--sleep-interval`
...
Bug in d1b5f70bc9
Closes #3012
3 years ago
pukkandan
51c22ef4e2
Fix `--throttled-rate`
...
Typo in d1b5f70bc9
Closes #2996
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
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
dbcea0585f
[outtmpl] Handle `-o ""` better
...
Since the specific type of file is not downloaded when giving `-o "<type>:"`,
now `-o ""` acts as an alias to `--skip-download`
3 years ago
pukkandan
bb66c24797
Add option `--print-to-file`
...
Closes #2372
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
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
Matt Broadway
f59f5ef8b6
[cookies] Support other keyrings ( #2032 )
...
Authored by: mbway
3 years ago
pukkandan
b28bac93ab
Fix bug in 1cefca9e44
...
Fixes https://github.com/ytdl-patched/ytdl-patched/issues/11
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
pukkandan
1cefca9e44
Add warning when using `-f best`
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
pukkandan
38d79fd16c
Use `parse_duration` for `--wait-for-video`
...
and some minor fix
3 years ago
pukkandan
acc0d6a411
Allow `--no-write-thumbnail` to override `--write-all-thumbnail`
...
Closes #1900
3 years ago
pukkandan
91f071af60
Release 2021.12.01
3 years ago
pukkandan
717216b093
Validate --get-bypass-country
...
Closes #1834
3 years ago
pukkandan
ee8dd27a73
[cleanup] Add deprecation warnings
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
shirt
93e597ba28
Fix logic error in report_unplayable_conflict
3 years ago
pukkandan
9222c38182
[cleanup] Minor cleanup
...
Closes #1696 , Closes #1673
3 years ago
pukkandan
dac5df5a98
Add option `--embed-info-json` to embed info-json in mkv
...
Closes #1644
3 years ago
pukkandan
aa9369a2d8
[cleanup] Minor improvements to error and debug messages
3 years ago
pukkandan
9af98e17bd
[ffmpeg] Framework for feature detection
...
Related: #1502 , #1237 , https://github.com/ytdl-org/youtube-dl/pull/29581
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
96565c7e55
[cleanup] Add keyword automatically to SearchIE descriptions
...
and some minor cleanup of docs
3 years ago
pukkandan
49a57e70a9
[cleanup] misc
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
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
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
80c03fa98f
Allow empty output template to skip a type of file
...
Closes #760 , #1111
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
0001fcb586
Add option `--netrc-location`
...
Closes #792 , #963
3 years ago
pukkandan
ca46b94134
[cookies] Make browser names case insensitive
3 years ago
pukkandan
347182a0cd
Show a more useful error in older python versions
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
251ae04e6a
[lazy_extractor] Create instance only after pre-checking archive
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
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
b51d2ae3ca
Add compat-option `no-keep-subs`
...
Closes #630
3 years ago
pukkandan
cc3fa8d39d
Handle `BrokenPipeError`
...
PR: https://github.com/ytdl-org/youtube-dl/pull/29505
Fixes: https://github.com/ytdl-org/youtube-dl/issues/29082
Authored by: kikuyan
3 years ago
Stavros Ntentos
9d65e7bd6d
Fix `--compat-options filename` ( #629 )
...
The correct default filename is `%(title)s-%(id)s.%(ext)s`
Authored by: stdedos
3 years ago
pukkandan
e4f0275711
Add compat-option `no-clean-infojson`
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
5520aa2dc9
Add option `--exec-before-download`
...
Closes #530
3 years ago
pukkandan
3acf6d3856
[Funimation] Rewrite extractor (See desc) ( #444 )
...
* Support direct `/player/` URL
* Treat the different versions of an episode as different formats of a single video. So `experience_id` can no longer be used as the video `id` and the `episode_id` is used instead. This means that all existing archives will break
* Extractor options `language` and `version` to pre-select them
* Compat option `seperate-video-versions` to fall back to old behavior (including using the old video IDs)
Closes #428
3 years ago
pukkandan
5d3a0e794b
Add `--extractor-args` to pass extractor-specific arguments
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
e858a9d6d3
[EmbedThumbnail] Add compat-option `embed-thumbnail-atomicparsley`
...
to force use of atomicparsley for embedding thumbnails in mp4
Related: #411
3 years ago