2021-04-02 12:46:25 +00:00
|
|
|
package eu.kanade.tachiyomi.extension.all.hniscantrad
|
2021-02-15 15:36:28 +00:00
|
|
|
|
|
|
|
import eu.kanade.tachiyomi.multisrc.foolslide.FoolSlide
|
2021-04-02 12:46:25 +00:00
|
|
|
import eu.kanade.tachiyomi.source.SourceFactory
|
2021-02-15 15:36:28 +00:00
|
|
|
import okhttp3.Response
|
|
|
|
|
2021-04-02 12:46:25 +00:00
|
|
|
class HNIScantradFactory : SourceFactory {
|
2021-07-29 16:20:43 +00:00
|
|
|
override fun createSources() = listOf(HNIScantradFR(), HNIScantradEN())
|
2021-04-02 12:46:25 +00:00
|
|
|
}
|
2021-07-29 16:20:43 +00:00
|
|
|
|
|
|
|
class HNIScantradFR : FoolSlide("HNI-Scantrad", "https://hni-scantrad.com", "fr", "/lel") {
|
|
|
|
override fun chapterListParse(response: Response) =
|
|
|
|
super.chapterListParse(response).filter { "/fr/" in it.url }
|
|
|
|
}
|
|
|
|
|
|
|
|
class HNIScantradEN : FoolSlide("HNI-Scantrad", "https://hni-scantrad.com", "en", "/lel") {
|
|
|
|
override fun chapterListParse(response: Response) =
|
|
|
|
super.chapterListParse(response).filter { "/en-us/" in it.url }
|
2021-02-15 15:36:28 +00:00
|
|
|
}
|