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 // use an integer for version numbers
version = 2 version = 3
cloudstream { cloudstream {

View file

@ -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,8 +113,8 @@ 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
return if (tvType == TvType.Anime || tvType == TvType.OVA) { return if (tvType == TvType.Anime || tvType == TvType.OVA) {
@ -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
} }
} }