Change mangalink domain (#10525)
* Update MangaLink.kt * Update build.gradle
This commit is contained in:
parent
a84a3e275f
commit
54c2c64e24
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'MangaLink'
|
extName = 'MangaLink'
|
||||||
pkgNameSuffix = 'ar.mangalink'
|
pkgNameSuffix = 'ar.mangalink'
|
||||||
extClass = '.MangaLink'
|
extClass = '.MangaLink'
|
||||||
extVersionCode = 5
|
extVersionCode = 6
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -28,7 +28,7 @@ class MangaLink : ConfigurableSource, ParsedHttpSource() {
|
||||||
|
|
||||||
override val name = "MangaLink"
|
override val name = "MangaLink"
|
||||||
|
|
||||||
override val baseUrl by lazy { preferences.getString("preferred_domain", "https://mangalink.cc")!! }
|
override val baseUrl by lazy { preferences.getString("preferred_domain", "http://135.181.209.99")!! }
|
||||||
|
|
||||||
override val lang = "ar"
|
override val lang = "ar"
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ class MangaLink : ConfigurableSource, ParsedHttpSource() {
|
||||||
setUrlWithoutDomain(it.attr("href"))
|
setUrlWithoutDomain(it.attr("href"))
|
||||||
title = it.text()
|
title = it.text()
|
||||||
}
|
}
|
||||||
thumbnail_url = element.select("img").attr("abs:data-src")
|
// thumbnail_url = "http://135.181.209.99" + element.select("img").attr("abs:data-src")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ class MangaLink : ConfigurableSource, ParsedHttpSource() {
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
return document.select("div#content img").mapIndexed { i, img ->
|
return document.select("div#content img").mapIndexed { i, img ->
|
||||||
Page(i, "", img.attr("abs:data-src"))
|
Page(i, "", img.attr("abs:data-src").replace("https://mangalink.cc", "http://135.181.209.99"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,9 +152,9 @@ class MangaLink : ConfigurableSource, ParsedHttpSource() {
|
||||||
val domainPref = ListPreference(screen.context).apply {
|
val domainPref = ListPreference(screen.context).apply {
|
||||||
key = "preferred_domain"
|
key = "preferred_domain"
|
||||||
title = "Preferred domain"
|
title = "Preferred domain"
|
||||||
entries = arrayOf("mangalink.cc", "mangalink.org")
|
entries = arrayOf("135.181.209.99", "mangalink.org")
|
||||||
entryValues = arrayOf("https://mangalink.cc", "https://mangalink.org")
|
entryValues = arrayOf("http://135.181.209.99", "https://mangalink.org")
|
||||||
setDefaultValue("https://mangalink.cc")
|
setDefaultValue("http://135.181.209.99")
|
||||||
summary = "%s"
|
summary = "%s"
|
||||||
|
|
||||||
setOnPreferenceChangeListener { _, newValue ->
|
setOnPreferenceChangeListener { _, newValue ->
|
||||||
|
|
Loading…
Reference in New Issue