Identity: unquoted names are no counters; renumbered and timestamped image sets
Test and deploy / test (push) Successful in 53s
Test and deploy / edge (push) Successful in 2m3s
Test and deploy / deploy (push) Successful in 2m4s

- The file total is read from the subject without the file name, as with a
  quoted one: "shyla-shy-09-0195.jpg hardcore …" read as 9 of 195 made each
  of 866 images a release of its own.
- imageSet: "_N" right after a number is a renumbering ("kate108lg029_28"
  once an image was skipped), and a trailing camera timestamp
  ("kurozo-2006-7-26-15-21") numbers no set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daan MeijerandClaude Opus 5.5 committed 2026-10-12 03:47:51 +02:00
1 parent f094fb4593
commit e72a9b1ef5
3 files changed
+51 -16

No files matched your search

+9
View File
@@ -235,10 +235,19 @@ test.group('release / par2 names', () => {
['IMG_2676', 'IMG_'],
['2877-041', '2877-'],
['051 - White leather kate054001_1_1', '051 - White leather kate'],
['108 - Schoolwall kate108lg029_28', '108 - Schoolwall kate108lg'],
['kurozo-2006-7-26-15-21', ''],
['bwp2_037_5', 'bwp2_'],
['JimAndJoey Kindly Husband-to-Be', ''],
]) assert.equal(imageSet(stem), set, stem)
})
test('an unquoted file name is no file counter', ({ assert }) => {
const shy = (name: string) => releaseIdentity({ poster: 'p', subject: `${name} hardcore SHYLA STYLEZ & SHY LOVE`, name, weak: false })!
assert.equal(shy('shyla-shy-09-0195.jpg').key, shy('shyla-shy-09-0766.jpg').key)
assert.isUndefined(shy('shyla-shy-09-0195.jpg').fileTotal)
})
test('dates are no file counters', async ({ assert }) => {
const { counterTotal } = await import('#lib/release/identity')
assert.isUndefined(counterTotal('Avira AntiVir Rescue System 08-29-2011.rar'))