Skip to content

leviznull/android-youtube-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

YouTube Download

One-click downloading of YouTube videos straight from the YouTube app.

Downloading Termux:

Download the Termux terminal emulator from the Play Store.

Setting up Termux:

1. Run update and upgrade

pkg update && pkg upgrade

2. Give termux access to your phone's filesystem via ~/storage/shared

termux-setup-storage

3. Install python and nano

pkg install python nano

4. Install youtube-dl

pip install youtube-dl

5. Create a folder to store your downloaded videos

mkdir /data/data/com.termux/files/home/storage/shared/Youtube

6. Create a folder to store config file

mkdir -p ~/.config/youtube-dl

7. Create youtube-dl config

nano ~/.config/youtube-dl/config

8. Add the following to the config file

The Volume-Down key emulates Ctrl in termux

Save it with "Volume-Down" + O, then close nano with "Volume-Down" + X

--no-mtime
-o /data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s
-f "best[height<=1080]"

The height value limits video quality, change to 240-360-480-720-1080, etc. to suit your needs or bandwidth restrictions.

9. Create "termux-url-opener" in ~/bin to enable one-click download via the "Share" menu in the youtube app

mkdir ~/bin && cd "$_"

10. Open the file with

nano termux-url-opener

11. Add the following to the file

Save it with "Volume-Down" + O, then close nano with "Volume-Down" + X

youtube-dl $1

All Done:

To download a YouTube video from within the YouTube app, click the "Share" link under the video, and choose "Termux".

The download will start and will be available in the "YouTube" folder in the root of your internal storage.

If Termux keeps running you can close it by simply typing exit and pressing enter afterwards.

About

YouTube video download straight from the YouTube app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages