diff --git a/resources/lib/playbackutils.py b/resources/lib/playbackutils.py index 24fa9b51..1eb86474 100644 --- a/resources/lib/playbackutils.py +++ b/resources/lib/playbackutils.py @@ -276,7 +276,7 @@ class PlaybackUtils(): externalsubs.append(path) except Exception as e: log.error(e) - continue + externalsubs.append(url) else: externalsubs.append(url) @@ -298,12 +298,11 @@ class PlaybackUtils(): try: response = requests.get(src, stream=True) - response.encoding = 'utf-8' response.raise_for_status() - except Exception as e: - del response + except Exception: raise else: + response.encoding = 'utf-8' with open(path, 'wb') as f: f.write(response.content) del response