#!/bin/zsh
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
export HOME=
while true;do
cd
echo "Youtube Music and Ringtoen Downloader"
echo "Select an option by typing its letter and pressing enter: "
echo c: Open console
echo "d: download a song"
echo "i: run repare/reinstallation script"
echo "n: download a song without playing it"
echo "r: download a song or convert a previously downloaded song into a ringtone"
echo "s: stream a song, may prematurely end due to pipeline limitations"
echo x: extract a custom link
read answer
case "$answer" in
c)
bash
;;
d)
ytplay
;;
i)
/bin/ytinstall.sh
;;
n)
ytplay.noplay
;;
s)
ytplay.stream
;;
r)
ytring
;;
x)
echo enter link address
read link
echo enter file name
read file
cd /songs
yt-dlp --audio-format vorbis -x $link --output $file
;;
esac
done