|
|
@ -100,4 +100,18 @@ data class RssSource( |
|
|
|
return a == b || (a.isNullOrEmpty() && b.isNullOrEmpty()) |
|
|
|
return a == b || (a.isNullOrEmpty() && b.isNullOrEmpty()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun sortUrls(): LinkedHashMap<String, String> { |
|
|
|
|
|
|
|
val sortMap = linkedMapOf<String, String>() |
|
|
|
|
|
|
|
val sortUrl = sortUrl |
|
|
|
|
|
|
|
if (sortUrl.isNullOrEmpty()) { |
|
|
|
|
|
|
|
sortMap["default"] = sourceUrl |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
sortUrl.split("(&&|\n)+".toRegex()).forEach { c -> |
|
|
|
|
|
|
|
val d = c.split("::") |
|
|
|
|
|
|
|
if (d.size > 1) |
|
|
|
|
|
|
|
sortMap[d[0]] = d[1] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return sortMap |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |