Small changes regarding StarredAt.

Making StarredAt more "precise", setting it to the time the change was detected.
getStarred.view now returns albums ordered by StarredAt.
loadRange method now take QueryOptions.Desc into account
This commit is contained in:
Deluan
2016-03-22 19:00:18 -04:00
parent 4e3c848815
commit db992a9941
8 changed files with 72 additions and 56 deletions
+1 -3
View File
@@ -106,9 +106,7 @@ func (b *browser) buildAlbumDir(al *domain.Album, tracks domain.MediaFiles) *Dir
Parent: al.ArtistId,
PlayCount: int32(al.PlayCount),
UserRating: al.Rating,
}
if al.Starred {
dir.Starred = al.UpdatedAt
Starred: al.StarredAt,
}
dir.Entries = make(Entries, len(tracks))