From 56fb8bfa50c654a81d2ad6fa9e0ea48844772ad2 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 11 Feb 2020 01:12:18 -0600 Subject: [PATCH] Fix bug where the queue would grow logarithmically with multiple arguments --- ptgdp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ptgdp b/ptgdp index 453da80..1ebbfbd 100755 --- a/ptgdp +++ b/ptgdp @@ -406,6 +406,8 @@ main() { # Files specified on the command line have priority for arg in "${_args[@]}"; do playlist "$arg" + unset _queue + declare -a _queue done elif ! [ -t 0 ]; then # If there are none of those, read from STDIN