projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c471b34
)
[eagleplatform] Make _handle_error staticmethod
author
Sergey M․
<dstftw@gmail.com>
Sat, 26 Sep 2015 19:12:46 +0000
(
01:12
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 26 Sep 2015 19:12:46 +0000
(
01:12
+0600)
youtube_dl/extractor/eagleplatform.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/eagleplatform.py
b/youtube_dl/extractor/eagleplatform.py
index 43336e57ffaeaa56c342ebaa9aa064fbf7a13e2a..ee24242a8373d1addaa0f19a086e553a6665e90e 100644
(file)
--- a/
youtube_dl/extractor/eagleplatform.py
+++ b/
youtube_dl/extractor/eagleplatform.py
@@
-48,7
+48,8
@@
class EaglePlatformIE(InfoExtractor):
'skip': 'Georestricted',
}]
- def _handle_error(self, response):
+ @staticmethod
+ def _handle_error(response):
status = int_or_none(response.get('status', 200))
if status != 200:
raise ExtractorError(' '.join(response['errors']), expected=True)