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 =
|
val preSongs =
|
||||||
rawSongs
|
rawSongs
|
||||||
.map { tagInterpreter.interpret(it, interpretation) }
|
.map { tagInterpreter.interpret(it, interpretation) }
|
||||||
.flowOn(Dispatchers.Main)
|
.flowOn(Dispatchers.Default)
|
||||||
.buffer(Channel.UNLIMITED)
|
.buffer(Channel.UNLIMITED)
|
||||||
val prePlaylists =
|
val prePlaylists =
|
||||||
filterFlow.left
|
filterFlow.left
|
||||||
.map { playlistInterpreter.interpret(it, interpretation) }
|
.map { playlistInterpreter.interpret(it, interpretation) }
|
||||||
.flowOn(Dispatchers.Main)
|
.flowOn(Dispatchers.Default)
|
||||||
.buffer(Channel.UNLIMITED)
|
.buffer(Channel.UNLIMITED)
|
||||||
val graphBuilder = MusicGraph.builder()
|
val graphBuilder = MusicGraph.builder()
|
||||||
val graphBuild =
|
val graphBuild =
|
||||||
merge(
|
merge(
|
||||||
|
filterFlow.manager,
|
||||||
preSongs.onEach { graphBuilder.add(it) },
|
preSongs.onEach { graphBuilder.add(it) },
|
||||||
prePlaylists.onEach { graphBuilder.add(it) })
|
prePlaylists.onEach { graphBuilder.add(it) })
|
||||||
graphBuild.collect()
|
graphBuild.collect()
|
||||||
|
|
Loading…
Reference in a new issue