Download Youtube playlist videos by mp3 or mp4 via Youtube-DL.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Youtube Playlist Downloader

(I know there are a lots of alternative to download video from youtube, but i really like that kind of pure solution)

I need to change something about this script, because of that: Bye-bye, YouTube Data API v2 Now this script works fine.

If you use this script, you can download youtube videos from youtube playlist. You have options to download video in mp3 format or video format (mp4) as well. When this script finish to download and / or convert files, you get zip archive and list about these. Download videos and convert them take a long time.

for instance:

##Binaries and PHP functions are required:

  • youtube-dl installed binary on Linux
  • zip installed binary on Linux
  • tree installed binary on Linux
  • php - file_get_contents function
  • php - system function (option to run binary via system function)

Example to use this scripts:

Download in mp3: Download in video format:

Install youtube-dl:

Before you run index.php via browser, you need to add right permission to container folder and and files

##You can see below another option to download Youtube video or Youtube Videos by Mp3 format:##

Download by video format: youtube-dl -cit "[*playlist_id*]" or youtube-dl -f best -citw -v

Download by Mp3: youtube-dl --extract-audio --audio-format mp3 -cit "[*playlist_id*]"

Download playlist: youtube-dl -t[*playlist_id*]

##About Youtube-dl update:## Time to time required to update youtube-dl. Below you will be able to see few commands to maintain youtube-dl.s

Get youtube-dl version: youtube-dl --version
Update youtube-dl: sudo youtube-dl -U
sudo pip install youtube-dl --upgrade