projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
806498c
)
[rutube:playlist] Fix suitable (closes #14166)
author
Sergey M․
<dstftw@gmail.com>
Sun, 10 Sep 2017 20:22:27 +0000
(
03:22
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 10 Sep 2017 20:23:00 +0000
(
03:23
+0700)
youtube_dl/extractor/rutube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rutube.py
b/youtube_dl/extractor/rutube.py
index 828c03b483e15f69bca13821dd6fbe6b61b54e05..89d89b65a8108215a98957e20ae3045c0c205471 100644
(file)
--- 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])