Identity: per-file hex ids, dated stems, season packs under a bare counter
From the corpus sweep (695 ranges):
- A bracketed hex id per file ("[PRiVATE] Rosewood.S02E08… [1f1793f68d5321]
[newzNZB] [01/22]") goes from the subject: nEwZ[NZB]'s 32,101 single files.
- A stem that starts with a date is specific enough for the poster-tag rule
("09-30-2008_CTC.r00" under "#sterntuary - Coast To Coast Radio Show":
still one release of 25,188 files, the stem being too short to "describe").
- Episodes under a bare counter ("[01/36] "Pokemon - S02E01 - Pallet Party
Panic.mkv"") are one release per show, season and counter total.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1cb6a4554f
commit
1866e38c25
3 files changed
+72
-12
No files matched your search
@@ -276,6 +276,20 @@ test.group('release / par2 names', () => {
|
||||
assert.notEqual(vlad('185', 77, 'P8250001.JPG').key, vlad('234', 77, 'P5300085.JPG').key)
|
||||
})
|
||||
|
||||
test('per-file hex ids go; dated stems are specific; season packs under a bare counter', ({ assert }) => {
|
||||
const id = (poster: string, subject: string, name: string) => releaseIdentity({ poster, subject, name, weak: false })!
|
||||
const nz = (hex: string, i: number, n: string) =>
|
||||
id('nEwZ', `[PRiVATE] Rosewood.S02E08.SPANiSH.1080p.HDTV.x264-FCC [${hex}] [newzNZB] [${String(i).padStart(2, '0')}/22] - "${n}" yEnc`, n)
|
||||
assert.equal(nz('1f1793f68d5321', 1, '[05cbdb538a]_x.nfo').key, nz('65e6464bc03cad', 2, '[e8a4e2c182]_x.r03').key)
|
||||
const show = (n: string) => id('#sterntuary <aa@aa.com>', `#sterntuary - Coast To Coast Radio Show - "${n}" yEnc`, n)
|
||||
assert.equal(show('09-30-2008_CTC.nfo').key, show('09-30-2008_CTC.r00').key)
|
||||
assert.notEqual(show('09-30-2008_CTC.r00').key, show('10-01-2008_CTC.r00').key)
|
||||
const ep = (i: number, n: string) => id('p', `[${String(i).padStart(2, '0')}/36] "${n}"`, n)
|
||||
assert.equal(ep(1, 'Pokemon - S02E01 - Pallet Party Panic.mkv').key, ep(2, 'Pokemon - S02E02 - Gotta Catch Ya Later.mkv').key)
|
||||
assert.equal(ep(1, 'Pokemon - S02E01 - Pallet Party Panic.mkv').name, 'Pokemon S02')
|
||||
assert.notEqual(ep(1, 'Pokemon - S02E01 - Pallet Party Panic.mkv').key, ep(1, 'Pokemon - S03E01 - x.mkv').key)
|
||||
})
|
||||
|
||||
test("a scene index's files go with the release: no case, no 00-", ({ assert }) => {
|
||||
const id = (n: string) => releaseIdentity({ poster: 'SavageCobra <x@y.nhc>', subject: n, name: n, weak: false })!
|
||||
const a = id('00-laura_van_dam_-_capture_radio_113-cable-10-10-2026-talion.m3u')
|
||||
|
||||
Reference in new issue
Block a user