From 91b3b01926beedb22738467fb46cbe3f12d3bbd7 Mon Sep 17 00:00:00 2001 From: Lazycoder Date: Wed, 24 Aug 2022 16:20:05 +0200 Subject: [PATCH] add more categories --- .../src/main/kotlin/com/movizland/MovizlandProvider.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/MovizlandProvider/src/main/kotlin/com/movizland/MovizlandProvider.kt b/MovizlandProvider/src/main/kotlin/com/movizland/MovizlandProvider.kt index dd90356..02df1d1 100644 --- a/MovizlandProvider/src/main/kotlin/com/movizland/MovizlandProvider.kt +++ b/MovizlandProvider/src/main/kotlin/com/movizland/MovizlandProvider.kt @@ -43,7 +43,7 @@ class Movizland : MainAPI() { title, url.select("a").attr("href"), this@Movizland.name, - if(url.select("div.BlockTitle").text().contains("فيلم")) TvType.Movie else TvType.TvSeries, + TvType.Movie, posterUrl, year, null, @@ -53,12 +53,14 @@ class Movizland : MainAPI() { } override val mainPage = mainPageOf( "$mainUrl/category/movies/page/" to "Movies", - "$mainUrl/quality/4K/page/" to "4K", - "$mainUrl/quality/1080p-bluray/page/" to "Bluray", "$mainUrl/category/movies/anime/page/" to "Animation", + "$mainUrl/category/movies/arab/page/" to "Arab", + "$mainUrl/category/movies/asia/page/" to "Asia", "$mainUrl/category/movies/documentary/page/" to "Documentary", - "$mainUrl/category/movies/netflix/page/" to "Netflix", "$mainUrl/category/movies/foreign/page/" to "Foreign", + "$mainUrl/category/movies/india/page/" to "India", + "$mainUrl/category/movies/netflix/page/" to "Netflix", + "$mainUrl/category/movies/turkey/page/" to "Turkey", ) override suspend fun getMainPage(page: Int, request : MainPageRequest): HomePageResponse {