Skip to content

Commit baa5df1

Browse files
committed
fixed KeyError: 'piece_size' when try to download non-optional file using '|all'
1 parent 912c958 commit baa5df1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

plugins/Bigfile/BigfilePlugin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,11 @@ def pooledNeedBigfile(inner_path, *args, **kwargs):
753753

754754
inner_path = inner_path.replace("|all", "")
755755
file_info = self.needFileInfo(inner_path)
756+
757+
# Use default function to download non-optional file
758+
if "piece_size" not in file_info:
759+
return super(SitePlugin, self).needFile(inner_path, *args, **kwargs)
760+
756761
file_size = file_info["size"]
757762
piece_size = file_info["piece_size"]
758763

0 commit comments

Comments
 (0)