Use suitable() to determine which InfoExtractor class to use

This commit is contained in:
Pete Johns 2020-04-13 13:26:23 +10:00
parent fd90cab05a
commit 685ed27a4f
No known key found for this signature in database
GPG Key ID: F05BBF16907F7671

View File

@ -80,6 +80,10 @@ class SBSNewsIE(SBSIE):
'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):
slug = self._match_id(url)
page_contents = self._download_webpage(url, slug)