convert thumbnail to jpg before embed #188

https://github.com/alexta69/metube/issues/188#issuecomment-1363443747
This commit is contained in:
PikuZheng
2022-12-23 07:59:20 +08:00
committed by GitHub
parent a6d6942f7b
commit bb5c05505f

View File

@@ -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"})