Add files via upload
This commit is contained in:
8
config/rmpc/increment_play_count
Executable file
8
config/rmpc/increment_play_count
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user