Private GIT

Skip to content
Snippets Groups Projects
Commit 7e8b27fc authored by echel0n's avatar echel0n
Browse files

Small fix in code for TMDB API

parent de1c40db
Branches
Tags
No related merge requests found
...@@ -991,7 +991,7 @@ class GenericMetadata(): ...@@ -991,7 +991,7 @@ class GenericMetadata():
search = tmdb.Search() search = tmdb.Search()
for show_name in set(allPossibleShowNames(show)): for show_name in set(allPossibleShowNames(show)):
for result in search.collection({'query': show_name})['results'] + search.tv({'query': show_name})['results']: 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]]) return "{0}{1}{2}".format(base_url, max_size, result[types[type]])
except Exception as e: except Exception as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment