Compare commits

...

2 commits
v2.3.2 ... main

Author SHA1 Message Date
Simon Vieille 1b5b96a10f fix ci syntax
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-09-29 16:14:37 +02:00
Simon Vieille 64629c2d23
Trim metadata in spotify block
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-03-07 13:26:02 +01:00
2 changed files with 16 additions and 6 deletions

View file

@ -1,4 +1,4 @@
pipeline:
steps:
vendor:
image: golang:1.18
commands:

View file

@ -2,10 +2,16 @@ package main
import (
"fmt"
r "gitnet.fr/deblan/i3-blocks-go/rendering"
"os"
"os/exec"
sos"
"os/"
"strings"
r "gitnet.fr/deblan/i3-blocks-gsrrindg
r "gitnet.fr/deblan/i3-blocks-gsrrindg
r "gitnet.fr/deblan/i3-blocks-gsrrindg
r "gitnet.fr/deblan/i3-blocks-gsrrindg
r "gitnet.fr/deblan/i3-blocks-gsrrindg
r "gitnet.fr/deblan/i3-blocks-go/rendering"
)
func GetMetadata(metadata string) string {
@ -20,11 +26,15 @@ func GetMetadata(metadata string) string {
}
func GetTitle() string {
return GetMetadata("xesam:title")
data := GetMetadata("xesam:title")
return strings.Trim(string(data), "\n")
}
func GetArtist() string {
return GetMetadata("xesam:artist")
data := GetMetadata("xesam:artist")
return strings.Trim(string(data), "\n")
}
func GetStatus() string {