X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Feagleplatform.py;h=ee24242a8373d1addaa0f19a086e553a6665e90e;hb=3c63e1bb5740484dae483595a87325e8cf9c7e7b;hp=43336e57ffaeaa56c342ebaa9aa064fbf7a13e2a;hpb=c471b34575eac87b0841616dd6acb90b221c6fe6;p=youtube-dl diff --git a/youtube_dl/extractor/eagleplatform.py b/youtube_dl/extractor/eagleplatform.py index 43336e57f..ee24242a8 100644 --- 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)