summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/WebshareCz.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hoster/WebshareCz.py')
-rw-r--r--pyload/plugin/hoster/WebshareCz.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/hoster/WebshareCz.py b/pyload/plugin/hoster/WebshareCz.py
index 11b7b37b0..baeecfc94 100644
--- a/pyload/plugin/hoster/WebshareCz.py
+++ b/pyload/plugin/hoster/WebshareCz.py
@@ -7,16 +7,16 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster
class WebshareCz(SimpleHoster):
- __name = "WebshareCz"
- __type = "hoster"
- __version = "0.16"
+ __name__ = "WebshareCz"
+ __type__ = "hoster"
+ __version__ = "0.16"
- __pattern = r'https?://(?:www\.)?webshare\.cz/(?:#/)?file/(?P<ID>\w+)'
- __config = [("use_premium", "bool", "Use premium account if available", True)]
+ __pattern__ = r'https?://(?:www\.)?webshare\.cz/(?:#/)?file/(?P<ID>\w+)'
+ __config__ = [("use_premium", "bool", "Use premium account if available", True)]
- __description = """WebShare.cz hoster plugin"""
- __license = "GPLv3"
- __authors = [("stickell", "l.stickell@yahoo.it"),
+ __description__ = """WebShare.cz hoster plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("stickell", "l.stickell@yahoo.it"),
("rush", "radek.senfeld@gmail.com")]
@@ -25,7 +25,7 @@ class WebshareCz(SimpleHoster):
info = super(WebshareCz, cls).getInfo(url, html)
if url:
- info['pattern'] = re.match(cls.__pattern, url).groupdict()
+ info['pattern'] = re.match(cls.__pattern__, url).groupdict()
api_data = getURL("https://webshare.cz/api/file_info/",
post={'ident': info['pattern']['ID']},