diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-22 12:30:16 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-22 12:30:16 +0100 |
commit | 66f817d6d1fa24713b556982a0de209f3322e868 (patch) | |
tree | 642bfd6e9f4a47e3844c98617c8937e1cdec2fd0 /module/plugins/hoster | |
parent | return pid for uploadContainer (diff) | |
download | pyload-66f817d6d1fa24713b556982a0de209f3322e868.tar.xz |
realdebrid encoding fix
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/RealdebridCom.py | 5 |
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)
|