Exyt (exyt_dlp v0.1.0)
Documentation for Exyt
.
Summary
Functions
check_setup()
check_setup
Examples
iex> Exyt.check_setup()
"Installed yt-dlp version: 2023.07.06
"v
download(url, opts \\ %{})
Download
url :: valid yotube string opts :: map
options: :quality :: (:hd | :fhd | :qhd | :uhd | :best) NOTE: default is :best and :best always will generate a webm file., :output :: directory to save downloaded files :format :: ("webm", "mp4", "m4a")
Examples
iex> url = "https://www.youtube.com/watch?v=BaW_jenozKc"
iex> Exyt.download(url, %{output: "/tmp/test/", format: "mp4", quality: :fhd})
"[youtube] Extracting URL: https://www.youtube.com/watch?v=BaW_jenozKc [youtube] BaW_jenozKc: Downloading webpage [youtube] BaW_jenozKc: Downloading ios player API JSON [youtube] BaW_jenozKc: Downloading android pla yer API JSON [youtube] BaW_jenozKc: Downloading m3u8 information [info] BaW_jenozKc: Downloading 1 format(s): 22 [download] Destination: /tmp/test/youtube-dl test video "'⧸⧹ä↭𝕐 [BaW_jenozKc].mp4
[download] 0.5
% of 214.60KiB at Unknown B/s ETA Unknown
[download] 1.4% of 214.60KiB at 993.83KiB/s ETA 00:00
[download] 3.3% of 214.60KiB at 147.93KiB/s ETA 00:01
[download] 7.0% of 214.60KiB at 240.43KiB/s ETA 0
0:00
[download] 14.4% of 214.60KiB at 287.45KiB/s ETA 00:00
[download] 29.4% of 214.60KiB at 327.89KiB/s ETA 00:00
[download] 59.2% of 214.60KiB at 407.13KiB/s ETA 00:00
[download] 100.0% of 214.60KiB at
399.48KiB/s ETA 00:00
[download] 100% of 214.60KiB in 00:00:01 at 107.33KiB/s
"