fix empty string bug

This commit is contained in:
Li ZongYing
2023-12-07 01:05:26 +08:00
parent 3b01debf7f
commit 709cc2ccdf
2 changed files with 4 additions and 1 deletions
@@ -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()