From c51f4eacb3c9ab02a65f487fac465d69000d57de Mon Sep 17 00:00:00 2001 From: Eddy Date: Fri, 23 Sep 2022 19:55:44 +0200 Subject: [PATCH] Fix Extractor --- .../src/main/kotlin/com/lagradost/DoodStreamExtractor.kt | 5 +---- .../{StreamSBPlus.kt => StreamSBPlusExtractor.kt} | 7 ++----- .../src/main/kotlin/com/lagradost/WiflixProviderPlugin.kt | 4 ++-- 3 files changed, 5 insertions(+), 11 deletions(-) rename WiflixProvider/src/main/kotlin/com/lagradost/{StreamSBPlus.kt => StreamSBPlusExtractor.kt} (96%) diff --git a/WiflixProvider/src/main/kotlin/com/lagradost/DoodStreamExtractor.kt b/WiflixProvider/src/main/kotlin/com/lagradost/DoodStreamExtractor.kt index 3cf59a4..06b0277 100644 --- a/WiflixProvider/src/main/kotlin/com/lagradost/DoodStreamExtractor.kt +++ b/WiflixProvider/src/main/kotlin/com/lagradost/DoodStreamExtractor.kt @@ -5,13 +5,10 @@ import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.getQualityFromName -class DoodComExtractor : DoodStreamExtractor() { - override var mainUrl = "https://doodstream.com" -} open class DoodStreamExtractor : ExtractorApi() { override var name = "DoodStream" - override var mainUrl = "https://dood.la" + override var mainUrl = "https://doodstream.com" override val requiresReferer = false override fun getExtractorUrl(id: String): String { diff --git a/WiflixProvider/src/main/kotlin/com/lagradost/StreamSBPlus.kt b/WiflixProvider/src/main/kotlin/com/lagradost/StreamSBPlusExtractor.kt similarity index 96% rename from WiflixProvider/src/main/kotlin/com/lagradost/StreamSBPlus.kt rename to WiflixProvider/src/main/kotlin/com/lagradost/StreamSBPlusExtractor.kt index 20f48b3..6db5221 100644 --- a/WiflixProvider/src/main/kotlin/com/lagradost/StreamSBPlus.kt +++ b/WiflixProvider/src/main/kotlin/com/lagradost/StreamSBPlusExtractor.kt @@ -7,15 +7,12 @@ import com.lagradost.cloudstream3.utils.ExtractorApi import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.M3u8Helper -class Sbspeed : StreamSBPlus() { - override var mainUrl = "https://sbspeed.com" -} // This is a modified version of https://github.com/jmir1/aniyomi-extensions/blob/master/src/en/genoanime/src/eu/kanade/tachiyomi/animeextension/en/genoanime/extractors/StreamSBExtractor.kt // The following code is under the Apache License 2.0 https://github.com/jmir1/aniyomi-extensions/blob/master/LICENSE -open class StreamSBPlus : ExtractorApi() { +open class StreamSBPlusExtractor : ExtractorApi() { override var name = "StreamSB" - override var mainUrl = "https://watchsb.com" + override var mainUrl = "https://sbspeed.com" override val requiresReferer = false private val hexArray = "0123456789ABCDEF".toCharArray() diff --git a/WiflixProvider/src/main/kotlin/com/lagradost/WiflixProviderPlugin.kt b/WiflixProvider/src/main/kotlin/com/lagradost/WiflixProviderPlugin.kt index 356530b..7e90a52 100644 --- a/WiflixProvider/src/main/kotlin/com/lagradost/WiflixProviderPlugin.kt +++ b/WiflixProvider/src/main/kotlin/com/lagradost/WiflixProviderPlugin.kt @@ -10,8 +10,8 @@ class WiflixPlugin: Plugin() { override fun load(context: Context) { // All providers should be added in this manner. Please don't edit the providers list directly. registerMainAPI(WiflixProvider()) - registerExtractorAPI(DoodComExtractor()) - registerExtractorAPI(Sbspeed()) + registerExtractorAPI(DoodStreamExtractor()) + registerExtractorAPI(StreamSBPlusExtractor()) }