Names: split rar volumes; a file's size in brackets after its counter
Test and deploy / test (push) Successful in 43s
Test and deploy / edge (push) Successful in 1m45s
Test and deploy / deploy (push) Successful in 1m4s

- "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:
Daan MeijerandClaude Opus 5.5 committed 2026-10-12 10:52:35 +02:00
1 parent 3301216aa8
commit 358f5a8571
3 files changed
+25 -3

No files matched your search

+7
View File
@@ -276,6 +276,13 @@ test.group('release / par2 names', () => {
assert.notEqual(vlad('185', 77, 'P8250001.JPG').key, vlad('234', 77, 'P5300085.JPG').key)
})
test("split rar volumes; a file's size in brackets after its counter", ({ assert }) => {
assert.equal(fileStem('rld-gtre.r13.002'), 'rld-gtre')
const k = (i: number, size: number, n: string) =>
releaseIdentity({ poster: 'Kingdn', subject: `Buffy The Vampire Slayer s02e04 [${i}/32] - [${size}] "${n}" yEnc`, name: n, weak: false })!
assert.equal(k(26, 4929, 'Buffy s02e04 xvid-tns.part24.rar').key, k(27, 400, 'Buffy s02e04 xvid-tns.vol00+01.PAR2').key)
})
test('a total padded wider than its index is no counter', ({ assert }) => {
const who = (i: number, n: string) =>
releaseIdentity({ poster: 'p', subject: `Very Best Of The Who [${String(i).padStart(2, '0')}/${String(i * 10).padStart(3, '0')}] - "${n}" yEnc`, name: n, weak: false })!