Hosts and sponsors without a counter name no upload
"(www.Thunder-News.org) >XXX< <Sponsored by Secretusenet> - "ps-itb10b.r00"" has no counter to bound it, so a poster's uploads were one subject release (1,135 files). Without a counter the remainder drops www hosts and "Sponsored by X"; what's left names the release or the stem does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cdc1cdc0cc
commit
6d301fc668
3 files changed
+47
-2
No files matched your search
@@ -339,6 +339,20 @@ test.group('release / par2 names', () => {
|
||||
assert.equal(track('01', '01-2bm_mq-real_rap_(intro).mp3').name, '2bm_mq')
|
||||
})
|
||||
|
||||
test('a host and a sponsor without a counter name no upload', ({ assert }) => {
|
||||
const id = (subject: string, name: string) => releaseIdentity({ poster: 'p', subject, name, weak: false })!
|
||||
const tn = (tag: string, n: string) => id(`(www.Thunder-News.org) >${tag}< <Sponsored by Secretusenet> - "${n}" yEnc`, n)
|
||||
assert.equal(tn('XXX', 'ps-itb10b.r00').key, tn('XXX', 'ps-itb10b.par2').key)
|
||||
assert.notEqual(tn('XXX', 'ps-itb10b.r00').key, tn('XXX', 'swe6-legsa.r00').key)
|
||||
assert.equal(tn('XXX', 'ps-itb10b.r00').source, 'stem')
|
||||
const named = tn('For.Rent.XXX.720p.Bluray.x264-DPXXXHD', 'dp-for.rent.720p.x264.r00')
|
||||
assert.equal(named.source, 'subject')
|
||||
assert.equal(named.key, tn('For.Rent.XXX.720p.Bluray.x264-DPXXXHD', 'dp-for.rent.720p.x264.par2').key)
|
||||
assert.equal(named.name, '>For Rent XXX 720p Bluray x264 DPXXXHD<')
|
||||
// With a counter the subject stays as it was: the total bounds it.
|
||||
assert.equal(id('(www.Thunder-News.org) >XXX< [01/20] - "ps-itb10b.r00" yEnc', 'ps-itb10b.r00').source, 'subject')
|
||||
})
|
||||
|
||||
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