From 4cf4db16ea8f2e58c46a701409df55f8bfe7b33c Mon Sep 17 00:00:00 2001 From: OndrejIT Date: Mon, 2 May 2016 13:46:16 +0200 Subject: Fix WebshareCz --- module/plugins/hoster/WebshareCz.py | 12 +++++++----- 1 file 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\w+)' + __pattern__ = r'https?://(?:www\.)?(en\.)?webshare\.cz/(?:#/)?(file/)?(?P\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'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'(.+?)<', api).group(1) -- cgit v1.2.3