Commit 9763fa5b authored by echel0n's avatar echel0n

Fixed issue with image_type string being stripped improperly

parent d56b80eb
......@@ -627,8 +627,8 @@ class GenericMetadata(object):
image_types = {
'{}'.format(image_type): {
'indexer': lambda: t.images(show_obj.indexer_id, key_type=image_type.strip('_thumb'))[which][('filename', 'thumbnail')[image_thumb]],
'fanart': lambda: self._retrieve_show_images_from_fanart(show_obj, image_type.strip('_thumb'), image_thumb)
'indexer': lambda: t.images(show_obj.indexer_id, key_type=image_type.replace('_thumb', ''))[which][('filename', 'thumbnail')[image_thumb]],
'fanart': lambda: self._retrieve_show_images_from_fanart(show_obj, image_type.replace('_thumb', ''), image_thumb)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment