add custom activity name template with placeholder support

This commit is contained in:
2026-03-09 17:10:28 -06:00
parent 4700e15a3c
commit 39293031d9
4 changed files with 97 additions and 5 deletions

View File

@@ -55,10 +55,17 @@
"Default",
"Track",
"Album",
"Artist"
"Artist",
"Custom"
],
"default": "Default"
},
"activitynametemplate": {
"type": "string",
"title": "Custom Activity Name Template",
"description": "Template for the activity name. Available placeholders: {track}, {artist}, {album}",
"default": "{artist} - {track}"
},
"uguuenabled": {
"type": "boolean",
"title": "Upload artwork to uguu.se (enable if Navidrome is not publicly accessible)",
@@ -111,6 +118,19 @@
"format": "radio"
}
},
{
"type": "Control",
"scope": "#/properties/activitynametemplate",
"rule": {
"effect": "SHOW",
"condition": {
"scope": "#/properties/activityname",
"schema": {
"const": "Custom"
}
}
}
},
{
"type": "Control",
"scope": "#/properties/uguuenabled"