1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Test cases for clean_title()
# Each entry: input raw filename/folder → expected cleaned title.
[[]]
= "Tron.Legacy.2010.2160p.UHD.BluRay.REMUX.DV.P7.HDR.MULTI-BenT"
= "Tron Legacy"
[[]]
= "[UsaBit.com] - Pirates.of.Silicon.Valley.1999.DVDRip.x264-RQQU"
= "Pirates of Silicon Valley"
[[]]
= "Dr. Stone [Season 3 + Specials] [BD][1080p][HEVC 10bit x265][Batch]"
= "Dr Stone"
= "dots in 'Dr.' become spaces after bracket stripping"
[[]]
= "Apocalypse Hotel (2025) S01E01 A True Hotel Is Always Storied"
= "Apocalypse Hotel"
[[]]
= "Frieren\uA789 Beyond Journey\u2019s End [BD][1080p][HEVC 10bit x265][Dual Audio][Tenrai-Sensei]"
= "Frieren: Beyond Journey's End"
= "U+A789 modifier letter colon + U+2019 right single quotation"
[[]]
= "All.The.Bright.Places.2020.720p.NF.WEBRip.800MB.x264-GalaxyRG"
= "All The Bright Places"
[[]]
= "Amadeus.1984.4K.HDR.2160p BDRemux Ita Eng x265-NAHOM"
= "Amadeus"
[[]]
= "Delicious In Dungeon S01 1080p BluRay x265"
= "Delicious In Dungeon"
= "season token truncation"
[[]]
= "The_Matrix_1999_BluRay_1080p_x264"
= "The Matrix"
# guessit-derived filenames
[[]]
= "2012.2009.720p.BluRay.x264.DTS-METiS"
= "2012"
= "title IS a year but 2009 follows as release year"
[[]]
= "The.Shawshank.Redemption.1994.1080p.BluRay.x264"
= "The Shawshank Redemption"
[[]]
= "Blade.Runner.2049.2017.2160p.UHD.BluRay.x265-TERMiNAL"
= "Blade Runner 2049"
= "2049 is part of the title; 2017 is the release year"
[[]]
= "A.Fistful.of.Dollars.1964.REMASTERED.1080p.BluRay"
= "A Fistful of Dollars"
[[]]
= "Spirited.Away.2001.Japanese.1080p.BluRay.x264"
= "Spirited Away"
[[]]
= "The.Godfather.Part.II.1974.1080p.BluRay.x264"
= "The Godfather Part II"
[[]]
= "12.Angry.Men.1957.1080p.BluRay.x264"
= "12 Angry Men"
= "leading number is not a year (too short context)"
[[]]
= "Interstellar.2014.IMAX.2160p.UHD.BluRay.x265-TERMiNAL"
= "Interstellar"
[[]]
= "No.Country.for.Old.Men.2007.720p.BluRay"
= "No Country for Old Men"
[[]]
= "The.Grand.Budapest.Hotel.2014.1080p.BluRay.x264"
= "The Grand Budapest Hotel"