Skip to content

Commit

Permalink
Update pyarchivefile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Feb 6, 2025
1 parent 51d11be commit cce8322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyarchivefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2088,6 +2088,7 @@ def ReadFileHeaderDataWithContent(fp, listonly=False, uncompress=True, skipcheck
fjsonsize = int(HeaderOut[27], 16)
fjsoncontent = {}
fprejsoncontent = fp.read(fjsonsize).decode("UTF-8")
print(fprejsoncontent)
if(fjsonsize > 0):
try:
fjsoncontent = json.loads(base64.b64decode(fprejsoncontent).decode("UTF-8"))
Expand Down Expand Up @@ -2287,7 +2288,7 @@ def ReadFileHeaderDataWithContentToArray(fp, listonly=False, contentasfile=True,
fcontents.seek(0, 0)
fccs = GetFileChecksum(
fcontents.read(), HeaderOut[-3].lower(), False, formatspecs)
fcontentend = fp.tell() - 1
fcontentend = fp.tell()
if(re.findall("^\\+([0-9]+)", fseeknextfile)):
fseeknextasnum = int(fseeknextfile.replace("+", ""))
if(abs(fseeknextasnum) == 0):
Expand Down

0 comments on commit cce8322

Please sign in to comment.