fix upload.py args for new version
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-04-24 18:03:03 +01:00
parent a2164b0173
commit 3aec82c40c
4 changed files with 6 additions and 7 deletions

View File

@@ -97,11 +97,10 @@ func playerJSON(p *mpris2.Player) string {
text += v + right
}
out += "\",\"text\":\"" + text + "\","
out += "\"tooltip\":\"" + fmt.Sprintf(
"%s\\nby %s\\n",
strings.ReplaceAll(p.Title, "&", "&"),
strings.ReplaceAll(p.Artist, "&", "&"),
)
out += "\"tooltip\":\"" + strings.ReplaceAll(p.Title, "&", "&") + "\\n"
if p.Artist != "" {
out += "by " + strings.ReplaceAll(p.Artist, "&", "&") + "\\n"
}
if p.Album != "" {
out += "from " + strings.ReplaceAll(p.Album, "&", "&") + "\\n"
}