termux youtube-dl
This commit is contained in:
parent
65ad0accd7
commit
e12b98d88f
1 changed files with 18 additions and 0 deletions
18
tmp_9838-youtube-dl-android370536926.sh
Normal file
18
tmp_9838-youtube-dl-android370536926.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
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=171
|
||||
else
|
||||
#video
|
||||
format=43
|
||||
fi
|
||||
|
||||
mkdir -p $pfad
|
||||
cd $pfad
|
||||
/data/data/com.termux/files/usr/bin/python /storage/emulated/0/Music/youtube-dl -i -f $format $url
|
Loading…
Reference in a new issue