From 603251c34d6421ff7c9069630c4abcfbde7b7e16 Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Sat, 28 Feb 2015 00:09:34 +0800 Subject: [PATCH] [common] Remove _multiple_opener_supported() Currently YoutubeDL is the only class used in extractors --- youtube_dl/extractor/common.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 65f29de8a..1ff38910e 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1053,14 +1053,8 @@ class InfoExtractor(object): def _get_automatic_captions(self, *args, **kwargs): raise NotImplementedError("This method must be implemented by subclasses") - def _multiple_opener_supported(self): - return hasattr(self._downloader, 'use_opener') - def _use_opener(self, opener_name): - if self._multiple_opener_supported(): - self._downloader.use_opener(opener_name) - else: - raise Exception('Multiple opener not supported') + self._downloader.use_opener(opener_name) class SearchInfoExtractor(InfoExtractor):