From 685ed27a4f11d600a2281e09884eec50fbfb3772 Mon Sep 17 00:00:00 2001 From: Pete Johns Date: Mon, 13 Apr 2020 13:26:23 +1000 Subject: [PATCH] Use suitable() to determine which InfoExtractor class to use --- youtube_dl/extractor/sbs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/extractor/sbs.py b/youtube_dl/extractor/sbs.py index 2e639efc1..2fc56e0f9 100644 --- a/youtube_dl/extractor/sbs.py +++ b/youtube_dl/extractor/sbs.py @@ -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)