all: reformat
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user