Merge pull request #28 from justfoolingaround/patch-1

Usage of direct urls instead of `pahe.win`
This commit is contained in:
Osten 2021-08-25 13:35:13 +00:00 committed by GitHub
commit 7cfb19c39b
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("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,