MangaForFree.com: Fix images not loading (#3837)

fix
This commit is contained in:
bapeey 2024-07-02 01:48:22 -05:00 committed by GitHub
parent 415a57f81a
commit 7076bc6577
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.Mangaforfreecom'
themePkg = 'madara'
baseUrl = 'https://mangaforfree.com'
overrideVersionCode = 1
overrideVersionCode = 2
isNsfw = true
}

View File

@ -2,7 +2,9 @@ package eu.kanade.tachiyomi.extension.en.mangaforfreecom
import android.annotation.SuppressLint
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.Page
import okhttp3.OkHttpClient
import org.jsoup.nodes.Document
import java.security.cert.X509Certificate
import javax.net.ssl.SSLContext
import javax.net.ssl.TrustManager
@ -41,4 +43,9 @@ class Mangaforfreecom : Madara("Mangaforfree.com", "https://mangaforfree.com", "
.sslSocketFactory(sslSocketFactory, trustAllCerts[0] as X509TrustManager)
.hostnameVerifier { _, _ -> true }.build()
}
override fun pageListParse(document: Document): List<Page> {
return super.pageListParse(document)
.onEach { it.imageUrl = it.imageUrl!!.replace("http://", "https://") }
}
}