mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 10:46:11 +00:00
Fix ratio poster
1000*1500 Should be correct with and without cover art.
This commit is contained in:
parent
58ab6432f6
commit
0dc19eb87f
1 changed files with 7 additions and 3 deletions
|
@ -373,9 +373,14 @@ class API():
|
||||||
query = ""
|
query = ""
|
||||||
height = "10000"
|
height = "10000"
|
||||||
width = "10000"
|
width = "10000"
|
||||||
|
dimensions = ""
|
||||||
played = "0"
|
played = "0"
|
||||||
totalbackdrops = 0
|
totalbackdrops = 0
|
||||||
|
|
||||||
|
# Force ratio
|
||||||
|
if type == "Primary":
|
||||||
|
dimensions = "&Width=1000&Height=1500"
|
||||||
|
|
||||||
if originalType =="BackdropNoIndicators" and index == "0" and data.get("BackdropImageTags") != None:
|
if originalType =="BackdropNoIndicators" and index == "0" and data.get("BackdropImageTags") != None:
|
||||||
totalbackdrops = len(data.get("BackdropImageTags"))
|
totalbackdrops = len(data.get("BackdropImageTags"))
|
||||||
if totalbackdrops != 0:
|
if totalbackdrops != 0:
|
||||||
|
@ -392,8 +397,7 @@ class API():
|
||||||
if imageTag == None:
|
if imageTag == None:
|
||||||
imageTag = "e3ab56fe27d389446754d0fb04910a34"
|
imageTag = "e3ab56fe27d389446754d0fb04910a34"
|
||||||
|
|
||||||
artwork = "%s/mediabrowser/Items/%s/Images/%s/%s?MaxWidth=%s&MaxHeight=%s&Format=original&Tag=%s%s" % (server, id, type, index, width, height, imageTag, query)
|
artwork = "%s/mediabrowser/Items/%s/Images/%s/%s?MaxWidth=%s&MaxHeight=%s%s&Format=original&Tag=%s%s" % (server, id, type, index, width, height, dimensions, imageTag, query)
|
||||||
#artwork = "%s/mediabrowser/Items/%s/Images/%s/%s/%s/original/%s/%s/%s?%s" % (server, id, type, index, imageTag, width, height, played, query) <- broken
|
|
||||||
if addonSettings.getSetting('disableCoverArt')=='true':
|
if addonSettings.getSetting('disableCoverArt')=='true':
|
||||||
artwork = artwork + "&EnableImageEnhancers=false"
|
artwork = artwork + "&EnableImageEnhancers=false"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue