Browse Source

improve handling allflicks errors

pull/7126/head
geogolem 8 years ago
parent
commit
acdfba673a
  1. 4
      couchpotato/core/media/movie/providers/info/couchpotatoapi.py

4
couchpotato/core/media/movie/providers/info/couchpotatoapi.py

@ -251,7 +251,7 @@ class CouchPotatoApi(MovieProvider):
log.debug('-------------->querying Allflicks for title: %s' %title)
try:
sock=urllib.urlopen("https://allflicks.net")
htmlSource=sock.read()
sock.close()
@ -295,6 +295,8 @@ class CouchPotatoApi(MovieProvider):
ndate=int(time.mktime(time.strptime(result['available'],p)))
dates['netflix']=ndate
start=start+length
except:
log.debug('---------------------->Problem querying allflicks for title: %s', title)
return dates

Loading…
Cancel
Save