From b7ef29a8886a57aadb787807a7c6cf74c1f0ed3a Mon Sep 17 00:00:00 2001 From: anand Date: Wed, 17 Dec 2025 15:57:55 +0530 Subject: Nixos --- rmpc/increment_play_count | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 rmpc/increment_play_count (limited to 'rmpc/increment_play_count') diff --git a/rmpc/increment_play_count b/rmpc/increment_play_count new file mode 100755 index 0000000..6fa8570 --- /dev/null +++ b/rmpc/increment_play_count @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +sticker=$(rmpc sticker get "$FILE" "playCount" | jq -r '.value') +if [ -z "$sticker" ]; then + rmpc sticker set "$FILE" "playCount" "1" +else + rmpc sticker set "$FILE" "playCount" "$((sticker + 1))" +fi -- cgit v1.2.3