mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
fix series
This commit is contained in:
parent
0401a5a877
commit
287e8a5f9b
1 changed files with 2 additions and 1 deletions
|
@ -98,6 +98,7 @@ class FrenchStreamProvider : MainAPI() {
|
||||||
var subEpisodes = mutableListOf<Episode>()
|
var subEpisodes = mutableListOf<Episode>()
|
||||||
var dubEpisodes = mutableListOf<Episode>()
|
var dubEpisodes = mutableListOf<Episode>()
|
||||||
val title = soup.selectFirst("h1#s-title")!!.text().toString()
|
val title = soup.selectFirst("h1#s-title")!!.text().toString()
|
||||||
|
val isMovie = !url.contains("/serie/", ignoreCase = true)
|
||||||
val description =
|
val description =
|
||||||
soup.selectFirst("div.fdesc")!!.text().toString()
|
soup.selectFirst("div.fdesc")!!.text().toString()
|
||||||
.split("streaming", ignoreCase = true)[1].replace(":", "")
|
.split("streaming", ignoreCase = true)[1].replace(":", "")
|
||||||
|
@ -106,7 +107,7 @@ class FrenchStreamProvider : MainAPI() {
|
||||||
val tags = soup.select("ul.flist-col > li").getOrNull(1)
|
val tags = soup.select("ul.flist-col > li").getOrNull(1)
|
||||||
//val rating = soup.select("span[id^=vote-num-id]")?.getOrNull(1)?.text()?.toInt()
|
//val rating = soup.select("span[id^=vote-num-id]")?.getOrNull(1)?.text()?.toInt()
|
||||||
|
|
||||||
if (subEpisodes.isEmpty() && dubEpisodes.isEmpty()) {
|
if (isMovie) {
|
||||||
val yearRegex = Regex("""ate de sortie\: (\d*)""")
|
val yearRegex = Regex("""ate de sortie\: (\d*)""")
|
||||||
val year = yearRegex.find(soup.text())?.groupValues?.get(1)
|
val year = yearRegex.find(soup.text())?.groupValues?.get(1)
|
||||||
val tagsList = tags?.select("a")
|
val tagsList = tags?.select("a")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue