Dates are no file counters
"Avira AntiVir Rescue System 08-29-2011.rar", "Android Apps and Games Pack 27-02-2011", "…-cable-18-08-2012-1king.rar": counterTotal read the date as a counter (8 of 29, 2 of 2011), so the release showed a wrong file total and counted as incomplete. Dates (2011-08-29, 08-29-2011, 29.08.2011, 02-2011) are taken out before the written-out counters are read; [i/M] and (i/M) come first as before. Both implementations; tests; fixtures identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8dfccc1c8e
commit
0577b16e5e
3 files changed
+30
-2
No files matched your search
@@ -214,6 +214,15 @@ test.group('release / par2 names', () => {
|
||||
assert.isFalse(randomPoster('w.merklein@freenet.de (muffin)'))
|
||||
})
|
||||
|
||||
test('dates are no file counters', async ({ assert }) => {
|
||||
const { counterTotal } = await import('#lib/release/identity')
|
||||
assert.isUndefined(counterTotal('Avira AntiVir Rescue System 08-29-2011.rar'))
|
||||
assert.isUndefined(counterTotal('Android Apps and Games Pack 27-02-2011.rar'))
|
||||
assert.isUndefined(counterTotal('Supernova-clubbin (slamfm)-cable-18-08-2012-1king.rar'))
|
||||
assert.equal(counterTotal('Some.Album [03/12] - "x.mp3"'), 12)
|
||||
assert.equal(counterTotal('File 07390 of 19411 "x.epub"'), 19411)
|
||||
})
|
||||
|
||||
test('split parts with two-digit numbers share a stem', ({ assert }) => {
|
||||
assert.equal(fileStem('Admiral.EP05.2008.720p.Rus.HDCLUB.mkv.21'), fileStem('Admiral.EP05.2008.720p.Rus.HDCLUB.mkv.22'))
|
||||
assert.equal(fileStem('Naslednica_po_prjamoy_DVDRip.avi.05'), 'Naslednica_po_prjamoy_DVDRip')
|
||||
|
||||
Reference in new issue
Block a user