Fix logic BigfilePlugin.py

This commit is contained in:
FARHZ 2017-11-19 10:43:30 -02:00 committed by GitHub
parent 3582b2c114
commit 22bb77e7a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -387,7 +387,7 @@ class SiteStoragePlugin(object):
def openBigfile(self, inner_path, prebuffer=0):
file_info = self.site.content_manager.getFileInfo(inner_path)
if file_info and "piecemap" not in file_info: # It's not a big file
if not file_info or (file_info and "piecemap" not in file_info): # It's not a big file
return False
self.site.needFile(inner_path, blocking=False) # Download piecemap