projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
274519d
)
[fox] Fix API error handling under python 2 (closes #20925)
author
Sergey M․
<dstftw@gmail.com>
Wed, 1 May 2019 17:36:52 +0000
(
00:36
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 1 May 2019 17:36:52 +0000
(
00:36
+0700)
youtube_dl/extractor/fox.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/fox.py
b/youtube_dl/extractor/fox.py
index f30d3cba8995ee9e439437972ae220032002eb14..f1fbaa0fcd20fa967f5f3db67cd2d422a53583d2 100644
(file)
--- a/
youtube_dl/extractor/fox.py
+++ b/
youtube_dl/extractor/fox.py
@@
-66,7
+66,7
@@
class FOXIE(AdobePassIE):
'https://api2.fox.com/v2.0/' + path,
video_id, data=data, headers=headers)
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:
entitlement_issues = self._parse_json(
e.cause.read().decode(), video_id)['entitlementIssues']
for e in entitlement_issues: