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

This commit is contained in:
Harvey Tindall 2021-04-24 18:03:03 +01:00
parent a2164b0173
commit 3aec82c40c
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
4 changed files with 6 additions and 7 deletions

View File

@ -14,7 +14,7 @@ steps:
- ./goreleaser.sh --snapshot --skip-publish --rm-dist - ./goreleaser.sh --snapshot --skip-publish --rm-dist
- wget https://builds.hrfee.pw/upload.py - wget https://builds.hrfee.pw/upload.py
- pip3 install requests - pip3 install requests
- bash -c 'python3 upload.py https://builds2.hrfee.pw hrfee waybar-mpris ./dist/*.tar.gz' - bash -c 'python3 upload.py https://builds2.hrfee.pw hrfee waybar-mpris --upload ./dist/*.tar.gz'
environment: environment:
BUILDRONE_KEY: BUILDRONE_KEY:
from_secret: BUILDRONE_KEY from_secret: BUILDRONE_KEY

View File

@ -20,7 +20,7 @@ Available on the AUR as [waybar-mpris-git](https://aur.archlinux.org/packages/wa
`go get git.hrfee.pw/hrfee/waybar-mpris` will compile from source and install. `go get git.hrfee.pw/hrfee/waybar-mpris` will compile from source and install.
You can also download a precompiled binaries from [here](https://builds2.hrfee.pw/view/hrfee/waybar-mpris). You can also download a precompiled binary from [here](https://builds2.hrfee.pw/view/hrfee/waybar-mpris).
## Issues ## Issues
Stick them on [mpris2client](https://github.com/hrfee/mpris2client) or the [og](https://github.com/hrfee/waybar-mpris) repository (both on github) if you can't make an account here. Stick them on [mpris2client](https://github.com/hrfee/mpris2client) or the [og](https://github.com/hrfee/waybar-mpris) repository (both on github) if you can't make an account here.

View File

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

Binary file not shown.