From e12b98d88f222334026efc8d1b9bf87484642941 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Wed, 31 May 2017 03:20:35 +0200 Subject: [PATCH] termux youtube-dl --- tmp_9838-youtube-dl-android370536926.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tmp_9838-youtube-dl-android370536926.sh diff --git a/tmp_9838-youtube-dl-android370536926.sh b/tmp_9838-youtube-dl-android370536926.sh new file mode 100644 index 0000000..3852ba8 --- /dev/null +++ b/tmp_9838-youtube-dl-android370536926.sh @@ -0,0 +1,18 @@ +read -p "Wie ist die URL? : " url +read -p "Soll ein Video heruntergeladen werden oder Audio? [audio/video/opus] : " format +read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad + +if [ "$format" == "opus" ] +then + format=251 +elif [ "$format" == "audio" ] +then + format=171 +else +#video + format=43 +fi + +mkdir -p $pfad +cd $pfad +/data/data/com.termux/files/usr/bin/python /storage/emulated/0/Music/youtube-dl -i -f $format $url