Converts thumbnails to jpg for better compat (#70)

This commit is contained in:
Kieran
2024-03-11 18:03:40 -07:00
committed by GitHub
parent ea4d689fea
commit e6b04bd675
2 changed files with 9 additions and 1 deletions
@@ -63,7 +63,7 @@ defmodule Pinchflat.YtDlp.DownloadOptionBuilder do
Enum.reduce(mapped_struct, [], fn attr, acc ->
case {attr, media_profile} do
{{:download_thumbnail, true}, _} ->
acc ++ [:write_thumbnail]
acc ++ [:write_thumbnail, convert_thumbnail: "jpg"]
{{:embed_thumbnail, true}, %{preferred_resolution: pr}} when pr != :audio ->
acc ++ [:embed_thumbnail]