musikr: fix broken siloed covers

Caused by a missing param equality.
This commit is contained in:
Alexander Capehart 2024-12-27 15:38:49 -05:00
parent ebcedb49eb
commit 292ea9d8a1
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -19,6 +19,11 @@
package org.oxycblt.musikr.cover
class CoverParams private constructor(val resolution: Int, val quality: Int) {
override fun hashCode() = 31 * resolution + quality
override fun equals(other: Any?) =
other is CoverParams && other.resolution == resolution && other.quality == quality
companion object {
fun of(resolution: Int, quality: Int): CoverParams {
check(resolution > 0) { "Resolution must be positive" }