@@ -4,9 +4,12 @@ import com.lagradost.cloudstream3.app
44import com.lagradost.cloudstream3.utils.ExtractorApi
55import com.lagradost.cloudstream3.utils.ExtractorLink
66import com.lagradost.cloudstream3.utils.M3u8Helper
7- import com.lagradost.cloudstream3.utils.getQualityFromName
87import com.lagradost.cloudstream3.utils.newExtractorLink
9- import java.net.URI
8+
9+ class Vidnest : AsianLoad () {
10+ override var name = " Vidnest"
11+ override var mainUrl = " https://vidnest.io"
12+ }
1013
1114open class AsianLoad : ExtractorApi () {
1215 override var name = " AsianLoad"
@@ -20,7 +23,7 @@ open class AsianLoad : ExtractorApi() {
2023 sourceRegex.findAll(this .text).forEach { sourceMatch ->
2124 val extractedUrl = sourceMatch.groupValues[1 ]
2225 // Trusting this isn't mp4, may fuck up stuff
23- if (URI ( extractedUrl).path.endsWith (" .m3u8" )) {
26+ if (extractedUrl.contains (" .m3u8" )) {
2427 M3u8Helper .generateM3u8(
2528 name,
2629 extractedUrl,
@@ -29,15 +32,14 @@ open class AsianLoad : ExtractorApi() {
2932 ).forEach { link ->
3033 extractedLinksList.add(link)
3134 }
32- } else if (extractedUrl.endsWith (" .mp4" )) {
35+ } else if (extractedUrl.contains (" .mp4" )) {
3336 extractedLinksList.add(
3437 newExtractorLink(
3538 source = name,
3639 name = name,
3740 url = extractedUrl,
3841 ) {
3942 this .referer = url.replace(" " , " %20" )
40- this .quality = getQualityFromName(sourceMatch.groupValues[2 ])
4143 }
4244 )
4345 }
0 commit comments