Fixed styling. Fixed definitions not being returned.

pull/497/head
Leonardo Galli 8 years ago
parent 94eccc6c14
commit 1fa736c6d8

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Windows.Forms;
using System.Xml.Serialization;
namespace NzbDrone.Core.NetImport.CouchPotato
@ -48,7 +49,7 @@ namespace NzbDrone.Core.NetImport.CouchPotato
public class ReleaseInfo
{
public int size { get; set; }
public double size { get; set; }
public int seeders { get; set; }
public string protocol { get; set; }
public string description { get; set; }

@ -18,10 +18,10 @@ namespace NzbDrone.Core.NetImport.CouchPotato
[FieldDefinition(0, Label = "CouchPotato URL", HelpText = "Link to your CoouchPootato.")]
public new string Link { get; set; }
[FieldDefinition(2, Label = "CouchPotato Port", HelpText = "Port your CoouchPootato uses.")]
[FieldDefinition(1, Label = "CouchPotato Port", HelpText = "Port your CoouchPootato uses.")]
public string Port { get; set; }
[FieldDefinition(3, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")]
[FieldDefinition(2, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")]
public string ApiKey { get; set; }
}
}

@ -26,17 +26,18 @@ namespace NzbDrone.Core.NetImport.RSSImport
{
get
{
var config = (RSSImportSettings)new RSSImportSettings();
config.Link = "http://rss.imdb.com/list/YOURLISTID";
foreach (var def in base.DefaultDefinitions)
{
yield return def;
}
yield return new NetImportDefinition
{
Name = "IMDb Watchlist",
Enabled = config.Validate().IsValid && Enabled,
Enabled = Enabled,
EnableAuto = true,
ProfileId = 1,
Implementation = GetType().Name,
Settings = config
Settings = new RSSImportSettings { Link = "http://rss.imdb.com/list/YOURLISTID" },
};
}
}

@ -45,7 +45,7 @@ namespace NzbDrone.Core.ThingiProvider
{
var definition = provider.DefaultDefinitions
.OfType<TProviderDefinition>()
.FirstOrDefault(v => v.Name == null || v.Name == provider.GetType().Name);
.FirstOrDefault(v => v.Name == null || v.Name == provider.Name);
if (definition == null)
{

@ -23,13 +23,13 @@
<div class="col-sm-5">
<div class="input-group">
<label class="checkbox toggle well">
<input type="checkbox" name="enableAutomatic" {{#if enableAuto}} checked="checked" {{/if}} />
<input type="checkbox" name="enableAuto" {{#if enableAuto}} checked="checked" {{/if}} />
<p>
<span>Yes</span>
<span>No</span>
</p>
<div class="btn btn-primary slide-button"/>
<div class="btn btn-primary slide-button"></div>
</label>
<span class="help-inline-checkbox">

@ -4,5 +4,10 @@
</div>
<div class="settings">
{{#if enableAuto}}
<span class="label label-success">Auto</span>
{{else}}
<span class="label label-default">Auto</span>
{{/if}}
</div>
</div>

@ -1,33 +0,0 @@
@import "../../Shared/Styles/clickable.less";
.indexer-list {
li {
display: inline-block;
vertical-align: top;
}
}
.indexer-item {
.clickable;
width: 290px;
height: 90px;
padding: 10px 15px;
&.add-card {
.center {
margin-top: -3px;
}
}
}
.modal-overflow {
overflow-y: visible;
}
.add-indexer {
li.add-thingy-item {
width: 33%;
}
}

@ -0,0 +1,33 @@
@import "../../Shared/Styles/clickable.less";
.lists-list {
li {
display: inline-block;
vertical-align: top;
}
}
.list-item {
.clickable;
width: 290px;
height: 90px;
padding: 10px 15px;
&.add-card {
.center {
margin-top: -3px;
}
}
}
.modal-overflow {
overflow-y: visible;
}
.add-list {
li.add-thingy-item {
width: 33%;
}
}

@ -7,6 +7,7 @@
@import "Metadata/metadata";
@import "DownloadClient/downloadclient";
@import "thingy";
@import "NetImport/list.less";
li.save-and-add {
.clickable;

Loading…
Cancel
Save