Add regex patterns for split-archive coverage gaps #5
Reference in New Issue
Block a user
Delete Branch "feat/regex-rar-coverage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add regex patterns for split-archive coverage gaps
Upstream blacklist provides partial coverage for rar, zip, and 7z
multi-volume archives:
rar: .r00-.r04 (bare letters stop at .r04, no .r05+ coverage)
zip: .z00-.z04 (bare letters stop at .z04, no .z05+ coverage)
7z: *.7z.001, *.7z.002 (no .7z.003+ coverage)
Releases using higher volume numbers slip through qBittorrent's
file-level exclusion filter. Cleanuparr's Malware Blocker does
remove the torrent from the Sonarr/Radarr queue on its 15-second
inspection cycle, but in the window between torrent add and removal
qBittorrent can accumulate hundreds of MB of data -- enough to
trigger HnR (hit-and-run) penalties on trackers.
Fix: add two regex patterns to blacklist as manual local additions
preserved by the three-way merge:
regex:(?i)^..7z.\d+$ - 7z multi-volume (.7z.001 onwards)
regex:(?i)^..[r-z]\d+$ - rar volumes (.r00-.r99), rar overflow
letters (.s00-.y99), and zip splits
(.z00-.z99), case-insensitive
Between them these two patterns cover every rar, zip, and 7z
multi-volume variant in any case (upper or lower), including overflow
letters (t, u, v, w, x, y) that rar uses after .r99. The existing
*.rar literal entry already handles .rar and .partNN.rar (both end
with .rar).
Verified against the whitelist: neither pattern matches any of the
eight whitelisted extensions (*.ass, *.avi, *.mkv, *.mp4, *.srt,
*.ssa, *.sub, *.webm). The only meaningful side-effect catch is
*.s3 (ScreamTracker music modules), which does not occur in the
Sonarr/Radarr media workflow.
Upstream blacklist enumerates rar volume extensions only up to .r04, .s09, .z04, with the .003 split missing entirely and no coverage for the .partNN.rar multi-part naming convention. Releases with files like .r05 and beyond slip through the file-level filter, and Malware Blocker's queue-level cleanup is too slow to prevent qBittorrent from downloading enough data to incur HnR penalties. Add five regex patterns to the blacklist as manual local additions preserved by the three-way merge: regex:^.*\.\d{3}$ - all 3-digit numeric splits (.000-.999) regex:^.*\.part\d+\.rar$ - multi-part rar new style regex:^.*\.r\d+$ - all rar volume numbers (old style) regex:^.*\.s\d+$ - rar volumes after r99 regex:^.*\.z\d+$ - zip splits These patterns are added directly to blacklist via the manual addition escape hatch documented in README and Lists.md. The Whitelist stripped log line will continue to function normally; new lines appear under Custom preserved.