changed browser to firefox in youtube2mp3.sh
This commit is contained in:
parent
746c527903
commit
f7eec5eb3e
|
@ -1,5 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# # # # # # # # # # # # # # # # # # # # #
|
||||
# # To rip a Youtube file just run
|
||||
# YouTube to MP3 Contvertion Tool # this script and with the youtube
|
||||
# # link as option. If you don't use
|
||||
# Author: david@socialnerds.org # the link as option the script will
|
||||
# Version: v0.1 # ask you for the link during run.
|
||||
# # the mp3 file will be placed in the
|
||||
# # working directory.
|
||||
# # # # # # # # # # # # # # # # # # # # #
|
||||
|
||||
# checking dependencies
|
||||
if [[ $(aptitude search ffmpeg | grep multimedia | awk '{print $1}') = "i" && $(aptitude search lame | grep frontend | awk '{print $1}') = "i" && $(aptitude search curl | grep "Get a file" | awk '{print $1}') = "i" ]]; then
|
||||
echo "info: everything found"
|
||||
|
@ -27,8 +37,9 @@ file=$(ls -l /tmp | grep Flash | awk '{print $8}')
|
|||
secondfile=$(echo $file | awk '{print $2}')
|
||||
|
||||
if [ -z "$file" ]; then
|
||||
echo "info: there is no open youtube window, starting chromium"
|
||||
chromium-browser $link
|
||||
echo "info: there is no open youtube window, trying to start browser"
|
||||
#chromium-browser $link
|
||||
firefox $link &
|
||||
sleep 6
|
||||
file=$(ls -l /tmp | grep Flash | awk '{print $8}')
|
||||
secondfile=$(echo $file | awk '{print $2}')
|
||||
|
@ -77,6 +88,7 @@ wd=$(pwd)
|
|||
echo
|
||||
echo "you will find the just created file in $wd"
|
||||
echo "filename = $title.mp3"
|
||||
echo
|
||||
|
||||
exit 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue