-
-
@Html.LabelFor(m => m.NumberStyle)
-
@Html.DropDownListFor(m => m.NumberStyle, Model.NumberStyles)
-
-
-
@Html.ValidationMessageFor(m => m.NumberStyle)
-
@Html.DescriptionFor(m => m.NumberStyle)
-
+
+
@Html.ValidationMessageFor(m => m.AppendQuality)
+
@Html.DescriptionFor(m => m.AppendQuality)
-
-
-
-
@Html.LabelFor(m => m.MultiEpisodeStyle)
-
@Html.DropDownListFor(m => m.MultiEpisodeStyle, Model.MultiEpisodeStyles)
-
-
-
@Html.ValidationMessageFor(m => m.MultiEpisodeStyle)
-
@Html.DescriptionFor(m => m.MultiEpisodeStyle)
-
+
+
+
+
@Html.LabelFor(m => m.SeasonFolders)
+
@Html.CheckBoxFor(m => m.SeasonFolders)
-
-
-
-
-
-
+
+
@Html.ValidationMessageFor(m => m.SeasonFolders)
+
@Html.DescriptionFor(m => m.SeasonFolders)
+
+
+
+
+
@Html.LabelFor(m => m.SeasonFolderFormat)
+
@Html.TextBoxFor(m => m.SeasonFolderFormat)
+
+
+
@Html.ValidationMessageFor(m => m.SeasonFolderFormat)
+
@Html.DescriptionFor(m => m.SeasonFolderFormat)
+
+
+
+
+
@Html.LabelFor(m => m.SeparatorStyle)
+
@Html.DropDownListFor(m => m.SeparatorStyle, Model.SeparatorStyles)
+
+
+
@Html.ValidationMessageFor(m => m.SeparatorStyle)
+
@Html.DescriptionFor(m => m.SeparatorStyle)
+
+
+
+
+
@Html.LabelFor(m => m.NumberStyle)
+
@Html.DropDownListFor(m => m.NumberStyle, Model.NumberStyles)
+
+
+
@Html.ValidationMessageFor(m => m.NumberStyle)
+
@Html.DescriptionFor(m => m.NumberStyle)
+
+
+
+
+
@Html.LabelFor(m => m.MultiEpisodeStyle)
+
@Html.DropDownListFor(m => m.MultiEpisodeStyle, Model.MultiEpisodeStyles)
+
+
+
@Html.ValidationMessageFor(m => m.MultiEpisodeStyle)
+
@Html.DescriptionFor(m => m.MultiEpisodeStyle)
+
+
+
+
+
+
+
}
-
+
+
+@section Scripts{
+
\ No newline at end of file
+ if ($('#SeriesName').attr('checked')) {
+ result += 'Series Name';
+ result += separator;
+ }
+
+ var numberStyle = $("#NumberStyle option:selected").text();
+ var numberId = $("#NumberStyle option:selected").val();
+ var style = $("#MultiEpisodeStyle option:selected").val();
+
+ result += numberStyle;
+
+ if (style == 0)
+ result += '-06';
+
+ if (style == 1) {
+ result += separator;
+ result += numberStyle.replace('5', '6');
+ }
+
+ if (style == 2) {
+ if (numberId <= 1)
+ result += 'x06';
+
+ if (numberId == 2)
+ result += 'E06';
+
+ if (numberId == 3)
+ result += 'e06';
+ }
+
+ if (style == 3) {
+ if (numberId <= 1)
+ result += '-x06';
+
+ if (numberId == 2)
+ result += '-E06';
+
+ if (numberId == 3)
+ result += '-e06';
+ }
+
+ if ($('#EpisodeName').attr('checked')) {
+ result += separator;
+ result += 'Episode Name';
+ }
+
+ if ($('#AppendQuality').attr('checked'))
+ result += ' [TV]';
+
+ if ($('#ReplaceSpaces').attr('checked'))
+ result = result.replace(/\s/g, '.');
+
+ result = '
Multi-Episode Example: ' + result;
+
+ $('#multiEpisodeExample').html(result);
+ }
+
+}
diff --git a/NzbDrone.Web/Views/Settings/Indexers.cshtml b/NzbDrone.Web/Views/Settings/Indexers.cshtml
index 737f53c19..44aca26e2 100644
--- a/NzbDrone.Web/Views/Settings/Indexers.cshtml
+++ b/NzbDrone.Web/Views/Settings/Indexers.cshtml
@@ -1,28 +1,5 @@
@model NzbDrone.Web.Models.IndexerSettingsModel
-