pull/1272/head
gedoor 3 years ago
parent f1aaf1d640
commit 86897da5ea
  1. 4
      app/src/main/java/io/legado/app/data/entities/RssSource.kt

@ -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("<"))
} }

Loading…
Cancel
Save