diff --git a/zymp3.desktop~ b/zymp3.desktop~ deleted file mode 100755 index 524b094..0000000 --- a/zymp3.desktop~ +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Name=Zymp3 -Comment=Convert youtube videos to mp3 -Exec=zymp3 -Icon=/usr/share/icons/convert1.png -Terminal=0 -Type=Application -Encoding=UTF-8 -Categories=AudioVideo;Application; diff --git a/zymp3~ b/zymp3~ deleted file mode 100755 index 682be68..0000000 --- a/zymp3~ +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/bash - -MUSICDIR="/home/$USER/Music" - - - -backend() -{ -t=~/.youtube-dl-$RANDOM-$RANDOM.flv -youtube-dl --output=$t --format=18 "$1" | zenity --progress --pulsate --title="Downloading..." --text="Downloading video, please wait.." --auto-close -ffmpeg -i $t -acodec libmp3lame -ac 2 -ab 128k -vn -y "$2" | zenity --progress --pulsate --title="Converting..." --text="Converting video to mp3.." --auto-close -rm $t - - - -} - - - -gui() -{ -x=$(zenity --title="Zymp3 0.1-1" --entry --text "Paste youtube link here: ") - - - - - -if [[ $? == 0 ]] ; then -gui2 -else - exit 0; -fi - - - - - -} - -gui2() -{ -y=$(zenity --title="Filename" --entry --text "Name your file: ") - -if [[ $? == 0 ]] ; then -dconvert -else - exit 0; -fi - -} - - - - - -open() -{ - -zenity --question --title="Hey!" --text="I moved $y.mp3 to $MUSICDIR, do you want to play it now?" - - - - -if [[ $? == 0 ]] ; then -vlc "/home/$USER/Music/$y.mp3" -else - exit 0; -fi - - -} - - - -move() -{ - -mkdir /home/$USER/Music -mv "$y.mp3" /home/$USER/Music - -} - -dconvert() -{ -backend "$x" "$y.mp3" - - -move - -if [ -f "/home/$USER/Music/$y.mp3" ] -then notify-send "$y.mp3 was saved in $MUSICDIR}" -else -zenity --error --text "Oh no! Something fucked up! fuck.." -fi - - - -open -} - -gui - - - - \ No newline at end of file