musikr: fix uid compat issues

This commit is contained in:
Alexander Capehart 2025-02-24 07:53:20 -07:00
parent 3834e92192
commit 582b0c6eef
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 8 additions and 4 deletions

View file

@ -140,8 +140,10 @@ private class MusicGraphBuilderImpl : MusicGraph.Builder {
vertex.genreVertices = vertex.genreVertices.distinct().toMutableList() vertex.genreVertices = vertex.genreVertices.distinct().toMutableList()
playlistVertices.forEach { playlistVertices.forEach {
val pointer = SongPointer.UID(entry.key) val v363Pointer = SongPointer.UID(entry.key)
it.pointerMap[pointer]?.forEach { index -> it.songVertices[index] = vertex } it.pointerMap[v363Pointer]?.forEach { index -> it.songVertices[index] = vertex }
val v400Pointer = SongPointer.UID(entry.value.preSong.v400Uid)
it.pointerMap[v400Pointer]?.forEach { index -> it.songVertices[index] = vertex }
} }
} }

View file

@ -92,8 +92,10 @@ private class TagInterpreterImpl(private val interpretation: Interpretation) : T
update(song.tags.track) update(song.tags.track)
update(song.tags.disc) update(song.tags.disc)
update(song.tags.artistNames.ifEmpty { listOf(null) }) val artistNames = interpretation.separators.split(song.tags.artistNames)
update(song.tags.albumArtistNames.ifEmpty { listOf(null) }) update(artistNames.ifEmpty { listOf(null) })
val albumArtistNames = interpretation.separators.split(song.tags.albumArtistNames)
update(albumArtistNames.ifEmpty { artistNames }.ifEmpty { listOf(null) })
} }
return PreSong( return PreSong(