From 22cc82db99c074ee9f95a431b5795ce24503dd18 Mon Sep 17 00:00:00 2001 From: KR <79979949+justfoolingaround@users.noreply.github.com> Date: Wed, 25 Aug 2021 18:39:42 +0545 Subject: [PATCH] Fix: Usage of direct urls instead of `pahe.win` --- .../cloudstream3/animeproviders/AnimePaheProvider.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/animeproviders/AnimePaheProvider.kt b/app/src/main/java/com/lagradost/cloudstream3/animeproviders/AnimePaheProvider.kt index 315e42db..0279425e 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/animeproviders/AnimePaheProvider.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/animeproviders/AnimePaheProvider.kt @@ -66,6 +66,7 @@ class AnimePaheProvider : MainAPI() { @JsonProperty("episode") val episode: Int, @JsonProperty("snapshot") val snapshot: String, @JsonProperty("created_at") val createdAt: String, + @JsonProperty("anime_session") val animeSession: String, ) data class AnimePaheLatestReleases( @@ -85,7 +86,7 @@ class AnimePaheProvider : MainAPI() { AnimeSearchResponse( it.animeTitle, - "https://pahe.win/a/${it.animeId}", + "https://animepahe.com/anime/${it.animeSession}", this.name, TvType.Anime, it.snapshot, @@ -137,7 +138,7 @@ class AnimePaheProvider : MainAPI() { return ArrayList(data.data.map { AnimeSearchResponse( it.title, - "https://pahe.win/a/${it.id}", + "https://animepahe.com/anime/${it.session}", this.name, TvType.Anime, it.poster,