youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit f12a6e88b2c2632b10c156eb94d91675327485f6
parent 806498cf2f35cc98cf0e6c5b46f58ca357a842de
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon, 11 Sep 2017 03:22:27 +0700

[rutube:playlist] Fix suitable (closes #14166)

Diffstat:
Myoutube_dl/extractor/rutube.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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])