File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -145,9 +145,10 @@ var TV []*Test = []*Test{
145
145
146
146
var Movies []* Test = []* Test {
147
147
{
148
- "year as title" ,
148
+ "year in title" ,
149
149
[]string {
150
150
"/src/Blade Runner 2049 (2017)/Blade Runner 2049.mkv" ,
151
+ "/src/Blade Runner 2049 (2017).mkv" ,
151
152
},
152
153
types.Item {
153
154
Category : types .Video ,
@@ -158,6 +159,20 @@ var Movies []*Test = []*Test{
158
159
},
159
160
},
160
161
},
162
+ {
163
+ "year as title" ,
164
+ []string {
165
+ "/movies/1917 (2020).mkv" ,
166
+ },
167
+ types.Item {
168
+ Category : types .Video ,
169
+ MediaType : movie .Movie ,
170
+ MovieMetadata : movie.Metadata {
171
+ Title : "1917" ,
172
+ ReleaseYear : 2020 ,
173
+ },
174
+ },
175
+ },
161
176
{
162
177
"typical" ,
163
178
[]string {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
20
20
)
21
21
22
22
var defaultMovieMatchers = []string {
23
- `(?i)\b([\s\w.-]*)[\s.\/-]+[\s.\/-] ?(?:[\s\(.\/ -]?(\d{4})[\s\).\/ -]?)(?:\s*[\(\[].*[\)\]])?(?:\/|.[A-Za-z]{3})` , // matches "Name (YEAR)."
23
+ `(?i)\b([\s\w.-]*)[\s.-] ?(?:[\s\(.-]?(\d{4})[\s\).-]?)(?:\s*[\(\[].*[\)\]])?(?:\/|.[A-Za-z]{3})` , // matches "Name (YEAR)."
24
24
}
25
25
26
26
type MoviePreProcessor struct {
You can’t perform that action at this time.
0 commit comments