removed a few other files

This commit is contained in:
silvernode 2013-02-24 02:03:01 -06:00
parent 4f343f04a3
commit 956fa2d834
2 changed files with 0 additions and 114 deletions

View File

@ -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;

105
zymp3~
View File

@ -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