mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
trailer in cineblog01
This commit is contained in:
parent
0856de2f6b
commit
101521835a
2 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 1
|
version = 2
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.lagradost
|
package com.lagradost
|
||||||
|
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addTrailer
|
||||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||||
import com.lagradost.cloudstream3.utils.loadExtractor
|
import com.lagradost.cloudstream3.utils.loadExtractor
|
||||||
|
|
||||||
|
@ -32,7 +33,7 @@ class CineBlog01Provider : MainAPI() {
|
||||||
val posterUrl = fixUrl(series.selectFirst("img")!!.attr("src"))
|
val posterUrl = fixUrl(series.selectFirst("img")!!.attr("src"))
|
||||||
val quality = Regex("\\[([^\\]]*)]").find(series.selectFirst("h1")!!.text())?.groupValues?.get(1)
|
val quality = Regex("\\[([^\\]]*)]").find(series.selectFirst("h1")!!.text())?.groupValues?.get(1)
|
||||||
val year = Regex("\\(([^)]*)\\)").find(series.selectFirst("h1")!!.text())?.groupValues?.get(1)?.toIntOrNull()
|
val year = Regex("\\(([^)]*)\\)").find(series.selectFirst("h1")!!.text())?.groupValues?.get(1)?.toIntOrNull()
|
||||||
|
|
||||||
newMovieSearchResponse(
|
newMovieSearchResponse(
|
||||||
title,
|
title,
|
||||||
link,
|
link,
|
||||||
|
@ -83,6 +84,10 @@ class CineBlog01Provider : MainAPI() {
|
||||||
val dataUrl = document.select("ul.mirrors-list__list > li").map {
|
val dataUrl = document.select("ul.mirrors-list__list > li").map {
|
||||||
it.select("a").attr("href")
|
it.select("a").attr("href")
|
||||||
}.drop(1).joinToString (",")
|
}.drop(1).joinToString (",")
|
||||||
|
val trailerUrl =
|
||||||
|
document.select("iframe").firstOrNull { it.attr("src").contains("youtube") }?.attr("src")
|
||||||
|
?.let { fixUrl(it) }
|
||||||
|
|
||||||
return newMovieLoadResponse(
|
return newMovieLoadResponse(
|
||||||
title,
|
title,
|
||||||
url,
|
url,
|
||||||
|
@ -93,6 +98,7 @@ class CineBlog01Provider : MainAPI() {
|
||||||
this.plot = description
|
this.plot = description
|
||||||
this.year = year
|
this.year = year
|
||||||
this.posterUrl = poster
|
this.posterUrl = poster
|
||||||
|
addTrailer(trailerUrl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue