Fix KeyError for library sync

This commit is contained in:
tomkat83 2016-03-14 09:56:04 +01:00
parent 872f17851f
commit c2f1bca6c2

View file

@ -2092,7 +2092,7 @@ class API():
allartworks['Backdrop'].append(background)
if not allartworks['Primary']:
primary = item['parentThumb']
primary = item.get('parentThumb')
if primary:
primary = "%s%s" % (self.server, primary)
primary = self.addPlexCredentialsToUrl(primary)