A random name's volumes with extensions of their own; a padded volume after a date
- "df2BkeRxIvHcWrsWwwz.part01.cer" … ".part69.bdmv", "jA0eSSUMat8tQtIKUyPMA.part01": obfuscators give each volume its own extension (or none); for a random name (no dots or spaces) .partNN and that extension go. - "(????) [0001/1009] - "CHT PCK 2 9.26.001"": a volume of 3-5 digits after a dot counts with a digit before it too (5,419 single files of YME). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c624a624df
commit
208ca1d535
3 files changed
+53
-4
No files matched your search
@@ -458,6 +458,17 @@ test.group('release / par2 names', () => {
|
||||
assert.equal(tender('003', 'a2 (2).jpg').key, tender('002', 'a1.jpg').key)
|
||||
})
|
||||
|
||||
test("a random name's volumes with extensions of their own; a padded volume after a date", ({ assert }) => {
|
||||
const id = (i: string, total: string, n: string) => releaseIdentity({ poster: 'p', subject: `[${i}/${total}] - "${n}" yEnc`, name: n, weak: false })!
|
||||
assert.equal(id('01', '69', 'df2BkeRxIvHcWrsWwwz.part01.cer').key, id('69', '69', 'df2BkeRxIvHcWrsWwwz.part69.bdmv').key)
|
||||
assert.equal(id('01', '32', 'jA0eSSUMat8tQtIKUyPMA.part01').key, id('32', '32', 'jA0eSSUMat8tQtIKUyPMA.part32').key)
|
||||
// A readable name keeps its part.
|
||||
assert.notEqual(id('01', '2', 'Some.Movie.Part01.mkv').key, id('02', '2', 'Some.Movie.Part02.mkv').key)
|
||||
const pck = (i: string, n: string) => releaseIdentity({ poster: 'YME', subject: `(????) [${i}/1009] - "${n}" yEnc`, name: n, weak: false })!
|
||||
assert.equal(pck('0001', 'CHT PCK 2 9.26.001').key, pck('0002', 'CHT PCK 2 9.26.002').key)
|
||||
assert.notEqual(pck('0001', 'CHT PCK 2 9.26.001').key, pck('0400', 'CHT PCK 4 10.26.400').key)
|
||||
})
|
||||
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user