From 870cf0e4fd400ee281bb60bd502846e82aa0bcc6 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Wed, 1 Feb 2023 13:20:21 -0500 Subject: [PATCH] Added player name into music post. --- ratatoskr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratatoskr.sh b/ratatoskr.sh index 47fd409..4c4222a 100755 --- a/ratatoskr.sh +++ b/ratatoskr.sh @@ -102,7 +102,7 @@ scrobble_music() { # Post music with -M flag requires playerctl. post_music() { - local text="$(playerctl metadata -f 'Now playing "{{title}}" by "{{artist}}" from "{{album}}"')" + local text="$(playerctl metadata -f 'Now playing "{{title}}" by "{{artist}}" from "{{album}}" via "{{playerName}}"')" local link="$(playerctl metadata -f '{{xesam:url}}')" if [[ "${link}" =~ ^file:// ]]; then link="https://www.youtube.com/results?search_query=$(playerctl metadata -f '{{artist}} {{title}}' | urlencode -b)"