From 28bd87eb6db8fb9d5800c3ca25cefcc1ebd78aef Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Wed, 31 May 2017 13:12:29 +0200 Subject: [PATCH] Add files via upload --- tmp_6269-youtube-dl-android331688379.sh | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tmp_6269-youtube-dl-android331688379.sh diff --git a/tmp_6269-youtube-dl-android331688379.sh b/tmp_6269-youtube-dl-android331688379.sh new file mode 100644 index 0000000..46b18f9 --- /dev/null +++ b/tmp_6269-youtube-dl-android331688379.sh @@ -0,0 +1,30 @@ +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=140 +else +#video + format=43 +fi + +mkdir -p $pfad +cd $pfad +/data/data/com.termux/files/usr/bin/python /storage/emulated/0/youtube-dl -i -f $format $url + +# ROOT_SHELL="$PREFIX/bin/bash" + +# ROOT_HOME=$HOME/.suroot + +# mkdir -p .suroot + +# su --preserve-environment -c "LD_LIBRARY_PATH=$PREFIX/lib HOME=$ROOT_HOME $ROOT_SHELL" + +# cd /storage/emulated/0/ + +# /system/xbin/bash ./youtube-dl-android.sh