Revert "Bump golang.org/x/exp, change slices.SortFunc function call"
This reverts commit 474f32f1
This commit is contained in:
+1
-2
@@ -1,7 +1,6 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"cmp"
|
||||
"mime"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
@@ -172,7 +171,7 @@ func (mfs MediaFiles) ToAlbum() Album {
|
||||
a.Comment, _ = allOrNothing(comments)
|
||||
a.Comment, _ = allOrNothing(comments)
|
||||
a.Genre = slice.MostFrequent(a.Genres).Name
|
||||
slices.SortFunc(a.Genres, func(a, b Genre) int { return cmp.Compare(a.ID, b.ID) })
|
||||
slices.SortFunc(a.Genres, func(a, b Genre) bool { return a.ID < b.ID })
|
||||
a.Genres = slices.Compact(a.Genres)
|
||||
a.FullText = " " + utils.SanitizeStrings(fullText...)
|
||||
a = fixAlbumArtist(a, albumArtistIds)
|
||||
|
||||
Reference in New Issue
Block a user