[common] Remove _multiple_opener_supported()
Currently YoutubeDL is the only class used in extractors
This commit is contained in:
parent
5c9a26dae5
commit
603251c34d
@ -1053,14 +1053,8 @@ class InfoExtractor(object):
|
|||||||
def _get_automatic_captions(self, *args, **kwargs):
|
def _get_automatic_captions(self, *args, **kwargs):
|
||||||
raise NotImplementedError("This method must be implemented by subclasses")
|
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):
|
def _use_opener(self, opener_name):
|
||||||
if self._multiple_opener_supported():
|
self._downloader.use_opener(opener_name)
|
||||||
self._downloader.use_opener(opener_name)
|
|
||||||
else:
|
|
||||||
raise Exception('Multiple opener not supported')
|
|
||||||
|
|
||||||
|
|
||||||
class SearchInfoExtractor(InfoExtractor):
|
class SearchInfoExtractor(InfoExtractor):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user