Skip to content

lostb053/ytdl-termux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple script that makes downloading videos from YouTube easier using yt-dlp and spotify_dl

Requirements

  • Android device with Android version 7.0 or above
  • Termux
  • Python
  • FFMPEG
  • yt-dlp (pip package)
  • spotify_dl (pip package)

Installation

  • Install Termux app from F-Droid (Do not use playstore version)
  • Install Termux:API
  • For a better appeal/look on the app, install Litmux, simply follow the instructions
  • If you opt for Litmux, after running the installation cmd, exit the app by entering exit command, twice if it doesn't closes app after single try. You may later be prompt to setup Litmux, just answer the questions asked
  • Run the following command, give permits and wait till it's completed
bash -c "$(curl -fsSL https://bit.ly/install-ytdl-termux)"

Note: You don't need to go out of your way to install python, ffmpeg, etc on termux. The script installs everything

Usage

Can just share to termux while using youtube, or use following commands

USAGE: ytdl [OPTIONS]

ytdl        invokes the function, no required options
-u          option to update this program
-h          to print this help message
-q          quiet mode, will show no progress, download quietly
-a link     to download audio
-b link     download best video (with in-built audio) available
-s link     download audio from youtube using metadata from any spotify link

This command separately downloads best video and best audio available and merges them use -b option to download video with in-built audio and avoid merging -s option supports spotify track, playlist, album and artist urls Options -a, -b, -s require link

Selection of quality

  • Best - 8k, 4k
  • High - 2k, 1080p
  • Medium - 720p, 480p
  • Low - 360p, 240p, 144p
  • When Higher formats are unavailable, it automatically switches to lower one

ytdl plugin in action