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