Fix animedetails (#1172)
This commit is contained in:
@ -5,7 +5,7 @@ ext {
|
|||||||
extName = 'Jellyfin'
|
extName = 'Jellyfin'
|
||||||
pkgNameSuffix = 'all.jellyfin'
|
pkgNameSuffix = 'all.jellyfin'
|
||||||
extClass = '.Jellyfin'
|
extClass = '.Jellyfin'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
libVersion = '13'
|
libVersion = '13'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -453,13 +453,16 @@ class Jellyfin : ConfigurableAnimeSource, AnimeHttpSource() {
|
|||||||
if (item["ImageTags"].toString() == "{}") {
|
if (item["ImageTags"].toString() == "{}") {
|
||||||
anime.thumbnail_url = "$baseUrl/Items/$seriesId/Images/Primary?api_key=$apiKey"
|
anime.thumbnail_url = "$baseUrl/Items/$seriesId/Images/Primary?api_key=$apiKey"
|
||||||
}
|
}
|
||||||
} else if (item["Type"]!!.jsonPrimitive.content == "Movie") {
|
} else if (item["Type"]!!.jsonPrimitive.content == "Movie" || item["Type"]!!.jsonPrimitive.content == "Series") {
|
||||||
val id = item["Id"]!!.jsonPrimitive.content
|
val id = item["Id"]!!.jsonPrimitive.content
|
||||||
|
|
||||||
anime.title = item["Name"]!!.jsonPrimitive.content
|
anime.title = item["Name"]!!.jsonPrimitive.content
|
||||||
anime.thumbnail_url = "$baseUrl/Items/$id/Images/Primary?api_key=$apiKey"
|
anime.thumbnail_url = "$baseUrl/Items/$id/Images/Primary?api_key=$apiKey"
|
||||||
|
|
||||||
anime.setUrlWithoutDomain("/Users/$userId/Items/$id?api_key=$apiKey")
|
anime.setUrlWithoutDomain("/Users/$userId/Items/$id?api_key=$apiKey")
|
||||||
|
} else {
|
||||||
|
anime.title = ""
|
||||||
|
anime.thumbnail_url = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
return anime
|
return anime
|
||||||
|
Reference in New Issue
Block a user