Skip to content

Commit 39ddb7b

Browse files
authored
Merge pull request libre-tube#7291 from Bnyro/master
fix: remove unnecessary whitespaces at instances list fallback
2 parents e128196 + a9bac7d commit 39ddb7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/com/github/libretube/api/InstanceRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class InstanceRepository(private val context: Context) {
2525
.takeWhile { !it.startsWith("---") }
2626
.filter { it.isNotBlank() }
2727
.map { line ->
28-
val infoParts = line.split("|")
28+
val infoParts = line.split("|").map { it.trim() }
2929

3030
PipedInstance(name = infoParts[0], apiUrl = infoParts[1], locations = infoParts[2], cdn = infoParts[3] == "Yes")
3131
}

0 commit comments

Comments
 (0)