ptgdp: More error checking, remove erroneous continue
This commit is contained in:
2
ptgdp
2
ptgdp
@@ -128,6 +128,7 @@ cachesong() {
|
|||||||
extension="${extension##*/}"
|
extension="${extension##*/}"
|
||||||
extension="${extension##*.}"
|
extension="${extension##*.}"
|
||||||
filename="$filename.$extension"
|
filename="$filename.$extension"
|
||||||
|
[ -f "$_tmpfile"* ] || return 1
|
||||||
mv "$_tmpfile"* "$filename"
|
mv "$_tmpfile"* "$filename"
|
||||||
_return="$filename"
|
_return="$filename"
|
||||||
return 0
|
return 0
|
||||||
@@ -185,7 +186,6 @@ queuesong() {
|
|||||||
"youtube-dl did not download a song for \"$1\"" \
|
"youtube-dl did not download a song for \"$1\"" \
|
||||||
normal dialog-error 3000
|
normal dialog-error 3000
|
||||||
error "Could not download song \"$1\""
|
error "Could not download song \"$1\""
|
||||||
continue
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
_queue+=("$_return")
|
_queue+=("$_return")
|
||||||
|
Reference in New Issue
Block a user