Fixed styling. Fixed definitions not being returned.

Leonardo Galli 8 years ago
parent 94eccc6c14
commit 1fa736c6d8

@ -1,4 +1,5 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Windows.Forms;
using System.Xml.Serialization; using System.Xml.Serialization;
namespace NzbDrone.Core.NetImport.CouchPotato namespace NzbDrone.Core.NetImport.CouchPotato
@ -48,7 +49,7 @@ namespace NzbDrone.Core.NetImport.CouchPotato
public class ReleaseInfo public class ReleaseInfo
{ {
public int size { get; set; } public double size { get; set; }
public int seeders { get; set; } public int seeders { get; set; }
public string protocol { get; set; } public string protocol { get; set; }
public string description { 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.")] [FieldDefinition(0, Label = "CouchPotato URL", HelpText = "Link to your CoouchPootato.")]
public new string Link { get; set; } 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; } 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; } public string ApiKey { get; set; }
} }
} }

@ -26,17 +26,18 @@ namespace NzbDrone.Core.NetImport.RSSImport
{ {
get get
{ {
var config = (RSSImportSettings)new RSSImportSettings(); foreach (var def in base.DefaultDefinitions)
config.Link = "http://rss.imdb.com/list/YOURLISTID"; {
yield return def;
}
yield return new NetImportDefinition yield return new NetImportDefinition
{ {
Name = "IMDb Watchlist", Name = "IMDb Watchlist",
Enabled = config.Validate().IsValid && Enabled, Enabled = Enabled,
EnableAuto = true, EnableAuto = true,
ProfileId = 1, ProfileId = 1,
Implementation = GetType().Name, 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 var definition = provider.DefaultDefinitions
.OfType<TProviderDefinition>() .OfType<TProviderDefinition>()
.FirstOrDefault(v => v.Name == null || v.Name == provider.GetType().Name); .FirstOrDefault(v => v.Name == null || v.Name == provider.Name);
if (definition == null) if (definition == null)
{ {

@ -23,13 +23,13 @@
<div class="col-sm-5"> <div class="col-sm-5">
<div class="input-group"> <div class="input-group">
<label class="checkbox toggle well"> <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> <p>
<span>Yes</span> <span>Yes</span>
<span>No</span> <span>No</span>
</p> </p>
<div class="btn btn-primary slide-button"/> <div class="btn btn-primary slide-button"></div>
</label> </label>
<span class="help-inline-checkbox"> <span class="help-inline-checkbox">

@ -4,5 +4,10 @@
</div> </div>
<div class="settings"> <div class="settings">
{{#if enableAuto}}
<span class="label label-success">Auto</span>
{{else}}
<span class="label label-default">Auto</span>
{{/if}}
</div> </div>
</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 "Metadata/metadata";
@import "DownloadClient/downloadclient"; @import "DownloadClient/downloadclient";
@import "thingy"; @import "thingy";
@import "NetImport/list.less";
li.save-and-add { li.save-and-add {
.clickable; .clickable;

Loading…
Cancel
Save