mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
fix(import): use collector
This commit is contained in:
parent
45031d3b50
commit
30847e41a5
@ -169,7 +169,9 @@ object ImportHelper {
|
||||
ImportFormat.YOUTUBECSV -> {
|
||||
val playlist = PipedImportPlaylist()
|
||||
activity.contentResolver.openInputStream(uri)?.use {
|
||||
val lines = it.bufferedReader().use { reader -> reader.lines().toList() }
|
||||
val lines = it.bufferedReader().use { reader ->
|
||||
reader.lines().collect(Collectors.toList())
|
||||
}
|
||||
playlist.name = lines[1].split(",").reversed()[2]
|
||||
var splitIndex = lines.indexOfFirst { line -> line.isBlank() }
|
||||
// seek until playlist items table
|
||||
|
Loading…
Reference in New Issue
Block a user