From 601040fd7eb9b7089a8b1ed31e6759c6f2b58c9d Mon Sep 17 00:00:00 2001 From: Lazycoder Date: Fri, 9 Sep 2022 00:10:02 +0200 Subject: [PATCH] Some adjustments --- .../kotlin/com/fushaar/FushaarProvider.kt | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt b/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt index cfdef97..f10ce88 100644 --- a/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt +++ b/FushaarProvider/src/main/kotlin/com/fushaar/FushaarProvider.kt @@ -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() }