pull/32/head
kunfei 5 years ago
parent d2a8e5d9e7
commit a292844219
  1. 8
      app/src/main/java/io/legado/app/help/storage/OldRule.kt

@ -94,9 +94,13 @@ object OldRule {
private fun toNewUrl(oldUrl: String?): String? {
if (oldUrl == null) return null
if (oldUrl.startsWith("<js>", true)) return oldUrl
val map = HashMap<String, String>()
var url: String = oldUrl
if (oldUrl.startsWith("<js>", true)) {
url = url.replace("=searchKey", "={{key}}")
.replace("=searchPage", "={{page}}")
return url
}
val map = HashMap<String, String>()
var mather = headerPattern.matcher(url)
if (mather.find()) {
val header = mather.group()

Loading…
Cancel
Save