From: Sergey M․ Date: Sun, 10 Sep 2017 20:22:27 +0000 (+0700) Subject: [rutube:playlist] Fix suitable (closes #14166) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=f12a6e88b2c2632b10c156eb94d91675327485f6;p=youtube-dl [rutube:playlist] Fix suitable (closes #14166) --- diff --git a/youtube_dl/extractor/rutube.py b/youtube_dl/extractor/rutube.py index 828c03b48..89d89b65a 100644 --- a/youtube_dl/extractor/rutube.py +++ b/youtube_dl/extractor/rutube.py @@ -265,8 +265,10 @@ class RutubePlaylistIE(RutubePlaylistBaseIE): _PAGE_TEMPLATE = 'http://rutube.ru/api/playlist/%s/%s/?page=%s&format=json' - @staticmethod - def suitable(url): + @classmethod + def suitable(cls, url): + if not super(RutubePlaylistIE, cls).suitable(url): + return False params = compat_parse_qs(compat_urllib_parse_urlparse(url).query) return params.get('pl_type', [None])[0] and int_or_none(params.get('pl_id', [None])[0])