musikr: miss covers when they cannot be decoded
This commit is contained in:
parent
102ed85c42
commit
ef7ef8da95
1 changed files with 6 additions and 2 deletions
|
@ -82,9 +82,13 @@ class MutableStoredCovers(
|
|||
is CoverResult.Miss -> return CoverResult.Miss()
|
||||
}
|
||||
val innerCover =
|
||||
try {
|
||||
coverStorage.write(memoryCover.id + transcoding.tag) {
|
||||
transcoding.transcodeInto(memoryCover.data(), it)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
return CoverResult.Miss()
|
||||
}
|
||||
return CoverResult.Hit(StoredCover(innerCover))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue