Add files via upload
This commit is contained in:
parent
e12b98d88f
commit
28bd87eb6d
1 changed files with 30 additions and 0 deletions
30
tmp_6269-youtube-dl-android331688379.sh
Normal file
30
tmp_6269-youtube-dl-android331688379.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue