Skip to content

Commit be1f91d

Browse files
committed
Small update
1 parent 74cf27e commit be1f91d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

foxfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def main(argv: Optional[list[str]] = None) -> int:
172172

173173
if active_action == "create":
174174
if getargs.convert:
175-
checkcompressfile = pyfoxfile.CheckCompressionSubType(input_file, fnamedict, 0, True)
175+
checkcompressfile = pyfoxfile.CheckCompressionSubType(input_file, fnamedict, getargs.filestart, True)
176176
if (
177177
(pyfoxfile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict)
178178
or (pyfoxfile.IsSingleDict(fnamedict) and checkcompressfile == fnamedict["format_magic"])
@@ -241,7 +241,7 @@ def main(argv: Optional[list[str]] = None) -> int:
241241

242242
elif active_action == "repack":
243243
if getargs.convert:
244-
checkcompressfile = pyfoxfile.CheckCompressionSubType(input_file, fnamedict, 0, True)
244+
checkcompressfile = pyfoxfile.CheckCompressionSubType(input_file, fnamedict, getargs.filestart, True)
245245
if (
246246
(pyfoxfile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict)
247247
or (pyfoxfile.IsSingleDict(fnamedict) and checkcompressfile == fnamedict["format_magic"])
@@ -315,7 +315,7 @@ def main(argv: Optional[list[str]] = None) -> int:
315315

316316
elif active_action == "extract":
317317
if getargs.convert:
318-
checkcompressfile = pyfoxfile.CheckCompressionSubType(input_file, fnamedict, 0, True)
318+
checkcompressfile = pyfoxfile.CheckCompressionSubType(input_file, fnamedict, getargs.filestart, True)
319319
tempout = BytesIO()
320320
if (
321321
(pyfoxfile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict)
@@ -383,7 +383,7 @@ def main(argv: Optional[list[str]] = None) -> int:
383383

384384
elif active_action == "list":
385385
if getargs.convert:
386-
checkcompressfile = pyfoxfile.CheckCompressionSubType(input_file, fnamedict, 0, True)
386+
checkcompressfile = pyfoxfile.CheckCompressionSubType(input_file, fnamedict, getargs.filestart, True)
387387
if (
388388
(pyfoxfile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict)
389389
or (pyfoxfile.IsSingleDict(fnamedict) and checkcompressfile == fnamedict["format_magic"])
@@ -437,7 +437,7 @@ def main(argv: Optional[list[str]] = None) -> int:
437437

438438
elif active_action == "validate":
439439
if getargs.convert:
440-
checkcompressfile = pyfoxfile.CheckCompressionSubType(input_file, fnamedict, 0, True)
440+
checkcompressfile = pyfoxfile.CheckCompressionSubType(input_file, fnamedict, getargs.filestart, True)
441441
tempout = BytesIO()
442442
if (
443443
(pyfoxfile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict)

0 commit comments

Comments
 (0)