Fix AttributeError: __exit__

This commit is contained in:
croneter 2018-11-03 17:04:24 +01:00
parent 2d0869b589
commit b3eeabc9ad

View file

@ -107,7 +107,7 @@ def process_fanart(plex_id, plex_type, refresh=False):
artworks = api.artwork() artworks = api.artwork()
# Get additional missing artwork from fanart artwork sites # Get additional missing artwork from fanart artwork sites
artworks = api.fanart_artwork(artworks) artworks = api.fanart_artwork(artworks)
with itemtypes.ITEMTYPE_FROM_PLEXTYPE[plex_type] as context: with itemtypes.ITEMTYPE_FROM_PLEXTYPE[plex_type](None) as context:
context.set_fanart(artworks, context.set_fanart(artworks,
db_item['kodi_id'], db_item['kodi_id'],
db_item['kodi_type']) db_item['kodi_type'])