mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
175 lines
10 KiB
175 lines
10 KiB
<settings-menu></settings-menu>
|
|
<div *ngIf="form" class="small-middle-container">
|
|
<fieldset>
|
|
<legend>Sonarr Settings</legend>
|
|
<form novalidate [formGroup]="form" (ngSubmit)="onSubmit(form)">
|
|
<div class="row">
|
|
<div class="col-md-12 col-12 col-sm-12" style="float: right; width:100%; text-align:right;">
|
|
<div style="float:right;text-align:left;">
|
|
<div class="md-form-field">
|
|
<mat-slide-toggle formControlName="v3">V3</mat-slide-toggle>
|
|
</div>
|
|
<div class="md-form-field">
|
|
<mat-slide-toggle formControlName="ssl">SSL</mat-slide-toggle>
|
|
</div>
|
|
</div>
|
|
<div style="float: right; text-align: left; margin-left:20px;">
|
|
<div class="md-form-field">
|
|
<mat-slide-toggle formControlName="enabled" id="enable">Enable</mat-slide-toggle>
|
|
</div>
|
|
<div class="md-form-field">
|
|
<mat-slide-toggle [(ngModel)]="advanced" [ngModelOptions]="{standalone: true}">Advanced</mat-slide-toggle>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-7 col-8 col-sm-12">
|
|
<div class="md-form-field">
|
|
<mat-form-field appearance="outline" floatLabel=auto>
|
|
<mat-label>Sonarr Hostname or IP</mat-label>
|
|
<input matInput id="Ip" name="Ip" placeholder="Example: localhost" formControlName="ip">
|
|
<mat-error>The IP/Hostname is required</mat-error>
|
|
</mat-form-field>
|
|
</div>
|
|
|
|
<div class="md-form-field">
|
|
<mat-form-field appearance="outline" floatLabel=auto>
|
|
<mat-label>Port</mat-label>
|
|
<input matInput id="port" name="port" placeholder="Example: 8989" formControlName="port">
|
|
<mat-error>The Port is required</mat-error>
|
|
</mat-form-field>
|
|
</div>
|
|
|
|
<div class="md-form-field">
|
|
<mat-form-field appearance="outline" floatLabel=auto>
|
|
<mat-label>Sonarr API Key</mat-label>
|
|
<input matInput id="apiKey" name="apiKey" placeholder="API Key" formControlName="apiKey">
|
|
<mat-error>The API Key is required</mat-error>
|
|
</mat-form-field>
|
|
</div>
|
|
|
|
<div class="md-form-field">
|
|
<mat-form-field appearance="outline" floatLabel=auto>
|
|
<mat-label>Sonarr Base URL</mat-label>
|
|
<input matInput id="SubDir" name="SubDir" placeholder="Example: /sonarr" formControlName="subDir">
|
|
</mat-form-field>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-5 col-4 col-sm-12">
|
|
|
|
<div class="form-group col-md-12">
|
|
<div id="profiles">
|
|
<div class="md-form-field" style="display:contents;">
|
|
<mat-form-field appearance="outline">
|
|
<mat-label>Quality Profiles</mat-label>
|
|
<mat-select formControlName="qualityProfile">
|
|
<mat-option *ngFor="let quality of qualities" value="{{quality.id}}">{{quality.name}} </mat-option>
|
|
</mat-select>
|
|
<mat-error>A Default Quality Profile is required</mat-error>
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="md-form-field" style="display:inline;margin-left:20px;">
|
|
<button mat-raised-button id="profiles" (click)="getProfiles(form)" class="mat-stroked-button load">
|
|
Load Qualities <span *ngIf="profilesRunning" class="fa fa-spinner fa-spin"></span></button>
|
|
</div>
|
|
</div>
|
|
<div id="qualityProfileAnime">
|
|
<div class="md-form-field" style="display:contents;">
|
|
<mat-form-field appearance="outline">
|
|
<mat-label>Quality Profiles (Anime)</mat-label>
|
|
<mat-select formControlName="qualityProfileAnime">
|
|
<mat-option *ngFor="let quality of qualities" value="{{quality.id}}">{{quality.name}} </mat-option>
|
|
</mat-select>
|
|
<mat-error>A Default Quality Profile is required</mat-error>
|
|
</mat-form-field>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group col-md-12">
|
|
<div id="rootFolders">
|
|
<div class="md-form-field" style="display:contents;">
|
|
<mat-form-field appearance="outline">
|
|
<mat-label>Default Root Folders</mat-label>
|
|
<mat-select formControlName="rootPath">
|
|
<mat-option *ngFor="let folder of rootFolders" value="{{folder.id}}">{{folder.path}} </mat-option>
|
|
</mat-select>
|
|
<mat-error>A Default Root Folder is required</mat-error>
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="md-form-field" style="display:inline;margin-left:20px;">
|
|
<button mat-raised-button id="rootFolder" (click)="getRootFolders(form)" class="mat-stroked-button load">
|
|
Load Folders <span *ngIf="rootFoldersRunning" class="fa fa-spinner fa-spin"></span></button>
|
|
</div>
|
|
</div>
|
|
<div id="rootFoldersAnime">
|
|
<div class="md-form-field" style="display:contents;">
|
|
<mat-form-field appearance="outline">
|
|
<mat-label>Default Root Folders (Anime)</mat-label>
|
|
<mat-select formControlName="rootPathAnime">
|
|
<mat-option *ngFor="let folder of rootFoldersAnime" value="{{folder.id}}">{{folder.path}} </mat-option>
|
|
</mat-select>
|
|
<mat-error>A Default Root Folder (Anime) is required</mat-error>
|
|
</mat-form-field>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-12" *ngIf="form.controls.v3.value">
|
|
<label for="select" class="control-label">Language Profiles
|
|
<i *ngIf="form.get('languageProfile').hasError('required')" class="fa fa-exclamation-circle error-text" pTooltip="A Language Profile is required"></i>
|
|
</label>
|
|
<div id="langaugeProfile">
|
|
<div class="md-form-field" style="display:contents;">
|
|
<mat-form-field appearance="outline">
|
|
<mat-label>Language Profiles </mat-label>
|
|
<mat-select formControlName="languageProfile">
|
|
<mat-option *ngFor="let lang of languageProfiles" value="lang.id">{{lang.name}}</mat-option>
|
|
</mat-select>
|
|
<mat-error>A Language Profile is required</mat-error>
|
|
</mat-form-field>
|
|
</div>
|
|
<div class="md-form-field" style="display:inline;margin-left:20px;">
|
|
<button mat-raised-button (click)="getLanguageProfiles(form)" class="mat-stroked-button load">Load
|
|
Languages <span *ngIf="langRunning" class="fa fa-spinner fa-spin"> </span></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group col-md-12">
|
|
<div class="checkbox">
|
|
<input type="checkbox" id="SeasonFolders" name="SeasonFolders" formControlName="seasonFolders">
|
|
<label for="SeasonFolders">Enable season folders</label>
|
|
</div>
|
|
<label>Enabled Season Folders to organize seasons into individual folders within a show.</label>
|
|
</div>
|
|
|
|
<div class="form-group col-md-12" *ngIf="advanced" style="color:#ff761b">
|
|
<div class="checkbox">
|
|
<input type="checkbox" id="addOnly" formControlName="addOnly">
|
|
<label for="addOnly">Do not search</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group col-md-7">
|
|
<div>
|
|
<button mat-raised-button type="submit" class="mat-stroked-button accent mat-accent">Submit</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group col-md-7">
|
|
<div>
|
|
<button mat-raised-button type="button" (click)="test(form)" class="mat-stroked-button">Test Connectivity
|
|
<span id="spinner"> </span></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</fieldset>
|
|
</div> |