Fixed: naming config preventing settings from loading properly
(cherry picked from commit fc8359b0d0
)
This commit is contained in:
parent
322ff2af8c
commit
0628b3dc2d
|
@ -35,7 +35,7 @@ define(
|
||||||
var includeSeriesTitle = standardFormat.match(/\{Series[-_. ]Title\}/i);
|
var includeSeriesTitle = standardFormat.match(/\{Series[-_. ]Title\}/i);
|
||||||
var includeEpisodeTitle = standardFormat.match(/\{Episode[-_. ]Title\}/i);
|
var includeEpisodeTitle = standardFormat.match(/\{Episode[-_. ]Title\}/i);
|
||||||
var includeQuality = standardFormat.match(/\{Quality[-_. ]Title\}/i);
|
var includeQuality = standardFormat.match(/\{Quality[-_. ]Title\}/i);
|
||||||
var numberStyle = standardFormat.match(/s?\{season(?:\:00)?\}[ex]\{episode(?:\:00)?\}/i);
|
var numberStyle = standardFormat.match(/s?\{season(?:\:0+)?\}[ex]\{episode(?:\:0+)?\}/i);
|
||||||
var replaceSpaces = standardFormat.indexOf(' ') === -1;
|
var replaceSpaces = standardFormat.indexOf(' ') === -1;
|
||||||
var separator = standardFormat.match(/\}( - |\.-\.|\.| )|( - |\.-\.|\.| )\{/i);
|
var separator = standardFormat.match(/\}( - |\.-\.|\.| )|( - |\.-\.|\.| )\{/i);
|
||||||
|
|
||||||
|
@ -47,11 +47,19 @@ define(
|
||||||
separator = separator[1];
|
separator = separator[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (numberStyle === null) {
|
||||||
|
numberStyle = 'S{season:00}E{episode:00}';
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
numberStyle = numberStyle[0];
|
||||||
|
}
|
||||||
|
|
||||||
this.model.set({
|
this.model.set({
|
||||||
includeSeriesTitle: includeSeriesTitle !== null,
|
includeSeriesTitle: includeSeriesTitle !== null,
|
||||||
includeEpisodeTitle: includeEpisodeTitle !== null,
|
includeEpisodeTitle: includeEpisodeTitle !== null,
|
||||||
includeQuality: includeQuality !== null,
|
includeQuality: includeQuality !== null,
|
||||||
numberStyle: numberStyle[0],
|
numberStyle: numberStyle,
|
||||||
replaceSpaces: replaceSpaces,
|
replaceSpaces: replaceSpaces,
|
||||||
separator: separator
|
separator: separator
|
||||||
}, { silent: true });
|
}, { silent: true });
|
||||||
|
|
Loading…
Reference in New Issue