Image sets: keyed by set without words around them; px, ImageVenue, spaced repeats
Test and deploy / test (push) Successful in 46s
Test and deploy / edge (push) Successful in 2m4s
Test and deploy / deploy (push) Successful in 2m17s

- An image whose subject has no words ("##[ "diana-040-001.jpg" (01/68)")
  is keyed by its set, not its name without numbers: a poster's 263 diana
  sets were one release of 17,808 images.
- imageSet strips "-2048px" and ImageVenue's "_123_244lo", and reads a
  spaced suffix ("she has sensual legs 172 _ 172") as one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daan MeijerandClaude Opus 5.5 committed 2026-10-12 05:45:53 +02:00
1 parent 108d798d97
commit 18a146e130
3 files changed
+51 -14

No files matched your search

+9
View File
@@ -244,10 +244,19 @@ test.group('release / par2 names', () => {
['New Folder (17) sexypattycake_0903040445[1]', 'New Folder ('],
['092_081_2000x1500', '092_'],
['KP0027_197_00', 'KP'],
['01079-106-2048px', '01079-'],
['she has sensual legs 172 _ 172', 'she has sensual legs '],
['jamie.lee.curtis_the.tailor.of.panama_17_123_244lo', 'jamie.lee.curtis_the.tailor.of.panama_'],
['JimAndJoey Kindly Husband-to-Be', ''],
]) assert.equal(imageSet(stem), set, stem)
})
test('an image without words around it is keyed by its set', ({ assert }) => {
const id = (name: string, counter: string) => releaseIdentity({ poster: 'p', subject: `##[ "${name}" (${counter})`, name, weak: false })!
assert.equal(id('diana-040-001.jpg', '01/68').key, id('diana-040-002.jpg', '02/68').key)
assert.notEqual(id('diana-040-001.jpg', '01/68').key, id('diana-407-081.jpg', '81/82').key)
})
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)