mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
72b3689a94
commit
fae0ded2e0
@ -37,7 +37,11 @@ suspend fun RssSource.sortUrls(): List<Pair<String, String>> {
|
||||
val name = sort.substringBefore("::")
|
||||
val url = sort.substringAfter("::", "")
|
||||
if (url.isNotEmpty()) {
|
||||
add(Pair(name, NetworkUtils.getAbsoluteURL(sourceUrl, url)))
|
||||
if (url.startsWith("{{")) {
|
||||
add(Pair(name, url))
|
||||
} else {
|
||||
add(Pair(name, NetworkUtils.getAbsoluteURL(sourceUrl, url)))
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user