diff options
Diffstat (limited to 'module/plugins/hoster/VimeoCom.py')
| -rw-r--r-- | module/plugins/hoster/VimeoCom.py | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/module/plugins/hoster/VimeoCom.py b/module/plugins/hoster/VimeoCom.py index 07abf31e3..7ca6c962b 100644 --- a/module/plugins/hoster/VimeoCom.py +++ b/module/plugins/hoster/VimeoCom.py @@ -8,7 +8,7 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo  class VimeoCom(SimpleHoster):      __name__    = "VimeoCom"      __type__    = "hoster" -    __version__ = "0.03" +    __version__ = "0.04"      __pattern__ = r'https?://(?:www\.)?(player\.)?vimeo\.com/(video/)?(?P<ID>\d+)'      __config__ = [("quality", "Lowest;Mobile;SD;HD;Highest", "Quality", "Highest"), @@ -34,15 +34,14 @@ class VimeoCom(SimpleHoster):          self.chunkLimit     = -1 -    def handleFree(self): +    def handleFree(self, pyfile):          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", 'password': password}, decode=True)) +            html    = self.js.eval(self.load(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, get={'password': password}) +            html    = self.load("https://player.vimeo.com/video/" + self.info['pattern']['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)) | 
