mirror of
https://github.com/lizongying/my-tv.git
synced 2026-10-26 22:26:29 +08:00
fix empty string bug
This commit is contained in:
@@ -107,6 +107,9 @@ object TVList {
|
||||
val map: MutableMap<String, MutableMap<String, LinkedHashSet<String>>> = mutableMapOf()
|
||||
|
||||
for (i in tvs.split("\n")) {
|
||||
if (!i.contains(",")) {
|
||||
continue
|
||||
}
|
||||
val (channel, title, url) = i.split(",")
|
||||
val titleMap = map[channel] ?: mutableMapOf()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user