aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/common.py
Commit message (Collapse)AuthorAgeFilesLines
* [compat, networking] Deprecate old functions (#2861)coletdjnz2023-07-151-6/+5
| | | | Authored by: coletdjnz, pukkandan
* [postprocessor] Print newline for `--progress-template`pukkandan2023-06-171-1/+1
| | | | Closes #7193
* [SponsorBlock] Obey `--retry-sleep extractor`pukkandan2022-10-181-2/+2
|
* [utils] Add `deprecation_warning`pukkandan2022-08-301-4/+8
| | | | See https://github.com/yt-dlp/yt-dlp/pull/2173#issuecomment-1097021515
* Standardize retry mechanism (#1649)pukkandan2022-08-021-14/+9
| | | | | | | * [utils] Create `RetryManager` * Migrate all retries to use the manager * [extractor] Add wrapper methods for convenience * Standardize console messages for retries * Add `--retry-sleep` for extractors
* [cleanup] Misc fixespukkandan2022-06-111-3/+0
| | | | Closes #4027
* [ExtractAudio, cleanup] Refactorpukkandan2022-06-061-1/+1
|
* [cleanup] Misc fixes and cleanuppukkandan2022-05-271-1/+4
| | | | Closes #3780, Closes #3853, Closes #3850
* [cleanup] Minor fixes (See desc)pukkandan2022-05-091-4/+4
| | | | | | | | | | * [youtube] Fix `--youtube-skip-dash-manifest` * [build] Use `$()` in `Makefile`. Closes #3684 * Fix bug in 385ffb467b2285e85a2a5495b90314ba1f8e0700 * Fix bug in 43d7f5a5d0c77556156a3f8caa6976d3908a1e38 * [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode` * [utils] LazyList: Expose unnecessarily "protected" attributes and other minor cleanup
* [EmbedThumbnail] Do not obey `-k`pukkandan2022-05-011-0/+6
|
* [cleanup] Misc cleanup and refactor (#2173)pukkandan2022-04-181-1/+1
|
* [docs] Improve embedding docs and other minor fixespukkandan2022-04-181-1/+2
|
* [cleanup] Sort importspukkandan2022-04-121-1/+1
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-3/+1
| | | | | | | | | | 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
* [postprocessor,cleanup] Create `_download_json`pukkandan2022-03-251-2/+29
|
* [FFmpegConcat] Abort on `--simulate`pukkandan2022-02-181-1/+3
|
* [dash,youtube] Download live from start to end (#888)The Hatsune Daishi2021-12-201-2/+1
| | | | | | | | | | | | | | | * 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
* [cleanup] Add deprecation warningspukkandan2021-11-291-0/+6
|
* [downloader] Fix slow progress hookspukkandan2021-10-161-6/+7
| | | | Closes #1301
* [downloader/ffmpeg] Fix bug in initializing `FFmpegPostProcessor`pukkandan2021-10-101-3/+1
| | | | | | | When `FFmpegFD` initializes the PP, it passes `self` as the `downloader` But it does not have a `_postprocessor_hooks` attribute Closes #1211
* Improved progress reporting (See desc) (#1125)pukkandan2021-10-091-2/+61
| | | | | | | | | | | * 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
* Separate the options `--ignore-errors` and `--no-abort-on-error`pukkandan2021-09-241-0/+1
| | | | | | | | | | | | | | 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
* [downloader/ffmpeg] Allow passing custom arguments before -ipukkandan2021-08-241-13/+4
| | | | Closes #686
* [postprocessor] Fix `_restrict_to` when a codec is not setpukkandan2021-06-141-2/+2
|
* Fix bug in 8326b00aabc332cad3edec246fe5353bea069cb0pukkandan2021-06-131-1/+1
|
* Allow `images` formatspukkandan2021-06-131-0/+20
| | | | | | | | | | Necessary for #343. * They are identified by `vcodec=acodec='none'` * These formats show as the worst in `-F` * Any postprocessor that expects audio/video will be skipped * `b*` and all related selectors will skip such formats * This commit also does not add any selector for downloading such formats. They have to be explicitly requested by the `format_id`. Implementation of a selector is left for when #389 is resolved
* [embedthumbnail] Embed if any thumbnail was downloaded, not just the bestpukkandan2021-05-291-1/+1
|
* Standardize `write_debug`pukkandan2021-05-141-4/+3
|
* Refactor (See desc)pukkandan2021-03-141-2/+10
| | | | | | * Create `FFmpegPostProcessor.real_run_ffmpeg` that can accept multiple input/output files along with switches for each * Rewrite `cli_configuration_args` and related functions * Create `YoutubeDL._ensure_dir_exists` - this was previously defined in multiple places
* Completely change project name to yt-dlp (#85)Pccode662021-02-251-0/+101
* All modules and binary names are changed * All documentation references changed * yt-dlp no longer loads youtube-dlc config files * All URLs changed to point to organization account Co-authored-by: Pccode66 Co-authored-by: pukkandan