mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-26 22:46:53 -04:00
@@ -46,7 +46,7 @@ namespace NzbDrone.Integration.Test
|
||||
public LogsClient Logs;
|
||||
public ClientBase<NamingConfigResource> NamingConfig;
|
||||
public NotificationClient Notifications;
|
||||
public ClientBase<QualityProfileResource> Profiles;
|
||||
public ClientBase<QualityProfileResource> QualityProfiles;
|
||||
public ReleaseClient Releases;
|
||||
public ClientBase<RootFolderResource> RootFolders;
|
||||
public MovieClient Movies;
|
||||
@@ -108,7 +108,7 @@ namespace NzbDrone.Integration.Test
|
||||
Logs = new LogsClient(RestClient, ApiKey);
|
||||
NamingConfig = new ClientBase<NamingConfigResource>(RestClient, ApiKey, "config/naming");
|
||||
Notifications = new NotificationClient(RestClient, ApiKey);
|
||||
Profiles = new ClientBase<QualityProfileResource>(RestClient, ApiKey);
|
||||
QualityProfiles = new ClientBase<QualityProfileResource>(RestClient, ApiKey);
|
||||
Releases = new ReleaseClient(RestClient, ApiKey);
|
||||
RootFolders = new ClientBase<RootFolderResource>(RestClient, ApiKey);
|
||||
Movies = new MovieClient(RestClient, ApiKey);
|
||||
@@ -303,10 +303,10 @@ namespace NzbDrone.Integration.Test
|
||||
return result.MovieFile;
|
||||
}
|
||||
|
||||
public QualityProfileResource EnsureProfileCutoff(int profileId, Quality cutoff, bool upgradeAllowed)
|
||||
public QualityProfileResource EnsureQualityProfileCutoff(int profileId, Quality cutoff, bool upgradeAllowed)
|
||||
{
|
||||
var needsUpdate = false;
|
||||
var profile = Profiles.Get(profileId);
|
||||
var profile = QualityProfiles.Get(profileId);
|
||||
|
||||
if (profile.Cutoff != cutoff.Id)
|
||||
{
|
||||
@@ -322,7 +322,7 @@ namespace NzbDrone.Integration.Test
|
||||
|
||||
if (needsUpdate)
|
||||
{
|
||||
profile = Profiles.Put(profile);
|
||||
profile = QualityProfiles.Put(profile);
|
||||
}
|
||||
|
||||
return profile;
|
||||
|
||||
Reference in New Issue
Block a user