An image's post token needs a word in it, not only a size
Test and deploy / test (push) Successful in 46s
Test and deploy / edge (push) Successful in 2m1s
Test and deploy / deploy (push) Successful in 1m23s

"01of37 ## Alexi uses strange toys … ## alexis001.jpg (1/1) 57295b": with
the whole text as the name, the remainder is the file's size "57295b", which
229189f took for a post token: 16 sets of 36-37 images became 268 releases.
"MDG005b" has letters in a row; "57295b" doesn't.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daan MeijerandClaude Opus 5.5 committed 2026-10-13 10:33:52 +02:00
1 parent 652f278474
commit 3fd08b598a
3 files changed
+19 -2

No files matched your search

+7
View File
@@ -419,6 +419,13 @@ test.group('release / par2 names', () => {
const mdg = (post: string, i: string, n: string) => id(`${post} - (${i}/90) "${n}" - 16,14 MB - yEnc`, n)
assert.equal(mdg('MDG005b', '01', 'IMG_2307.JPG').key, mdg('MDG005b', '02', 'IMG_2308.jpg').key)
assert.notEqual(mdg('MDG005b', '01', 'IMG_2307.JPG').key, mdg('MDG006a', '01', 'IMG_4410.JPG').key)
// A size isn't a post token.
// The whole text before "(1/1)" is the name; the size follows the segment counter.
const alexi = (i: string, size: string) => {
const n = `${i}of37 ## Alexi uses strange toys to make herself come ## alexis0${i}.jpg`
return id(`${n} ${size}`, n)
}
assert.equal(alexi('01', '57295b').key, alexi('02', '32202b').key)
})
test('an image without words around it is keyed by its set', ({ assert }) => {