From cbc9118d913103f3537e4c36abf725e1c5330e0a Mon Sep 17 00:00:00 2001 From: silvernode Date: Sun, 24 Feb 2013 01:48:24 -0600 Subject: [PATCH] Added actual files --- dev.sh | 6 +++ dev.sh~ | 6 +++ zymp3 | 105 +++++++++++++++++++++++++++++++++++++++++++++++++ zymp3.desktop | 9 +++++ zymp3.desktop~ | 9 +++++ zymp3.png | Bin 0 -> 6140 bytes zymp3~ | 105 +++++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 240 insertions(+) create mode 100755 dev.sh create mode 100755 dev.sh~ create mode 100755 zymp3 create mode 100755 zymp3.desktop create mode 100755 zymp3.desktop~ create mode 100755 zymp3.png create mode 100755 zymp3~ diff --git a/dev.sh b/dev.sh new file mode 100755 index 0000000..3fcfa92 --- /dev/null +++ b/dev.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +t=$(zenity --entry --title="test" --text="name the file: "); zenity --file-selection --save --text="$t" --confirm-overwrite + +#$t | +zenity --file-selection --save --confirm-overwrite \ No newline at end of file diff --git a/dev.sh~ b/dev.sh~ new file mode 100755 index 0000000..6131b18 --- /dev/null +++ b/dev.sh~ @@ -0,0 +1,6 @@ +#!/bin/bash + +t=$(zenity --entry --title="test" --text="name the file: "); | p=$(zenity --file-selection --save --text="$t" --confirm-overwrite) + +#$t | +zenity --file-selection --save --confirm-overwrite \ No newline at end of file diff --git a/zymp3 b/zymp3 new file mode 100755 index 0000000..682be68 --- /dev/null +++ b/zymp3 @@ -0,0 +1,105 @@ +#!/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 diff --git a/zymp3.desktop b/zymp3.desktop new file mode 100755 index 0000000..8238e2b --- /dev/null +++ b/zymp3.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Zymp3 +Comment=Convert youtube videos to mp3 +Exec=zymp3 +Icon=zymp3.png +Terminal=0 +Type=Application +Encoding=UTF-8 +Categories=AudioVideo;Application; diff --git a/zymp3.desktop~ b/zymp3.desktop~ new file mode 100755 index 0000000..524b094 --- /dev/null +++ b/zymp3.desktop~ @@ -0,0 +1,9 @@ +[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.png b/zymp3.png new file mode 100755 index 0000000000000000000000000000000000000000..5f0db1df7c32f5711da50ff620afde8906ad02e0 GIT binary patch literal 6140 zcmVtP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX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