This repository contains an automated script to install the Advanced YouTube Downloader Script on Termux. It ensures all dependencies are installed, required permissions are granted, and the downloader script is set up for seamless YouTube video/audio downloading.
- Automated Installation:
- Installs required dependencies (
yt-dlp,ffmpeg,python, and more) - Configures Termux for storage access
- Downloads and sets up the downloader script
- Installs required dependencies (
- Ease of Use:
- Automatically handles YouTube links shared with Termux
- Saves downloads directly to your gallery
- Error Handling:
- Provides troubleshooting messages for common issues
Run the following command in Termux:
bash <(curl -fsSL https://raw.githubusercontent.com/Argh94/YouTube-Downloader/refs/heads/main/install-ytd.sh)This command will:
- Install all required dependencies.
- Grant necessary storage permissions.
- Download and set up the Advanced YouTube Downloader Script.
-
Share a YouTube Link:
- Open the YouTube app.
- Share any video link to Termux.
- The script will automatically handle the download.
-
Manual Execution: Run the script directly with a YouTube URL:
~/bin/termux-url-opener "https://www.youtube.com/watch?v=VIDEO_ID"
Replace
VIDEO_IDwith the actual YouTube video ID or full URL.
All downloaded files are saved to:
/storage/emulated/0/Pictures/YouTubeVideos
-
yt-dlp Installation Failed:
- Ensure you have an active internet connection.
- Manually update
yt-dlp:python -m pip install yt-dlp --user --upgrade
-
Cannot Write to YouTubeVideos Folder:
- Grant storage permissions in Termux:
termux-setup-storage
- Grant storage permissions in Termux:
-
Main Script Download Failed:
- Verify the script URL in the repository (
ytd.sh). - Manually download the script using
wget:wget -O ~/bin/termux-url-opener "https://raw.githubusercontent.com/Argh94/YouTube-Downloader/refs/heads/main/ytd.sh" chmod +x ~/bin/termux-url-opener
- Verify the script URL in the repository (
To ensure the latest version of yt-dlp, run:
python -m pip install yt-dlp --user --upgrade- Name: Argh94
- GitHub: Argh94
This project is licensed under the MIT License. See the LICENSE file for details.
