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
|
package org.oxycblt.musikr.graph
|
||||||
|
|
||||||
import android.util.Log
|
|
||||||
import org.oxycblt.musikr.Music
|
import org.oxycblt.musikr.Music
|
||||||
import org.oxycblt.musikr.playlist.SongPointer
|
import org.oxycblt.musikr.playlist.SongPointer
|
||||||
import org.oxycblt.musikr.playlist.interpret.PrePlaylist
|
import org.oxycblt.musikr.playlist.interpret.PrePlaylist
|
||||||
|
@ -149,12 +148,13 @@ private class MusicGraphBuilderImpl : MusicGraph.Builder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val graph = MusicGraph(
|
val graph =
|
||||||
songVertices.values.toList(),
|
MusicGraph(
|
||||||
albumVertices.values.toList(),
|
songVertices.values.toList(),
|
||||||
artistVertices.values.toList(),
|
albumVertices.values.toList(),
|
||||||
genreVertices.values.toList(),
|
artistVertices.values.toList(),
|
||||||
playlistVertices)
|
genreVertices.values.toList(),
|
||||||
|
playlistVertices)
|
||||||
|
|
||||||
return graph
|
return graph
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
package org.oxycblt.musikr.pipeline
|
package org.oxycblt.musikr.pipeline
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.util.Log
|
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||||
import kotlinx.coroutines.channels.Channel
|
import kotlinx.coroutines.channels.Channel
|
||||||
|
@ -120,9 +119,7 @@ private class ExtractStepImpl(
|
||||||
metadataExtractor
|
metadataExtractor
|
||||||
.extract(fileWith.with)
|
.extract(fileWith.with)
|
||||||
?.let { FileWith(fileWith.file, it) }
|
?.let { FileWith(fileWith.file, it) }
|
||||||
.also {
|
.also { withContext(Dispatchers.IO) { fileWith.with.close() } }
|
||||||
withContext(Dispatchers.IO) { fileWith.with.close() }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.flowOn(Dispatchers.IO)
|
.flowOn(Dispatchers.IO)
|
||||||
|
|
Loading…
Reference in a new issue