Revert "Fix external subtitles"

This reverts commit 1ca4ef48f5.
This commit is contained in:
angelblue05 2016-10-30 10:27:09 -05:00
parent 5afeeed62c
commit 348db57cee

View file

@ -276,7 +276,7 @@ class PlaybackUtils():
externalsubs.append(path) externalsubs.append(path)
except Exception as e: except Exception as e:
log.error(e) log.error(e)
externalsubs.append(url) continue
else: else:
externalsubs.append(url) externalsubs.append(url)
@ -298,11 +298,12 @@ class PlaybackUtils():
try: try:
response = requests.get(src, stream=True) response = requests.get(src, stream=True)
response.encoding = 'utf-8'
response.raise_for_status() response.raise_for_status()
except Exception: except Exception as e:
del response
raise raise
else: else:
response.encoding = 'utf-8'
with open(path, 'wb') as f: with open(path, 'wb') as f:
f.write(response.content) f.write(response.content)
del response del response