musikr: fix stuck evaluate step
This commit is contained in:
parent
6850a3443f
commit
8bbb7497a6
1 changed files with 3 additions and 2 deletions
|
@ -69,16 +69,17 @@ private class EvaluateStepImpl(
|
|||
val preSongs =
|
||||
rawSongs
|
||||
.map { tagInterpreter.interpret(it, interpretation) }
|
||||
.flowOn(Dispatchers.Main)
|
||||
.flowOn(Dispatchers.Default)
|
||||
.buffer(Channel.UNLIMITED)
|
||||
val prePlaylists =
|
||||
filterFlow.left
|
||||
.map { playlistInterpreter.interpret(it, interpretation) }
|
||||
.flowOn(Dispatchers.Main)
|
||||
.flowOn(Dispatchers.Default)
|
||||
.buffer(Channel.UNLIMITED)
|
||||
val graphBuilder = MusicGraph.builder()
|
||||
val graphBuild =
|
||||
merge(
|
||||
filterFlow.manager,
|
||||
preSongs.onEach { graphBuilder.add(it) },
|
||||
prePlaylists.onEach { graphBuilder.add(it) })
|
||||
graphBuild.collect()
|
||||
|
|
Loading…
Reference in a new issue