mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Merge pull request #7291 from Bnyro/master
fix: remove unnecessary whitespaces at instances list fallback
This commit is contained in:
commit
39ddb7b643
@ -25,7 +25,7 @@ class InstanceRepository(private val context: Context) {
|
||||
.takeWhile { !it.startsWith("---") }
|
||||
.filter { it.isNotBlank() }
|
||||
.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")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user