We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4339ce5 commit d9aab90Copy full SHA for d9aab90
modules/season.groovy
@@ -9,6 +9,9 @@
9
// if kv contains Series name from fixed_title (partially or fully), then remove it
10
def kv = fixed_name.contains(fixed_title) ? "" : fixed_name
11
// Sanitize the season name if it just repeats the "Season" string
12
- kv == 'Season '+ s || kv == 'Series '+ s ? "" : kv ? " - " + kv : ""
+ // Also remove redundant "Season X - " or "Series X - " prefix from the season name
13
+ kv = kv == 'Season '+ s || kv == 'Series '+ s ? "" : kv
14
+ kv = kv.replaceAll(/^Season \d+ - /, '').replaceAll(/^Series \d+ - /, '')
15
+ kv ? " - " + kv : ""
16
}
17
{"/"}
0 commit comments