mirror of
https://github.com/Radarr/Radarr
synced 2025-02-26 16:13:19 +00:00
Fixed some things regarding director's cut / special edition.
This commit is contained in:
parent
eeb3c88131
commit
06d39579a5
3 changed files with 8 additions and 4 deletions
|
@ -20,14 +20,14 @@ public static class Parser
|
||||||
//Special, Despecialized, etc. Edition Movies, e.g: Mission.Impossible.3.Special.Edition.2011
|
//Special, Despecialized, etc. Edition Movies, e.g: Mission.Impossible.3.Special.Edition.2011
|
||||||
new Regex(@"^(?<title>.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<edition>(\w+\.?edition))\.(?<year>(?<!e|x)\d{4}(?!p|i|\d+|\)|\]|\W\d+)))+(\W+|_|$)(?!\\)",
|
new Regex(@"^(?<title>.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<edition>(\w+\.?edition))\.(?<year>(?<!e|x)\d{4}(?!p|i|\d+|\)|\]|\W\d+)))+(\W+|_|$)(?!\\)",
|
||||||
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||||
//Special, Despecialized, etc. Edition Movies, e.g: Mission.Impossible.3.2011.Special.Edition
|
//Special, Despecialized, etc. Edition Movies, e.g: Mission.Impossible.3.2011.Special.Edition //TODO: Seems to slow down parsing heavily!
|
||||||
new Regex(@"^(?<title>.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<year>(?<!e|x)\d{4}(?!p|i|\d+|\)|\]|\W\d+)))+(\W+|_|$)(?!\\)(?<edition>(\w+\.?edition))",
|
new Regex(@"^(?<title>.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<year>(?<!e|x)\d{4}(?!p|i|\d+|\)|\]|\W\d+)))+(\W+|_|$)(?!\\)(?<edition>((\w+\.?){1,3}edition))",
|
||||||
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||||
//Cut Movies, e.g: Mission.Impossible.3.Directors.Cut.2011
|
//Cut Movies, e.g: Mission.Impossible.3.Directors.Cut.2011
|
||||||
new Regex(@"^(?<title>.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<edition>(\w+\.?cut))\.(?<year>(?<!e|x)\d{4}(?!p|i|\d+|\)|\]|\W\d+)))+(\W+|_|$)(?!\\)",
|
new Regex(@"^(?<title>.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<edition>(\w+\.?cut))\.(?<year>(?<!e|x)\d{4}(?!p|i|\d+|\)|\]|\W\d+)))+(\W+|_|$)(?!\\)",
|
||||||
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||||
//Cut Movies, e.g: Mission.Impossible.3.2011.Directors.Cut
|
//Cut Movies, e.g: Mission.Impossible.3.2011.Directors.Cut
|
||||||
new Regex(@"^(?<title>.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<year>(?<!e|x)\d{4}(?!p|i|\d+|\)|\]|\W\d+)))+(\W+|_|$)(?!\\)(?<edition>(\w+\.?cut))",
|
new Regex(@"^(?<title>.+?)?(?:(?:[-_\W](?<![()\[!]))*(?<year>(?<!e|x)\d{4}(?!p|i|\d+|\)|\]|\W\d+)))+(\W+|_|$)(?!\\)(?<edition>((\w+\.?){1,3}cut))",
|
||||||
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||||
|
|
||||||
//Normal movie format, e.g: Mission.Impossible.3.2011
|
//Normal movie format, e.g: Mission.Impossible.3.2011
|
||||||
|
|
|
@ -24,7 +24,7 @@ module.exports = Backgrid.Cell.extend({
|
||||||
if (cut) {
|
if (cut) {
|
||||||
this.$el.html('<i class="icon-sonarr-form-cut"/ title="{0}">'.format(edition));
|
this.$el.html('<i class="icon-sonarr-form-cut"/ title="{0}">'.format(edition));
|
||||||
} else {
|
} else {
|
||||||
this.$el.html('<i class="icon-sonarr-form-info"/ title="{0}">'.format(edition));
|
this.$el.html('<i class="icon-sonarr-form-special"/ title="{0}">'.format(edition));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*this.$el.popover({
|
/*this.$el.popover({
|
||||||
|
|
|
@ -125,6 +125,10 @@
|
||||||
.fa-icon-content(@fa-var-scissors);
|
.fa-icon-content(@fa-var-scissors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-sonarr-form-special {
|
||||||
|
.fa-icon-content(@fa-var-exclamation-circle);
|
||||||
|
}
|
||||||
|
|
||||||
.icon-sonarr-form-info-link {
|
.icon-sonarr-form-info-link {
|
||||||
.clickable();
|
.clickable();
|
||||||
.fa-icon-content(@fa-var-info-circle);
|
.fa-icon-content(@fa-var-info-circle);
|
||||||
|
|
Loading…
Reference in a new issue