queue fix
This commit is contained in:
parent
a3e25517da
commit
2ef3182b2f
1 changed files with 4 additions and 2 deletions
|
@ -9,8 +9,10 @@ while read -r line; do
|
||||||
url="$(echo "$line" | awk '{print $1}')"
|
url="$(echo "$line" | awk '{print $1}')"
|
||||||
base="$(basename "$url")"
|
base="$(basename "$url")"
|
||||||
notify-send -i "$PIX/dl.png" "Queuing $base..."
|
notify-send -i "$PIX/dl.png" "Queuing $base..."
|
||||||
idnum="$(tsp curl -LO "$url" && mv "$base" "$(echo "$base" | sed "s/?\(source\|dest\).*//")")"
|
idnum="$(tsp curl -LO "$url")"
|
||||||
tsp -D "$idnum" notify-send -i "$PIX/check.png" "$base done."
|
realname="$(echo "$base" | sed "s/?\(source\|dest\).*//;s/%20/ /g")"
|
||||||
|
tsp -D "$idnum" mv "$base" "$realname"
|
||||||
|
tsp -D "$idnum" notify-send -i "$PIX/check.png" "$realname done."
|
||||||
done < "$queuefile"
|
done < "$queuefile"
|
||||||
|
|
||||||
echo > "$queuefile"
|
echo > "$queuefile"
|
||||||
|
|
Loading…
Reference in a new issue