animeua: add engTitle
This commit is contained in:
parent
6955a3e4ef
commit
ea25ce6970
2 changed files with 5 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
// use an integer for version numbers
|
// use an integer for version numbers
|
||||||
version = 2
|
version = 3
|
||||||
|
|
||||||
|
|
||||||
cloudstream {
|
cloudstream {
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package com.lagradost
|
package com.lagradost
|
||||||
|
|
||||||
import android.util.Log
|
|
||||||
import com.lagradost.models.PlayerJson
|
import com.lagradost.models.PlayerJson
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addAniListId
|
import com.lagradost.cloudstream3.LoadResponse.Companion.addAniListId
|
||||||
|
@ -114,7 +113,7 @@ class AnimeUAProvider : MainAPI() {
|
||||||
}
|
}
|
||||||
|
|
||||||
val (malId, anilistId, image, cover) = Tracker().getTracker(engTitle, "TV", year)
|
val (malId, anilistId, image, cover) = Tracker().getTracker(engTitle, "TV", year)
|
||||||
Log.d("load-debug", engTitle)
|
// Log.d("load-debug", engTitle)
|
||||||
// Log.d("load-debug", anilistId!!)
|
// Log.d("load-debug", anilistId!!)
|
||||||
// Return to app
|
// Return to app
|
||||||
// Parse Episodes as Series
|
// Parse Episodes as Series
|
||||||
|
@ -141,10 +140,10 @@ class AnimeUAProvider : MainAPI() {
|
||||||
}
|
}
|
||||||
newAnimeLoadResponse(title, url, tvType) {
|
newAnimeLoadResponse(title, url, tvType) {
|
||||||
this.posterUrl = poster
|
this.posterUrl = poster
|
||||||
|
this.engName = engTitle
|
||||||
this.year = year
|
this.year = year
|
||||||
this.plot = description
|
this.plot = description
|
||||||
this.tags = tags
|
this.tags = tags
|
||||||
this.rating = rating
|
|
||||||
this.recommendations = recommendations
|
this.recommendations = recommendations
|
||||||
addEpisodes(DubStatus.Dubbed, episodes)
|
addEpisodes(DubStatus.Dubbed, episodes)
|
||||||
addMalId(malId)
|
addMalId(malId)
|
||||||
|
@ -153,10 +152,10 @@ class AnimeUAProvider : MainAPI() {
|
||||||
} else { // Parse as Movie.
|
} else { // Parse as Movie.
|
||||||
newMovieLoadResponse(title, url, tvType, "$title, $playerUrl") {
|
newMovieLoadResponse(title, url, tvType, "$title, $playerUrl") {
|
||||||
this.posterUrl = poster
|
this.posterUrl = poster
|
||||||
|
this.name = engTitle
|
||||||
this.year = year
|
this.year = year
|
||||||
this.plot = description
|
this.plot = description
|
||||||
this.tags = tags
|
this.tags = tags
|
||||||
this.rating = rating
|
|
||||||
this.recommendations = recommendations
|
this.recommendations = recommendations
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue