ptgdp: More error checking, remove erroneous continue
This commit is contained in:
parent
d099c224b3
commit
d4b7d07bfd
2
ptgdp
2
ptgdp
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user