Skip to content

A wrapper script to sync a Youtube playlist to a directory

License

Notifications You must be signed in to change notification settings

Smeueg/ytpl-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

ytpl-sync (YoutubePlaylist-Sync)

Sync a Youtube playlist to a directory, optionally remove videos/audios that aren't in the playlist.

Dependencies

Installation

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

Usage

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)

About

A wrapper script to sync a Youtube playlist to a directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages