summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/VimeoCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hoster/VimeoCom.py')
-rw-r--r--pyload/plugin/hoster/VimeoCom.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugin/hoster/VimeoCom.py b/pyload/plugin/hoster/VimeoCom.py
index 63a0ec882..07abf31e3 100644
--- a/pyload/plugin/hoster/VimeoCom.py
+++ b/pyload/plugin/hoster/VimeoCom.py
@@ -6,24 +6,24 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo
class VimeoCom(SimpleHoster):
- __name = "VimeoCom"
- __type = "hoster"
- __version = "0.03"
+ __name__ = "VimeoCom"
+ __type__ = "hoster"
+ __version__ = "0.03"
- __pattern = r'https?://(?:www\.)?(player\.)?vimeo\.com/(video/)?(?P<ID>\d+)'
- __config = [("quality", "Lowest;Mobile;SD;HD;Highest", "Quality", "Highest"),
+ __pattern__ = r'https?://(?:www\.)?(player\.)?vimeo\.com/(video/)?(?P<ID>\d+)'
+ __config__ = [("quality", "Lowest;Mobile;SD;HD;Highest", "Quality", "Highest"),
("original", "bool", "Try to download the original file first", True)]
- __description = """Vimeo.com hoster plugin"""
- __license = "GPLv3"
- __authors = [("Walter Purcaro", "vuolter@gmail.com")]
+ __description__ = """Vimeo.com hoster plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
NAME_PATTERN = r'<title>(?P<N>.+) on Vimeo<'
OFFLINE_PATTERN = r'class="exception_header"'
TEMP_OFFLINE_PATTERN = r'Please try again in a few minutes.<'
- URL_REPLACEMENTS = [(__pattern + ".*", r'https://www.vimeo.com/\g<ID>')]
+ URL_REPLACEMENTS = [(__pattern__ + ".*", r'https://www.vimeo.com/\g<ID>')]
COOKIES = [("vimeo.com", "language", "en")]
@@ -41,7 +41,7 @@ class VimeoCom(SimpleHoster):
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")
+ id = re.match(self.__pattern__, self.pyfile.url).group("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.+?)"'