diff options
author | OndrejIT <git@ondrej.it> | 2016-05-02 13:46:16 +0200 |
---|---|---|
committer | OndrejIT <git@ondrej.it> | 2016-05-02 13:46:16 +0200 |
commit | 4cf4db16ea8f2e58c46a701409df55f8bfe7b33c (patch) | |
tree | 8880636025f55df482f5eff78cf1d8cb5b401242 /module | |
parent | [EuroshareEu] Fix #2446 (diff) | |
download | pyload-4cf4db16ea8f2e58c46a701409df55f8bfe7b33c.tar.xz |
Fix WebshareCz
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/WebshareCz.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/module/plugins/hoster/WebshareCz.py b/module/plugins/hoster/WebshareCz.py index b9c1274f5..4f083b24f 100644 --- a/module/plugins/hoster/WebshareCz.py +++ b/module/plugins/hoster/WebshareCz.py @@ -9,10 +9,10 @@ from module.plugins.internal.SimpleHoster import SimpleHoster class WebshareCz(SimpleHoster): __name__ = "WebshareCz" __type__ = "hoster" - __version__ = "0.23" + __version__ = "0.24" __status__ = "testing" - __pattern__ = r'https?://(?:www\.)?(en\.)?webshare\.cz/(?:#/)?file/(?P<ID>\w+)' + __pattern__ = r'https?://(?:www\.)?(en\.)?webshare\.cz/(?:#/)?(file/)?(?P<ID>\w+)' __config__ = [("activated" , "bool", "Activated" , True), ("use_premium" , "bool", "Use premium account if available" , True), ("fallback" , "bool", "Fallback to free download if premium fails" , True), @@ -21,8 +21,9 @@ class WebshareCz(SimpleHoster): __description__ = """WebShare.cz hoster plugin""" __license__ = "GPLv3" - __authors__ = [("stickell", "l.stickell@yahoo.it "), - ("rush" , "radek.senfeld@gmail.com")] + __authors__ = [("stickell", "l.stickell@yahoo.it" ), + ("rush" , "radek.senfeld@gmail.com"), + ("ondrej" , "git@ondrej.it" ),] @classmethod @@ -33,7 +34,8 @@ class WebshareCz(SimpleHoster): 'wst' : ""}) if not re.search(r'<status>OK', api): - info['status'] = 1 + info['status'] = 8 + info['error'] = _("Could not find required xml data") else: info['status'] = 2 info['name'] = re.search(r'<name>(.+?)<', api).group(1) |