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

@ -39,29 +39,29 @@ class Fushaar : MainAPI() {
}
override val mainPage = mainPageOf(
"$mainUrl/page/" to "Movies|أفلام",
"$mainUrl/gerne/action/page/" to "Action|إثارة",
"$mainUrl/gerne/adventure/page/" to "Adventure|مغامرة",
"$mainUrl/gerne/animation/page/" to "Animation|أنيمايشن",
"$mainUrl/gerne/biography/page/" to "Biography|سيرة",
"$mainUrl/gerne/comedy/page/" to "Comedy|كوميديا",
"$mainUrl/gerne/crime/page/" to "Crime|جريمة",
"$mainUrl/gerne/documentary/page/" to "Documentary|وثائقي",
"$mainUrl/gerne/drama/page/" to "Drama|دراما",
"$mainUrl/gerne/family/page/" to "Family|عائلي",
"$mainUrl/gerne/fantasy/page/" to "Fantasy|فنتازيا",
"$mainUrl/gerne/herror/page/" to "Herror|رعب",
"$mainUrl/gerne/history/page/" to "History|تاريخي",
"$mainUrl/gerne/music/page/" to "Music|موسيقى",
"$mainUrl/gerne/musical/page/" to "Musical|موسيقي",
"$mainUrl/gerne/mystery/page/" to "Mystery|غموض",
"$mainUrl/gerne/romance/page/" to "Romance|رومنسي",
"$mainUrl/gerne/sci-fi/page/" to "Sci-fi|خيال علمي",
"$mainUrl/gerne/short/page/" to "Short|قصير",
"$mainUrl/gerne/sport/page/" to "Sport|رياضة",
"$mainUrl/gerne/thriller/page/" to "Thriller|روائي",
"$mainUrl/gerne/war/page/" to "War|حرب",
"$mainUrl/gerne/western/page/" to "Western|غربي",
"$mainUrl/page/" to "Movies | أفلام",
"$mainUrl/gerne/action/page/" to "Action | أكشن",
"$mainUrl/gerne/adventure/page/" to "Adventure | مغامرة",
"$mainUrl/gerne/animation/page/" to "Animation | أنيمايشن",
"$mainUrl/gerne/biography/page/" to "Biography | سيرة",
"$mainUrl/gerne/comedy/page/" to "Comedy | كوميديا",
"$mainUrl/gerne/crime/page/" to "Crime | جريمة",
"$mainUrl/gerne/documentary/page/" to "Documentary | وثائقي",
"$mainUrl/gerne/drama/page/" to "Drama | دراما",
"$mainUrl/gerne/family/page/" to "Family | عائلي",
"$mainUrl/gerne/fantasy/page/" to "Fantasy | فنتازيا",
"$mainUrl/gerne/herror/page/" to "Herror | رعب",
"$mainUrl/gerne/history/page/" to "History |تاريخي",
"$mainUrl/gerne/music/page/" to "Music | موسيقى",
"$mainUrl/gerne/musical/page/" to "Musical | موسيقي",
"$mainUrl/gerne/mystery/page/" to "Mystery | غموض",
"$mainUrl/gerne/romance/page/" to "Romance | رومنسي",
"$mainUrl/gerne/sci-fi/page/" to "Sci-fi | خيال علمي",
"$mainUrl/gerne/short/page/" to "Short | قصير",
"$mainUrl/gerne/sport/page/" to "Sport | رياضة",
"$mainUrl/gerne/thriller/page/" to "Thriller | إثارة",
"$mainUrl/gerne/war/page/" to "War | حرب",
"$mainUrl/gerne/western/page/" to "Western | غربي",
)
override suspend fun getMainPage(page: Int, request : MainPageRequest): HomePageResponse {
@ -84,7 +84,7 @@ class Fushaar : MainAPI() {
var doc = app.get(url).document
val posterUrl = doc.select("figure.poster noscript img").attr("src")
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 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() }