@@ -22,23 +22,23 @@ func Test_processTitle(t *testing.T) {
22
22
title : "The Quick Brown Fox (2022)" ,
23
23
matchRelease : false ,
24
24
},
25
- want : []string {"The?Quick?Brown?Fox" },
25
+ want : []string {"The?Quick?Brown?Fox" , "The?Quick?Brown?Fox*2022" , "The?Quick?Brown?Fox*2022?" },
26
26
},
27
27
{
28
28
name : "test_02" ,
29
29
args : args {
30
30
title : "The Matrix - Reloaded (2929)" ,
31
31
matchRelease : false ,
32
32
},
33
- want : []string {"The?Matrix*Reloaded" },
33
+ want : []string {"The?Matrix*Reloaded" , "The?Matrix*Reloaded*2929" , "The?Matrix*Reloaded*2929?" },
34
34
},
35
35
{
36
36
name : "test_03" ,
37
37
args : args {
38
38
title : "The Matrix -(Test)- Reloaded (2929)" ,
39
39
matchRelease : false ,
40
40
},
41
- want : []string {"The?Matrix*Test*Reloaded" },
41
+ want : []string {"The?Matrix*" , "The?Matrix" , "The?Matrix* Test*Reloaded*2929?" , "The?Matrix*Test*Reloaded*2929 " },
42
42
},
43
43
{
44
44
name : "test_04" ,
@@ -54,7 +54,7 @@ func Test_processTitle(t *testing.T) {
54
54
title : "Arrr!! The Title (2020)" ,
55
55
matchRelease : false ,
56
56
},
57
- want : []string {"Arrr*The?Title" },
57
+ want : []string {"Arrr*The?Title" , "Arrr*The?Title*2020" , "Arrr*The?Title*2020?" },
58
58
},
59
59
{
60
60
name : "test_06" ,
@@ -192,6 +192,14 @@ func Test_processTitle(t *testing.T) {
192
192
},
193
193
want : []string {"A?Quiet?Place*Day?One" },
194
194
},
195
+ {
196
+ name : "test_23" ,
197
+ args : args {
198
+ title : "Whose Line Is It Anyway? (US) (1932)" ,
199
+ matchRelease : false ,
200
+ },
201
+ want : []string {"Whose?Line?Is?It?Anyway" , "Whose?Line?Is?It?Anyway?" , "Whose?Line?Is?It?Anyway*US*1932" , "Whose?Line?Is?It?Anyway*US*1932?" },
202
+ },
195
203
}
196
204
for _ , tt := range tests {
197
205
t .Run (tt .name , func (t * testing.T ) {
0 commit comments