all: reformat

This commit is contained in:
Alexander Capehart
2024-12-16 18:46:54 -05:00
parent 6e3b03d4c6
commit b6f6213ac4
18 changed files with 127 additions and 48 deletions
@@ -24,8 +24,6 @@ import org.oxycblt.musikr.tag.Name
fun Name.thumb() =
when (this) {
is Name.Known ->
tokens.firstOrNull()?.let {
if (it.value.isDigitsOnly()) "#" else it.value
}
tokens.firstOrNull()?.let { if (it.value.isDigitsOnly()) "#" else it.value }
is Name.Unknown -> "?"
}
@@ -364,10 +364,16 @@ constructor(
val storage =
if (withCache) {
Storage(Cache.full(cacheDatabase), StoredCovers.from(context, "covers"), StoredPlaylists.from(playlistDatabase))
Storage(
Cache.full(cacheDatabase),
StoredCovers.from(context, "covers"),
StoredPlaylists.from(playlistDatabase))
} else {
// TODO: Revisioned cache (as a stateful extension of musikr)
Storage(Cache.writeOnly(cacheDatabase), StoredCovers.from(context, "covers"), StoredPlaylists.from(playlistDatabase))
Storage(
Cache.writeOnly(cacheDatabase),
StoredCovers.from(context, "covers"),
StoredPlaylists.from(playlistDatabase))
}
val newLibrary =
musikr.run(