This commit is contained in:
Root 2017-06-23 20:01:57 +02:00
parent a07c0a4563
commit 99afd58696
2 changed files with 9 additions and 8 deletions

2
tsu.sh
View file

@ -1,5 +1,5 @@
ROOT_HOME=$HOME/.suroot ROOT_HOME=$HOME/.suroot
ROOT_SHELL=$PREFIX/bin/bash 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" su --preserve-environment -c "LD_LIBRARY_PATH=$PREFIX/lib HOME=$ROOT_HOME $ROOT_SHELL"

View file

@ -1,21 +1,22 @@
read -p "Wie ist die URL? : " url 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 "Wo sollen die Dateien heruntergeladen werden? : " pfad
read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/audio/video/BEST] : " format
if [ "$format" == "opus" ] if [ "$format" == "opus" ]
then then
format=251 format="-f 251"
elif [ "$format" == "audio" ] elif [ "$format" == "audio" ]
then then
format=140 format="-f 140"
else elif [ "$format" == "video" ]
#video then
format=43 format="-f 43"
fi fi
mkdir -p $pfad mkdir -p $pfad
cd $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" # ROOT_SHELL="$PREFIX/bin/bash"