Fushar Adjustments

This commit is contained in:
Zaw 2022-09-09 11:55:50 +03:00 committed by GitHub
commit 2af27e6eee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ class Fushaar : MainAPI() {
override val mainPage = mainPageOf( override val mainPage = mainPageOf(
"$mainUrl/page/" to "Movies | أفلام", "$mainUrl/page/" to "Movies | أفلام",
"$mainUrl/gerne/action/page/" to "Action|إثارة", "$mainUrl/gerne/action/page/" to "Action | أكشن",
"$mainUrl/gerne/adventure/page/" to "Adventure | مغامرة", "$mainUrl/gerne/adventure/page/" to "Adventure | مغامرة",
"$mainUrl/gerne/animation/page/" to "Animation | أنيمايشن", "$mainUrl/gerne/animation/page/" to "Animation | أنيمايشن",
"$mainUrl/gerne/biography/page/" to "Biography | سيرة", "$mainUrl/gerne/biography/page/" to "Biography | سيرة",
@ -59,7 +59,7 @@ class Fushaar : MainAPI() {
"$mainUrl/gerne/sci-fi/page/" to "Sci-fi | خيال علمي", "$mainUrl/gerne/sci-fi/page/" to "Sci-fi | خيال علمي",
"$mainUrl/gerne/short/page/" to "Short | قصير", "$mainUrl/gerne/short/page/" to "Short | قصير",
"$mainUrl/gerne/sport/page/" to "Sport | رياضة", "$mainUrl/gerne/sport/page/" to "Sport | رياضة",
"$mainUrl/gerne/thriller/page/" to "Thriller|روائي", "$mainUrl/gerne/thriller/page/" to "Thriller | إثارة",
"$mainUrl/gerne/war/page/" to "War | حرب", "$mainUrl/gerne/war/page/" to "War | حرب",
"$mainUrl/gerne/western/page/" to "Western | غربي", "$mainUrl/gerne/western/page/" to "Western | غربي",
) )
@ -84,7 +84,7 @@ class Fushaar : MainAPI() {
var doc = app.get(url).document var doc = app.get(url).document
val posterUrl = doc.select("figure.poster noscript img").attr("src") val posterUrl = doc.select("figure.poster noscript img").attr("src")
val year = doc.select("header span.yearz").text()?.getIntFromText() val year = doc.select("header span.yearz").text()?.getIntFromText()
val title = doc.select("header h1").text()+"\n"+doc.select("header h2").text() val title = doc.select("header h1").text()+" | "+doc.select("header h2").text()
val synopsis = doc.select("div.postz").text() val synopsis = doc.select("div.postz").text()
val trailer = doc.select("div.rll-youtube-player iframe").attr("src") val trailer = doc.select("div.rll-youtube-player iframe").attr("src")
val tags = doc.select("li.iifo").map { it.select("span.z-s-i").text()+" "+it.select("h8").text() } val tags = doc.select("li.iifo").map { it.select("span.z-s-i").text()+" "+it.select("h8").text() }