animeua: add engTitle

This commit is contained in:
CakesTwix 2023-08-03 13:27:40 +03:00
parent 6955a3e4ef
commit ea25ce6970
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825
2 changed files with 5 additions and 6 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 2
version = 3
cloudstream {

View file

@ -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,7 +113,7 @@ class AnimeUAProvider : MainAPI() {
}
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!!)
// Return to app
// Parse Episodes as Series
@ -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
}
}