]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[rutube:playlist] Fix suitable (closes #14166)
authorSergey M․ <dstftw@gmail.com>
Sun, 10 Sep 2017 20:22:27 +0000 (03:22 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 10 Sep 2017 20:23:00 +0000 (03:23 +0700)
youtube_dl/extractor/rutube.py

index 828c03b483e15f69bca13821dd6fbe6b61b54e05..89d89b65a8108215a98957e20ae3045c0c205471 100644 (file)
@@ -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])