mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-14 05:58:17 +08:00
web info first version/fix some lyric not update/update translation.json/fix some media in history list cann't be played again
This commit is contained in:
@@ -5,6 +5,8 @@ import "AynaLivePlayer/player"
|
||||
func AddToHistory(media *player.Media) {
|
||||
l().Tracef("add media %s (%s) to history", media.Title, media.Artist)
|
||||
media = media.Copy()
|
||||
// reset url for future use
|
||||
media.Url = ""
|
||||
if History.Size() >= 1024 {
|
||||
History.Replace([]*player.Media{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user