A Bash script for easily downloading audio from YouTube playlists using yt-dlp, compatible with Unix-like environments and Termux on Android.
- K4NN4N's Choice: Start downloads using predefined settings optimized for high-quality audio.
- Custom Options: Customize download settings including directory, audio quality, format, and thumbnail saving.
- Retry Logic: Automatically retry failed downloads up to 10 times before skipping.
- Retry Failed Downloads: Easily retry downloads for any files that failed in previous attempts.
- Check for Updates: Check for updates in the playlist and download new or updated videos.
- User-Friendly Interface: Interactive menu for easy navigation and selection of options.
- Bash: Version 4.0 or higher
- yt-dlp: The script will check if it's installed and provide installation instructions if it's not
- curl or wget: For downloading the script (if not cloning the repository)
- Git: For cloning the repository (optional)
- Termux app installed from F-Droid (recommended) or Google Play Store
- Bash (pre-installed in Termux)
- yt-dlp (installation instructions provided below)
- Git (optional, for cloning the repository)
To check your Bash version, run:
bash --version
- Open your terminal (or Termux on Android).
- Navigate to the directory where you want to clone the repository.
- Run the following command:
git clone https://github.com/K4NN4N/YT-Playlist-Downloader-.git
- Navigate into the cloned directory:
cd YT-Playlist-Downloader-
If you don't want to clone the entire repository, you can download the script directly:
-
Using curl:
curl -O https://raw.githubusercontent.com/K4NN4N/YT-Playlist-Downloader-/main/youtube-playlist-downloader.sh
Or using wget:
wget https://raw.githubusercontent.com/K4NN4N/YT-Playlist-Downloader-/main/youtube-playlist-downloader.sh
-
Make the script executable:
chmod +x youtube-playlist-downloader.sh
If you're using Termux on Android, follow these additional steps:
-
Update and upgrade Termux packages:
pkg update && pkg upgrade
-
Install required packages:
pkg install python ffmpeg
-
Install yt-dlp using pip:
pip install yt-dlp
-
Grant storage permission to Termux (if not already granted):
termux-setup-storage
- Run the script:
./youtube-playlist-downloader.sh
- Follow the on-screen prompts to select your desired options:
- Choose between K4NN4N's Choice (default settings) or custom options
- Enter the YouTube playlist URL when prompted
- Monitor the download progress
- Choose post-download options (retry failed downloads, check for updates, or exit)
- K4NN4N's Choice: Uses default settings optimized for high-quality audio (320K mp3 with embedded thumbnails).
- Custom Options: Allows you to set:
- Download directory
- Audio quality (320K, 256K, 192K, 128K, 96K)
- Audio format (mp3, aac, flac, m4a, opus, vorbis)
- Thumbnail saving
- Download order (normal or reverse)
- If you encounter the error "yt-dlp: command not found", the script will provide instructions on how to install yt-dlp. Follow the provided instructions to install yt-dlp on your system.
- For Termux users, ensure you've granted storage permissions to Termux if you're having issues accessing the download directory.
- If you're using Windows, make sure you're running the script in a Unix-like environment such as Git Bash or WSL (Windows Subsystem for Linux).
- Ensure you have the necessary permissions to write to the download directory.
Contributions, issues, and feature requests are welcome! Feel free to check issues page if you want to contribute.
๐ค K4NN4N
Give a โญ๏ธ if this project helped you!
This project is MIT licensed.