diff options
Diffstat (limited to 'module/plugins/hoster/RapidshareCom.py')
-rw-r--r-- | module/plugins/hoster/RapidshareCom.py | 6 |
1 files changed, 5 insertions, 1 deletions
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"]: |