summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-04 21:30:39 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-04 21:30:39 +0200
commit55717d96c0ef590f9c224741415447b8adb12f95 (patch)
tree1fa1184732ebaa799a04305a54a0ca3bb9f1a722
parentMerge pull request #1388 from GammaC0de/GammaC0de-report-no-send2trash (diff)
downloadpyload-55717d96c0ef590f9c224741415447b8adb12f95.tar.xz
[SizedriveCom] Cleanup
-rw-r--r--module/plugins/hoster/SizedriveCom.py7
-rw-r--r--module/plugins/hoster/ZippyshareCom.py2
2 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/hoster/SizedriveCom.py b/module/plugins/hoster/SizedriveCom.py
index 13a29eb99..3b9748fb6 100644
--- a/module/plugins/hoster/SizedriveCom.py
+++ b/module/plugins/hoster/SizedriveCom.py
@@ -17,9 +17,10 @@ class SizedriveCom(SimpleHoster):
__authors__ = [("GammaC0de", None)]
+ NAME_PATTERN = r'>Nome:</b> (?P<N>.+?)<'
+ SIZE_PATTERN = r'>Tamanho:</b>(?P<S>[\d.,]+) (?P<U>[\w^_]+)'
OFFLINE_PATTERN = r'ARQUIVO DELATADO POR'
- NAME_PATTERN = r'<b>Nome:</b> (?P<N>.+)<'
- SIZE_PATTERN = r'<b>Tamanho:</b>(?P<S>[\d.,]+) (?P<U>[\w^_]+)'
+
def setup(self):
self.resumeDownload = False
@@ -35,8 +36,6 @@ class SizedriveCom(SimpleHoster):
m = re.search(r'<span id="boton_download" ><a href="(.+?)"', self.html)
if m:
self.link = m.group(1)
- else:
- self.error(_("Download link not found"))
getInfo = create_getInfo(SizedriveCom)
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py
index fbac432cd..c47ac4fe1 100644
--- a/module/plugins/hoster/ZippyshareCom.py
+++ b/module/plugins/hoster/ZippyshareCom.py
@@ -66,7 +66,7 @@ class ZippyshareCom(SimpleHoster):
initScripts = set()
def replElementById(element):
- id = element.group(1) # id might be either 'x' (a real id) or x (a variable)
+ id = element.group(1) # id might be either 'x' (a real id) or x (a variable)
attr = element.group(4) # attr might be None
varName = re.sub(r'-', '', 'GVAR[%s+"_%s"]' %(id, attr))