parent
ec140d162a
commit
4352e06ecc
1 changed files with 8 additions and 9 deletions
|
@ -1806,15 +1806,14 @@ class API():
|
||||||
}
|
}
|
||||||
|
|
||||||
def __getOneArtwork(self, entry):
|
def __getOneArtwork(self, entry):
|
||||||
try:
|
if entry not in self.item.attrib:
|
||||||
artwork = self.item.attrib[entry]
|
return ''
|
||||||
if artwork.startswith('http'):
|
artwork = self.item.attrib[entry]
|
||||||
pass
|
if artwork.startswith('http'):
|
||||||
else:
|
pass
|
||||||
artwork = "%s%s" % (self.server, artwork)
|
else:
|
||||||
artwork = self.addPlexCredentialsToUrl(artwork)
|
artwork = self.addPlexCredentialsToUrl(
|
||||||
except KeyError:
|
"%s/photo/:/transcode?width=4000&height=4000&minSize=1&upscale=0&url=%s" % (self.server, artwork))
|
||||||
artwork = ""
|
|
||||||
return artwork
|
return artwork
|
||||||
|
|
||||||
def getAllArtwork(self, parentInfo=False):
|
def getAllArtwork(self, parentInfo=False):
|
||||||
|
|
Loading…
Reference in a new issue