From 6f81d1879598c4daac8d3ad96f815edae9cd6421 Mon Sep 17 00:00:00 2001 From: Marco D'Agostini Date: Thu, 16 Apr 2020 13:15:37 -0500 Subject: [PATCH] New: Install `youtube-dl` in android --- install youtube-dl in android.md | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 install youtube-dl in android.md diff --git a/install youtube-dl in android.md b/install youtube-dl in android.md new file mode 100644 index 0000000..b4fec40 --- /dev/null +++ b/install youtube-dl in android.md @@ -0,0 +1,48 @@ +[//]: # "Ctrl+K,V o Ctrl+Shift+V - Para ver vista previa en VSCode" + +Tutorial to fast install [youtube-dl](https://github.com/ytdl-org/youtube-dl/) in android and configure it to download any url shared to it. Based on https://www.reddit.com/r/Piracy/comments/baufql/youtubedl_the_easy_way_on_android/ + +# Quick Install + +## Install Termux +https://termux.com/ + +## Open Termux and run this: + +### Install youtube-dl + + termux-setup-storage && + mkdir -p ~/.config/youtube-dl && + echo "# Default Output Directory and Pattern + -o /data/data/com.termux/files/home/storage/downloads/%(extractor_key)s/%(uploader)s/%(title)s-%(id)s.%(ext)s" > ~/.config/youtube-dl/config && + mkdir ~/bin && + echo "#!/bin/bash + url=$1 + youtube-dl $url" > ~/bin/termux-url-opener && + chmod +x ~/bin/termux-url-opener && + apt update && apt upgrade && apt install python ffmpeg && pip install youtube-dl + +### Extras (install nano, and add special keys to keyboard) + mkdir ~/.termux + echo "extra-keys = [ \ + ['ESC', '/', '|', 'HOME', 'UP', 'END', 'PGUP', '-'], \ + ['TAB','CTRL', 'ALT', 'LEFT', 'DOWN', 'RIGHT', 'PGDN', '~'] \ + ]" > ~/.termux/termux.properties + apt install nano + +### All-In-One (youtube-dl + extras) + termux-setup-storage && + mkdir -p ~/.config/youtube-dl && + echo "# Default Output Directory and Pattern + -o /data/data/com.termux/files/home/storage/downloads/%(extractor_key)s/%(uploader)s/%(title)s-%(id)s.%(ext)s" > ~/.config/youtube-dl/config && + mkdir ~/bin && + echo "#!/bin/bash + url=$1 + youtube-dl $url" > ~/bin/termux-url-opener && + chmod +x ~/bin/termux-url-opener && + mkdir ~/.termux && + echo "extra-keys = [ \ + ['ESC', '/', '|', 'HOME', 'UP', 'END', 'PGUP', '-'], \ + ['TAB','CTRL', 'ALT', 'LEFT', 'DOWN', 'RIGHT', 'PGDN', '~'] \ + ]" > ~/.termux/termux.properties && + apt update && apt upgrade && apt install nano python ffmpeg && pip install youtube-dl