From bcf55beb437248180d9449e67ca9abb28023acc6 Mon Sep 17 00:00:00 2001 From: Secozzi <49240133+Secozzi@users.noreply.github.com> Date: Sat, 14 Oct 2023 12:49:00 +0000 Subject: [PATCH] fix(en/fmovies): Fix vidsrc extractor + vrf helper (#2363) --- src/en/fmovies/build.gradle | 2 +- .../en/fmovies/FMoviesHelper.kt | 2 +- .../en/fmovies/extractors/VidsrcExtractor.kt | 46 +++++++++++++++---- src/en/seez/build.gradle | 2 +- .../animeextension/en/seez/VrfHelper.kt | 2 +- .../en/seez/extractors/VidsrcExtractor.kt | 44 ++++++++++++++---- 6 files changed, 76 insertions(+), 22 deletions(-) diff --git a/src/en/fmovies/build.gradle b/src/en/fmovies/build.gradle index 2f01ebd7c4..3d82c1fa51 100644 --- a/src/en/fmovies/build.gradle +++ b/src/en/fmovies/build.gradle @@ -8,7 +8,7 @@ ext { extName = 'FMovies' pkgNameSuffix = 'en.fmovies' extClass = '.FMovies' - extVersionCode = 10 + extVersionCode = 11 libVersion = '13' } diff --git a/src/en/fmovies/src/eu/kanade/tachiyomi/animeextension/en/fmovies/FMoviesHelper.kt b/src/en/fmovies/src/eu/kanade/tachiyomi/animeextension/en/fmovies/FMoviesHelper.kt index 293fb0ec4a..f0e0b045ac 100644 --- a/src/en/fmovies/src/eu/kanade/tachiyomi/animeextension/en/fmovies/FMoviesHelper.kt +++ b/src/en/fmovies/src/eu/kanade/tachiyomi/animeextension/en/fmovies/FMoviesHelper.kt @@ -39,7 +39,7 @@ class FMoviesHelper(private val client: OkHttpClient, private val headers: Heade fun getVidSrc(query: String, host: String): String { val url = API_URL.newBuilder().apply { - addPathSegment(if (host == "vidstream.pro") "rawVizcloud" else "rawMcloud") + addPathSegment(if (host.contains("mcloud", true)) "rawMcloud" else "rawVizcloud") addQueryParameter("apikey", API_KEY) }.build().toString() diff --git a/src/en/fmovies/src/eu/kanade/tachiyomi/animeextension/en/fmovies/extractors/VidsrcExtractor.kt b/src/en/fmovies/src/eu/kanade/tachiyomi/animeextension/en/fmovies/extractors/VidsrcExtractor.kt index 79d3e3a71a..005d6f3758 100644 --- a/src/en/fmovies/src/eu/kanade/tachiyomi/animeextension/en/fmovies/extractors/VidsrcExtractor.kt +++ b/src/en/fmovies/src/eu/kanade/tachiyomi/animeextension/en/fmovies/extractors/VidsrcExtractor.kt @@ -21,19 +21,27 @@ class VidsrcExtractor(private val client: OkHttpClient, private val headers: Hea private val playlistUtils by lazy { PlaylistUtils(client, headers) } fun videosFromUrl(url: String, name: String): List