mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-05-17 21:55:55 +08:00
Merge pull request #7291 from Bnyro/master
fix: remove unnecessary whitespaces at instances list fallback
This commit is contained in:
@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user