mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-20 18:02:44 +01:00
New: Bump Version to V3 to please the masses
This commit is contained in:
parent
29011cac5e
commit
0aa8ac5d39
14
.gitignore
vendored
14
.gitignore
vendored
@ -107,26 +107,24 @@ _NCrunch_*
|
|||||||
_TeamCity*
|
_TeamCity*
|
||||||
|
|
||||||
# Radarr
|
# Radarr
|
||||||
Backups/
|
|
||||||
logs/
|
|
||||||
#MediaCover/
|
|
||||||
UpdateLogs/
|
|
||||||
xdg/
|
|
||||||
config.xml
|
config.xml
|
||||||
logs.db*
|
nzbdrone.log*txt
|
||||||
nzbdrone.db*
|
UpdateLogs/
|
||||||
nzbdrone.pid
|
|
||||||
*workspace.xml
|
*workspace.xml
|
||||||
*.test-cache
|
*.test-cache
|
||||||
*.userprefs
|
*.userprefs
|
||||||
*/test-results/*
|
*/test-results/*
|
||||||
src/UI/.idea/*
|
src/UI/.idea/*
|
||||||
|
*log.txt
|
||||||
node_modules/
|
node_modules/
|
||||||
_output*
|
_output*
|
||||||
|
_artifacts
|
||||||
_rawPackage/
|
_rawPackage/
|
||||||
_dotTrace*
|
_dotTrace*
|
||||||
_tests/
|
_tests/
|
||||||
*.Result.xml
|
*.Result.xml
|
||||||
|
coverage*.xml
|
||||||
|
coverage*.json
|
||||||
setup/Output/
|
setup/Output/
|
||||||
*.~is
|
*.~is
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ variables:
|
|||||||
outputFolder: './_output'
|
outputFolder: './_output'
|
||||||
artifactsFolder: './_artifacts'
|
artifactsFolder: './_artifacts'
|
||||||
testsFolder: './_tests'
|
testsFolder: './_tests'
|
||||||
majorVersion: '2.0.0'
|
majorVersion: '3.0.0'
|
||||||
minorVersion: $[counter('minorVersion', 2000)]
|
minorVersion: $[counter('minorVersion', 2000)]
|
||||||
radarrVersion: '$(majorVersion).$(minorVersion)'
|
radarrVersion: '$(majorVersion).$(minorVersion)'
|
||||||
buildName: '$(Build.SourceBranchName).$(radarrVersion)'
|
buildName: '$(Build.SourceBranchName).$(radarrVersion)'
|
||||||
|
@ -23,11 +23,11 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2.0</string>
|
<string>10.0.0.0</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>xmmd</string>
|
<string>xmmd</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>2.0</string>
|
<string>10.0.0.0</string>
|
||||||
<key>NSAppleScriptEnabled</key>
|
<key>NSAppleScriptEnabled</key>
|
||||||
<string>YES</string>
|
<string>YES</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#define AppURL "https://radarr.video/"
|
#define AppURL "https://radarr.video/"
|
||||||
#define ForumsURL "https://forums.radarr.video/"
|
#define ForumsURL "https://forums.radarr.video/"
|
||||||
#define AppExeName "Radarr.exe"
|
#define AppExeName "Radarr.exe"
|
||||||
#define BaseVersion "2.0.0"
|
#define BaseVersion GetEnv('MAJORVERSION')
|
||||||
#define BuildNumber GetEnv('MINORVERSION')
|
#define BuildNumber GetEnv('MINORVERSION')
|
||||||
#define BuildVersion GetEnv('RADARRVERSION')
|
#define BuildVersion GetEnv('RADARRVERSION')
|
||||||
#define BranchName GetEnv('BUILD_SOURCEBRANCHNAME')
|
#define BranchName GetEnv('BUILD_SOURCEBRANCHNAME')
|
||||||
|
@ -10,7 +10,7 @@ public class BuildInfoFixture
|
|||||||
[Test]
|
[Test]
|
||||||
public void should_return_version()
|
public void should_return_version()
|
||||||
{
|
{
|
||||||
BuildInfo.Version.Major.Should().BeOneOf(2, 10);
|
BuildInfo.Version.Major.Should().BeOneOf(3, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -17,7 +17,7 @@ public static IContainer BuildContainer(StartupContext args)
|
|||||||
"Radarr.Core",
|
"Radarr.Core",
|
||||||
"Radarr.Api",
|
"Radarr.Api",
|
||||||
"Radarr.SignalR",
|
"Radarr.SignalR",
|
||||||
"Radarr.Api.V2",
|
"Radarr.Api.V3",
|
||||||
"Radarr.Http"
|
"Radarr.Http"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<ProjectReference Include="..\NzbDrone.Common\Radarr.Common.csproj" />
|
<ProjectReference Include="..\NzbDrone.Common\Radarr.Common.csproj" />
|
||||||
<ProjectReference Include="..\NzbDrone.Core\Radarr.Core.csproj" />
|
<ProjectReference Include="..\NzbDrone.Core\Radarr.Core.csproj" />
|
||||||
<ProjectReference Include="..\NzbDrone.SignalR\Radarr.SignalR.csproj" />
|
<ProjectReference Include="..\NzbDrone.SignalR\Radarr.SignalR.csproj" />
|
||||||
<ProjectReference Include="..\Radarr.Api.V2\Radarr.Api.V2.csproj" />
|
<ProjectReference Include="..\Radarr.Api.V3\Radarr.Api.V3.csproj" />
|
||||||
<ProjectReference Include="..\Radarr.Http\Radarr.Http.csproj" />
|
<ProjectReference Include="..\Radarr.Http\Radarr.Http.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
|
|
||||||
namespace NzbDrone.Integration.Test.ApiTests
|
namespace NzbDrone.Integration.Test.ApiTests
|
||||||
{
|
{
|
||||||
@ -15,7 +15,7 @@ public void should_be_able_to_add_to_blacklist()
|
|||||||
{
|
{
|
||||||
_movie = EnsureMovie(11, "The Blacklist");
|
_movie = EnsureMovie(11, "The Blacklist");
|
||||||
|
|
||||||
Blacklist.Post(new Radarr.Api.V2.Blacklist.BlacklistResource
|
Blacklist.Post(new Radarr.Api.V3.Blacklist.BlacklistResource
|
||||||
{
|
{
|
||||||
MovieId = _movie.Id,
|
MovieId = _movie.Id,
|
||||||
SourceTitle = "Blacklist.S01E01.Brought.To.You.By-BoomBoxHD"
|
SourceTitle = "Blacklist.S01E01.Brought.To.You.By-BoomBoxHD"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
using NzbDrone.Integration.Test.Client;
|
using NzbDrone.Integration.Test.Client;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Radarr.Api.V2.DiskSpace;
|
using Radarr.Api.V3.DiskSpace;
|
||||||
using NzbDrone.Integration.Test.Client;
|
using NzbDrone.Integration.Test.Client;
|
||||||
|
|
||||||
namespace NzbDrone.Integration.Test.ApiTests
|
namespace NzbDrone.Integration.Test.ApiTests
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
using NzbDrone.Test.Common;
|
using NzbDrone.Test.Common;
|
||||||
|
|
||||||
namespace NzbDrone.Integration.Test.ApiTests
|
namespace NzbDrone.Integration.Test.ApiTests
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Radarr.Api.V2.Indexers;
|
using Radarr.Api.V3.Indexers;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Radarr.Api.V2.RootFolders;
|
using Radarr.Api.V3.RootFolders;
|
||||||
|
|
||||||
namespace NzbDrone.Integration.Test.ApiTests
|
namespace NzbDrone.Integration.Test.ApiTests
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Radarr.Api.V2.DownloadClient;
|
using Radarr.Api.V3.DownloadClient;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
namespace NzbDrone.Integration.Test.Client
|
namespace NzbDrone.Integration.Test.Client
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using Radarr.Api.V2.Indexers;
|
using Radarr.Api.V3.Indexers;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
namespace NzbDrone.Integration.Test.Client
|
namespace NzbDrone.Integration.Test.Client
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
namespace NzbDrone.Integration.Test.Client
|
namespace NzbDrone.Integration.Test.Client
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Radarr.Api.V2.Notifications;
|
using Radarr.Api.V3.Notifications;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
namespace NzbDrone.Integration.Test.Client
|
namespace NzbDrone.Integration.Test.Client
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using Radarr.Api.V2.Indexers;
|
using Radarr.Api.V3.Indexers;
|
||||||
using RestSharp;
|
using RestSharp;
|
||||||
|
|
||||||
namespace NzbDrone.Integration.Test.Client
|
namespace NzbDrone.Integration.Test.Client
|
||||||
|
@ -22,15 +22,15 @@ public void should_log_on_error()
|
|||||||
var logFile = "radarr.trace.txt";
|
var logFile = "radarr.trace.txt";
|
||||||
var logLines = Logs.GetLogFileLines(logFile);
|
var logLines = Logs.GetLogFileLines(logFile);
|
||||||
|
|
||||||
var resultPost = Movies.InvalidPost(new Radarr.Api.V2.Movies.MovieResource());
|
var resultPost = Movies.InvalidPost(new Radarr.Api.V3.Movies.MovieResource());
|
||||||
|
|
||||||
// Skip 2 and 1 to ignore the logs endpoint
|
// Skip 2 and 1 to ignore the logs endpoint
|
||||||
logLines = Logs.GetLogFileLines(logFile).Skip(logLines.Length + 2).ToArray();
|
logLines = Logs.GetLogFileLines(logFile).Skip(logLines.Length + 2).ToArray();
|
||||||
Array.Resize(ref logLines, logLines.Length - 1);
|
Array.Resize(ref logLines, logLines.Length - 1);
|
||||||
|
|
||||||
logLines.Should().Contain(v => v.Contains("|Trace|Http|Req") && v.Contains("/api/v2/movie/"));
|
logLines.Should().Contain(v => v.Contains("|Trace|Http|Req") && v.Contains("/api/v3/movie/"));
|
||||||
logLines.Should().Contain(v => v.Contains("|Trace|Http|Res") && v.Contains("/api/v2/movie/: 400.BadRequest"));
|
logLines.Should().Contain(v => v.Contains("|Trace|Http|Res") && v.Contains("/api/v3/movie/: 400.BadRequest"));
|
||||||
logLines.Should().Contain(v => v.Contains("|Debug|Api|") && v.Contains("/api/v2/movie/: 400.BadRequest"));
|
logLines.Should().Contain(v => v.Contains("|Debug|Api|") && v.Contains("/api/v3/movie/: 400.BadRequest"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -26,7 +26,7 @@ protected override void StartTestTarget()
|
|||||||
|
|
||||||
protected override void InitializeTestTarget()
|
protected override void InitializeTestTarget()
|
||||||
{
|
{
|
||||||
Indexers.Post(new Radarr.Api.V2.Indexers.IndexerResource
|
Indexers.Post(new Radarr.Api.V3.Indexers.IndexerResource
|
||||||
{
|
{
|
||||||
EnableRss = false,
|
EnableRss = false,
|
||||||
EnableInteractiveSearch = false,
|
EnableInteractiveSearch = false,
|
||||||
|
@ -9,16 +9,16 @@
|
|||||||
using NLog.Config;
|
using NLog.Config;
|
||||||
using NLog.Targets;
|
using NLog.Targets;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Radarr.Api.V2.Blacklist;
|
using Radarr.Api.V3.Blacklist;
|
||||||
using Radarr.Api.V2.Commands;
|
using Radarr.Api.V3.Commands;
|
||||||
using Radarr.Api.V2.Config;
|
using Radarr.Api.V3.Config;
|
||||||
using Radarr.Api.V2.DownloadClient;
|
using Radarr.Api.V3.DownloadClient;
|
||||||
using Radarr.Api.V2.MovieFiles;
|
using Radarr.Api.V3.MovieFiles;
|
||||||
using Radarr.Api.V2.History;
|
using Radarr.Api.V3.History;
|
||||||
using Radarr.Api.V2.Profiles.Quality;
|
using Radarr.Api.V3.Profiles.Quality;
|
||||||
using Radarr.Api.V2.RootFolders;
|
using Radarr.Api.V3.RootFolders;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
using Radarr.Api.V2.Tags;
|
using Radarr.Api.V3.Tags;
|
||||||
using NzbDrone.Common.EnvironmentInfo;
|
using NzbDrone.Common.EnvironmentInfo;
|
||||||
using NzbDrone.Common.Serializer;
|
using NzbDrone.Common.Serializer;
|
||||||
using NzbDrone.Core.MediaFiles.Events;
|
using NzbDrone.Core.MediaFiles.Events;
|
||||||
@ -97,7 +97,7 @@ public void SmokeTestSetup()
|
|||||||
|
|
||||||
protected virtual void InitRestClients()
|
protected virtual void InitRestClients()
|
||||||
{
|
{
|
||||||
RestClient = new RestClient(RootUrl + "api/v2/");
|
RestClient = new RestClient(RootUrl + "api/v3/");
|
||||||
RestClient.AddDefaultHeader("Authentication", ApiKey);
|
RestClient.AddDefaultHeader("Authentication", ApiKey);
|
||||||
RestClient.AddDefaultHeader("X-Api-Key", ApiKey);
|
RestClient.AddDefaultHeader("X-Api-Key", ApiKey);
|
||||||
|
|
||||||
|
@ -17,6 +17,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\NzbDrone.Test.Common\Radarr.Test.Common.csproj" />
|
<ProjectReference Include="..\NzbDrone.Test.Common\Radarr.Test.Common.csproj" />
|
||||||
<ProjectReference Include="..\Radarr.Api.V2\Radarr.Api.V2.csproj" />
|
<ProjectReference Include="..\Radarr.Api.V3\Radarr.Api.V3.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -26,7 +26,7 @@ public class NzbDroneRunner
|
|||||||
public NzbDroneRunner(Logger logger, int port = 7878)
|
public NzbDroneRunner(Logger logger, int port = 7878)
|
||||||
{
|
{
|
||||||
_processProvider = new ProcessProvider(logger);
|
_processProvider = new ProcessProvider(logger);
|
||||||
_restClient = new RestClient("http://localhost:7878/api");
|
_restClient = new RestClient("http://localhost:7878/api/v3");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Start()
|
public void Start()
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
using Radarr.Http;
|
|
||||||
|
|
||||||
namespace Radarr.Api.V2
|
|
||||||
{
|
|
||||||
public abstract class RadarrV2FeedModule : RadarrModule
|
|
||||||
{
|
|
||||||
protected RadarrV2FeedModule(string resource)
|
|
||||||
: base("/feed/v2/" + resource.Trim('/'))
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
using Radarr.Http;
|
|
||||||
|
|
||||||
namespace Radarr.Api.V2
|
|
||||||
{
|
|
||||||
public abstract class RadarrV2Module : RadarrModule
|
|
||||||
{
|
|
||||||
protected RadarrV2Module(string resource)
|
|
||||||
: base("/api/v2/" + resource.Trim('/'))
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.Datastore;
|
using NzbDrone.Core.Datastore;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Blacklist
|
namespace Radarr.Api.V3.Blacklist
|
||||||
{
|
{
|
||||||
public class BlacklistModule : RadarrRestModule<BlacklistResource>
|
public class BlacklistModule : RadarrRestModule<BlacklistResource>
|
||||||
{
|
{
|
@ -3,10 +3,10 @@
|
|||||||
using NzbDrone.Core.Indexers;
|
using NzbDrone.Core.Indexers;
|
||||||
using NzbDrone.Core.Languages;
|
using NzbDrone.Core.Languages;
|
||||||
using NzbDrone.Core.Qualities;
|
using NzbDrone.Core.Qualities;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Blacklist
|
namespace Radarr.Api.V3.Blacklist
|
||||||
{
|
{
|
||||||
public class BlacklistResource : RestResource
|
public class BlacklistResource : RestResource
|
||||||
{
|
{
|
@ -11,9 +11,9 @@
|
|||||||
using NzbDrone.Core.Tags;
|
using NzbDrone.Core.Tags;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Calendar
|
namespace Radarr.Api.V3.Calendar
|
||||||
{
|
{
|
||||||
public class CalendarFeedModule : RadarrV2FeedModule
|
public class CalendarFeedModule : RadarrV3FeedModule
|
||||||
{
|
{
|
||||||
private readonly IMovieService _movieService;
|
private readonly IMovieService _movieService;
|
||||||
private readonly ITagService _tagService;
|
private readonly ITagService _tagService;
|
@ -2,12 +2,12 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Nancy;
|
using Nancy;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
using NzbDrone.Core.Movies;
|
using NzbDrone.Core.Movies;
|
||||||
using NzbDrone.SignalR;
|
using NzbDrone.SignalR;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Calendar
|
namespace Radarr.Api.V3.Calendar
|
||||||
{
|
{
|
||||||
public class CalendarModule : RadarrRestModuleWithSignalR<MovieResource, Movie>
|
public class CalendarModule : RadarrRestModuleWithSignalR<MovieResource, Movie>
|
||||||
{
|
{
|
@ -12,7 +12,7 @@
|
|||||||
using Radarr.Http.Extensions;
|
using Radarr.Http.Extensions;
|
||||||
using Radarr.Http.Validation;
|
using Radarr.Http.Validation;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Commands
|
namespace Radarr.Api.V3.Commands
|
||||||
{
|
{
|
||||||
public class CommandModule : RadarrRestModuleWithSignalR<CommandResource, CommandModel>, IHandle<CommandUpdatedEvent>
|
public class CommandModule : RadarrRestModuleWithSignalR<CommandResource, CommandModel>, IHandle<CommandUpdatedEvent>
|
||||||
{
|
{
|
@ -6,7 +6,7 @@
|
|||||||
using NzbDrone.Core.Messaging.Commands;
|
using NzbDrone.Core.Messaging.Commands;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Commands
|
namespace Radarr.Api.V3.Commands
|
||||||
{
|
{
|
||||||
public class CommandResource : RestResource
|
public class CommandResource : RestResource
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
using NzbDrone.Core.Validation.Paths;
|
using NzbDrone.Core.Validation.Paths;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class DownloadClientConfigModule : RadarrConfigModule<DownloadClientConfigResource>
|
public class DownloadClientConfigModule : RadarrConfigModule<DownloadClientConfigResource>
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class DownloadClientConfigResource : RestResource
|
public class DownloadClientConfigResource : RestResource
|
||||||
{
|
{
|
@ -11,7 +11,7 @@
|
|||||||
using NzbDrone.Core.Validation.Paths;
|
using NzbDrone.Core.Validation.Paths;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class HostConfigModule : RadarrRestModule<HostConfigResource>
|
public class HostConfigModule : RadarrRestModule<HostConfigResource>
|
||||||
{
|
{
|
@ -5,7 +5,7 @@
|
|||||||
using NzbDrone.Core.Update;
|
using NzbDrone.Core.Update;
|
||||||
using NzbDrone.Common.Http.Proxy;
|
using NzbDrone.Common.Http.Proxy;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class HostConfigResource : RestResource
|
public class HostConfigResource : RestResource
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using Radarr.Http.Validation;
|
using Radarr.Http.Validation;
|
||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class IndexerConfigModule : RadarrConfigModule<IndexerConfigResource>
|
public class IndexerConfigModule : RadarrConfigModule<IndexerConfigResource>
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
using NzbDrone.Core.Parser;
|
using NzbDrone.Core.Parser;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class IndexerConfigResource : RestResource
|
public class IndexerConfigResource : RestResource
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
using NzbDrone.Core.Validation.Paths;
|
using NzbDrone.Core.Validation.Paths;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class MediaManagementConfigModule : RadarrConfigModule<MediaManagementConfigResource>
|
public class MediaManagementConfigModule : RadarrConfigModule<MediaManagementConfigResource>
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
using NzbDrone.Core.MediaFiles;
|
using NzbDrone.Core.MediaFiles;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class MediaManagementConfigResource : RestResource
|
public class MediaManagementConfigResource : RestResource
|
||||||
{
|
{
|
@ -7,7 +7,7 @@
|
|||||||
using Nancy.ModelBinding;
|
using Nancy.ModelBinding;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class NamingConfigModule : RadarrRestModule<NamingConfigResource>
|
public class NamingConfigModule : RadarrRestModule<NamingConfigResource>
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
using NzbDrone.Core.Organizer;
|
using NzbDrone.Core.Organizer;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class NamingConfigResource : RestResource
|
public class NamingConfigResource : RestResource
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using NzbDrone.Core.Organizer;
|
using NzbDrone.Core.Organizer;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class NamingExampleResource
|
public class NamingExampleResource
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using Radarr.Http.Validation;
|
using Radarr.Http.Validation;
|
||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class NetImportConfigModule : RadarrConfigModule<NetImportConfigResource>
|
public class NetImportConfigModule : RadarrConfigModule<NetImportConfigResource>
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class NetImportConfigResource : RestResource
|
public class NetImportConfigResource : RestResource
|
||||||
{
|
{
|
@ -4,7 +4,7 @@
|
|||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public abstract class RadarrConfigModule<TResource> : RadarrRestModule<TResource> where TResource : RestResource, new()
|
public abstract class RadarrConfigModule<TResource> : RadarrRestModule<TResource> where TResource : RestResource, new()
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class UiConfigModule : RadarrConfigModule<UiConfigResource>
|
public class UiConfigModule : RadarrConfigModule<UiConfigResource>
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Config
|
namespace Radarr.Api.V3.Config
|
||||||
{
|
{
|
||||||
public class UiConfigResource : RestResource
|
public class UiConfigResource : RestResource
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.CustomFilters;
|
using NzbDrone.Core.CustomFilters;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.CustomFilters
|
namespace Radarr.Api.V3.CustomFilters
|
||||||
{
|
{
|
||||||
public class CustomFilterModule : RadarrRestModule<CustomFilterResource>
|
public class CustomFilterModule : RadarrRestModule<CustomFilterResource>
|
||||||
{
|
{
|
@ -4,7 +4,7 @@
|
|||||||
using NzbDrone.Core.CustomFilters;
|
using NzbDrone.Core.CustomFilters;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.CustomFilters
|
namespace Radarr.Api.V3.CustomFilters
|
||||||
{
|
{
|
||||||
public class CustomFilterResource : RestResource
|
public class CustomFilterResource : RestResource
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.DiskSpace;
|
using NzbDrone.Core.DiskSpace;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.DiskSpace
|
namespace Radarr.Api.V3.DiskSpace
|
||||||
{
|
{
|
||||||
public class DiskSpaceModule : RadarrRestModule<DiskSpaceResource>
|
public class DiskSpaceModule : RadarrRestModule<DiskSpaceResource>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.DiskSpace
|
namespace Radarr.Api.V3.DiskSpace
|
||||||
{
|
{
|
||||||
public class DiskSpaceResource : RestResource
|
public class DiskSpaceResource : RestResource
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using NzbDrone.Core.Download;
|
using NzbDrone.Core.Download;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.DownloadClient
|
namespace Radarr.Api.V3.DownloadClient
|
||||||
{
|
{
|
||||||
public class DownloadClientModule : ProviderModuleBase<DownloadClientResource, IDownloadClient, DownloadClientDefinition>
|
public class DownloadClientModule : ProviderModuleBase<DownloadClientResource, IDownloadClient, DownloadClientDefinition>
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using NzbDrone.Core.Download;
|
using NzbDrone.Core.Download;
|
||||||
using NzbDrone.Core.Indexers;
|
using NzbDrone.Core.Indexers;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.DownloadClient
|
namespace Radarr.Api.V3.DownloadClient
|
||||||
{
|
{
|
||||||
public class DownloadClientResource : ProviderResource
|
public class DownloadClientResource : ProviderResource
|
||||||
{
|
{
|
@ -7,9 +7,9 @@
|
|||||||
using NzbDrone.Core.MediaFiles;
|
using NzbDrone.Core.MediaFiles;
|
||||||
using Radarr.Http.Extensions;
|
using Radarr.Http.Extensions;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.FileSystem
|
namespace Radarr.Api.V3.FileSystem
|
||||||
{
|
{
|
||||||
public class FileSystemModule : RadarrV2Module
|
public class FileSystemModule : RadarrV3Module
|
||||||
{
|
{
|
||||||
private readonly IFileSystemLookupService _fileSystemLookupService;
|
private readonly IFileSystemLookupService _fileSystemLookupService;
|
||||||
private readonly IDiskProvider _diskProvider;
|
private readonly IDiskProvider _diskProvider;
|
@ -5,7 +5,7 @@
|
|||||||
using NzbDrone.SignalR;
|
using NzbDrone.SignalR;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Health
|
namespace Radarr.Api.V3.Health
|
||||||
{
|
{
|
||||||
public class HealthModule : RadarrRestModuleWithSignalR<HealthResource, HealthCheck>,
|
public class HealthModule : RadarrRestModuleWithSignalR<HealthResource, HealthCheck>,
|
||||||
IHandle<HealthCheckCompleteEvent>
|
IHandle<HealthCheckCompleteEvent>
|
@ -4,7 +4,7 @@
|
|||||||
using NzbDrone.Core.HealthCheck;
|
using NzbDrone.Core.HealthCheck;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Health
|
namespace Radarr.Api.V3.Health
|
||||||
{
|
{
|
||||||
public class HealthResource : RestResource
|
public class HealthResource : RestResource
|
||||||
{
|
{
|
@ -6,12 +6,12 @@
|
|||||||
using NzbDrone.Core.DecisionEngine.Specifications;
|
using NzbDrone.Core.DecisionEngine.Specifications;
|
||||||
using NzbDrone.Core.Download;
|
using NzbDrone.Core.Download;
|
||||||
using NzbDrone.Core.History;
|
using NzbDrone.Core.History;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
using Radarr.Http.Extensions;
|
using Radarr.Http.Extensions;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.History
|
namespace Radarr.Api.V3.History
|
||||||
{
|
{
|
||||||
public class HistoryModule : RadarrRestModule<HistoryResource>
|
public class HistoryModule : RadarrRestModule<HistoryResource>
|
||||||
{
|
{
|
@ -3,10 +3,10 @@
|
|||||||
using NzbDrone.Core.History;
|
using NzbDrone.Core.History;
|
||||||
using NzbDrone.Core.Languages;
|
using NzbDrone.Core.Languages;
|
||||||
using NzbDrone.Core.Qualities;
|
using NzbDrone.Core.Qualities;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.History
|
namespace Radarr.Api.V3.History
|
||||||
{
|
{
|
||||||
public class HistoryResource : RestResource
|
public class HistoryResource : RestResource
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using NzbDrone.Core.Indexers;
|
using NzbDrone.Core.Indexers;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Indexers
|
namespace Radarr.Api.V3.Indexers
|
||||||
{
|
{
|
||||||
public class IndexerModule : ProviderModuleBase<IndexerResource, IIndexer, IndexerDefinition>
|
public class IndexerModule : ProviderModuleBase<IndexerResource, IIndexer, IndexerDefinition>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using NzbDrone.Core.Indexers;
|
using NzbDrone.Core.Indexers;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Indexers
|
namespace Radarr.Api.V3.Indexers
|
||||||
{
|
{
|
||||||
public class IndexerResource : ProviderResource
|
public class IndexerResource : ProviderResource
|
||||||
{
|
{
|
@ -15,7 +15,7 @@
|
|||||||
using Radarr.Http.Extensions;
|
using Radarr.Http.Extensions;
|
||||||
using HttpStatusCode = System.Net.HttpStatusCode;
|
using HttpStatusCode = System.Net.HttpStatusCode;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Indexers
|
namespace Radarr.Api.V3.Indexers
|
||||||
{
|
{
|
||||||
public class ReleaseModule : ReleaseModuleBase
|
public class ReleaseModule : ReleaseModuleBase
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.DecisionEngine;
|
using NzbDrone.Core.DecisionEngine;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Indexers
|
namespace Radarr.Api.V3.Indexers
|
||||||
{
|
{
|
||||||
public abstract class ReleaseModuleBase : RadarrRestModule<ReleaseResource>
|
public abstract class ReleaseModuleBase : RadarrRestModule<ReleaseResource>
|
||||||
{
|
{
|
@ -12,7 +12,7 @@
|
|||||||
using NzbDrone.Core.Parser.Model;
|
using NzbDrone.Core.Parser.Model;
|
||||||
using Radarr.Http.Extensions;
|
using Radarr.Http.Extensions;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Indexers
|
namespace Radarr.Api.V3.Indexers
|
||||||
{
|
{
|
||||||
class ReleasePushModule : ReleaseModuleBase
|
class ReleasePushModule : ReleaseModuleBase
|
||||||
{
|
{
|
@ -9,7 +9,7 @@
|
|||||||
using NzbDrone.Core.Qualities;
|
using NzbDrone.Core.Qualities;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Indexers
|
namespace Radarr.Api.V3.Indexers
|
||||||
{
|
{
|
||||||
public class ReleaseResource : RestResource
|
public class ReleaseResource : RestResource
|
||||||
{
|
{
|
@ -1,11 +1,11 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using NzbDrone.Common.Disk;
|
using NzbDrone.Common.Disk;
|
||||||
using NzbDrone.Common.EnvironmentInfo;
|
using NzbDrone.Common.EnvironmentInfo;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Logs
|
namespace Radarr.Api.V3.Logs
|
||||||
{
|
{
|
||||||
public class LogFileModule : LogFileModuleBase
|
public class LogFileModule : LogFileModuleBase
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Nancy;
|
using Nancy;
|
||||||
@ -8,7 +8,7 @@
|
|||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Logs
|
namespace Radarr.Api.V3.Logs
|
||||||
{
|
{
|
||||||
public abstract class LogFileModuleBase : RadarrRestModule<LogFileResource>
|
public abstract class LogFileModuleBase : RadarrRestModule<LogFileResource>
|
||||||
{
|
{
|
||||||
@ -45,7 +45,7 @@ private List<LogFileResource> GetLogFilesResponse()
|
|||||||
Id = i + 1,
|
Id = i + 1,
|
||||||
Filename = filename,
|
Filename = filename,
|
||||||
LastWriteTime = _diskProvider.FileGetLastWrite(file),
|
LastWriteTime = _diskProvider.FileGetLastWrite(file),
|
||||||
ContentsUrl = string.Format("{0}/api/v2/{1}/{2}", _configFileProvider.UrlBase, Resource, filename),
|
ContentsUrl = string.Format("{0}/api/v3/{1}/{2}", _configFileProvider.UrlBase, Resource, filename),
|
||||||
DownloadUrl = string.Format("{0}/{1}/{2}", _configFileProvider.UrlBase, DownloadUrlRoot, filename)
|
DownloadUrl = string.Format("{0}/{1}/{2}", _configFileProvider.UrlBase, DownloadUrlRoot, filename)
|
||||||
});
|
});
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Logs
|
namespace Radarr.Api.V3.Logs
|
||||||
{
|
{
|
||||||
public class LogFileResource : RestResource
|
public class LogFileResource : RestResource
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.Instrumentation;
|
using NzbDrone.Core.Instrumentation;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Logs
|
namespace Radarr.Api.V3.Logs
|
||||||
{
|
{
|
||||||
public class LogModule : RadarrRestModule<LogResource>
|
public class LogModule : RadarrRestModule<LogResource>
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.Instrumentation;
|
using NzbDrone.Core.Instrumentation;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Logs
|
namespace Radarr.Api.V3.Logs
|
||||||
{
|
{
|
||||||
public class LogResource : RestResource
|
public class LogResource : RestResource
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
@ -7,7 +7,7 @@
|
|||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Core.Configuration;
|
using NzbDrone.Core.Configuration;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Logs
|
namespace Radarr.Api.V3.Logs
|
||||||
{
|
{
|
||||||
public class UpdateLogFileModule : LogFileModuleBase
|
public class UpdateLogFileModule : LogFileModuleBase
|
||||||
{
|
{
|
@ -5,7 +5,7 @@
|
|||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
using Radarr.Http.Extensions;
|
using Radarr.Http.Extensions;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.ManualImport
|
namespace Radarr.Api.V3.ManualImport
|
||||||
{
|
{
|
||||||
public class ManualImportModule : RadarrRestModule<ManualImportResource>
|
public class ManualImportModule : RadarrRestModule<ManualImportResource>
|
||||||
{
|
{
|
@ -5,10 +5,10 @@
|
|||||||
using NzbDrone.Core.Languages;
|
using NzbDrone.Core.Languages;
|
||||||
using NzbDrone.Core.MediaFiles.MovieImport.Manual;
|
using NzbDrone.Core.MediaFiles.MovieImport.Manual;
|
||||||
using NzbDrone.Core.Qualities;
|
using NzbDrone.Core.Qualities;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.ManualImport
|
namespace Radarr.Api.V3.ManualImport
|
||||||
{
|
{
|
||||||
public class ManualImportResource : RestResource
|
public class ManualImportResource : RestResource
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using NzbDrone.Core.Extras.Metadata;
|
using NzbDrone.Core.Extras.Metadata;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Metadata
|
namespace Radarr.Api.V3.Metadata
|
||||||
{
|
{
|
||||||
public class MetadataModule : ProviderModuleBase<MetadataResource, IMetadata, MetadataDefinition>
|
public class MetadataModule : ProviderModuleBase<MetadataResource, IMetadata, MetadataDefinition>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using NzbDrone.Core.Extras.Metadata;
|
using NzbDrone.Core.Extras.Metadata;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Metadata
|
namespace Radarr.Api.V3.Metadata
|
||||||
{
|
{
|
||||||
public class MetadataResource : ProviderResource
|
public class MetadataResource : ProviderResource
|
||||||
{
|
{
|
@ -3,7 +3,7 @@
|
|||||||
using NzbDrone.Core.MediaFiles.MediaInfo;
|
using NzbDrone.Core.MediaFiles.MediaInfo;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.MovieFiles
|
namespace Radarr.Api.V3.MovieFiles
|
||||||
{
|
{
|
||||||
public class MediaInfoResource : RestResource
|
public class MediaInfoResource : RestResource
|
||||||
{
|
{
|
@ -2,7 +2,7 @@
|
|||||||
using NzbDrone.Core.Languages;
|
using NzbDrone.Core.Languages;
|
||||||
using NzbDrone.Core.Qualities;
|
using NzbDrone.Core.Qualities;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.MovieFiles
|
namespace Radarr.Api.V3.MovieFiles
|
||||||
{
|
{
|
||||||
public class MovieFileListResource
|
public class MovieFileListResource
|
||||||
{
|
{
|
@ -16,7 +16,7 @@
|
|||||||
using Radarr.Http.Extensions;
|
using Radarr.Http.Extensions;
|
||||||
using BadRequestException = Radarr.Http.REST.BadRequestException;
|
using BadRequestException = Radarr.Http.REST.BadRequestException;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.MovieFiles
|
namespace Radarr.Api.V3.MovieFiles
|
||||||
{
|
{
|
||||||
public class MovieFileModule : RadarrRestModuleWithSignalR<MovieFileResource, MovieFile>,
|
public class MovieFileModule : RadarrRestModuleWithSignalR<MovieFileResource, MovieFile>,
|
||||||
IHandle<MovieFileAddedEvent>,
|
IHandle<MovieFileAddedEvent>,
|
@ -7,7 +7,7 @@
|
|||||||
using NzbDrone.Core.Qualities;
|
using NzbDrone.Core.Qualities;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.MovieFiles
|
namespace Radarr.Api.V3.MovieFiles
|
||||||
{
|
{
|
||||||
public class MovieFileResource : RestResource
|
public class MovieFileResource : RestResource
|
||||||
{
|
{
|
@ -7,7 +7,7 @@
|
|||||||
using NzbDrone.Core.Movies.Events;
|
using NzbDrone.Core.Movies.Events;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class AlternativeTitleModule : RadarrRestModule<AlternativeTitleResource>
|
public class AlternativeTitleModule : RadarrRestModule<AlternativeTitleResource>
|
||||||
{
|
{
|
@ -5,7 +5,7 @@
|
|||||||
using NzbDrone.Core.Movies.AlternativeTitles;
|
using NzbDrone.Core.Movies.AlternativeTitles;
|
||||||
using NzbDrone.Core.Languages;
|
using NzbDrone.Core.Languages;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class AlternativeTitleResource : RestResource
|
public class AlternativeTitleResource : RestResource
|
||||||
{
|
{
|
@ -6,7 +6,7 @@
|
|||||||
using NzbDrone.Core.Movies.Events;
|
using NzbDrone.Core.Movies.Events;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class AlternativeYearModule : RadarrRestModule<AlternativeYearResource>
|
public class AlternativeYearModule : RadarrRestModule<AlternativeYearResource>
|
||||||
{
|
{
|
@ -9,7 +9,7 @@
|
|||||||
using NzbDrone.Core.Movies.AlternativeTitles;
|
using NzbDrone.Core.Movies.AlternativeTitles;
|
||||||
using NzbDrone.Core.Parser;
|
using NzbDrone.Core.Parser;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class AlternativeYearResource : RestResource
|
public class AlternativeYearResource : RestResource
|
||||||
{
|
{
|
@ -8,7 +8,7 @@
|
|||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
using Radarr.Http.Extensions;
|
using Radarr.Http.Extensions;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class FetchMovieListModule : RadarrRestModule<MovieResource>
|
public class FetchMovieListModule : RadarrRestModule<MovieResource>
|
||||||
{
|
{
|
@ -5,10 +5,10 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
using NzbDrone.Core.NetImport;
|
using NzbDrone.Core.NetImport;
|
||||||
using Radarr.Api.V2.NetImport;
|
using Radarr.Api.V3.NetImport;
|
||||||
using NzbDrone.Core.Organizer;
|
using NzbDrone.Core.Organizer;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class MovieDiscoverModule : RadarrRestModule<MovieResource>
|
public class MovieDiscoverModule : RadarrRestModule<MovieResource>
|
||||||
{
|
{
|
@ -7,9 +7,9 @@
|
|||||||
using NzbDrone.Core.Movies.Commands;
|
using NzbDrone.Core.Movies.Commands;
|
||||||
using NzbDrone.Core.Messaging.Commands;
|
using NzbDrone.Core.Messaging.Commands;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class MovieEditorModule : RadarrV2Module
|
public class MovieEditorModule : RadarrV3Module
|
||||||
{
|
{
|
||||||
private readonly IMovieService _movieService;
|
private readonly IMovieService _movieService;
|
||||||
private readonly IManageCommandQueue _commandQueueManager;
|
private readonly IManageCommandQueue _commandQueueManager;
|
@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using NzbDrone.Core.Movies;
|
using NzbDrone.Core.Movies;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class MovieEditorResource
|
public class MovieEditorResource
|
||||||
{
|
{
|
@ -4,7 +4,7 @@
|
|||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Core.Organizer;
|
using NzbDrone.Core.Organizer;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class MovieFolderAsRootFolderValidator : PropertyValidator
|
public class MovieFolderAsRootFolderValidator : PropertyValidator
|
||||||
{
|
{
|
@ -4,7 +4,7 @@
|
|||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
using Radarr.Http.Extensions;
|
using Radarr.Http.Extensions;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class MovieImportModule : RadarrRestModule<MovieResource>
|
public class MovieImportModule : RadarrRestModule<MovieResource>
|
||||||
{
|
{
|
@ -10,7 +10,7 @@
|
|||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
using NzbDrone.Core.Organizer;
|
using NzbDrone.Core.Organizer;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class MovieLookupModule : RadarrRestModule<MovieResource>
|
public class MovieLookupModule : RadarrRestModule<MovieResource>
|
||||||
{
|
{
|
@ -16,7 +16,7 @@
|
|||||||
using Nancy;
|
using Nancy;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class MovieModule : RadarrRestModuleWithSignalR<MovieResource, Movie>,
|
public class MovieModule : RadarrRestModuleWithSignalR<MovieResource, Movie>,
|
||||||
IHandle<MovieImportedEvent>,
|
IHandle<MovieImportedEvent>,
|
@ -4,9 +4,9 @@
|
|||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
using NzbDrone.Core.MediaCover;
|
using NzbDrone.Core.MediaCover;
|
||||||
using NzbDrone.Core.Movies;
|
using NzbDrone.Core.Movies;
|
||||||
using Radarr.Api.V2.MovieFiles;
|
using Radarr.Api.V3.MovieFiles;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class MovieResource : RestResource
|
public class MovieResource : RestResource
|
||||||
{
|
{
|
@ -6,7 +6,7 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class RenameMovieModule : RadarrRestModule<RenameMovieResource>
|
public class RenameMovieModule : RadarrRestModule<RenameMovieResource>
|
||||||
{
|
{
|
@ -3,7 +3,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Movies
|
namespace Radarr.Api.V3.Movies
|
||||||
{
|
{
|
||||||
public class RenameMovieResource : RestResource
|
public class RenameMovieResource : RestResource
|
||||||
{
|
{
|
@ -4,7 +4,7 @@
|
|||||||
using NzbDrone.Core.NetImport.ImportExclusions;
|
using NzbDrone.Core.NetImport.ImportExclusions;
|
||||||
using Radarr.Http;
|
using Radarr.Http;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.NetImport
|
namespace Radarr.Api.V3.NetImport
|
||||||
{
|
{
|
||||||
public class ImportExclusionsModule : RadarrRestModule<ImportExclusionsResource>
|
public class ImportExclusionsModule : RadarrRestModule<ImportExclusionsResource>
|
||||||
{
|
{
|
@ -3,7 +3,7 @@
|
|||||||
using NzbDrone.Core.NetImport;
|
using NzbDrone.Core.NetImport;
|
||||||
using NzbDrone.Core.Movies;
|
using NzbDrone.Core.Movies;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.NetImport
|
namespace Radarr.Api.V3.NetImport
|
||||||
{
|
{
|
||||||
public class ImportExclusionsResource : ProviderResource
|
public class ImportExclusionsResource : ProviderResource
|
||||||
{
|
{
|
@ -3,13 +3,13 @@
|
|||||||
using Nancy;
|
using Nancy;
|
||||||
using Nancy.Extensions;
|
using Nancy.Extensions;
|
||||||
using Radarr.Http.Extensions;
|
using Radarr.Http.Extensions;
|
||||||
using Radarr.Api.V2.Movies;
|
using Radarr.Api.V3.Movies;
|
||||||
using NzbDrone.Core.MetadataSource;
|
using NzbDrone.Core.MetadataSource;
|
||||||
using NzbDrone.Core.Movies;
|
using NzbDrone.Core.Movies;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.NetImport
|
namespace Radarr.Api.V3.NetImport
|
||||||
{
|
{
|
||||||
public class ListImportModule : RadarrV2Module
|
public class ListImportModule : RadarrV3Module
|
||||||
{
|
{
|
||||||
private readonly IMovieService _movieService;
|
private readonly IMovieService _movieService;
|
||||||
private readonly ISearchForNewMovie _movieSearch;
|
private readonly ISearchForNewMovie _movieSearch;
|
@ -3,7 +3,7 @@
|
|||||||
using NzbDrone.Core.NetImport;
|
using NzbDrone.Core.NetImport;
|
||||||
using NzbDrone.Core.Validation.Paths;
|
using NzbDrone.Core.Validation.Paths;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.NetImport
|
namespace Radarr.Api.V3.NetImport
|
||||||
{
|
{
|
||||||
public class NetImportModule : ProviderModuleBase<NetImportResource, INetImport, NetImportDefinition>
|
public class NetImportModule : ProviderModuleBase<NetImportResource, INetImport, NetImportDefinition>
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using NzbDrone.Core.Movies;
|
using NzbDrone.Core.Movies;
|
||||||
using NzbDrone.Core.NetImport;
|
using NzbDrone.Core.NetImport;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.NetImport
|
namespace Radarr.Api.V3.NetImport
|
||||||
{
|
{
|
||||||
public class NetImportResource : ProviderResource
|
public class NetImportResource : ProviderResource
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using NzbDrone.Core.Notifications;
|
using NzbDrone.Core.Notifications;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Notifications
|
namespace Radarr.Api.V3.Notifications
|
||||||
{
|
{
|
||||||
public class NotificationModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
|
public class NotificationModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using NzbDrone.Core.Notifications;
|
using NzbDrone.Core.Notifications;
|
||||||
|
|
||||||
namespace Radarr.Api.V2.Notifications
|
namespace Radarr.Api.V3.Notifications
|
||||||
{
|
{
|
||||||
public class NotificationResource : ProviderResource
|
public class NotificationResource : ProviderResource
|
||||||
{
|
{
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user