Packages

simple elixir helper/wrapper for downloading youtube videos using YT-DLP

Current section

Files

Jump to
exyt_dlp lib settings.ex
Raw

lib/settings.ex

defmodule Exyt.Settings do
def quality(resolution \\ :fhd) do
case resolution do
:best ->
"bv*+ba/b"
:hd ->
"'bv*[height=720]+ba'"
:fhd ->
"'bv*[height=1080]+ba'"
:qhd ->
"'bv*[height=1440]+ba'"
:uhd ->
"'bv*[height=2160]+ba'"
end
end
end