diff options
-rw-r--r-- | module/plugins/hoster/MegauploadCom.py | 3 | ||||
-rw-r--r-- | module/remote/thriftbackend/Socket.py | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py index a7bc85856..ed26bb0a1 100644 --- a/module/plugins/hoster/MegauploadCom.py +++ b/module/plugins/hoster/MegauploadCom.py @@ -66,7 +66,10 @@ class MegauploadCom(Hoster): self.chunkLimit = 1 else: self.multiDL = False + self.api = {} + none, sep, self.fileID = self.pyfile.url.partition("d=") + self.pyfile.url = "http://www.megaupload.com/?d=" + self.fileID def process(self, pyfile): diff --git a/module/remote/thriftbackend/Socket.py b/module/remote/thriftbackend/Socket.py index a492be59e..dc201c431 100644 --- a/module/remote/thriftbackend/Socket.py +++ b/module/remote/thriftbackend/Socket.py @@ -35,7 +35,8 @@ class SecureSocketConnection: try: return self.__dict__["connection"].recv(buff) except WantReadError: - return self.recv(buff) + return "" +# return self.recv(buff) class Socket(TSocket): def __init__(self, host='localhost', port=7228, ssl=False): |