music: prepare new cover system

This commit is contained in:
Alexander Capehart
2024-12-10 07:02:37 -07:00
parent 8adda19d1a
commit 45ead8253a
8 changed files with 79 additions and 149 deletions
@@ -354,20 +354,10 @@ constructor(private val musikr: Musikr, private val fullTagCache: FullTagCache,
}
val locations = musicSettings.musicLocations
val fakeCoverEditorTemporary = object : StoredCovers.Editor {
override suspend fun write(data: ByteArray): Cover.Single? {
TODO("Not yet implemented")
}
override suspend fun apply() {
TODO("Not yet implemented")
}
}
val storage = if (withCache) {
Storage(fullTagCache, fakeCoverEditorTemporary)
Storage(fullTagCache, StoredCovers.buildOn())
} else {
Storage(writeOnlyTagCache, fakeCoverEditorTemporary)
Storage(writeOnlyTagCache, StoredCovers.new())
}
val newLibrary =
musikr.run(locations, storage, Interpretation(nameFactory, separators), ::emitIndexingProgress)