Skip to content

Commit

Permalink
fix: remove year as a album determiner (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Nov 12, 2024
1 parent 26ca877 commit 5b5d6bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class AlbumRepository(private val symphony: Symphony) {
fun getIdFromSong(song: Song): String? {
if (song.album == null) return null
val artists = song.albumArtists.sorted().joinToString("-")
return "${song.album}-${artists}-${song.year ?: 0}"
return "${song.album}-${artists}"
}

fun getArtworkUri(albumId: String) = songIdsCache[albumId]?.firstOrNull()
Expand Down

0 comments on commit 5b5d6bf

Please sign in to comment.