Use suitable() to determine which InfoExtractor class to use
This commit is contained in:
parent
fd90cab05a
commit
685ed27a4f
@ -80,6 +80,10 @@ class SBSNewsIE(SBSIE):
|
|||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def suitable(cls, url):
|
||||||
|
return False if SBSIE.suitable(url) else super(SBSNewsIE, cls).suitable(url)
|
||||||
|
|
||||||
def _video_id(self, url):
|
def _video_id(self, url):
|
||||||
slug = self._match_id(url)
|
slug = self._match_id(url)
|
||||||
page_contents = self._download_webpage(url, slug)
|
page_contents = self._download_webpage(url, slug)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user