diff options
author | PikuZheng <cba321123@gmail.com> | 2022-12-23 07:59:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-23 07:59:20 +0800 |
commit | bb5c05505f31113619f10b15bf021545522e4ece (patch) | |
tree | 1ba98eaec25ae4334c1ff877ff772b4558cd56c1 | |
parent | upgrade dependencies; add troubleshooting section to README (diff) | |
download | metube-bb5c05505f31113619f10b15bf021545522e4ece.tar.gz metube-bb5c05505f31113619f10b15bf021545522e4ece.tar.bz2 metube-bb5c05505f31113619f10b15bf021545522e4ece.zip |
convert thumbnail to jpg before embed #188
https://github.com/alexta69/metube/issues/188#issuecomment-1363443747
-rw-r--r-- | app/dl_formats.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/dl_formats.py b/app/dl_formats.py index 316d5df..5936b35 100644 --- a/app/dl_formats.py +++ b/app/dl_formats.py @@ -67,6 +67,7 @@ def get_opts(format: str, quality: str, ytdl_opts: dict) -> dict: "preferredquality": 0 if quality == "best" else quality, }) opts["writethumbnail"] = True + opts["postprocessors"].append({"key": "FFmpegThumbnailsConvertor", "format": "jpg", "when": "before_dl"}) opts["postprocessors"].append({"key": "FFmpegMetadata"}) opts["postprocessors"].append({"key": "EmbedThumbnail"}) |