summaryrefslogtreecommitdiffstats
path: root/fb.py
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-09-14 18:58:15 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-09-14 18:58:15 +0200
commit9b0c69bcd3d05e3097ec4197ba7ef8f3a350a45d (patch)
tree886cd38ff992c3da7e23de2105baffa218129898 /fb.py
parentd535dc8846831ea0d74ef96423aa9fd90fbfc6f3 (diff)
fb.py: Use correct config field for max request size
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.py')
-rwxr-xr-xfb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fb.py b/fb.py
index 0bd2453..58e80f7 100755
--- a/fb.py
+++ b/fb.py
@@ -91,7 +91,7 @@ class CURLWrapper:
if filesize > self.serverConfig["upload_max_size"]:
raise APIException("File too big")
- if self.serverConfig is not None and (currentChunkSize + filesize > self.serverConfig["upload_max_size"] \
+ if self.serverConfig is not None and (currentChunkSize + filesize > self.serverConfig["request_max_size"] \
or len(chunks[currentChunk]) >= self.serverConfig["max_files_per_request"]):
currentChunkSize = 0
currentChunk += 1
@@ -337,7 +337,7 @@ class FBClient:
def parseConfig(self, file):
c = ConfigParser(file)
self.config = c.get_config()
- self.config["api_url"] = self.config["pastebin"]+"/api/v1.1.0"
+ self.config["api_url"] = self.config["pastebin"]+"/api/v2.0.0"
self.config["warnsize"] = 10*1024*1024
self.config["min_files_per_request_default"] = 5
self.config["min_variables_per_request_default"] = 20