From 99afd586963d3c84992fd54255345b2c707e08b6 Mon Sep 17 00:00:00 2001 From: Root Date: Fri, 23 Jun 2017 20:01:57 +0200 Subject: [PATCH] fix --- tsu.sh | 2 +- youtube-dl-android.sh | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/tsu.sh b/tsu.sh index b3897ec..902d9e2 100755 --- a/tsu.sh +++ b/tsu.sh @@ -1,5 +1,5 @@ ROOT_HOME=$HOME/.suroot ROOT_SHELL=$PREFIX/bin/bash -mkdir $HOME/.suroot +mkdir -p $HOME/.suroot su --preserve-environment -c "LD_LIBRARY_PATH=$PREFIX/lib HOME=$ROOT_HOME $ROOT_SHELL" diff --git a/youtube-dl-android.sh b/youtube-dl-android.sh index 46b18f9..54104ab 100755 --- a/youtube-dl-android.sh +++ b/youtube-dl-android.sh @@ -1,21 +1,22 @@ 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 +read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST] : " format if [ "$format" == "opus" ] then - format=251 + format="-f 251" elif [ "$format" == "audio" ] then - format=140 -else -#video - format=43 + format="-f 140" +elif [ "$format" == "video" ] +then + format="-f 43" fi mkdir -p $pfad + cd $pfad -/data/data/com.termux/files/usr/bin/python /storage/emulated/0/youtube-dl -i -f $format $url +/data/data/com.termux/files/usr/bin/python /storage/emulated/0/youtube-dl --ffmpeg-location /data/data/com.termux/files/usr/bin/ffmpeg -i $format $url # ROOT_SHELL="$PREFIX/bin/bash"