mirror of
https://github.com/riwiwa/muzi.git
synced 2026-03-04 00:51:59 -08:00
fix now-playing status on listenbrainz endpoint and add config support
This commit is contained in:
@@ -200,6 +200,10 @@ func GetNowPlaying(userId int) (NowPlaying, bool) {
|
||||
if ok && np.SongName != "" {
|
||||
return np, true
|
||||
}
|
||||
np, ok = platforms["listenbrainz"]
|
||||
if ok && np.SongName != "" {
|
||||
return np, true
|
||||
}
|
||||
return NowPlaying{}, false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user