diff --git a/sickbeard/metadata/generic.py b/sickbeard/metadata/generic.py index d32f612a..a1392759 100644 --- a/sickbeard/metadata/generic.py +++ b/sickbeard/metadata/generic.py @@ -991,7 +991,7 @@ class GenericMetadata(): search = tmdb.Search() for show_name in set(allPossibleShowNames(show)): for result in search.collection({'query': show_name})['results'] + search.tv({'query': show_name})['results']: - if result[types[type]]: + if types[type] and getattr(result, types[type]): return "{0}{1}{2}".format(base_url, max_size, result[types[type]]) except Exception as e: