mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fix
This commit is contained in:
parent
b351a9e62d
commit
442b79be85
1 changed files with 2 additions and 3 deletions
|
@ -74,8 +74,7 @@ class Moflix : MainAPI() {
|
||||||
val res = app.get(
|
val res = app.get(
|
||||||
"$mainUrl/api/v1/titles/${url.removePrefix("$mainUrl/")}?loader=titlePage",
|
"$mainUrl/api/v1/titles/${url.removePrefix("$mainUrl/")}?loader=titlePage",
|
||||||
referer = "$mainUrl/"
|
referer = "$mainUrl/"
|
||||||
)
|
).parsedSafe<Responses>()
|
||||||
.parsedSafe<Responses>()
|
|
||||||
|
|
||||||
val id = res?.title?.id
|
val id = res?.title?.id
|
||||||
val title = res?.title?.name ?: ""
|
val title = res?.title?.name ?: ""
|
||||||
|
@ -202,7 +201,7 @@ class Moflix : MainAPI() {
|
||||||
quality: Int? = null,
|
quality: Int? = null,
|
||||||
) {
|
) {
|
||||||
loadExtractor(url, referer, subtitleCallback) { link ->
|
loadExtractor(url, referer, subtitleCallback) { link ->
|
||||||
if (link.quality == Qualities.Unknown.value) {
|
if (link.quality == Qualities.Unknown.value || !link.isM3u8) {
|
||||||
callback.invoke(
|
callback.invoke(
|
||||||
ExtractorLink(
|
ExtractorLink(
|
||||||
link.source,
|
link.source,
|
||||||
|
|
Loading…
Reference in a new issue