added checks for ffmpeg and avconv

This commit is contained in:
Justin Moore
2015-02-12 22:34:18 -06:00
parent 736d82fd93
commit eb90304b17
2 changed files with 12 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
Install

View File

@@ -1,9 +1,18 @@
#!/bin/bash
SET_GUI_BIN="zenity"
SET_CONV_TOOL="ffmpeg"
if [ ! -f /usr/bin/yad ];then
SET_GUI_BIN="zenity"
else
SET_GUI_BIN="yad"
fi
if [ ! -f /usr/bin/ffmpeg ];then
SET_CONV_TOOL="avconv"
else
SET_CONV_TOOL="ffmpeg"
fi
#convert youtube videos to mp3 with zenity progess bar
backend()
{