diff --git a/server/src/main/kotlin/eu/kanade/tachiyomi/animesource/online/AnimeHttpSource.kt b/server/src/main/kotlin/eu/kanade/tachiyomi/animesource/online/AnimeHttpSource.kt index 960401f..028103c 100644 --- a/server/src/main/kotlin/eu/kanade/tachiyomi/animesource/online/AnimeHttpSource.kt +++ b/server/src/main/kotlin/eu/kanade/tachiyomi/animesource/online/AnimeHttpSource.kt @@ -1,6 +1,7 @@ package eu.kanade.tachiyomi.animesource.online import eu.kanade.tachiyomi.animesource.AnimeCatalogueSource +import eu.kanade.tachiyomi.animesource.model.AnimeFilterList import eu.kanade.tachiyomi.animesource.model.AnimesPage import eu.kanade.tachiyomi.animesource.model.SAnime import eu.kanade.tachiyomi.animesource.model.SEpisode @@ -8,7 +9,6 @@ import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.network.NetworkHelper import eu.kanade.tachiyomi.network.asObservableSuccess import eu.kanade.tachiyomi.network.newCallWithProgress -import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.Page import okhttp3.Headers import okhttp3.OkHttpClient @@ -118,7 +118,7 @@ abstract class AnimeHttpSource : AnimeCatalogueSource { * @param query the search query. * @param filters the list of filters to apply. */ - override fun fetchSearchAnime(page: Int, query: String, filters: FilterList): Observable { + override fun fetchSearchAnime(page: Int, query: String, filters: AnimeFilterList): Observable { return client.newCall(searchAnimeRequest(page, query, filters)) .asObservableSuccess() .map { response -> @@ -133,7 +133,7 @@ abstract class AnimeHttpSource : AnimeCatalogueSource { * @param query the search query. * @param filters the list of filters to apply. */ - protected abstract fun searchAnimeRequest(page: Int, query: String, filters: FilterList): Request + protected abstract fun searchAnimeRequest(page: Int, query: String, filters: AnimeFilterList): Request /** * Parses the response from the site and returns a [AnimesPage] object. @@ -380,7 +380,7 @@ abstract class AnimeHttpSource : AnimeCatalogueSource { /** * Returns the list of filters for the source. */ - override fun getFilterList() = FilterList() + override fun getFilterList() = AnimeFilterList() companion object { const val DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Edg/88.0.705.63"