pull/480/head 3.20.111513
gedoor 4 years ago
parent e0bd519875
commit 0fe1fa2075
  1. 2
      app/src/main/java/io/legado/app/utils/NetworkUtils.kt

@ -80,7 +80,7 @@ object NetworkUtils {
fun getAbsoluteURL(baseURL: String?, relativePath: String?): String? { fun getAbsoluteURL(baseURL: String?, relativePath: String?): String? {
if (baseURL.isNullOrEmpty()) return relativePath if (baseURL.isNullOrEmpty()) return relativePath
if (relativePath.isNullOrEmpty()) return baseURL if (relativePath.isNullOrEmpty()) return baseURL
if (relativePath.isAbsUrl()) return baseURL if (relativePath.isAbsUrl()) return relativePath
var relativeUrl = relativePath var relativeUrl = relativePath
try { try {
val absoluteUrl = URL(baseURL.substringBefore(",")) val absoluteUrl = URL(baseURL.substringBefore(","))

Loading…
Cancel
Save