mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Hdfilmcehennemi audio track
This commit is contained in:
parent
abaab621c6
commit
7ff6ba5108
2 changed files with 18 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 4
|
version = 5
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -21,10 +21,6 @@ class Hdfilmcehennemi : MainAPI() {
|
||||||
TvType.TvSeries,
|
TvType.TvSeries,
|
||||||
)
|
)
|
||||||
|
|
||||||
companion object {
|
|
||||||
private const val vidmolyServer = "https://vidmoly.to"
|
|
||||||
}
|
|
||||||
|
|
||||||
override val mainPage = mainPageOf(
|
override val mainPage = mainPageOf(
|
||||||
"$mainUrl/category/tavsiye-filmler-izle1/page/" to "Tavsiye Filmler Kategorisi",
|
"$mainUrl/category/tavsiye-filmler-izle1/page/" to "Tavsiye Filmler Kategorisi",
|
||||||
"$mainUrl/yabancidiziizle/page/" to "Son Eklenen Yabancı Diziler",
|
"$mainUrl/yabancidiziizle/page/" to "Son Eklenen Yabancı Diziler",
|
||||||
|
@ -178,11 +174,17 @@ class Hdfilmcehennemi : MainAPI() {
|
||||||
?.addMarks("label")?.addMarks("kind")
|
?.addMarks("label")?.addMarks("kind")
|
||||||
|
|
||||||
tryParseJson<Source>(videoData)?.file?.let { m3uLink ->
|
tryParseJson<Source>(videoData)?.file?.let { m3uLink ->
|
||||||
M3u8Helper.generateM3u8(
|
callback.invoke(
|
||||||
source,
|
ExtractorLink(
|
||||||
m3uLink,
|
source,
|
||||||
if (url.startsWith(mainUrl)) "$mainUrl/" else "$vidmolyServer/"
|
source,
|
||||||
).forEach(callback)
|
m3uLink,
|
||||||
|
"$mainUrl/",
|
||||||
|
Qualities.Unknown.value,
|
||||||
|
true
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
tryParseJson<List<SubSource>>("[${subData}]")
|
tryParseJson<List<SubSource>>("[${subData}]")
|
||||||
|
@ -190,7 +192,7 @@ class Hdfilmcehennemi : MainAPI() {
|
||||||
subtitleCallback.invoke(
|
subtitleCallback.invoke(
|
||||||
SubtitleFile(
|
SubtitleFile(
|
||||||
it.label.toString(),
|
it.label.toString(),
|
||||||
"$vidmolyServer${it.file}"
|
fixUrl(it.file.toString())
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -208,7 +210,11 @@ class Hdfilmcehennemi : MainAPI() {
|
||||||
safeApiCall {
|
safeApiCall {
|
||||||
app.get(url).document.select("div.card-video > iframe").attr("data-src")
|
app.get(url).document.select("div.card-video > iframe").attr("data-src")
|
||||||
.let { link ->
|
.let { link ->
|
||||||
invokeLocalSource(source, link, subtitleCallback, callback)
|
if (link.startsWith(mainUrl)) {
|
||||||
|
invokeLocalSource(source, link, subtitleCallback, callback)
|
||||||
|
} else {
|
||||||
|
loadExtractor(link, "$mainUrl/", subtitleCallback, callback)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue