@ -4,103 +4,137 @@
< fieldset >
< fieldset >
< legend > Plex Configuration< / legend >
< legend > Plex Configuration< / legend >
< div class = "form-group" >
< div class = "checkbox col-md-2 " style = "float: right;" >
< input type = "checkbox" id = "advanced" [ ( ngModel ) ] = " advanced " ng-checked = "advanced" >
< label for = "advanced" > Advanced< / label >
< / div >
< div class = "form-group col-md-3" >
< div class = "checkbox" >
< div class = "checkbox" >
< input type = "checkbox" [ ( ngModel ) ] = " settings . enable " ng-checked = "settings.enable" >
< input type = "checkbox" id = "enable" [ ( ngModel ) ] = " settings . enable " ng-checked = "settings.enable" >
< label for = "enable" > Enable< / label >
< label for = "enable" > Enable< / label >
< / div >
< / div >
< / div >
< / div >
< div style = "float: right;" >
< div style = "float: right;" class = "col-md-12 col-md-push-10" >
< button type = "submit" ( click ) = " addTab ( ) " class = "btn btn-success-outline" > Add Server< / button >
< button type = "submit" ( click ) = " addTab ( ) " class = "btn btn-success-outline" > Add Server< / button >
< / div >
< / div >
< ngb-tabset >
< ngb-tabset >
< div * ngFor = "let server of settings.servers" >
< div * ngFor = "let server of settings.servers" >
< ngb-tab [ id ] = " server . id " [ title ] = " server . name " >
< ngb-tab [ id ] = " server . id " [ title ] = " server . name " >
< ng-template ngbTabContent >
< ng-template ngbTabContent >
< br / >
< br / >
< br / >
< br / >
< div style= "float: right;" >
< div class= "col-md-12 col-md-push-10" style= "float: right;" >
< button type = "submit" ( click ) = " removeServer ( server ) " class = "btn btn-danger-outline" > Remove Server< / button >
< button type = "submit" ( click ) = " removeServer ( server ) " class = "btn btn-danger-outline" > Remove Server< / button >
< / div >
< / div >
< br / >
< br / >
< br / >
< br / >
< div class = "form-group" >
< div class = "form-group" >
< label for = " name" class = "control-label" > Server name < / label >
< label for = " user name" class = "control-label" > Username and Password < / label >
< div >
< div >
< input type = "text" class = "form-control form-control-custom " id = "name" name = "name" placeholder = "Server" [ ( ngModel ) ] = " server . name " value = "{{server.name}} ">
< input type = "text" class = "form-control form-control-custom " id = "username" [ ( ngModel ) ] = " username " placeholder = "username ">
< / div >
< / div >
< / div >
< br / >
< div class = "form-group" >
< label for = "Ip" class = "control-label" > Hostname or IP< / label >
< div >
< div >
< input type = " text" class = "form-control form-control-custom " id = "Ip" name = "Ip" placeholder = "localhost" [ ( ngModel ) ] = " server . ip " value = "{{server.ip}} ">
< input type = "password" class = "form-control form-control-custom" id = "password" [ ( ngModel ) ] = " password " placeholder = "Password" >
< / div >
< / div >
< / div >
< / div >
< div class = "form-group" >
< div class = "form-group" >
< label for = "portNumber" class = "control-label" > Port< / label >
< div >
< div >
< input type = "text" [ ( ngModel ) ] = " server . port " class = "form-control form-control-custom " id = "portNumber" name = "Port" placeholder = "Port Number" value = "{{server.port}}" >
< button id = "requestToken" ( click ) = " requestServers ( server ) " class = "btn btn-primary-outline" > Load Servers < i class = "fa fa-key" > < / i > < / button >
< / div >
< / div >
< / div >
< / div >
< br / >
< br / >
< div class = "form-group" >
< div class = "form-group" >
< div class = "checkbox" >
< label for = "username" class = "control-label" > Please select the server< / label > < br / >
< input type = "checkbox" id = "ssl" [ ( ngModel ) ] = " server . ssl " ng-checked = "server.ssl" >
< div class = "btn-group" >
< label for = "ssl" > SSL< / label >
< div class = "btn-group" >
< / div >
< a [ attr . disabled ] = " ! serversButton ? true : null " href = "#" class = "btn btn-info-outline dropdown-toggle" data-toggle = "dropdown" aria-expanded = "false" >
Servers
< span class = "caret" > < / span >
< / a >
< ul * ngIf = "loadedServers" class = "dropdown-menu" > < li * ngFor = "let s of loadedServers.servers.server" > < a ( click ) = " selectServer ( s , server ) " > {{s.name}}< / a > < / li >
< / ul >
< / div >
< / div >
< / div >
< / div >
< div class = "form-group" >
< div * ngIf = "advanced" >
< div class = "checkbox" >
< div class = "form-group" >
< label for = "name" class = "control-label" > Server name< / label >
< div >
< input type = "text" class = "form-control form-control-custom " id = "name" name = "name" placeholder = "Server" [ ( ngModel ) ] = " server . name " value = "{{server.name}}" >
< / div >
< / div >
< div class = "form-group" >
< label for = "Ip" class = "control-label" > Hostname or IP< / label >
< div >
< input type = "text" class = "form-control form-control-custom " id = "Ip" name = "Ip" placeholder = "localhost" [ ( ngModel ) ] = " server . ip " value = "{{server.ip}}" >
< / div >
< / div >
< input type = "checkbox" id = "EnableTvEpisodeSearching" [ ( ngModel ) ] = " server . enableEpisodeSearching " ng-checked = "server.enableEpisodeSearching" >
< div class = "form-group" >
< label for = "EnableTvEpisodeSearching" > Enable Episode Searching< / label >
< label for = "portNumber" class = "control-label" > Port< / label >
< div >
< input type = "text" [ ( ngModel ) ] = " server . port " class = "form-control form-control-custom " id = "portNumber" name = "Port" placeholder = "Port Number" value = "{{server.port}}" >
< / div >
< / div >
< div class = "form-group" >
< div class = "checkbox" >
< input type = "checkbox" id = "ssl" [ ( ngModel ) ] = " server . ssl " ng-checked = "server.ssl" >
< label for = "ssl" > SSL< / label >
< / div >
< / div >
< / div >
< small >
If enabled then we will lookup all episodes on your Plex server and store them in the local database. This will stop episode requests that already exist on Plex (that might not be in Sonarr).
Please be aware that this is a very resource intensive process and while the Plex Episode Cacher job is running the application may appear slow (Depending on the size of your Plex library).
< / small >
< / div >
< div class = "form-group" >
< div class = "checkbox" >
< div class = "form-group" >
< label for = "authToken" class = "control-label" > Plex Authorization Token< / label >
< div class = "" >
< input type = "text" class = "form-control-custom form-control" id = "authToken" [ ( ngModel ) ] = " server . plexAuthToken " placeholder = "Plex Auth Token" value = "{{server.plexAuthToken}}" >
< / div >
< / div >
< div class = "form-group" >
< input type = "checkbox" id = "EnableTvEpisodeSearching" [ ( ngModel ) ] = " server . enableEpisodeSearching " ng-checked = "server.enableEpisodeSearching" >
< label for = "MachineIdentifier" class = "control-label" > Machine Identifier< / label >
< label for = "EnableTvEpisodeSearching" > Enable Episode Searching< / label >
< div class = "" >
< input type = "text" class = "form-control-custom form-control" id = "MachineIdentifier" name = "MachineIdentifier" [ ( ngModel ) ] = " server . machineIdentifier " value = "{{server.machineIdentifier}}" >
< / div >
< / div >
< div class = "form-group" >
< / div >
< label for = "username" class = "control-label" > Username and Password< / label >
< small >
< div >
If enabled then we will lookup all episodes on your Plex server and store them in the local database. This will stop episode requests that already exist on Plex (that might not be in Sonarr).
< input type = "text" class = "form-control form-control-custom" id = "username" [ ( ngModel ) ] = " username " placeholder = "username" >
Please be aware that this is a very resource intensive process and while the Plex Episode Cacher job is running the application may appear slow (Depending on the size of your Plex library).
< / small >
< / div >
< / div >
< br / >
< div >
< input type = "password" class = "form-control form-control-custom" id = "password" [ ( ngModel ) ] = " password " placeholder = "Password" >
< div class = "form-group" >
< label for = "authToken" class = "control-label" > Plex Authorization Token< / label >
< div class = "" >
< input type = "text" class = "form-control-custom form-control" id = "authToken" [ ( ngModel ) ] = " server . plexAuthToken " placeholder = "Plex Auth Token" value = "{{server.plexAuthToken}}" >
< / div >
< / div >
< / div >
< / div >
< div class = "form-group" >
< div class = "form-group" >
< div class = "" >
< label for = "MachineIdentifier" class = "control-label" > Machine Identifier< / label >
< button id = "requestToken" ( click ) = " requestToken ( ) " class = "btn btn-primary-outline" > Request Token < i class = "fa fa-key" > < / i > < / button >
< div class = "" >
< input type = "text" class = "form-control-custom form-control" id = "MachineIdentifier" name = "MachineIdentifier" [ ( ngModel ) ] = " server . machineIdentifier " value = "{{server.machineIdentifier}}" >
< / div >
< / div >
< / div >
< / div >
< / div >
< label > Please select the libraries you want Ombi to look in for content< / label >
< label > Please select the libraries you want Ombi to look in for content< / label >
< br / >
< small > Note: if nothing is selected, we will monitor all libraries< / small >
< div class = "form-group" >
< div class = "form-group" >
< div >
< div >
< button ( click ) = " loadLibraries ( server ) " class = "btn btn-primary-outline" > Load Libraries < i class = "fa fa-film" > < / i > < / button >
< button ( click ) = " loadLibraries ( server ) " class = "btn btn-primary-outline" > Load Libraries < i class = "fa fa-film" > < / i > < / button >
@ -128,12 +162,12 @@
< / div >
< / div >
< / ng-template >
< / ng-template >
< / ngb-tab >
< / ngb-tab >
< / div >
< / div >
< / ngb-tabset >
< / ngb-tabset >
< div class = "form-group" >
< div class = "form-group" >
< div >
< div >
< button ( click ) = " save ( ) " type = "submit" id = "save" class = "btn btn-primary-outline" > Submit< / button >
< button ( click ) = " save ( ) " type = "submit" id = "save" class = "btn btn-primary-outline" > Submit< / button >