https://github.com/corbrandt/yt-dialog
This script provides a text-based interface for downloading YouTube videos with yt-dlp. Users can select download formats (MP4 or Stream), specify filenames, and track the download progress in real-time.
https://github.com/corbrandt/yt-dialog
dialog shell shell-script youtube-dl yt-dlp
Last synced: over 1 year ago
JSON representation
This script provides a text-based interface for downloading YouTube videos with yt-dlp. Users can select download formats (MP4 or Stream), specify filenames, and track the download progress in real-time.
- Host: GitHub
- URL: https://github.com/corbrandt/yt-dialog
- Owner: corbrandt
- Created: 2025-01-28T13:56:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-10T14:55:51.000Z (over 1 year ago)
- Last Synced: 2025-02-10T15:41:07.173Z (over 1 year ago)
- Topics: dialog, shell, shell-script, youtube-dl, yt-dlp
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ▶️ YouTube Video Downloader with Progress Bar
A simple, beginner-friendly shell script that allows you to download YouTube videos using `yt-dlp` with a `dialog`-based user interface, including a working progress bar.
## 👍 Features
- **User-friendly text-based interface** powered by `dialog`
- **Download as MP4 or Stream** using `yt-dlp`
- **Real-time progress bar** showing download percentage
- **Option to specify filename**
- **Saves downloads in `~/Downloads`** by default
## 🖼️ Screenshot

## ‼️ Prerequisites
Before running the script, make sure you have the following installed:
### 📥 Install Required Dependencies
```bash
sudo apt update
sudo apt install dialog
sudo apt install yt-dlp
```
The above commands may vary, depending on your distro.
If you are using another Linux distribution:
- **Arch Linux:** `sudo pacman -S dialog yt-dlp`
- **Fedora:** `sudo dnf install dialog yt-dlp`
## ⬇️ Installation & Setup
1. **Download the script**
```bash
git clone https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.git
cd YOUR_REPOSITORY
```
2. **Make the script executable**
```bash
chmod +x yt_downloader.sh
```
3. **Run the script**
```bash
./yt_downloader.sh
```
## 📖 Usage Guide
1. **Enter the YouTube video URL**
2. **(Optional) Specify a filename**
3. **Select the download format:**
- `MP4`: Downloads the video as an MP4 file
- `Stream`: Downloads using streaming mode
4. **Watch the progress bar as the video downloads**
5. **Find your video in `~/Downloads`**
## 🛠 Customization
You can modify the default download directory by editing the following line in the script:
```bash
DOWNLOAD_DIR="$HOME/Downloads"
```
Change `$HOME/Downloads` to your preferred directory.
## 🆘 Troubleshooting
- If `yt-dlp` is missing, install it with `sudo apt install yt-dlp`. This command may vary, depending on your distro.
- If `dialog` is missing, install it with `sudo apt install dialog`. This command may vary, depending on your distro.
- If downloads fail, try updating `yt-dlp` with:
```bash
sudo yt-dlp -U