summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-03-12 15:23:02 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-03-12 15:23:02 +0100
commit0ffdfd5309ccf9f3ad273fe0584218971ee06a42 (patch)
treea7829abf45fcbe2570fb479d18341f8986042ae8
parentclosed #246, #247, #248, #249, (diff)
downloadpyload-0ffdfd5309ccf9f3ad273fe0584218971ee06a42.tar.xz
mu fix
-rw-r--r--module/plugins/hoster/MegauploadCom.py3
-rw-r--r--module/remote/thriftbackend/Socket.py3
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):