From 69852f9e5b8e8b0a8cabecadbe847433233dad6c Mon Sep 17 00:00:00 2001 From: Suraj <29368267+geekboysuraj@users.noreply.github.com> Date: Thu, 13 Jul 2023 11:57:38 +0530 Subject: [PATCH 1/2] Updated movierulzhd URL (#176) * updated Movierulez URL * Updated movierulzHd URL * Update Movierulzhd URL --- Movierulzhd/build.gradle.kts | 2 +- Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Movierulzhd/build.gradle.kts b/Movierulzhd/build.gradle.kts index e25e9c0e..1d596ef2 100644 --- a/Movierulzhd/build.gradle.kts +++ b/Movierulzhd/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 36 +version = 37 cloudstream { diff --git a/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt b/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt index 26bc47d1..263375b7 100644 --- a/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt +++ b/Movierulzhd/src/main/kotlin/com/hexated/Movierulzhd.kt @@ -12,7 +12,7 @@ import org.jsoup.nodes.Element import java.net.URI class Movierulzhd : MainAPI() { - override var mainUrl = "https://movierulzhd.trade" + override var mainUrl = "https://movierulzhd.help" private var directUrl = mainUrl override var name = "Movierulzhd" override val hasMainPage = true From a4714873944996744da6d691bf88a5d89d570e84 Mon Sep 17 00:00:00 2001 From: tuan041 <30403510+tuan041@users.noreply.github.com> Date: Thu, 13 Jul 2023 13:27:48 +0700 Subject: [PATCH 2/2] Fix Tocanime (#178) * bump * fix --- TocanimeProvider/build.gradle.kts | 6 +- .../kotlin/com/hexated/TocanimeProvider.kt | 60 ++++++------------- 2 files changed, 21 insertions(+), 45 deletions(-) diff --git a/TocanimeProvider/build.gradle.kts b/TocanimeProvider/build.gradle.kts index d7be42c7..dd3551a8 100644 --- a/TocanimeProvider/build.gradle.kts +++ b/TocanimeProvider/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 1 +version = 2 cloudstream { @@ -7,7 +7,7 @@ cloudstream { // All of these properties are optional, you can safely remove them // description = "Lorem Ipsum" - authors = listOf("Hexated") + authors = listOf("Hexated, TuaSan") /** * Status int as the following: @@ -24,4 +24,4 @@ cloudstream { ) iconUrl = "https://www.google.com/s2/favicons?domain=tocanime.co&sz=%size%" -} \ No newline at end of file +} diff --git a/TocanimeProvider/src/main/kotlin/com/hexated/TocanimeProvider.kt b/TocanimeProvider/src/main/kotlin/com/hexated/TocanimeProvider.kt index 90a0f590..96728eda 100644 --- a/TocanimeProvider/src/main/kotlin/com/hexated/TocanimeProvider.kt +++ b/TocanimeProvider/src/main/kotlin/com/hexated/TocanimeProvider.kt @@ -29,14 +29,6 @@ class TocanimeProvider : MainAPI() { else -> TvType.Anime } } - - fun getStatus(t: String): ShowStatus { - return when (t) { - "Đã hoàn thành" -> ShowStatus.Completed - "Chưa hoàn thành" -> ShowStatus.Ongoing - else -> ShowStatus.Completed - } - } } override suspend fun getMainPage(page: Int, request : MainPageRequest): HomePageResponse { @@ -51,7 +43,6 @@ class TocanimeProvider : MainAPI() { } if (items.isNotEmpty()) homePageList.add(HomePageList(header, items)) } - return HomePageResponse(homePageList) } @@ -71,43 +62,38 @@ class TocanimeProvider : MainAPI() { this.posterUrl = posterUrl addSub(epNum) } - } override suspend fun search(query: String): List { val document = app.get("$mainUrl/content/search?t=kw&q=$query").document - return document.select("div.col-lg-3.col-md-4.col-6").map { it.toSearchResult() } - } override suspend fun load(url: String): LoadResponse? { val document = app.get(url).document val title = document.selectFirst("h1.title")?.text() ?: return null - val type = - if (document.select("div.me-list.scroller a").size == 1) TvType.AnimeMovie else TvType.Anime - val episodes = document.select("div.me-list.scroller a").mapNotNull { - Episode(fixUrl(it.attr("href")), it.text()) - }.reversed() + val poster = fixUrlNull(document.selectFirst("img.mb20")?.attr("data-original")) val trailer = document.selectFirst("div#trailer script")?.data()?.substringAfter("