From 53fa4ca33f253a2918c5c707b3e87ec5b4b93932 Mon Sep 17 00:00:00 2001 From: LagradOst <11805592+LagradOst@users.noreply.github.com> Date: Sat, 30 Jul 2022 18:56:41 +0200 Subject: [PATCH 1/4] made inf scrolling better + fixed search bug --- .../animeproviders/GogoanimeProvider.kt | 86 ++++---- .../movieproviders/AltadefinizioneProvider.kt | 60 +++--- .../movieproviders/CinecalidadProvider.kt | 55 +++-- .../EntrepeliculasyseriesProvider.kt | 71 ++++--- .../movieproviders/FilmpertuttiProvider.kt | 189 +++++++++--------- .../movieproviders/OpenVidsProvider.kt | 1 - .../movieproviders/PeliSmartProvider.kt | 3 +- .../movieproviders/SoaptwoDayProvider.kt | 59 +++--- .../movieproviders/TantiFilmProvider.kt | 70 +++---- .../cloudstream3/utils/SubtitleHelper.kt | 7 +- 10 files changed, 298 insertions(+), 303 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/animeproviders/GogoanimeProvider.kt b/app/src/main/java/com/lagradost/cloudstream3/animeproviders/GogoanimeProvider.kt index e45976d2..b0ce2c7f 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/animeproviders/GogoanimeProvider.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/animeproviders/GogoanimeProvider.kt @@ -167,7 +167,7 @@ class GogoanimeProvider : MainAPI() { } } - override var mainUrl = "https://gogoanime.sk" + override var mainUrl = "https://gogoanime.lu" override var name = "GogoAnime" override val hasQuickSearch = false override val hasMainPage = true @@ -178,52 +178,50 @@ class GogoanimeProvider : MainAPI() { TvType.OVA ) - override suspend fun getMainPage(page: Int, categoryName: String, categoryData: String): HomePageResponse { - val headers = mapOf( - "authority" to "ajax.gogo-load.com", - "sec-ch-ua" to "\"Google Chrome\";v=\"89\", \"Chromium\";v=\"89\", \";Not A Brand\";v=\"99\"", - "accept" to "text/html, */*; q=0.01", - "dnt" to "1", - "sec-ch-ua-mobile" to "?0", - "user-agent" to "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36", - "origin" to mainUrl, - "sec-fetch-site" to "cross-site", - "sec-fetch-mode" to "cors", - "sec-fetch-dest" to "empty", - "referer" to "$mainUrl/" - ) - val parseRegex = - Regex("""