mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-17 07:49:45 +02:00
Add Series, will need to design new and existing flows.
ScanProvider will need to be updated to support adding shows individually as well as SeriesProvider, GEt Unmapped will need to accept a path... move to ScanProvider perhaps.
This commit is contained in:
parent
24f4f608e5
commit
2e9dd7f1ff
@ -46,6 +46,11 @@ public ActionResult Index()
|
|||||||
return View();
|
return View();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ActionResult Add()
|
||||||
|
{
|
||||||
|
return View(new AddSeriesModel());
|
||||||
|
}
|
||||||
|
|
||||||
public ActionResult Sync()
|
public ActionResult Sync()
|
||||||
{
|
{
|
||||||
_syncProvider.BeginSyncUnmappedFolders();
|
_syncProvider.BeginSyncUnmappedFolders();
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
@ -7,7 +9,14 @@ namespace NzbDrone.Web.Models
|
|||||||
{
|
{
|
||||||
public class AddSeriesModel
|
public class AddSeriesModel
|
||||||
{
|
{
|
||||||
|
[DataType(DataType.Text)]
|
||||||
|
[DisplayName("Single Series Path")]
|
||||||
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||||
public string SingleSeries { get; set; }
|
public string SingleSeries { get; set; }
|
||||||
|
|
||||||
|
[DataType(DataType.Text)]
|
||||||
|
[DisplayName("Series Root Path")]
|
||||||
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||||
public string SeriesRoot { get; set; }
|
public string SeriesRoot { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -86,6 +86,7 @@
|
|||||||
<Compile Include="Helpers\HtmlPrefixScopeExtensions.cs" />
|
<Compile Include="Helpers\HtmlPrefixScopeExtensions.cs" />
|
||||||
<Compile Include="Helpers\IsCurrentActionHelper.cs" />
|
<Compile Include="Helpers\IsCurrentActionHelper.cs" />
|
||||||
<Compile Include="Models\AccountModels.cs" />
|
<Compile Include="Models\AccountModels.cs" />
|
||||||
|
<Compile Include="Models\AddSeriesModel.cs" />
|
||||||
<Compile Include="Models\DownloadSettingsModel.cs" />
|
<Compile Include="Models\DownloadSettingsModel.cs" />
|
||||||
<Compile Include="Models\EpisodeSortingModel.cs" />
|
<Compile Include="Models\EpisodeSortingModel.cs" />
|
||||||
<Compile Include="Models\IndexerSettingsModel.cs" />
|
<Compile Include="Models\IndexerSettingsModel.cs" />
|
||||||
@ -274,7 +275,9 @@
|
|||||||
<Content Include="Views\Series\Edit.aspx" />
|
<Content Include="Views\Series\Edit.aspx" />
|
||||||
<Content Include="Views\Series\EpisodeDetail.ascx" />
|
<Content Include="Views\Series\EpisodeDetail.ascx" />
|
||||||
<Content Include="Views\Series\index.aspx" />
|
<Content Include="Views\Series\index.aspx" />
|
||||||
|
<Content Include="Views\Series\SubMenu.ascx" />
|
||||||
<Content Include="Views\Series\Unmapped.aspx" />
|
<Content Include="Views\Series\Unmapped.aspx" />
|
||||||
|
<Content Include="Views\Series\Add.aspx" />
|
||||||
<Content Include="Views\Settings\Notifications.ascx" />
|
<Content Include="Views\Settings\Notifications.ascx" />
|
||||||
<Content Include="Views\Settings\Downloads.ascx" />
|
<Content Include="Views\Settings\Downloads.ascx" />
|
||||||
<Content Include="Views\Settings\EpisodeSorting.ascx" />
|
<Content Include="Views\Settings\EpisodeSorting.ascx" />
|
||||||
|
18
NzbDrone.Web/Views/Series/Add.aspx
Normal file
18
NzbDrone.Web/Views/Series/Add.aspx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NzbDrone.Web.Models.AddSeriesModel>" %>
|
||||||
|
|
||||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||||||
|
Add Series
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
|
||||||
|
<%
|
||||||
|
Html.RenderPartial("SubMenu");
|
||||||
|
%>
|
||||||
|
</asp:Content>
|
||||||
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||||
|
|
||||||
|
//Add New
|
||||||
|
|
||||||
|
|
||||||
|
//Add Existing
|
||||||
|
|
||||||
|
</asp:Content>
|
Loading…
Reference in New Issue
Block a user