curl https://gist.githubusercontent.com/Vendicated/63efda0ad96f707a3ba290f1aa2e8a86/raw/termux-ytdl.sh | sh -
Last active
November 5, 2022 18:16
-
-
Save Vendicated/63efda0ad96f707a3ba290f1aa2e8a86 to your computer and use it in GitHub Desktop.
Set up yt-dlp in termux, allowing you to share any video to termux with the Android share menu to download it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Enable storage access for termux | |
termux-setup-storage | |
# Update packages and install python and yt-dlp | |
pkg update && pkg upgrade | |
pkg install python | |
pip3 install yt-dlp | |
# install script | |
mkdir -p bin | |
cat > bin/termux-url-opener << 'UWU' | |
#!/bin/sh | |
printf "Enter Name\n> " | |
read -r name | |
yt-dlp "$1" -o "/sdcard/Movies/${name:-%(name)s}.%(ext)s" | |
UWU | |
chmod +x bin/termux-url-opener |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment