Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "SELECT OPTION"
- echo "======================"
- echo "0. Detect Format..."
- echo "1. Audio Only (m4a)"
- echo "2. 360p"
- echo "3. 480p"
- echo "4. 720p"
- echo "5. 1080p"
- echo "6. 1440p (2K)"
- echo "7. 2160p (4K)"
- echo "8. 4320p (8K)"
- command='-no-mtime -o /data/data/com.termux/files/home/storage/shared/Movies/%(title)s.%(ext)s -f'
- read option
- if [ "$option" -eq "0" ]
- then
- echo "$command -F" > ~/.config/youtube-dl/config
- command='-no-mtime -o /data/data/com.termux/files/home/storage/shared/Movies/%(title)s.%(ext)s -f'
- if [ "$option" -eq "1" ]
- then
- echo "$command 140" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "2" ]
- then
- echo "$command \"best[height<=360]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "3" ]
- then
- echo "$command \"best[height<=480]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "4" ]
- then
- echo "$command \"best[height<=720]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "5" ]
- then
- echo "$command \"best[height<=1080]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "6" ]
- then
- echo "$command \"best[height<=1440]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "7" ]
- then
- echo "$command \"best[height<=2160]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "8" ]
- then
- echo "$command \"best[height<=2160]\"" > ~/.config/youtube-dl/config
- youtube-dl $1
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement