summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-26 04:24:21 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-26 04:24:21 +0100
commit9371e7c7f83d821cc1f4ce4580cfec05164f3595 (patch)
treef5813bf565e5eed440459c5a4d4d92fe3780c23e /module/plugins/hoster
parent[MultiHook] Overwrites account if not premium (diff)
downloadpyload-9371e7c7f83d821cc1f4ce4580cfec05164f3595.tar.xz
[DebridItaliaCom] Fixup
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/DebridItaliaCom.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/module/plugins/hoster/DebridItaliaCom.py b/module/plugins/hoster/DebridItaliaCom.py
index d20afb620..34a306cce 100644
--- a/module/plugins/hoster/DebridItaliaCom.py
+++ b/module/plugins/hoster/DebridItaliaCom.py
@@ -8,7 +8,7 @@ from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo
class DebridItaliaCom(MultiHoster):
__name__ = "DebridItaliaCom"
__type__ = "hoster"
- __version__ = "0.14"
+ __version__ = "0.15"
__pattern__ = r'http://s\d+\.debriditalia\.com/dl/\d+'
@@ -33,17 +33,16 @@ class DebridItaliaCom(MultiHoster):
if "ERROR:" not in self.html:
self.link = self.html.strip()
else:
- errmsg = re.search(r'ERROR:(.*)', self.html).group(1).strip()
+ self.info['error'] = re.search(r'ERROR:(.*)', self.html).group(1).strip()
self.html = self.load("http://debriditalia.com/linkgen2.php",
post={'xjxfun' : "convertiLink",
'xjxargs[]': "S<![CDATA[%s]]>" % self.pyfile.url,
'xjxargs[]': "S%s" % self.getPassword()})
-
- self.link = re.search(r'<a href="(.+?)"', self.html).group(1)
-
- if not self.link:
- self.fail(errmsg)
+ try:
+ self.link = re.search(r'<a href="(.+?)"', self.html).group(1)
+ except AttributeError:
+ pass
getInfo = create_getInfo(DebridItaliaCom)