Don't check imdb if no .nfo found

This commit is contained in:
Ruud
2012-01-01 13:05:15 +01:00
parent c604ffe3c8
commit 213f1cd1d7
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -263,9 +263,9 @@ class Searcher(Plugin):
nfo = self.getCache(cache_key)
if not nfo:
try:
nfo = self.urlopen('http://www.srrdb.com/showfile.php?release=%s' % check_name)
nfo = self.urlopen('http://www.srrdb.com/showfile.php?release=%s' % check_name, show_error = False)
self.setCache(cache_key, nfo)
except:
pass
return getImdb(nfo) == imdb_id
return nfo and getImdb(nfo) == imdb_id