[RU]LibGroup new domain logic (#15585)

* [RU]LibGroup new domain logic

* min
This commit is contained in:
Eshlender 2023-03-06 02:43:45 +05:00 committed by GitHub
parent d4d81ad7cb
commit af1c9610ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -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>

View File

@ -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)

View File

@ -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 {

View File

@ -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))