diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-13 12:17:56 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-13 12:17:56 +0200 |
commit | 30777e823f91f62c8e2a63a312bfa949266a02ac (patch) | |
tree | bd2f435bd23217e6e18c05c58ee7fe9f4979dffa | |
parent | fixes for windows (diff) | |
download | pyload-30777e823f91f62c8e2a63a312bfa949266a02ac.tar.xz |
little fixes
-rw-r--r-- | module/plugins/hoster/RealdebridCom.py | 7 | ||||
-rw-r--r-- | module/web/ServerThread.py | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py index d003b4e2b..65a28669a 100644 --- a/module/plugins/hoster/RealdebridCom.py +++ b/module/plugins/hoster/RealdebridCom.py @@ -29,11 +29,10 @@ class RealdebridCom(Hoster): def init(self):
self.tries = 0
-
- def setup(self):
self.chunkLimit = 3
self.resumeDownload = True
+
def process(self, pyfile):
if not self.account:
self.log.error(_("Please enter your Real-debrid account or deactivate this plugin"))
@@ -77,7 +76,7 @@ class RealdebridCom(Hoster): self.download(new_url, disposition=True)
check = self.checkDownload(
- {"error": "<html><head><title>An error occured while processing your request</title>"})
+ {"error": "<title>An error occured while processing your request</title>"})
if check == "error":
#usual this download can safely be retried
@@ -86,5 +85,5 @@ class RealdebridCom(Hoster): sleep(1)
self.retry()
else:
- self.fail("Error occured.")
+ self.fail("An error occured while generating link.")
diff --git a/module/web/ServerThread.py b/module/web/ServerThread.py index 98a018844..84667e5f6 100644 --- a/module/web/ServerThread.py +++ b/module/web/ServerThread.py @@ -61,7 +61,7 @@ class WebServer(threading.Thread): if os.name == "nt": self.core.log.info(_("Server set to threaded, due to known performance problems on windows.")) - self.core.config.set['webinterface']['server'] = "threaded" + self.core.config['webinterface']['server'] = "threaded" self.server = "threaded" |