ptgdp: More error checking, remove erroneous continue

This commit is contained in:
Salt 2019-09-13 22:31:27 -05:00
parent d099c224b3
commit d4b7d07bfd

2
ptgdp
View File

@ -128,6 +128,7 @@ cachesong() {
extension="${extension##*/}"
extension="${extension##*.}"
filename="$filename.$extension"
[ -f "$_tmpfile"* ] || return 1
mv "$_tmpfile"* "$filename"
_return="$filename"
return 0
@ -185,7 +186,6 @@ queuesong() {
"youtube-dl did not download a song for \"$1\"" \
normal dialog-error 3000
error "Could not download song \"$1\""
continue
;;
esac
_queue+=("$_return")