Since ytpl-sync
is just a shell script, installing is as easy as downloading
ytpl-sync
into somewhere in your $PATH
.
If, for example, ~/.local/bin
is in your $PATH
curl -L https://raw.githubusercontent.com/Smeueg/ytpl-sync/main/ytpl-sync -o ~/.local/bin/ytpl-sync
or if you want to install it system-wide
curl -L https://raw.githubusercontent.com/Smeueg/ytpl-sync/main/ytpl-sync -o /usr/bin/ytpl-sync
If you don't want to download the script to your filesystem and depending on how comfortable you are directly piping a script you "curl-d", you can also do this. Do note that this is unsafe, and should be used at your own risk:
sh <(curl -sNL https://raw.githubusercontent.com/Smeueg/ytpl-sync/main/ytpl-sync)
or with options:
sh <(curl -sNL https://raw.githubusercontent.com/Smeueg/ytpl-sync/main/ytpl-sync) --format mp3
ytpl-sync
can be run interactively but there are options that can be used to
further automate the process.
Example:
ytpl-sync
or
ytpl-sync --url "https://www.youtube.com/playlist?list=PLRV1hc8TIW-7znQIWaVarxdUxf7lskmBc"
Options include:
--help
, display the help information--url URL
, use this url instead of prompting the user--format FORMAT
, use this url instead of prompting the user--dir DIR
, sync to this directory instead of prompting the user--remove
, remove media that aren't in the playlist (Use with caution)