fix series

This commit is contained in:
Eddy 2022-11-12 18:41:36 +01:00
parent 0401a5a877
commit 287e8a5f9b
1 changed files with 2 additions and 1 deletions

View File

@ -98,6 +98,7 @@ class FrenchStreamProvider : MainAPI() {
var subEpisodes = mutableListOf<Episode>()
var dubEpisodes = mutableListOf<Episode>()
val title = soup.selectFirst("h1#s-title")!!.text().toString()
val isMovie = !url.contains("/serie/", ignoreCase = true)
val description =
soup.selectFirst("div.fdesc")!!.text().toString()
.split("streaming", ignoreCase = true)[1].replace(":", "")
@ -106,7 +107,7 @@ class FrenchStreamProvider : MainAPI() {
val tags = soup.select("ul.flist-col > li").getOrNull(1)
//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 year = yearRegex.find(soup.text())?.groupValues?.get(1)
val tagsList = tags?.select("a")