[Fix] Additional Extractor fixes related to #954 (#956)

* cleanup on fembed class

* additional fixes

* additional cleanup on xstreamcdn extractor
This commit is contained in:
Jace 2022-04-16 10:51:56 +08:00 committed by GitHub
parent df96064c76
commit 478b7a0066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 27 additions and 55 deletions

View File

@ -24,14 +24,13 @@ class AsianLoad : ExtractorApi() {
), true ), true
) )
.forEach { stream -> .forEach { stream ->
val qualityString = if ((stream.quality ?: 0) == 0) "" else "${stream.quality}p"
extractedLinksList.add( extractedLinksList.add(
ExtractorLink( ExtractorLink(
name, name,
"$name $qualityString", name = name,
stream.streamUrl, stream.streamUrl,
url, url,
getQualityFromName(stream.quality.toString()), getQualityFromName(stream.quality?.toString()),
true true
) )
) )

View File

@ -1,13 +0,0 @@
package com.lagradost.cloudstream3.extractors
import android.util.Log
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.module.kotlin.readValue
import com.lagradost.cloudstream3.network.Session
import com.lagradost.cloudstream3.utils.*
import com.lagradost.cloudstream3.mapper
class FEmbed: XStreamCdn() {
override val name: String = "FEmbed"
override val mainUrl: String = "https://www.fembed.com"
}

View File

@ -1,14 +0,0 @@
package com.lagradost.cloudstream3.extractors
import android.util.Log
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.module.kotlin.readValue
import com.lagradost.cloudstream3.network.Session
import com.lagradost.cloudstream3.utils.*
import com.lagradost.cloudstream3.mapper
class FeHD: XStreamCdn() {
override val name: String = "FeHD"
override val mainUrl: String = "https://fembed-hd.com"
override var domainUrl: String = "fembed-hd.com"
}

View File

@ -1,13 +0,0 @@
package com.lagradost.cloudstream3.extractors
import android.util.Log
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.module.kotlin.readValue
import com.lagradost.cloudstream3.network.Session
import com.lagradost.cloudstream3.utils.*
import com.lagradost.cloudstream3.mapper
class Fplayer: XStreamCdn() {
override val name: String = "Fplayer"
override val mainUrl: String = "https://fplayer.info"
}

View File

@ -30,13 +30,12 @@ open class GenericM3U8 : ExtractorApi() {
), true ), true
) )
.map { stream -> .map { stream ->
val qualityString = if ((stream.quality ?: 0) == 0) "" else "${stream.quality}p"
sources.add( ExtractorLink( sources.add( ExtractorLink(
name, name,
"$name $qualityString", name = name,
stream.streamUrl, stream.streamUrl,
url, url,
getQualityFromName(stream.quality.toString()), getQualityFromName(stream.quality?.toString()),
true true
)) ))
} }

View File

@ -21,13 +21,12 @@ open class Jawcloud : ExtractorApi() {
), true ), true
) )
.map { stream -> .map { stream ->
val qualityString = if ((stream.quality ?: 0) == 0) "" else "${stream.quality}p"
sources.add( ExtractorLink( sources.add( ExtractorLink(
name, name,
"$name $qualityString", name = name,
stream.streamUrl, stream.streamUrl,
url, url,
getQualityFromName(stream.quality.toString()), getQualityFromName(stream.quality?.toString()),
true true
)) ))
} }

View File

@ -63,14 +63,13 @@ open class Mcloud : ExtractorApi() {
), true ), true
) )
.map { stream -> .map { stream ->
val qualityString = if ((stream.quality ?: 0) == 0) "" else "${stream.quality}p"
sources.add( sources.add(
ExtractorLink( ExtractorLink(
name, name,
"$name $qualityString", name = name,
stream.streamUrl, stream.streamUrl,
url, url,
getQualityFromName(stream.quality.toString()), getQualityFromName(stream.quality?.toString()),
true true
) )
) )

View File

@ -31,7 +31,7 @@ class MultiQuality : ExtractorApi() {
extractedLinksList.add( extractedLinksList.add(
ExtractorLink( ExtractorLink(
name, name,
"$name ${match.groupValues[1]}p", name = name,
urlRegex.find(this.url)!!.groupValues[1] + match.groupValues[0], urlRegex.find(this.url)!!.groupValues[1] + match.groupValues[0],
url, url,
getQualityFromName(match.groupValues[1]), getQualityFromName(match.groupValues[1]),

View File

@ -50,7 +50,7 @@ open class OkRu : ExtractorApi() {
val extractedurl = it.url.replace("\\\\u0026", "&") val extractedurl = it.url.replace("\\\\u0026", "&")
sources.add(ExtractorLink( sources.add(ExtractorLink(
name, name,
"$name $quality", name = this.name,
extractedurl, extractedurl,
url, url,
getQualityFromName(quality), getQualityFromName(quality),

View File

@ -56,7 +56,7 @@ class Pelisplus(val mainUrl: String) {
callback.invoke( callback.invoke(
ExtractorLink( ExtractorLink(
this.name, this.name,
if (qual == "null") this.name else "${this.name} - " + qual + "p", name = this.name,
href, href,
page.url, page.url,
getQualityFromName(qual), getQualityFromName(qual),

View File

@ -8,6 +8,22 @@ import com.lagradost.cloudstream3.utils.ExtractorApi
import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.ExtractorLink
import com.lagradost.cloudstream3.utils.getQualityFromName import com.lagradost.cloudstream3.utils.getQualityFromName
class FEmbed: XStreamCdn() {
override val name: String = "FEmbed"
override val mainUrl: String = "https://www.fembed.com"
}
class Fplayer: XStreamCdn() {
override val name: String = "Fplayer"
override val mainUrl: String = "https://fplayer.info"
}
class FeHD: XStreamCdn() {
override val name: String = "FeHD"
override val mainUrl: String = "https://fembed-hd.com"
override var domainUrl: String = "fembed-hd.com"
}
open class XStreamCdn : ExtractorApi() { open class XStreamCdn : ExtractorApi() {
override val name: String = "XStreamCdn" override val name: String = "XStreamCdn"
override val mainUrl: String = "https://embedsito.com" override val mainUrl: String = "https://embedsito.com"