Youtube Playman

Downloads and updates YouTube Playlists

3 min, 452 words

Categories: YouTube


A simple yet powerful script to download and manage local copies of youtube music playlists. It wraps over the youtube-dl downloader and maintains an archive of downloaded songs. It also updates them automatically if a cronjob is configured.


Cloning the repository:

#clone the repo
git clone
cd youtube-playman

Running the script:

#run the script directly
chmod +x ./


#create a hard link to the local binary folder
#this will add the downloader to the path variable
ln ./ ~/.local/bin/youtube-playman

#directly running the script


To install it right away for all UNIX users (Linux, macOS, etc.), type:

curl -L -o ~/.local/bin/youtube-playman
chmod a+rx ~/.local/bin/youtube-playman

If you do not have curl, you can alternatively use a recent wget:

wget -O ~/.local/bin/youtube-playman
chmod a+rx ~/.local/bin/youtube-playman

Add Jobs To cron:

#creating a cron job that will update the playlists automatically
crontab -e
#this will open a editor and add this entry to the file
#don't forget the newline after the last entry

@daily printf "update-all" | youtube-playman


@daily printf "update-all" | download > $HOME/Music/cron.log 2>&1;echo `date` >> $HOME/Music/cron.log

For more details refer to ubuntu cron wiki.

Usage example

Click on the play button to see an example download.

For more examples and usage, please refer to the Wiki.

Built With

  • youtube-dl - Command-line program to download videos from YouTube


  1. Fork the repo (
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request


MIT License copyright (c) 2020 Animesh Singh Chouhan. Please have a look at the license for more details.