Skip to content

animesh-chouhan/youtube-playman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-playman

. license

Downloads and updates local copies of YouTube Playlists

A simple yet powerful script to download and manage local copies of youtube music playlists

Setup

Cloning the repository:

#clone the repo
git clone https://github.com/animesh-chouhan/yt-comment-scraper.git
cd youtube-playman

Running the script:

#run the script directly
chmod +x ./youtube-playman.sh
./youtube-playman.sh

OR

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

#directly running the script
youtube-playman

Installation:

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

curl -L https://github.com/animesh-chouhan/youtube-playman/releases/latest/download/youtube-playman -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 https://github.com/animesh-chouhan/youtube-playman/releases/latest/download/youtube-playman -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

PATH="/usr/local/bin:/usr/bin:/bin:/home/<your-username>/.local/bin"
@daily printf "update-all" | youtube-playman

#OR

PATH="/usr/local/bin:/usr/bin:/bin:/home/<your-username>/.local/bin"
@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

Contributing

  1. Fork the repo (https://github.com/animesh-chouhan/youtube-playman/)
  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

License

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