|
|
@ -76,13 +76,13 @@ data class RssSource( |
|
|
|
kotlin.runCatching { |
|
|
|
kotlin.runCatching { |
|
|
|
var a = sortUrl |
|
|
|
var a = sortUrl |
|
|
|
if (sortUrl?.startsWith("<js>", false) == true |
|
|
|
if (sortUrl?.startsWith("<js>", false) == true |
|
|
|
|| sortUrl?.startsWith("@js", false) == true |
|
|
|
|| sortUrl?.startsWith("@js:", false) == true |
|
|
|
) { |
|
|
|
) { |
|
|
|
val aCache = ACache.get(appCtx, "rssSortUrl") |
|
|
|
val aCache = ACache.get(appCtx, "rssSortUrl") |
|
|
|
a = aCache.getAsString(sourceUrl) ?: "" |
|
|
|
a = aCache.getAsString(sourceUrl) ?: "" |
|
|
|
if (a.isBlank()) { |
|
|
|
if (a.isBlank()) { |
|
|
|
val jsStr = if (sortUrl!!.startsWith("@")) { |
|
|
|
val jsStr = if (sortUrl!!.startsWith("@")) { |
|
|
|
sortUrl!!.substring(3) |
|
|
|
sortUrl!!.substring(4) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
sortUrl!!.substring(4, sortUrl!!.lastIndexOf("<")) |
|
|
|
sortUrl!!.substring(4, sortUrl!!.lastIndexOf("<")) |
|
|
|
} |
|
|
|
} |
|
|
|