From a614930197c243c8f00c9bc68bb536b261756128 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 22 Jul 2022 12:08:27 +0200 Subject: [PATCH] spotify: try to fix stream cleaning --- bin/spotify-clean | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/spotify-clean b/bin/spotify-clean index 04a2aa8..8521bc5 100755 --- a/bin/spotify-clean +++ b/bin/spotify-clean @@ -1,10 +1,9 @@ #!/bin/sh -# Kill all spotify streams, except the most recent one. +# Kill all spotify streams, except the most recent (old?) one. -exit 0 pw-cli dump short client \ | grep -F 'ap="spotify"' \ - | head -n-1 \ + | tail -n+2 \ | cut -d: -f1 \ | xargs -rn1 pw-cli destroy