alexta69 / metube

Self-hosted YouTube downloader (web UI for youtube-dl / yt-dlp)
GNU Affero General Public License v3.0
3.95k stars 259 forks source link

How to embed metadata and thumbnail? #450

Open foolab opened 3 weeks ago

foolab commented 3 weeks ago

Hi,

Thank you for the great app :)

If I download a video manually using yt-dlp then I can pass --add-metadata --embed-thumbnai to embed the metadata and thumbnail into the resulting file.

How do I do that with metube? I checked ytdl options here https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/YoutubeDL.py#L183 but I am unable to figure out how to do it.

Any tips would be greatly appreciated.

PikuZheng commented 3 weeks ago

yes. set YTDL_OPTIONS

{
 "writethumbnail":true,
 "postprocessors":[
{"key":"FFmpegMetadata","add_metadata":"True"},
  {"key":"EmbedThumbnail"}
 ]
}
foolab commented 3 weeks ago

That is quite embarrassing. I was not aware it could be added like that. It works like a charm.

Thank you :)