aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/sponskrub.py
Commit message (Collapse)AuthorAgeFilesLines
* [utils] `Popen`: Refactor to use contextmanagerpukkandan2022-06-161-8/+6
| | | | Fixes https://github.com/yt-dlp/yt-dlp/issues/3531#issuecomment-1156223597
* [cleanup] Sort importspukkandan2022-04-121-3/+3
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-1/+0
| | | | | | | | | | 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
* [cleanup] Mark some compat variables for removal (#2173)pukkandan2022-04-121-2/+2
| | | | Authored by fstirlitz, pukkandan
* [cleanup] Add deprecation warningspukkandan2021-11-291-1/+6
|
* Don't create console for subprocesses on Windows (#1261)pukkandan2021-10-201-3/+3
| | | Closes #1251
* Native SponsorBlock implementation and related improvements (#360)Nil Admirari2021-09-021-0/+1
| | | | | | | | | | | | | | | | | 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
* Use `os.replace` where applicable (#793)Paul Wrubel2021-08-271-2/+1
| | | | | | | | | | When using ```py os.remove(encodeFilename(filename)) os.rename(encodeFilename(temp_filename), encodeFilename(filename)) ``` the `os.remove` need not be atomic and so can be executed arbitrarily compared to the immediately following rename call. It is better to use `os.replace` instead Authored by: paulwrubel
* Allow `images` formatspukkandan2021-06-131-0/+1
| | | | | | | | | | 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
* More consistent warning messages (#173)pukkandan2021-03-201-1/+1
| | | | Co-authored by: Damiano Amatruda <damiano.amatruda@outlook.com>
* [sponskrub] Pass proxy to sponskrubpukkandan2021-03-151-0/+2
| | | | | | Needs atleast sponskrub version: faissaloo/sponskrub 3.7.0 OR yt-dlp/sponskrub 2021.03.15
* Refactor (See desc)pukkandan2021-03-141-1/+1
| | | | | | * 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/+93
* 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