Add resolution option (#21)

* added preferred resolution to profiles

* Add resolution to download option builder
This commit is contained in:
Kieran
2024-02-15 14:21:41 -08:00
committed by GitHub
parent 9d3b9cc063
commit 44bd105e80
7 changed files with 61 additions and 2 deletions
@@ -158,4 +158,12 @@ defmodule Pinchflat.Profiles.Options.YtDlp.DownloadOptionBuilderTest do
refute :embed_metadata in res
end
end
describe "build/1 when testing quality options" do
test "it includes quality options" do
assert {:ok, res} = DownloadOptionBuilder.build(@media_profile)
assert {:format_sort, "res:1080,+codec:avc:m4a"} in res
end
end
end