summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.hgignore2
-rwxr-xr-xmodule/network/Request.py2
-rw-r--r--module/plugins/hoster/NetloadIn.py6
-rw-r--r--module/plugins/hoster/RapidshareCom.py6
-rw-r--r--module/plugins/hoster/UploadedTo.py6
5 files changed, 18 insertions, 4 deletions
diff --git a/.hgignore b/.hgignore
index fd23e837a..d04b715b3 100644
--- a/.hgignore
+++ b/.hgignore
@@ -24,3 +24,5 @@ ssl.key
cert.pem
module/web/pyload.db
webserver.pid
+*.svg
+*.prefs
diff --git a/module/network/Request.py b/module/network/Request.py
index 5e3503bb3..7cb68dd4a 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -230,7 +230,7 @@ class Request:
def clear_cookies(self):
if self.curl:
- self.pycurl.setopt(pycurl.COOKIELIST, "ALL")
+ self.pycurl.setopt(pycurl.COOKIELIST, "")
else:
del self.cookies[:]
diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py
index 46afc4080..d0e5b89ba 100644
--- a/module/plugins/hoster/NetloadIn.py
+++ b/module/plugins/hoster/NetloadIn.py
@@ -146,7 +146,11 @@ class NetloadIn(Plugin):
if self.api_data and self.api_data["checksum"]:
h = hashlib.md5()
f = open(local_file, "rb")
- h.update(f.read())
+ while True:
+ data = f.read(128)
+ if not data:
+ break
+ h.update(data)
f.close()
hexd = h.hexdigest()
if hexd == self.api_data["checksum"]:
diff --git a/module/plugins/hoster/RapidshareCom.py b/module/plugins/hoster/RapidshareCom.py
index d7a47e6ae..d45789f33 100644
--- a/module/plugins/hoster/RapidshareCom.py
+++ b/module/plugins/hoster/RapidshareCom.py
@@ -182,7 +182,11 @@ class RapidshareCom(Plugin):
if self.api_data and self.api_data["checksum"]:
h = hashlib.md5()
f = open(local_file, "rb")
- h.update(f.read())
+ while True:
+ data = f.read(128)
+ if not data:
+ break
+ h.update(data)
f.close()
hexd = h.hexdigest()
if hexd == self.api_data["checksum"]:
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py
index 38529eb4f..852e77cd4 100644
--- a/module/plugins/hoster/UploadedTo.py
+++ b/module/plugins/hoster/UploadedTo.py
@@ -146,7 +146,11 @@ class UploadedTo(Plugin):
if self.api_data and self.api_data["checksum"]:
h = hashlib.sha1()
f = open(local_file, "rb")
- h.update(f.read())
+ while True:
+ data = f.read(128)
+ if not data:
+ break
+ h.update(data)
f.close()
hexd = h.hexdigest()
if hexd == self.api_data["checksum"]: