|
|
@ -15,7 +15,9 @@ import { SettingsService } from "../../services";
|
|
|
|
export class SonarrComponent implements OnInit {
|
|
|
|
export class SonarrComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
|
|
public qualities: ISonarrProfile[];
|
|
|
|
public qualities: ISonarrProfile[];
|
|
|
|
|
|
|
|
public qualitiesAnime: ISonarrProfile[];
|
|
|
|
public rootFolders: ISonarrRootFolder[];
|
|
|
|
public rootFolders: ISonarrRootFolder[];
|
|
|
|
|
|
|
|
public rootFoldersAnime: ISonarrRootFolder[];
|
|
|
|
public selectedRootFolder: ISonarrRootFolder;
|
|
|
|
public selectedRootFolder: ISonarrRootFolder;
|
|
|
|
public selectedQuality: ISonarrProfile;
|
|
|
|
public selectedQuality: ISonarrProfile;
|
|
|
|
public profilesRunning: boolean;
|
|
|
|
public profilesRunning: boolean;
|
|
|
@ -37,6 +39,8 @@ export class SonarrComponent implements OnInit {
|
|
|
|
apiKey: [x.apiKey, [Validators.required]],
|
|
|
|
apiKey: [x.apiKey, [Validators.required]],
|
|
|
|
qualityProfile: [x.qualityProfile, [Validators.required]],
|
|
|
|
qualityProfile: [x.qualityProfile, [Validators.required]],
|
|
|
|
rootPath: [x.rootPath, [Validators.required]],
|
|
|
|
rootPath: [x.rootPath, [Validators.required]],
|
|
|
|
|
|
|
|
qualityProfileAnime: [x.qualityProfileAnime],
|
|
|
|
|
|
|
|
rootPathAnime: [x.rootPathAnime],
|
|
|
|
ssl: [x.ssl],
|
|
|
|
ssl: [x.ssl],
|
|
|
|
subDir: [x.subDir],
|
|
|
|
subDir: [x.subDir],
|
|
|
|
ip: [x.ip, [Validators.required]],
|
|
|
|
ip: [x.ip, [Validators.required]],
|
|
|
@ -64,6 +68,7 @@ export class SonarrComponent implements OnInit {
|
|
|
|
.subscribe(x => {
|
|
|
|
.subscribe(x => {
|
|
|
|
this.qualities = x;
|
|
|
|
this.qualities = x;
|
|
|
|
this.qualities.unshift({ name: "Please Select", id: -1 });
|
|
|
|
this.qualities.unshift({ name: "Please Select", id: -1 });
|
|
|
|
|
|
|
|
this.qualitiesAnime = x;
|
|
|
|
|
|
|
|
|
|
|
|
this.profilesRunning = false;
|
|
|
|
this.profilesRunning = false;
|
|
|
|
this.notificationService.success("Successfully retrieved the Quality Profiles");
|
|
|
|
this.notificationService.success("Successfully retrieved the Quality Profiles");
|
|
|
@ -76,6 +81,7 @@ export class SonarrComponent implements OnInit {
|
|
|
|
.subscribe(x => {
|
|
|
|
.subscribe(x => {
|
|
|
|
this.rootFolders = x;
|
|
|
|
this.rootFolders = x;
|
|
|
|
this.rootFolders.unshift({ path: "Please Select", id: -1 });
|
|
|
|
this.rootFolders.unshift({ path: "Please Select", id: -1 });
|
|
|
|
|
|
|
|
this.rootFoldersAnime = x;
|
|
|
|
|
|
|
|
|
|
|
|
this.rootFoldersRunning = false;
|
|
|
|
this.rootFoldersRunning = false;
|
|
|
|
this.notificationService.success("Successfully retrieved the Root Folders");
|
|
|
|
this.notificationService.success("Successfully retrieved the Root Folders");
|
|
|
|