Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update app/lib/provider/yarr/sources/x264.py

  • Loading branch information...
commit 9c019d8b17f30343ff8646431562c24d84c2eb5a 1 parent ace92a3
@stourwalk authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 app/lib/provider/yarr/sources/x264.py
View
7 app/lib/provider/yarr/sources/x264.py
@@ -34,7 +34,12 @@ def find(self, movie, quality, type):
url = self.searchUrl % quote_plus(self.toSearchString(movie.name + ' ' + quality))
log.info('Searching: %s' % url)
- data = urllib.urlopen(url)
+
+ try:
+ data = urllib2.urlopen(url, timeout = self.timeout).read()
+ except (IOError, URLError):
+ log.error('Failed to open %s.' % url )
+ return results
try:
tables = SoupStrainer('table')
Please sign in to comment.
Something went wrong with that request. Please try again.