Fix some errors: Item not yet synced
This commit is contained in:
parent
49b75d89c0
commit
48b78fe73f
1 changed files with 4 additions and 3 deletions
|
@ -179,14 +179,15 @@ class Movie(ItemBase):
|
||||||
# Add any sets from Plex collection tags
|
# Add any sets from Plex collection tags
|
||||||
kodi_set_id = self.kodi_db.create_collection(set_name)
|
kodi_set_id = self.kodi_db.create_collection(set_name)
|
||||||
self.kodi_db.assign_collection(kodi_set_id, kodi_id)
|
self.kodi_db.assign_collection(kodi_set_id, kodi_id)
|
||||||
for index, plex_id in collections_match:
|
for index, coll_plex_id in collections_match:
|
||||||
# Get Plex artwork for collections - a pain
|
# Get Plex artwork for collections - a pain
|
||||||
if index == plex_set_id:
|
if index == plex_set_id:
|
||||||
set_xml = PF.GetPlexMetadata(plex_id)
|
set_xml = PF.GetPlexMetadata(coll_plex_id)
|
||||||
try:
|
try:
|
||||||
set_xml.attrib
|
set_xml.attrib
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
LOG.error('Could not get set metadata %s', plex_id)
|
LOG.error('Could not get set metadata %s',
|
||||||
|
coll_plex_id)
|
||||||
continue
|
continue
|
||||||
set_api = API(set_xml[0])
|
set_api = API(set_xml[0])
|
||||||
self.artwork.modify_artwork(set_api.artwork(),
|
self.artwork.modify_artwork(set_api.artwork(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue