Urlopen try,except fixes

This commit is contained in:
Ruud committed 2011-11-11 15:47:57 +01:00
1 parent 0420bdeec5
commit 668b95353f
19 files changed
+116 -133

No files matched your search

+5 -2
View File
@@ -261,7 +261,10 @@ class Searcher(Plugin):
nfo = self.getCache(cache_key)
if not nfo:
nfo = self.urlopen('http://www.srrdb.com/showfile.php?release=%s' % check_name)
self.setCache(cache_key, nfo)
try:
nfo = self.urlopen('http://www.srrdb.com/showfile.php?release=%s' % check_name)
self.setCache(cache_key, nfo)
except:
pass
return getImdb(nfo) == imdb_id