aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/embedthumbnail.py
Commit message (Collapse)AuthorAgeFilesLines
* [embedthumbnail] Fix thumbnail name in mp3 (#5163)Noah2022-10-071-1/+1
| | | Authored by: How-Bout-No
* [postprocessor/embedthumbnail] Detect libatomicparsley.sopukkandan2022-08-111-1/+2
|
* [utils] `Popen`: Refactor to use contextmanagerpukkandan2022-06-161-6/+4
| | | | Fixes https://github.com/yt-dlp/yt-dlp/issues/3531#issuecomment-1156223597
* [compat] Implement `compat.imghdr`pukkandan2022-05-171-1/+1
| | | | Python 3.11 deprecates `imghdr` module
* [EmbedThumbnail] Do not obey `-k`pukkandan2022-05-011-8/+6
|
* [cleanup] Misc fixespukkandan2022-04-291-2/+2
| | | | Closes #3565, https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
* [EmbedThumbnail] Disable thumbnail conversion for mkv (#3512)Evan Spensley2022-04-211-6/+4
| | | | Closes #3209 Authored by: evansp
* [dependencies] Create module with all dependency importspukkandan2022-04-211-11/+9
|
* [cleanup] Sort importspukkandan2022-04-121-8/+5
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-4/+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
* [EmbedThumbnail] Do not remove id3v1 tagspukkandan2022-04-101-1/+1
|
* [ffmpeg] Standardize use of `-map 0`pukkandan2022-01-121-2/+2
| | | | Closes #2182
* [EmbedThumbnail] Prefer AtomicParsley over ffmpeg if availablepukkandan2021-12-271-33/+38
|
* Don't create console for subprocesses on Windows (#1261)pukkandan2021-10-201-3/+3
| | | Closes #1251
* 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
* [embedthumbnail] Fix `_get_thumbnail_resolution`pukkandan2021-07-111-1/+1
|
* [thumbnailsconvertor] Treat `jpeg` as `jpg`pukkandan2021-06-251-1/+1
|
* [EmbedThumbnail] Add compat-option `embed-thumbnail-atomicparsley`pukkandan2021-06-161-2/+3
| | | | | | to force use of atomicparsley for embedding thumbnails in mp4 Related: #411
* Allow `images` formatspukkandan2021-06-131-0/+2
| | | | | | | | | | 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] Correctly escape filenamepukkandan2021-05-291-1/+1
| | | | | | 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
* [embedthumbnail] Embed if any thumbnail was downloaded, not just the bestpukkandan2021-05-291-4/+8
|
* [ard] Allow URLs without `-` before idOliver Freyermuth2021-05-231-1/+1
| | | | | | https://github.com/ytdl-org/youtube-dl/pull/29091 Authored by: olifre
* [embedthumbnail] Embed in `mp4`/`m4a` using mutagenpukkandan2021-05-231-20/+50
| | | | | Code from: https://github.com/ytdl-org/youtube-dl/pull/23525 Co-authored by: tripulse , pukkandan
* [ThumbnailsConvertor] Support conversion to `png` and make it the default (#333)louie-github2021-05-211-3/+6
| | | | | | PNG, being a lossless format, should be a better default here compared to JPG since we won't be compressing to a lossy format and losing some of the original image data PNG is also supported for embedding in all the formats similar to JPEG Authored by: louie-github
* [cleanup] See descpukkandan2021-05-201-1/+0
| | | | | | * Remove struct from `embedthumbnail` * Use bullet lists in readme where numbered list don't make sense * Fix error introduced in 9c2b75b5616f058c3970e54c664e9543f86b9f0c when `ie_result` is `None`
* [embedthumbnail] Add `flac` support and refactor `mutagen` codepukkandan2021-05-201-24/+42
| | | | | https://github.com/ytdl-org/youtube-dl/pull/28894, https://github.com/ytdl-org/youtube-dl/pull/24310 Authored by: tripulse
* [embedthumbnail] Fix bug where jpeg thumbnails were converted againpukkandan2021-05-041-1/+1
| | | | Closes #297
* Add option `--convert-thumbnails`pukkandan2021-04-121-38/+13
| | | | Closes: https://github.com/yt-dlp/yt-dlp/issues/99 https://github.com/yt-dlp/yt-dlp/issues/102
* Allow running some `postprocessors` before actual downloadpukkandan2021-04-121-1/+0
|
* More consistent warning messages (#173)pukkandan2021-03-201-1/+1
| | | | Co-authored by: Damiano Amatruda <damiano.amatruda@outlook.com>
* [movefiles] Fix bugs and make more robustpukkandan2021-03-181-2/+5
|
* [embedthumbnail] Set mtime correctlypukkandan2021-03-141-0/+4
| | | | Related: https://github.com/yt-dlp/yt-dlp/issues/67
* 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
* [embedthumbnail] Fix bug with deleting original thumbnail (Closes #113)pukkandan2021-02-251-0/+2
| | | | :ci skip dl
* Completely change project name to yt-dlp (#85)Pccode662021-02-251-0/+196
* 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