revertion to fix #763

This commit is contained in:
Luke Smith 2020-07-17 13:18:52 -04:00
parent d3b1e5371a
commit fc3eefc5ee
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -6,7 +6,7 @@ base="$(basename "$1")"
notify-send "⏳ Queuing $base..." notify-send "⏳ Queuing $base..."
cmd="$2" cmd="$2"
[ -z "$cmd" ] && cmd="youtube-dl --add-metadata" [ -z "$cmd" ] && cmd="youtube-dl --add-metadata"
idnum="$(tsp "$cmd" "$1")" idnum="$(tsp $cmd "$1")"
realname="$(echo "$base" | sed "s/?\(source\|dest\).*//;s/%20/ /g")" realname="$(echo "$base" | sed "s/?\(source\|dest\).*//;s/%20/ /g")"
tsp -D "$idnum" mv "$base" "$realname" tsp -D "$idnum" mv "$base" "$realname"
tsp -D "$idnum" notify-send "👍 $realname done." tsp -D "$idnum" notify-send "👍 $realname done."