mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix arguments
This commit is contained in:
parent
48fbce2211
commit
924c3a4a05
1 changed files with 12 additions and 12 deletions
|
@ -356,10 +356,10 @@ class Artwork():
|
||||||
index = ""
|
index = ""
|
||||||
for backdrop in backdrops:
|
for backdrop in backdrops:
|
||||||
self.addOrUpdateArt(
|
self.addOrUpdateArt(
|
||||||
image_url=backdrop,
|
imageUrl=backdrop,
|
||||||
kodi_id=kodiId,
|
kodiId=kodiId,
|
||||||
media_type=mediaType,
|
mediaType=mediaType,
|
||||||
image_type="%s%s" % ("fanart", index),
|
imageType="%s%s" % ("fanart", index),
|
||||||
cursor=cursor)
|
cursor=cursor)
|
||||||
|
|
||||||
if backdropsNumber > 1:
|
if backdropsNumber > 1:
|
||||||
|
@ -372,19 +372,19 @@ class Artwork():
|
||||||
# Primary art is processed as thumb and poster for Kodi.
|
# Primary art is processed as thumb and poster for Kodi.
|
||||||
for artType in kodiart[art]:
|
for artType in kodiart[art]:
|
||||||
self.addOrUpdateArt(
|
self.addOrUpdateArt(
|
||||||
image_url=artwork[art],
|
imageUrl=artwork[art],
|
||||||
kodi_id=kodiId,
|
kodiId=kodiId,
|
||||||
media_type=mediaType,
|
mediaType=mediaType,
|
||||||
image_type=artType,
|
imageType=artType,
|
||||||
cursor=cursor)
|
cursor=cursor)
|
||||||
|
|
||||||
elif kodiart.get(art):
|
elif kodiart.get(art):
|
||||||
# Process the rest artwork type that Kodi can use
|
# Process the rest artwork type that Kodi can use
|
||||||
self.addOrUpdateArt(
|
self.addOrUpdateArt(
|
||||||
image_url=artwork[art],
|
imageUrl=artwork[art],
|
||||||
kodi_id=kodiId,
|
kodiId=kodiId,
|
||||||
media_type=mediaType,
|
mediaType=mediaType,
|
||||||
image_type=kodiart[art],
|
imageType=kodiart[art],
|
||||||
cursor=cursor)
|
cursor=cursor)
|
||||||
|
|
||||||
def addOrUpdateArt(self, imageUrl, kodiId, mediaType, imageType, cursor):
|
def addOrUpdateArt(self, imageUrl, kodiId, mediaType, imageType, cursor):
|
||||||
|
|
Loading…
Reference in a new issue