forked from recloudstream/cloudstream
Merge pull request #28 from justfoolingaround/patch-1
Usage of direct urls instead of `pahe.win`
This commit is contained in:
commit
7cfb19c39b
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue