Skip to content

flop87x2/YTdlpTermux

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YTdlpTermux

The purpose of this script is to make the process of downloading videos or audio on Android as simple as possible.

The goal is achieved by using a combination of the Android share menu, Termux, and yt-dlp.

Termux combines powerful terminal emulation with an extensive Linux package collection.

Yt-dlp is a youtube-dl fork based on the now inactive youtube-dl.

Yt-dlp downloads videos or audio from youtube.com or other video platforms.

Once the prerequisite of the Termux app has been installed all that is required is to copy-paste one piece of scripted code in to Termux and hit enter.

The Termux APK can be obtained from F-Droid at:

https://f-droid.org/en/packages/com.termux/

You don't need to install F-Droid just download the latest Termux APK and install it. You may have to allow your browser the Install Unknown Apps permision to install Termux.

The Termux API APK should also be installed from F-Droid. This allows an Android notification to be displayed on completion of the download.

The Termux API APK can be obtained from F-Droid at:

https://f-droid.org/en/packages/com.termux.api/

The Google Play Store version of Termux is now depreciated and is no longer supported.

Once this script is executed via Termux it will install and upgrade the prerequisite packages and create a config file for yt-dlp which allows the downloading of selected audio and video formats of the shared video url.

Further details about yt-dlp can be viewed at:

https://github.com/yt-dlp/yt-dlp

Details on the depreciated youtube-dl can be viewed at:

https://github.com/ytdl-org/youtube-dl

The code required to run this script is:

pkg install curl -y && curl https://raw.githubusercontent.com/6060842/YTdlpTermux/main/YT-DLP-01 -o install.sh && dos2unix install.sh && chmod u+x install.sh && ./install.sh

This should be copy-pasted in to Termux and the enter button pressed to start the installation. On screen instructions will be displayed during the installation.

Upon completion of the script it is now possible to share a video via the Android share menu to Termux which will present the user with 5 media download options for MP3\M4A Audio, MP4 Video or a combination of both.

The downloaded files are stored in Downloads/Media in the Android File System.

The creation of this script could not have been completed with out the help of the users and moderators at:

https://www.reddit.com/r/youtubedl and https://www.reddit.com/r/termux

There are no feature updates planned for this script but bug fixes will be attempted.

The installation can be updated by copy-pasting the code in to Termux again and executing said code. When asked for any user conformation during the update, type Y and press ENTER.

If you like this scipt it can be forked and modifications made.

About

A script for downloading videos on Android via Termux using yt-dlp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%