Git Product home page Git Product logo

k4nn4n / yt-playlist-downloader- Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 37 KB

The YouTube Playlist Downloader is my first self-created program for downloading audio from YouTube playlists. It uses yt-dlp for high-quality audio extraction, supports various formats, embeds album art, retries failed downloads, and checks for updates. Customize settings easily and monitor progress with a visual progress bar.

License: MIT License

Shell 100.00%

yt-playlist-downloader-'s Introduction

YouTube Playlist Downloader

A Bash script for easily downloading audio from YouTube playlists using yt-dlp, compatible with Unix-like environments and Termux on Android.

Features

  • 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.

Requirements

For Unix-like Systems (Linux, macOS, Windows with WSL or Git Bash):

  • 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)

For Termux on Android:

  • 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

Installation

Option 1: Cloning the Repository

  1. Open your terminal (or Termux on Android).
  2. Navigate to the directory where you want to clone the repository.
  3. Run the following command:
    git clone https://github.com/K4NN4N/YT-Playlist-Downloader-.git
    
  4. Navigate into the cloned directory:
    cd YT-Playlist-Downloader-
    

Option 2: Downloading the Script Directly

If you don't want to clone the entire repository, you can download the script directly:

  1. 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
    
  2. Make the script executable:

    chmod +x youtube-playlist-downloader.sh
    

Termux-Specific Setup

If you're using Termux on Android, follow these additional steps:

  1. Update and upgrade Termux packages:

    pkg update && pkg upgrade
    
  2. Install required packages:

    pkg install python ffmpeg
    
  3. Install yt-dlp using pip:

    pip install yt-dlp
    
  4. Grant storage permission to Termux (if not already granted):

    termux-setup-storage
    

Usage

  1. Run the script:
    ./youtube-playlist-downloader.sh
    
  2. 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)

Options

  • 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)

Troubleshooting

  • 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.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check issues page if you want to contribute.

Author

๐Ÿ‘ค K4NN4N

Show your support

Give a โญ๏ธ if this project helped you!

License

This project is MIT licensed.

yt-playlist-downloader-'s People

Contributors

k4nn4n avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.