From 86897da5ea8a62593e53cfb3d39469cd6e8834e0 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 25 Aug 2021 16:40:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/data/entities/RssSource.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/entities/RssSource.kt b/app/src/main/java/io/legado/app/data/entities/RssSource.kt index 6195bfa21..baa989573 100644 --- a/app/src/main/java/io/legado/app/data/entities/RssSource.kt +++ b/app/src/main/java/io/legado/app/data/entities/RssSource.kt @@ -76,13 +76,13 @@ data class RssSource( kotlin.runCatching { var a = sortUrl if (sortUrl?.startsWith("", false) == true - || sortUrl?.startsWith("@js", false) == true + || sortUrl?.startsWith("@js:", false) == true ) { val aCache = ACache.get(appCtx, "rssSortUrl") a = aCache.getAsString(sourceUrl) ?: "" if (a.isBlank()) { val jsStr = if (sortUrl!!.startsWith("@")) { - sortUrl!!.substring(3) + sortUrl!!.substring(4) } else { sortUrl!!.substring(4, sortUrl!!.lastIndexOf("<")) }