musikr: reformat
This commit is contained in:
parent
3d690eb637
commit
e0059e9dc0
2 changed files with 8 additions and 11 deletions
|
@ -18,7 +18,6 @@
|
|||
|
||||
package org.oxycblt.musikr.graph
|
||||
|
||||
import android.util.Log
|
||||
import org.oxycblt.musikr.Music
|
||||
import org.oxycblt.musikr.playlist.SongPointer
|
||||
import org.oxycblt.musikr.playlist.interpret.PrePlaylist
|
||||
|
@ -149,7 +148,8 @@ private class MusicGraphBuilderImpl : MusicGraph.Builder {
|
|||
}
|
||||
}
|
||||
|
||||
val graph = MusicGraph(
|
||||
val graph =
|
||||
MusicGraph(
|
||||
songVertices.values.toList(),
|
||||
albumVertices.values.toList(),
|
||||
artistVertices.values.toList(),
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
package org.oxycblt.musikr.pipeline
|
||||
|
||||
import android.content.Context
|
||||
import android.util.Log
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.channels.Channel
|
||||
|
@ -120,9 +119,7 @@ private class ExtractStepImpl(
|
|||
metadataExtractor
|
||||
.extract(fileWith.with)
|
||||
?.let { FileWith(fileWith.file, it) }
|
||||
.also {
|
||||
withContext(Dispatchers.IO) { fileWith.with.close() }
|
||||
}
|
||||
.also { withContext(Dispatchers.IO) { fileWith.with.close() } }
|
||||
}
|
||||
}
|
||||
.flowOn(Dispatchers.IO)
|
||||
|
|
Loading…
Reference in a new issue