Skip to content

Commit

Permalink
Fix: Build issue due to Ultima
Browse files Browse the repository at this point in the history
  • Loading branch information
RowdyRushya committed Aug 18, 2024
1 parent aec06ce commit 242a9c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class MyAnimeList(val plugin: UltimaPlugin) : MainAPI() {
private suspend fun Recommendations.toSearchResponse(): SearchResponse {
val node = this.node ?: throw Exception("Unable to parse Recommendation")
val url = "$mainUrl/${node.id}"
val posterUrl = node.main_picture?.large
val posterUrl = node.mainPicture?.large
val res = newAnimeSearchResponse(node.title, url) { this.posterUrl = posterUrl }
return res
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,7 @@ class Simkl(val plugin: UltimaPlugin) : MainAPI() {
val data =
app.get("$apiUrl/tv/$id?client_id=$auth&extended=full")
.parsedSafe<SimklMediaObject>()
?: api.searchByIds(mapOf(SimklSyncServices.Simkl to id))
?.get(0)
?.toSimklMediaObject()
?: throw ErrorLoadingException("Unable to load data")
?: throw ErrorLoadingException("Unable to load data")
val year = data.year
val posterUrl = getPosterUrl(data.poster ?: "")
return if (data.type.equals("movie")) {
Expand Down

0 comments on commit 242a9c0

Please sign in to comment.