summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-08 17:27:57 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-08-08 17:27:57 +0200
commitde07cd54a708f4287654f593ded35bcff368f9d0 (patch)
tree4ae792b273481240befeb77a49fe51f345a9d1c4
parentswedish translation (diff)
downloadpyload-de07cd54a708f4287654f593ded35bcff368f9d0.tar.xz
only one chunk for uploaded.to
-rw-r--r--module/network/HTTPChunk.py2
-rw-r--r--module/network/HTTPRequest.py1
-rw-r--r--module/plugins/hoster/UploadedTo.py2
3 files changed, 4 insertions, 1 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py
index 431e5b15b..f911e5c68 100644
--- a/module/network/HTTPChunk.py
+++ b/module/network/HTTPChunk.py
@@ -139,6 +139,8 @@ class HTTPChunk(HTTPRequest):
self.BOMChecked = False
# check and remove byte order mark
+ self.rep = False
+
self.log = getLogger("log")
@property
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py
index fb89334c6..a966414ee 100644
--- a/module/network/HTTPRequest.py
+++ b/module/network/HTTPRequest.py
@@ -204,6 +204,7 @@ class HTTPRequest():
def getResponse(self):
""" retrieve response from string io """
+ if not self.rep: return None
value = self.rep.getvalue()
self.rep.close()
self.rep = StringIO()
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py
index 94f6e8320..be062c925 100644
--- a/module/plugins/hoster/UploadedTo.py
+++ b/module/plugins/hoster/UploadedTo.py
@@ -77,11 +77,11 @@ class UploadedTo(Hoster):
self.multiDL = False
self.resumeDownload = False
self.url = False
+ self.chunkLimit = 1 # critical problems with more chunks
if self.account:
self.premium = self.account.getAccountInfo(self.user)["premium"]
if self.premium:
self.multiDL = True
- self.chunkLimit = -1
self.resumeDownload = True