This is an entirely personal setup I shared because I thought others might find it useful. There are no guarantees, no obligations from my part to provide any support, updates, features, fixes or even commit messages. This repo only has one branch. It may be updated anytime.
- termux-url-opener: By sharing to termux, either download videos in highest quality with yt-dlp or image/video galleries with gallery-dl.
- server: A home screen widget for an http server serving 'Internal Storage' at http://<device_ip>:8080/ or http://localhost:8080/.
- update-setup: Update changes from the repository and reinstalls this script.
The following folders will be deleted when you run this script. If you already use them, edit the script accordingly.
- "~/.shortcuts"
- "~/bin"
- Install termux and termux-widget (only if you want the server feature) from github.
- Open termux and grant storage permissions with
termux-setup-storage
. - Update all the inbuilt packages with
yes | pkg up
. - Install the script with
curl -L https://raw.githubusercontent.com/adithya-s-sekhar/termux-setup/main/termux-setup.sh | sh
Note: Depending on your Android skin you'd have to enable 'Display over other apps' permission for termux for the scripts to work.
- Open any website or app with playing video in Chrome or any other app.
- Touch the share button and share to Termux.
- Choose if you want yt-dlp or gallery-dl to handle the link for videos and image/video galleries respectively.
- It will automatically download in the Highest possible quality and saves to your 'Download' folder.
- It will also save all successfully downloaded urls to a 'Downloaded.txt' file and failed urls to 'Failed.txt'. This can help with debugging.
There are plans to bring AYC to termux for more features and better quality selectors.
- On your Android homescreen, Add a widget for termux actions and you'll see the 'server' script inside.
- Opening it will start termux in the background and your files will be accessible at http://<device_ip>:8080/ or http://localhost:8080/
- Enter
update-setup
and termux will download all changes from this repo and installs it.
the-termux-project (Discontinued)