Skip to content

Commit

Permalink
Allow multi-vol ENDARC where NEXTVOL flag is missing.
Browse files Browse the repository at this point in the history
Let SPLIT_AFTER on last file to trigger next volume.

Fixes: #97
  • Loading branch information
markokr committed Mar 31, 2024
1 parent 8d87511 commit 541c0aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,9 @@ def _parse_real(self):
if not self._password:
break
elif h.type == RAR_BLOCK_ENDARC:
more_vols = (h.flags & RAR_ENDARC_NEXT_VOLUME) > 0
# use flag, but also allow RAR 2.x logic below to trigger
if h.flags & RAR_ENDARC_NEXT_VOLUME:
more_vols = True
endarc = True
if raise_need_first_vol and (h.flags & RAR_ENDARC_VOLNR) > 0:
raise NeedFirstVolume(
Expand Down

0 comments on commit 541c0aa

Please sign in to comment.