aboutsummaryrefslogtreecommitdiff
path: root/spotify.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-05-21 13:46:31 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-05-21 13:46:59 +0200
commite5beba97616fcbc12d85934a5d9579b50c3ac746 (patch)
tree035c3787b5be3cc5163c7b7764fb477fc10f5a87 /spotify.go
parente19307db172df51099dc5a69467737ac876e58f0 (diff)
downloadWRMS-e5beba97616fcbc12d85934a5d9579b50c3ac746.tar.gz
WRMS-e5beba97616fcbc12d85934a5d9579b50c3ac746.zip
use llog instead of log
Diffstat (limited to 'spotify.go')
-rw-r--r--spotify.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/spotify.go b/spotify.go
index 951bbd9..c07bad9 100644
--- a/spotify.go
+++ b/spotify.go
@@ -10,7 +10,6 @@ package main
import (
"errors"
"fmt"
- "log"
"os"
"strings"
@@ -18,6 +17,8 @@ import (
"github.com/librespot-org/librespot-golang/librespot"
"github.com/librespot-org/librespot-golang/librespot/core"
"github.com/librespot-org/librespot-golang/librespot/utils"
+
+ "muhq.space/go/wrms/llog"
)
const (
@@ -74,7 +75,7 @@ func (spotify *SpotifyBackend) Play(song *Song, player *Player) {
// Synchronously load the track
audioFile, err := session.Player().LoadTrack(selectedFile, track.GetGid())
if err != nil {
- log.Fatal(fmt.Sprintf("Error while loading track: %s\n", err))
+ llog.Fatal("Error while loading track: %s\n", err)
}
player.PlayData(audioFile)