[RU]LibGroup new domain logic (#15585)
* [RU]LibGroup new domain logic * min
This commit is contained in:
parent
d4d81ad7cb
commit
af1c9610ed
|
@ -16,7 +16,7 @@
|
|||
|
||||
<!-- LibUrlActivity sites can be added here. -->
|
||||
<data
|
||||
android:host="v1.yaoilib.net"
|
||||
android:host="v1.slashlib.me"
|
||||
android:pathPattern="/..*/v..*"
|
||||
android:scheme="https" />
|
||||
</intent-filter>
|
||||
|
|
|
@ -8,7 +8,7 @@ import okhttp3.Headers
|
|||
import okhttp3.OkHttpClient
|
||||
import okhttp3.Request
|
||||
|
||||
class YaoiLib : LibGroup("YaoiLib", "https://v1.yaoilib.net", "ru") {
|
||||
class YaoiLib : LibGroup("YaoiLib", "https://v1.slashlib.me", "ru") {
|
||||
|
||||
override val client: OkHttpClient = super.client.newBuilder()
|
||||
.addInterceptor(::imageContentTypeIntercept)
|
||||
|
|
|
@ -9,12 +9,12 @@ class LibGenerator : ThemeSourceGenerator {
|
|||
|
||||
override val themeClass = "LibGroup"
|
||||
|
||||
override val baseVersionCode: Int = 15
|
||||
override val baseVersionCode: Int = 16
|
||||
|
||||
override val sources = listOf(
|
||||
SingleLang("MangaLib", "https://mangalib.me", "ru", overrideVersionCode = 74),
|
||||
SingleLang("HentaiLib", "https://hentailib.me", "ru", isNsfw = true, overrideVersionCode = 19),
|
||||
SingleLang("YaoiLib", "https://v1.yaoilib.net", "ru", isNsfw = true, overrideVersionCode = 2),
|
||||
SingleLang("YaoiLib", "https://v1.slashlib.me", "ru", isNsfw = true, overrideVersionCode = 2),
|
||||
)
|
||||
|
||||
companion object {
|
||||
|
|
|
@ -140,7 +140,7 @@ abstract class LibGroup(
|
|||
popularMangaParse(response)
|
||||
|
||||
// Popular
|
||||
override fun popularMangaRequest(page: Int) = GET(baseUrl, headers)
|
||||
override fun popularMangaRequest(page: Int) = GET("$baseUrl/?section=home-updates", headers)
|
||||
override fun fetchPopularManga(page: Int): Observable<MangasPage> {
|
||||
if (csrfToken.isEmpty()) {
|
||||
return client.newCall(popularMangaRequest(page))
|
||||
|
|
Loading…
Reference in New Issue