aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_postprocessors.py
Commit message (Collapse)AuthorAgeFilesLines
* [SponsorBlock] Support `chapter` category (#5260)Ajay Ramachandran2022-10-181-8/+26
| | | Authored by: ajayyy, pukkandan
* [cleanup] Consistent style for file headspukkandan2022-06-251-0/+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/+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
* [SponsorBlock] Add Filler and Highlight categories (#1664)Nil Admirari2021-12-091-2/+2
| | | Authored by: nihil-admirari, pukkandan
* [SponsorBlock] Improve merge algorithm (#999)Nil Admirari2021-09-191-1/+33
| | | Authored by: nihil-admirari
* Native SponsorBlock implementation and related improvements (#360)Nil Admirari2021-09-021-0/+460
| | | | | | | | | | | | | | | | | 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
* Misc fixes - See descpukkandan2021-08-101-7/+7
| | | | | | | * Remove unnecessary uses of _list_from_options_callback * Fix download tests - Bug from 6e84b21559f586ee4d6affb61688d5c6a0c21221 * Rename ExecAfterDownloadPP to ExecPP and refactor its tests * Ensure _write_ytdl_file closes file handle on error - Potential fix for #517
* Add option `--replace-in-metadata`pukkandan2021-08-101-17/+16
|
* Fix and refactor `prepare_outtmpl`pukkandan2021-06-061-0/+14
| | | | | | | | | | The following tests would have failed previously: %(id)d %(id)r %(ext)s-%(ext|def)d %(width|)d %(id)r %(height)r %(formats.0)r %s
* [cleanup] Point all shebang to `python3` (#372)felix2021-06-061-1/+1
| | | | Authored by: fstirlitz
* [embedthumbnail] Correctly escape filenamepukkandan2021-05-291-1/+26
| | | | | | Closes #352 The approach in [1] is faulty as can be seen in the test cases 1. https://github.com/ytdl-org/youtube-dl/commit/bff857a8af696e701482208617bf0b7564951326
* [MetadataFromField] Improve regex and add testspukkandan2021-04-211-0/+9
|
* Ability to set a specific field in the file's metadatapukkandan2021-04-031-2/+2
| | | | | Eg: `--parse-metadata "description:(?s)(?P<meta_comment>.+)"` sets the "comment" field using `description`
* Completely change project name to yt-dlp (#85)Pccode662021-02-251-1/+1
| | | | | | | | | * 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
* Add option `--parse-metadata`pukkandan2021-01-261-2/+8
| | | | | | | * The fields extracted by this can be used in `--output` * Deprecated `--metadata-from-title` :ci skip dl
* [skip travis] renamingUnknown2020-09-021-1/+1
| | | to avoid using same folder when using pip install for example
* [tests] Fix invalid escape sequencesSergey M․2018-11-231-1/+1
|
* [metadatafromtitle] Some improvements and cleanupJaime Marquínez Ferrándiz2015-03-141-0/+17
* Remove the 'songtitle' field, 'title' can be used instead. * Remove newlines in the help text, for consistency with other options. * Add 'from __future__ import unicode_literals'. * Call '__init__' from the parent class. * Add test for the format_to_regex method