Names: split rar volumes; a file's size in brackets after its counter
- "rld-gtre.r13.002": a split volume after a rar volume is stripped like one after .rar (usenet-town's posts were 1,620 single files). - "[26/32] - [4929] "…part24.rar"": the bracketed size after the counter goes (Kingdn's episodes, 2,850 single files). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3301216aa8
commit
358f5a8571
3 files changed
+25
-3
No files matched your search
@@ -33,7 +33,8 @@ const SUFFIXES = [
|
||||
/\.7z(\.\d{3})?$/i,
|
||||
/\.zip(\.\d{3})?$/i,
|
||||
// Split volumes (x.mkv.001), not codec names (H.264, H.265).
|
||||
/(?<=\.(7z|zip|rar|tar|mkv|mp4|avi|m4v|ts|m2ts|iso|img|bin|vob))\.\d{2,3}$/i,
|
||||
// Also a split rar volume ("rld-gtre.r13.002": 1,620 single files of usenet-town's posts).
|
||||
/(?<=\.(7z|zip|rar|tar|mkv|mp4|avi|m4v|ts|m2ts|iso|img|bin|vob|r\d{2,3}))\.\d{2,3}$/i,
|
||||
/\.(nfo|sfv|nzb|srr|srs|txt|jpg|png|md5|sha1|srt|sub|idx|ass|ssa|m3u|m3u8|cue|log)$/i,
|
||||
/\.tar$/i,
|
||||
/\.(zst|gz|xz|bz2)$/i,
|
||||
@@ -299,6 +300,8 @@ export function releaseIdentity(input: ReleaseInput): ReleaseIdentity | null {
|
||||
.split(input.name.length >= 5 ? input.name : '\0')
|
||||
.join(' ')
|
||||
.replace(/"/g, ' ')
|
||||
// A file's size in brackets after its counter ("[26/32] - [4929] "…part24.rar"": each file a release; Kingdn).
|
||||
.replace(/(\[\d+\/\d+\])\s*-\s*\[\d+\]/g, '$1')
|
||||
const remainder = subjectRemainder(named)
|
||||
// Counted without the file name, as quoted names are: "shyla-shy-09-0195.jpg hardcore …" is no "9 of 195"
|
||||
// (each of 866 images was a release of its own; LOG.md 2026-10-12 (5)).
|
||||
|
||||
Reference in new issue
Block a user