Fix: Usage of direct urls instead of pahe.win

This commit is contained in:
KR 2021-08-25 18:39:42 +05:45 committed by GitHub
parent efa95ddbe6
commit 22cc82db99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,6 +66,7 @@ class AnimePaheProvider : MainAPI() {
@JsonProperty("episode") val episode: Int, @JsonProperty("episode") val episode: Int,
@JsonProperty("snapshot") val snapshot: String, @JsonProperty("snapshot") val snapshot: String,
@JsonProperty("created_at") val createdAt: String, @JsonProperty("created_at") val createdAt: String,
@JsonProperty("anime_session") val animeSession: String,
) )
data class AnimePaheLatestReleases( data class AnimePaheLatestReleases(
@ -85,7 +86,7 @@ class AnimePaheProvider : MainAPI() {
AnimeSearchResponse( AnimeSearchResponse(
it.animeTitle, it.animeTitle,
"https://pahe.win/a/${it.animeId}", "https://animepahe.com/anime/${it.animeSession}",
this.name, this.name,
TvType.Anime, TvType.Anime,
it.snapshot, it.snapshot,
@ -137,7 +138,7 @@ class AnimePaheProvider : MainAPI() {
return ArrayList(data.data.map { return ArrayList(data.data.map {
AnimeSearchResponse( AnimeSearchResponse(
it.title, it.title,
"https://pahe.win/a/${it.id}", "https://animepahe.com/anime/${it.session}",
this.name, this.name,
TvType.Anime, TvType.Anime,
it.poster, it.poster,