diff --git a/multisrc/overrides/animestream/lmanime/src/LMAnime.kt b/multisrc/overrides/animestream/lmanime/src/LMAnime.kt index ec0d7c668f..f4f915fc02 100644 --- a/multisrc/overrides/animestream/lmanime/src/LMAnime.kt +++ b/multisrc/overrides/animestream/lmanime/src/LMAnime.kt @@ -7,7 +7,6 @@ import eu.kanade.tachiyomi.animesource.model.Video import eu.kanade.tachiyomi.lib.dailymotionextractor.DailymotionExtractor import eu.kanade.tachiyomi.lib.okruextractor.OkruExtractor import eu.kanade.tachiyomi.multisrc.animestream.AnimeStream -import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.util.asJsoup import okhttp3.Response @@ -34,18 +33,6 @@ class LMAnime : AnimeStream( }.flatten().ifEmpty { throw Exception("Empty video list!") } } - override fun getHosterUrl(encodedData: String) = - client.newCall(GET(encodedData, headers)).execute() - .use { it.asJsoup() } - .selectFirst("iframe[src~=.]")!! - .attr("src") - .let { // sometimes the url dont specify its protocol - when { - it.startsWith("http") -> it - else -> "https:$it" - } - } - private val okruExtractor by lazy { OkruExtractor(client) } private val dailyExtractor by lazy { DailymotionExtractor(client, headers) } diff --git a/multisrc/overrides/animestream/luciferdonghua/src/LuciferDonghua.kt b/multisrc/overrides/animestream/luciferdonghua/src/LuciferDonghua.kt index 19f5d82894..edfb5b16db 100644 --- a/multisrc/overrides/animestream/luciferdonghua/src/LuciferDonghua.kt +++ b/multisrc/overrides/animestream/luciferdonghua/src/LuciferDonghua.kt @@ -1,15 +1,10 @@ package eu.kanade.tachiyomi.animeextension.en.luciferdonghua -import android.util.Base64 import eu.kanade.tachiyomi.animesource.model.Video import eu.kanade.tachiyomi.lib.dailymotionextractor.DailymotionExtractor import eu.kanade.tachiyomi.lib.okruextractor.OkruExtractor import eu.kanade.tachiyomi.lib.streamwishextractor.StreamWishExtractor import eu.kanade.tachiyomi.multisrc.animestream.AnimeStream -import eu.kanade.tachiyomi.network.GET -import eu.kanade.tachiyomi.util.asJsoup -import okhttp3.HttpUrl.Companion.toHttpUrlOrNull -import org.jsoup.Jsoup class LuciferDonghua : AnimeStream( "en", @@ -17,20 +12,6 @@ class LuciferDonghua : AnimeStream( "https://luciferdonghua.in", ) { // ============================ Video Links ============================= - - override fun getHosterUrl(encodedData: String): String { - val doc = if (encodedData.toHttpUrlOrNull() == null) { - Base64.decode(encodedData, Base64.DEFAULT) - .let(::String) // bytearray -> string - .let(Jsoup::parse) // string -> document - } else { - client.newCall(GET(encodedData, headers)).execute().use { it.asJsoup() } - } - - return doc.selectFirst("iframe[src~=.]")?.attr("abs:src") - ?: doc.selectFirst("meta[content~=.][itemprop=embedUrl]")!!.attr("abs:content") - } - private val okruExtractor by lazy { OkruExtractor(client) } private val dailymotionExtractor by lazy { DailymotionExtractor(client, headers) } private val filelionsExtractor by lazy { StreamWishExtractor(client, headers) } @@ -46,7 +27,6 @@ class LuciferDonghua : AnimeStream( } // ============================= Utilities ============================== - override fun List