summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-26 04:27:02 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-26 04:27:02 +0100
commit0fdb441722dbf8b680f38c4d6e95ed2775a72c4b (patch)
tree1ea92a22e66b8f5f5a7f0bd40b1222c2f8547c30 /module/plugins/hoster
parent[SimpleHoster] Improve (diff)
downloadpyload-0fdb441722dbf8b680f38c4d6e95ed2775a72c4b.tar.xz
[AlldebridCom] Fix checkFile
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/AlldebridCom.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/module/plugins/hoster/AlldebridCom.py b/module/plugins/hoster/AlldebridCom.py
index fdf060330..3391f15d4 100644
--- a/module/plugins/hoster/AlldebridCom.py
+++ b/module/plugins/hoster/AlldebridCom.py
@@ -13,7 +13,7 @@ from module.utils import parseFileSize
class AlldebridCom(MultiHoster):
__name__ = "AlldebridCom"
__type__ = "hoster"
- __version__ = "0.39"
+ __version__ = "0.40"
__pattern__ = r'https?://(?:[^/]*\.)?alldebrid\..*'
@@ -27,8 +27,10 @@ class AlldebridCom(MultiHoster):
name = unquote(url.rsplit("/", 1)[1])
except IndexError:
name = "Unknown_Filename..."
+
if name.endswith("..."): # incomplete filename, append random stuff
name += "%s.tmp" % randrange(100, 999)
+
return name
@@ -70,11 +72,11 @@ class AlldebridCom(MultiHoster):
self.pyfile.name = self.getFilename(self.link)
- def AlldebridCom(self):
- super(AlldebridCom, self).checkFile()
+ def checkFile(self):
+ super(AlldebridCom, self).checkFile()
- if self.checkDownload({'error': "<title>An error occured while processing your request</title>"}) is "error":
- self.retry(wait_time=60, reason=_("An error occured while generating link"))
+ if self.checkDownload({'error': "<title>An error occured while processing your request</title>"}) is "error":
+ self.retry(wait_time=60, reason=_("An error occured while generating link"))
getInfo = create_getInfo(AlldebridCom)