aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-05-02 10:46:29 +0100
committerRemita Amine <remitamine@gmail.com>2019-05-02 10:46:29 +0100
commite0dde1d8e28cee673e4362a4141a21326937999d (patch)
tree708843c81c36045135c24777110f16c17978e5d7 /youtube_dl/extractor
parent62d10f0d325cf925855f5720163799298fe688dc (diff)
[fox] fix Uplynk PrePlay error handling under python 2(#20925)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/fox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/fox.py b/youtube_dl/extractor/fox.py
index f1fbaa0fc..04f4bdba6 100644
--- a/youtube_dl/extractor/fox.py
+++ b/youtube_dl/extractor/fox.py
@@ -100,7 +100,7 @@ class FOXIE(AdobePassIE):
try:
m3u8_url = self._download_json(release_url, video_id)['playURL']
except ExtractorError as e:
- if isinstance(e.cause, compat_HTTPError) and e.cause.status == 403:
+ if isinstance(e.cause, compat_HTTPError) and e.cause.code == 403:
error = self._parse_json(e.cause.read().decode(), video_id)
if error.get('exception') == 'GeoLocationBlocked':
self.raise_geo_restricted(countries=['US'])