From d625de8a44f4aef91438023c83cfa553067fb30e Mon Sep 17 00:00:00 2001 From: Claudemirovsky <63046606+Claudemirovsky@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:20:52 -0300 Subject: [PATCH 1/4] fix: Prevent failures in extractors from exceptions --- .../animeextension/en/dramacool/DramaCool.kt | 51 +++++++------------ 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/src/en/dramacool/src/eu/kanade/tachiyomi/animeextension/en/dramacool/DramaCool.kt b/src/en/dramacool/src/eu/kanade/tachiyomi/animeextension/en/dramacool/DramaCool.kt index ea8e07c9c7..bcfca96725 100644 --- a/src/en/dramacool/src/eu/kanade/tachiyomi/animeextension/en/dramacool/DramaCool.kt +++ b/src/en/dramacool/src/eu/kanade/tachiyomi/animeextension/en/dramacool/DramaCool.kt @@ -133,47 +133,30 @@ class DramaCool : ConfigurableAnimeSource, ParsedAnimeHttpSource() { } // ============================ Video Links ============================= - - override fun videoListRequest(episode: SEpisode): Request { - val document = client.newCall(GET(baseUrl + episode.url)).execute().asJsoup() - val iframe = document.select("iframe").attr("abs:src") - return GET(iframe) - } + override fun videoListSelector() = "ul.list-server-items li" override fun videoListParse(response: Response): List