mirror of
https://github.com/riwiwa/muzi.git
synced 2026-02-28 11:56:57 -08:00
only display now playing on page 1
This commit is contained in:
@@ -82,9 +82,11 @@ func profilePageHandler() http.HandlerFunc {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if np, ok := scrobble.GetNowPlaying(userId); ok {
|
if pageInt == 1 {
|
||||||
profileData.NowPlayingArtist = np.Artist
|
if np, ok := scrobble.GetNowPlaying(userId); ok {
|
||||||
profileData.NowPlayingTitle = np.SongName
|
profileData.NowPlayingArtist = np.Artist
|
||||||
|
profileData.NowPlayingTitle = np.SongName
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rows, err := db.Pool.Query(
|
rows, err := db.Pool.Query(
|
||||||
|
|||||||
Reference in New Issue
Block a user