Private GIT

Skip to content
Snippets Groups Projects
Commit 006163bd authored by Ruud's avatar Ruud
Browse files

Don't show error when thetvdb failes

parent de6d686f
Branches
Tags
No related merge requests found
...@@ -288,8 +288,8 @@ class MoviePlugin(Plugin): ...@@ -288,8 +288,8 @@ class MoviePlugin(Plugin):
else: else:
try: try:
url = 'http://thetvdb.com/api/GetSeriesByRemoteID.php?imdbid=%s' % params.get('identifier') url = 'http://thetvdb.com/api/GetSeriesByRemoteID.php?imdbid=%s' % params.get('identifier')
tvdb = self.getCache('thetvdb.%s' % params.get('identifier'), url = url) tvdb = self.getCache('thetvdb.%s' % params.get('identifier'), url = url, show_error = False)
if 'series' in tvdb.lower(): if tvdb and 'series' in tvdb.lower():
msg = 'Can\'t add movie, seems to be a TV show.' msg = 'Can\'t add movie, seems to be a TV show.'
log.error(msg) log.error(msg)
fireEvent('notify.frontend', type = 'movie.is_tvshow', message = msg) fireEvent('notify.frontend', type = 'movie.is_tvshow', message = msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment