A long number is a per-post id only under a counter
Test and deploy / test (push) Successful in 50s
Test and deploy / edge (push) Successful in 1m55s
Test and deploy / deploy (push) Successful in 1m32s

"<kere.ws/illuminatenboard.org> - ID - 1855891249 - Along.The.Ridge.2006.Limited.PAL.DVDr-TWCiSO.rar":
no counter, the board's ID kept isPosterTag from taking the text for a tag,
and a dump of thousands of releases was one of 9,444 files. FTD's ids come
with a counter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daan MeijerandClaude Opus 5.5 committed 2026-10-13 02:41:40 +02:00
1 parent 8d5385fdec
commit 1c8da1dd12
3 files changed
+11 -4

No files matched your search

+4 -2
View File
@@ -640,9 +640,9 @@ pub fn is_poster_tag(remainder: &str, stem: &str, counted: bool) -> bool {
let words: Vec<&str> = lower.split(|c: char| !(c.is_ascii_lowercase() || c.is_ascii_digit())).filter(|w| !w.is_empty()).collect();
let compact: String = words.concat();
let whole: std::collections::HashSet<&str> = words.iter().copied().collect();
// A per-post id, also inside a word ("FTD772544").
// A per-post id, also inside a word ("FTD772544"), under a counter; without one the board's or the dump's.
let b = remainder.as_bytes();
if b.windows(5).any(|w| w.iter().all(u8::is_ascii_digit)) {
if counted && b.windows(5).any(|w| w.iter().all(u8::is_ascii_digit)) {
return false;
}
let rem = remainder.to_lowercase();
@@ -1262,6 +1262,8 @@ mod tests {
assert_eq!(a.source, "stem");
let ftd1 = release_identity("p", r#"FTD769997 [01/23] - "Prison.Break.S04E02.720p.part01.rar" yEnc"#, "Prison.Break.S04E02.720p.part01.rar");
let ftd2 = release_identity("p", r#"FTD769997 [23/23] - "Prison.Break.S04E02.720p.part.par2" yEnc"#, "Prison.Break.S04E02.720p.part.par2");
let kere = |n: &str| release_identity("p", &format!("<kere.ws/illuminatenboard.org> - ID - 1855891249 - {n}"), n);
assert_ne!(kere("Along.The.Ridge.2006.Limited.PAL.DVDr-TWCiSO.rar").key, kere("Altera.QUARTUS.II.DSP.Builder.v7.2.SP1-SHooTERS.rar").key);
assert_eq!(ftd1.key, ftd2.key);
let scene = release_identity("p", r#"Some.Movie.2008.DVDRip.XviD-GRP [01/40] - "grp-sm.part01.rar" yEnc"#, "grp-sm.part01.rar");
assert_eq!(scene.name, "Some Movie 2008 DVDRip XviD GRP");