Skip to content

Commit d9946d8

Browse files
committed
fix: review comments
1 parent e486aa6 commit d9946d8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

harmonizer/release_types.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const releaseGroupTypeMatchers: Array<{ type?: ReleaseGroupType; pattern: RegExp
2222
{
2323
type: 'Soundtrack',
2424
pattern:
25-
/(?:Original\s|Official\s)(?:(?:(?:Video\s)?Game|Motion Picture|Film|Movie|Television|TV|(?:(?:TV|Television)[\s-]?)?(?:Mini[\s-]?)?Series?|Musical)[\s-])?(?:Soundtrack|Score)/i,
25+
/(?:Original|Official)\s(?:(?:(?:Video\s)?Game|Motion Picture|Film|Movie|Television|TV|(?:(?:TV|Television)[\s-]?)?(?:Mini[\s-]?)?Series?|Musical)[\s-])?(?:Soundtrack|Score)/i,
2626
},
2727
// Common soundtrack title: "Soundtrack from the <Medium>", should also match "Soundtrack from the <Streaming service> <Medium>"
2828
{
@@ -61,10 +61,9 @@ export function guessTypesFromTitle(title: string): Set<ReleaseGroupType> {
6161
return;
6262
}
6363
const type = match[1] || matcher.type;
64-
if (!type) {
65-
return;
64+
if (type) {
65+
types.add(capitalizeReleaseType(type));
6666
}
67-
types.add(capitalizeReleaseType(type));
6867
});
6968
return types;
7069
}

0 commit comments

Comments
 (0)