mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
fix: remove unnecessary whitespaces at instances list fallback
This commit is contained in:
parent
211e8d99f5
commit
a9bac7d7cd
@ -25,7 +25,7 @@ class InstanceRepository(private val context: Context) {
|
|||||||
.takeWhile { !it.startsWith("---") }
|
.takeWhile { !it.startsWith("---") }
|
||||||
.filter { it.isNotBlank() }
|
.filter { it.isNotBlank() }
|
||||||
.map { line ->
|
.map { line ->
|
||||||
val infoParts = line.split("|")
|
val infoParts = line.split("|").map { it.trim() }
|
||||||
|
|
||||||
PipedInstance(name = infoParts[0], apiUrl = infoParts[1], locations = infoParts[2], cdn = infoParts[3] == "Yes")
|
PipedInstance(name = infoParts[0], apiUrl = infoParts[1], locations = infoParts[2], cdn = infoParts[3] == "Yes")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user