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_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"

View file

@ -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"