diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-08-30 21:19:48 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-08-30 21:19:48 +0200 |
commit | 291f946c45da87a6223ad41902f82e5226b9cf37 (patch) | |
tree | 3a73facb0ffb3ce1bf0cc24731db19082fb2113c /module/plugins/hoster/VimeoCom.py | |
parent | Update GooIm.py (diff) | |
download | pyload-291f946c45da87a6223ad41902f82e5226b9cf37.tar.xz |
[VimeoCom] Private video support
Diffstat (limited to 'module/plugins/hoster/VimeoCom.py')
-rw-r--r-- | module/plugins/hoster/VimeoCom.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/hoster/VimeoCom.py b/module/plugins/hoster/VimeoCom.py index 7fa675715..145d9053f 100644 --- a/module/plugins/hoster/VimeoCom.py +++ b/module/plugins/hoster/VimeoCom.py @@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class VimeoCom(SimpleHoster): __name__ = "VimeoCom" __type__ = "hoster" - __version__ = "0.01" + __version__ = "0.02" __pattern__ = r'https?://(?:www\.)?(player\.)?vimeo\.com/(video/)?(?P<ID>\d+)' __config__ = [("quality", "Lowest;Mobile;SD;HD;Highest", "Quality", "Highest"), @@ -32,12 +32,14 @@ class VimeoCom(SimpleHoster): self.chunkLimit = -1 def handleFree(self): + password = self.getPassword() + if self.js and 'class="btn iconify_down_b"' in self.html: - html = self.js.eval(self.load(self.pyfile.url, get={'action': "download"}, decode=True)) + html = self.js.eval(self.load(self.pyfile.url, get={'action': "download", 'password': password}, decode=True)) pattern = r'href="(?P<URL>http://vimeo\.com.+?)".*?\>(?P<QL>.+?) ' else: id = re.match(self.__pattern__, self.pyfile.url).group("ID") - html = self.load("https://player.vimeo.com/video/" + id) + html = self.load("https://player.vimeo.com/video/" + id, get={'password': password}) pattern = r'"(?P<QL>\w+)":{"profile".*?"(?P<URL>http://pdl\.vimeocdn\.com.+?)"' link = dict([(l.group('QL').lower(), l.group('URL')) for l in re.finditer(pattern, html)]) |