Added check if mostListened set.
This commit is contained in:
parent
7cc228968d
commit
ddf5f3d0f7
@ -51,6 +51,9 @@ func CheckAndUpdateMostListenedSong(cur, prev *Song) {
|
||||
// MostListened returns song that currently is the song with most simultaneous
|
||||
// listeners.
|
||||
func MostListened() *MostListenedSong {
|
||||
if mostListened.Date.Year() == 1 {
|
||||
return nil
|
||||
}
|
||||
return &mostListened
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user