summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2016-01-02 16:31:21 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2016-01-02 16:31:21 +0100
commit61ffdc432a1a258b25eab8e3c3dcea2bc3f8c2d4 (patch)
tree21077824f2193b69fdacc085531818d992957dc5
parentSpare code cosmetics (2) (diff)
downloadpyload-61ffdc432a1a258b25eab8e3c3dcea2bc3f8c2d4.tar.xz
Spare code cosmetics (3)
-rw-r--r--module/plugins/hoster/ExtabitCom.py4
-rw-r--r--module/plugins/hoster/ShareonlineBiz.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/ExtabitCom.py b/module/plugins/hoster/ExtabitCom.py
index e71fb41c1..37a5a7e7f 100644
--- a/module/plugins/hoster/ExtabitCom.py
+++ b/module/plugins/hoster/ExtabitCom.py
@@ -36,10 +36,10 @@ class ExtabitCom(SimpleHoster):
def handle_free(self, pyfile):
- if r'>Only premium users can download this file" in self.data:
+ if r'>Only premium users can download this file' in self.data:
self.fail(_("Only premium users can download this file"))
- m = re.search(r"Next free download from your ip will be available in <b>(\d+)\s*minutes', self.data)
+ m = re.search(r'Next free download from your ip will be available in <b>(\d+)\s*minutes', self.data)
if m is not None:
self.wait(int(m.group(1)) * 60, True)
elif "The daily downloads limit from your IP is exceeded" in self.data:
diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py
index 2110ab086..270759d2d 100644
--- a/module/plugins/hoster/ShareonlineBiz.py
+++ b/module/plugins/hoster/ShareonlineBiz.py
@@ -104,7 +104,7 @@ class ShareonlineBiz(SimpleHoster):
def check_download(self):
check = self.scan_download({'cookie': re.compile(r'<div id="dl_failure"'),
- 'fail' : re.compile(r'<title>Share-Online")})
+ 'fail' : re.compile(r'<title>Share-Online')})
if check == "cookie":
self.retry_captcha(5, 60, _("Cookie failure"))
@@ -118,7 +118,7 @@ class ShareonlineBiz(SimpleHoster):
def handle_premium(self, pyfile): #: Should be working better loading (account) api internally
self.api_data = dlinfo = {}
- html = self.load("https://api.share-online.biz/account.php',
+ html = self.load("https://api.share-online.biz/account.php",
get={'username': self.account.user,
'password': self.account.get_login('password'),
'act' : "download",