File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const releaseGroupTypeMatchers: Array<{ type?: ReleaseGroupType; pattern: RegExp
2222 {
2323 type : 'Soundtrack' ,
2424 pattern :
25- / (?: O r i g i n a l \s | O f f i c i a l \s ) (?: (?: (?: V i d e o \s ) ? G a m e | M o t i o n P i c t u r e | F i l m | M o v i e | T e l e v i s i o n | T V | (?: (?: T V | T e l e v i s i o n ) [ \s - ] ? ) ? (?: M i n i [ \s - ] ? ) ? S e r i e s ? | M u s i c a l ) [ \s - ] ) ? (?: S o u n d t r a c k | S c o r e ) / i,
25+ / (?: O r i g i n a l | O f f i c i a l ) \s (?: (?: (?: V i d e o \s ) ? G a m e | M o t i o n P i c t u r e | F i l m | M o v i e | T e l e v i s i o n | T V | (?: (?: T V | T e l e v i s i o n ) [ \s - ] ? ) ? (?: M i n i [ \s - ] ? ) ? S e r i e s ? | M u s i c a l ) [ \s - ] ) ? (?: S o u n d t r a c k | S c o r e ) / 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}
You can’t perform that action at this time.
0 commit comments