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
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package com.lagradost
|
||||
|
||||
import android.util.Log
|
||||
import com.lagradost.models.PlayerJson
|
||||
import com.lagradost.cloudstream3.*
|
||||
import com.lagradost.cloudstream3.LoadResponse.Companion.addAniListId
|
||||
|
@ -114,8 +113,8 @@ class AnimeUAProvider : MainAPI() {
|
|||
}
|
||||
|
||||
val (malId, anilistId, image, cover) = Tracker().getTracker(engTitle, "TV", year)
|
||||
Log.d("load-debug", engTitle)
|
||||
//Log.d("load-debug", anilistId!!)
|
||||
// Log.d("load-debug", engTitle)
|
||||
// Log.d("load-debug", anilistId!!)
|
||||
// Return to app
|
||||
// Parse Episodes as Series
|
||||
return if (tvType == TvType.Anime || tvType == TvType.OVA) {
|
||||
|
@ -141,10 +140,10 @@ class AnimeUAProvider : MainAPI() {
|
|||
}
|
||||
newAnimeLoadResponse(title, url, tvType) {
|
||||
this.posterUrl = poster
|
||||
this.engName = engTitle
|
||||
this.year = year
|
||||
this.plot = description
|
||||
this.tags = tags
|
||||
this.rating = rating
|
||||
this.recommendations = recommendations
|
||||
addEpisodes(DubStatus.Dubbed, episodes)
|
||||
addMalId(malId)
|
||||
|
@ -153,10 +152,10 @@ class AnimeUAProvider : MainAPI() {
|
|||
} else { // Parse as Movie.
|
||||
newMovieLoadResponse(title, url, tvType, "$title, $playerUrl") {
|
||||
this.posterUrl = poster
|
||||
this.name = engTitle
|
||||
this.year = year
|
||||
this.plot = description
|
||||
this.tags = tags
|
||||
this.rating = rating
|
||||
this.recommendations = recommendations
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue