parent
9c90309ad1
commit
8fb9148fac
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: My Manga Reader CMS (Many sources)'
|
appName = 'Tachiyomi: My Manga Reader CMS (Many sources)'
|
||||||
pkgNameSuffix = 'all.mmrcms'
|
pkgNameSuffix = 'all.mmrcms'
|
||||||
extClass = '.MyMangaReaderCMSSources'
|
extClass = '.MyMangaReaderCMSSources'
|
||||||
extVersionCode = 35
|
extVersionCode = 36
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -12,6 +12,7 @@ import java.io.PrintWriter
|
||||||
import java.security.cert.CertificateException
|
import java.security.cert.CertificateException
|
||||||
import java.time.ZonedDateTime
|
import java.time.ZonedDateTime
|
||||||
import java.time.format.DateTimeFormatter
|
import java.time.format.DateTimeFormatter
|
||||||
|
import java.util.concurrent.TimeUnit
|
||||||
import javax.net.ssl.SSLContext
|
import javax.net.ssl.SSLContext
|
||||||
import javax.net.ssl.TrustManager
|
import javax.net.ssl.TrustManager
|
||||||
import javax.net.ssl.X509TrustManager
|
import javax.net.ssl.X509TrustManager
|
||||||
|
@ -216,10 +217,13 @@ class Generator {
|
||||||
// Create all-trusting host name verifier
|
// Create all-trusting host name verifier
|
||||||
// Install the all-trusting host verifier
|
// Install the all-trusting host verifier
|
||||||
|
|
||||||
val builder = OkHttpClient.Builder()
|
return OkHttpClient.Builder()
|
||||||
builder.sslSocketFactory(sslSocketFactory, trustAllCerts[0] as X509TrustManager)
|
.sslSocketFactory(sslSocketFactory, trustAllCerts[0] as X509TrustManager)
|
||||||
builder.hostnameVerifier { _, _ -> true }
|
.hostnameVerifier { _, _ -> true }
|
||||||
return builder.build()
|
.connectTimeout(1, TimeUnit.MINUTES)
|
||||||
|
.readTimeout(1, TimeUnit.MINUTES)
|
||||||
|
.writeTimeout(1, TimeUnit.MINUTES)
|
||||||
|
.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -247,11 +251,13 @@ class Generator {
|
||||||
Triple("es", "submanga", "https://submanga.li"),
|
Triple("es", "submanga", "https://submanga.li"),
|
||||||
Triple("es", "Mangadoor", "https://mangadoor.com"),
|
Triple("es", "Mangadoor", "https://mangadoor.com"),
|
||||||
Triple("es", "Mangas.pw", "https://mangas.in"),
|
Triple("es", "Mangas.pw", "https://mangas.in"),
|
||||||
Triple("es", "Tumangaonline.co", "http://tumangaonline.fun"),
|
Triple("es", "Tumangaonline.co", "http://tumangaonline.uno"),
|
||||||
Triple("bg", "Utsukushii", "https://manga.utsukushii-bg.com"),
|
Triple("bg", "Utsukushii", "https://manga.utsukushii-bg.com"),
|
||||||
Triple("es", "Universo Yuri", "https://universoyuri.com"),
|
Triple("es", "Universo Yuri", "https://universoyuri.com"),
|
||||||
Triple("pl", "Phoenix-Scans", "https://phoenix-scans.pl"),
|
Triple("pl", "Phoenix-Scans", "https://phoenix-scans.pl"),
|
||||||
Triple("ru", "Japit Comics","https://j-comics.ru"),
|
Triple("ru", "Japit Comics","https://j-comics.ru"),
|
||||||
|
Triple("tr", "Puzzmos", "https://puzzmos.com"),
|
||||||
|
Triple("fr", "Scan-1", "https://www.scan-1.com"),
|
||||||
//NOTE: THIS SOURCE CONTAINS A CUSTOM LANGUAGE SYSTEM (which will be ignored)!
|
//NOTE: THIS SOURCE CONTAINS A CUSTOM LANGUAGE SYSTEM (which will be ignored)!
|
||||||
Triple("other", "HentaiShark", "https://www.hentaishark.com"))
|
Triple("other", "HentaiShark", "https://www.hentaishark.com"))
|
||||||
//Changed CMS
|
//Changed CMS
|
||||||
|
|
|
@ -23,6 +23,7 @@ import org.jsoup.nodes.Element
|
||||||
import java.text.ParseException
|
import java.text.ParseException
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
class MyMangaReaderCMSSource(override val lang: String,
|
class MyMangaReaderCMSSource(override val lang: String,
|
||||||
override val name: String,
|
override val name: String,
|
||||||
|
@ -35,7 +36,11 @@ class MyMangaReaderCMSSource(override val lang: String,
|
||||||
private val itemUrlPath = Uri.parse(itemUrl).pathSegments.firstOrNull()
|
private val itemUrlPath = Uri.parse(itemUrl).pathSegments.firstOrNull()
|
||||||
private val parsedBaseUrl = Uri.parse(baseUrl)
|
private val parsedBaseUrl = Uri.parse(baseUrl)
|
||||||
|
|
||||||
override val client: OkHttpClient = network.cloudflareClient
|
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||||||
|
.connectTimeout(1, TimeUnit.MINUTES)
|
||||||
|
.readTimeout(1, TimeUnit.MINUTES)
|
||||||
|
.writeTimeout(1, TimeUnit.MINUTES)
|
||||||
|
.build()
|
||||||
|
|
||||||
override fun popularMangaRequest(page: Int): Request {
|
override fun popularMangaRequest(page: Int): Request {
|
||||||
return when (name) {
|
return when (name) {
|
||||||
|
|
Loading…
Reference in New Issue