From 0b88ee63e4c2626c4e0c949900f144fafc534795 Mon Sep 17 00:00:00 2001 From: Blatzar <46196380+Blatzar@users.noreply.github.com> Date: Wed, 24 Aug 2022 18:33:54 +0200 Subject: [PATCH] Fix Vidstream bundle --- .../src/main/kotlin/com/lagradost/DramaSeeProvider.kt | 1 - .../src/main/kotlin/com/lagradost/OpenVidsProvider.kt | 1 - VidstreamBundle/src/main/kotlin/com/lagradost/Vidstream.kt | 3 +-- .../src/main/kotlin/com/lagradost/VidstreamBundlePlugin.kt | 1 - .../src/main/kotlin/com/lagradost/VidstreamProviderTemplate.kt | 3 +-- .../src/main/kotlin/com/lagradost/WatchAsianProvider.kt | 3 +-- 6 files changed, 3 insertions(+), 9 deletions(-) diff --git a/VidstreamBundle/src/main/kotlin/com/lagradost/DramaSeeProvider.kt b/VidstreamBundle/src/main/kotlin/com/lagradost/DramaSeeProvider.kt index ae31a24..47e13e9 100644 --- a/VidstreamBundle/src/main/kotlin/com/lagradost/DramaSeeProvider.kt +++ b/VidstreamBundle/src/main/kotlin/com/lagradost/DramaSeeProvider.kt @@ -1,7 +1,6 @@ package com.lagradost import com.lagradost.cloudstream3.* -import com.lagradost.cloudstream3.extractors.Vidstream //import com.lagradost.cloudstream3.animeproviders.GogoanimeProvider.Companion.extractVidstream import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.loadExtractor diff --git a/VidstreamBundle/src/main/kotlin/com/lagradost/OpenVidsProvider.kt b/VidstreamBundle/src/main/kotlin/com/lagradost/OpenVidsProvider.kt index 5496cb4..150bfe2 100644 --- a/VidstreamBundle/src/main/kotlin/com/lagradost/OpenVidsProvider.kt +++ b/VidstreamBundle/src/main/kotlin/com/lagradost/OpenVidsProvider.kt @@ -2,7 +2,6 @@ package com.lagradost import com.fasterxml.jackson.annotation.JsonProperty import com.lagradost.cloudstream3.* -import com.lagradost.cloudstream3.extractors.Vidstream import com.lagradost.cloudstream3.metaproviders.TmdbLink import com.lagradost.cloudstream3.metaproviders.TmdbProvider import com.lagradost.cloudstream3.utils.AppUtils.parseJson diff --git a/VidstreamBundle/src/main/kotlin/com/lagradost/Vidstream.kt b/VidstreamBundle/src/main/kotlin/com/lagradost/Vidstream.kt index e14fd52..ef2f427 100644 --- a/VidstreamBundle/src/main/kotlin/com/lagradost/Vidstream.kt +++ b/VidstreamBundle/src/main/kotlin/com/lagradost/Vidstream.kt @@ -1,7 +1,6 @@ -package com.lagradost.cloudstream3.extractors +package com.lagradost import com.fasterxml.jackson.annotation.JsonProperty -import com.lagradost.MultiQuality import com.lagradost.cloudstream3.* import com.lagradost.cloudstream3.AcraApplication.Companion.getKey import com.lagradost.cloudstream3.mvvm.safeApiCall diff --git a/VidstreamBundle/src/main/kotlin/com/lagradost/VidstreamBundlePlugin.kt b/VidstreamBundle/src/main/kotlin/com/lagradost/VidstreamBundlePlugin.kt index dfc1512..e62651b 100644 --- a/VidstreamBundle/src/main/kotlin/com/lagradost/VidstreamBundlePlugin.kt +++ b/VidstreamBundle/src/main/kotlin/com/lagradost/VidstreamBundlePlugin.kt @@ -3,7 +3,6 @@ package com.lagradost import com.lagradost.cloudstream3.plugins.CloudstreamPlugin import com.lagradost.cloudstream3.plugins.Plugin import android.content.Context -import com.lagradost.cloudstream3.extractors.Vidstream @CloudstreamPlugin class VidstreamBundlePlugin : Plugin() { diff --git a/VidstreamBundle/src/main/kotlin/com/lagradost/VidstreamProviderTemplate.kt b/VidstreamBundle/src/main/kotlin/com/lagradost/VidstreamProviderTemplate.kt index 751783d..be1bd1e 100644 --- a/VidstreamBundle/src/main/kotlin/com/lagradost/VidstreamProviderTemplate.kt +++ b/VidstreamBundle/src/main/kotlin/com/lagradost/VidstreamProviderTemplate.kt @@ -1,9 +1,8 @@ package com.lagradost import com.lagradost.cloudstream3.* -import com.lagradost.cloudstream3.extractors.Vidstream //import com.lagradost.cloudstream3.animeproviders.GogoanimeProvider.Companion.extractVidstream -//import com.lagradost.cloudstream3.extractors.Vidstream +//import com.lagradost.Vidstream import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.getQualityFromName import org.jsoup.Jsoup diff --git a/VidstreamBundle/src/main/kotlin/com/lagradost/WatchAsianProvider.kt b/VidstreamBundle/src/main/kotlin/com/lagradost/WatchAsianProvider.kt index 84fd13a..2225ca0 100644 --- a/VidstreamBundle/src/main/kotlin/com/lagradost/WatchAsianProvider.kt +++ b/VidstreamBundle/src/main/kotlin/com/lagradost/WatchAsianProvider.kt @@ -1,7 +1,6 @@ package com.lagradost import com.lagradost.cloudstream3.* -import com.lagradost.cloudstream3.extractors.Vidstream //import com.lagradost.cloudstream3.animeproviders.GogoanimeProvider.Companion.extractVidstream //import com.lagradost.cloudstream3.extractors.XStreamCdn //import com.lagradost.cloudstream3.extractors.helper.AsianEmbedHelper @@ -214,7 +213,7 @@ class WatchAsianProvider : MainAPI() { val url = fixUrl(item.trim()) //Log.i(this.name, "Result => (url) $url") when { - url.startsWith("https://asianembed.io") || url.startsWith("https://asianload.io") -> { + url.startsWith("https://asianembed.io") || url.startsWith("https://asianload.io") || url.contains("/streaming.php?") -> { val iv = "9262859232435825" val secretKey = "93422192433952489752342908585752" Vidstream.extractVidstream(