mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Update generic.py
Fix for invalid key when looking for _banners
This commit is contained in:
parent
aa8667106f
commit
11f9a891f0
1 changed files with 5 additions and 2 deletions
|
@ -800,7 +800,10 @@ class GenericMetadata():
|
|||
return result
|
||||
|
||||
# if we have no season banners then just finish
|
||||
if getattr(indexer_show_obj, '_banners', None) is None or 'season' not in indexer_show_obj['_banners'] or 'season' not in indexer_show_obj['_banners']['season']:
|
||||
if getattr(indexer_show_obj, '_banners', None) is None:
|
||||
return result
|
||||
|
||||
if 'season' not in indexer_show_obj['_banners'] or 'season' not in indexer_show_obj['_banners']['season']:
|
||||
return result
|
||||
|
||||
# Give us just the normal poster-style season graphics
|
||||
|
@ -965,4 +968,4 @@ class GenericMetadata():
|
|||
url = "{0}{1}{2}".format(base_url, max_size, rel_path)
|
||||
return url
|
||||
|
||||
return None
|
||||
return None
|
||||
|
|
Loading…
Reference in a new issue