aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/imggaming.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/imggaming.py')
-rw-r--r--hypervideo_dl/extractor/imggaming.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/hypervideo_dl/extractor/imggaming.py b/hypervideo_dl/extractor/imggaming.py
index 8e220fd..a40aa21 100644
--- a/hypervideo_dl/extractor/imggaming.py
+++ b/hypervideo_dl/extractor/imggaming.py
@@ -1,7 +1,7 @@
import json
from .common import InfoExtractor
-from ..compat import compat_HTTPError
+from ..networking.exceptions import HTTPError
from ..utils import (
ExtractorError,
int_or_none,
@@ -52,9 +52,9 @@ class ImgGamingBaseIE(InfoExtractor):
return self._call_api(
stream_path, media_id)['playerUrlCallback']
except ExtractorError as e:
- if isinstance(e.cause, compat_HTTPError) and e.cause.code == 403:
+ if isinstance(e.cause, HTTPError) and e.cause.status == 403:
raise ExtractorError(
- self._parse_json(e.cause.read().decode(), media_id)['messages'][0],
+ self._parse_json(e.cause.response.read().decode(), media_id)['messages'][0],
expected=True)
raise