diff options
Diffstat (limited to 'module')
| -rw-r--r-- | module/plugins/accounts/HotfileCom.py | 3 | ||||
| -rw-r--r-- | module/plugins/hoster/HotfileCom.py | 3 | ||||
| -rw-r--r-- | module/plugins/hoster/ShareonlineBiz.py | 2 | 
3 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/accounts/HotfileCom.py b/module/plugins/accounts/HotfileCom.py index f623e56f1..83551949d 100644 --- a/module/plugins/accounts/HotfileCom.py +++ b/module/plugins/accounts/HotfileCom.py @@ -19,6 +19,7 @@  from module.plugins.Account import Account  from time import strptime, mktime +from urllib import unquote  import hashlib  class HotfileCom(Account): @@ -68,7 +69,7 @@ class HotfileCom(Account):          post.update({"action": method})          post.update({"username":user, "passwordmd5dig":pwhash, "digest":digest}) -        return req.load("http://api.hotfile.com/", post=post) +        return unquote(req.load("http://api.hotfile.com/", post=post)).strip()      def login(self, user, data):          req = self.getAccountRequest(user) diff --git a/module/plugins/hoster/HotfileCom.py b/module/plugins/hoster/HotfileCom.py index f3c6b67dd..3b88efe1f 100644 --- a/module/plugins/hoster/HotfileCom.py +++ b/module/plugins/hoster/HotfileCom.py @@ -3,6 +3,7 @@  import re  from time import time +from urllib import unquote  from module.plugins.Hoster import Hoster  from module.plugins.ReCaptcha import ReCaptcha @@ -55,7 +56,7 @@ class HotfileCom(Hoster):          elif self.account and login:              return self.account.apiCall(method, post, self.user)          post.update({"action": method}) -        return self.load("http://api.hotfile.com/", post=post) +        return unquote(self.load("http://api.hotfile.com/", post=post)).strip()      def process(self, pyfile):          self.wantReconnect = False diff --git a/module/plugins/hoster/ShareonlineBiz.py b/module/plugins/hoster/ShareonlineBiz.py index a441c1e30..9c54fa50a 100644 --- a/module/plugins/hoster/ShareonlineBiz.py +++ b/module/plugins/hoster/ShareonlineBiz.py @@ -109,7 +109,7 @@ class ShareonlineBiz(Hoster):          """ returns the absolute downloadable filepath          """          if self.account: -            return (re.search('<b>The following link contains a ticket to a valid mirror for your desired file\.</b>.*?<a href="(.*?)" onmouseout', self.html, re.S).group(1)) +            return re.search('<b>The following link contains a ticket to a valid mirror for your desired file\.</b>.*?<a href="(.*?)" onmouseout', self.html, re.S).group(1)          file_url_pattern = 'loadfilelink\.decode\("([^"]+)'          return b64decode(re.search(file_url_pattern, self.html).group(1))  | 
