Simple script for download video and audio using termux.
Features:
- Download using yt-dlp
- Download using spotdl
- Download using curl
- Download using wget
pkg up -y
curl https://raw.githubusercontent.com/haiueom/termux-url-opener/main/install.sh | bash
or you can just clone this repository
pkg i git -y
git clone https://github.com/haiueom/termux-url-opener
sh ~/termux-url-opener/install.sh
Then you must run this to setup storage termux.
termux-setup-storage
Then make yt-dlp configuration file to set default output directory or you can make your own configuration.
mkdir -p $HOME/.config/yt-dlp
echo "--no-mtime" > $HOME/.config/yt-dlp/config
echo "-o $HOME/storage/downloads/termux/%(title)s.%(ext)s" >> $HOME/.config/yt-dlp/config
or you can just copy if you clone this repo
mkdir -p $HOME/.config/yt-dlp
cp "$HOME/termux-url-opener/.config/yt-dlp/config" "$HOME/.config/yt-dlp/config"
Then you can use the script by share a url to termux or run
termux-url-opener [url]
if you want to update the script, just run this in your termux app.
sh ~/termux-url-opener/update.sh
or run this
curl https://raw.githubusercontent.com/haiueom/termux-url-opener/main/update.sh | bash