summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-22 12:40:52 +0100
committerGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-22 12:40:52 +0100
commit8a691056ce894fcc562fddb642932338050645a6 (patch)
treeb4eba4d4c5379d579d599326a6c47267d4e292e8 /module/plugins/hoster
parentBring Oron's premium account handling to latest api. (diff)
parentrealdebrid encoding fix (diff)
downloadpyload-8a691056ce894fcc562fddb642932338050645a6.tar.xz
Merging encoding fixes from pyload
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/RealdebridCom.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py
index ac55ea3f0..3a3ac99b0 100644
--- a/module/plugins/hoster/RealdebridCom.py
+++ b/module/plugins/hoster/RealdebridCom.py
@@ -5,6 +5,7 @@ import re
from urllib import quote, unquote
from random import randrange
+from module.utils import encode
from module.plugins.Hoster import Hoster
class RealdebridCom(Hoster):
@@ -43,8 +44,8 @@ class RealdebridCom(Hoster):
password = self.getPassword().splitlines()
if not password: password = ""
else: password = password[0]
-
- url = "http://real-debrid.com/ajax/deb.php?lang=en&sl=1&link=%s&passwort=%s" % (quote(pyfile.url, ""), password)
+
+ url = "http://real-debrid.com/ajax/deb.php?lang=en&sl=1&link=%s&passwort=%s" % (quote(encode(pyfile.url), ""), password)
page = self.load(url)
error = re.search(r'<span id="generation-error">(.*)</span>', page)