summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/plugins/hoster/RealdebridCom.py7
-rw-r--r--module/web/ServerThread.py2
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"