# exyt_dlp
simple **elixir** wrapper for the great **yt-dlp**:
[https://github.com/yt-dlp/yt-dlp](https://github.com/yt-dlp/yt-dlp)
# pre-requisites:
setup and install yt-dlp in your system:
[https://github.com/yt-dlp/yt-dlp/wiki/Installation](https://github.com/yt-dlp/yt-dlp/wiki/Installation)
# how to use:
check installation:
`iex> Exyt.check_setup()`
`"Installed yt-dlp version: 2023.07.06\n"`
`iex> url = "https://www.youtube.com/watch?v=BaW_jenozKc"`
`iex> Exyt.download(url, %{output: "/tmp/test/", format: "mp4", quality: :fhd})`
or with default params(best quality available, .webv format, /tmp/exyt/ output)
`iex> Exyt.download(url)`
NOTE: :best quality will always return a .webm file.
and you can find your downloaded file at: /tmp/exyt/
TODO:
-test and add support to windows/mac;
-test and add support do yt-dlp advanced features(aria);
-tests;
-all the rest;