mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-24 22:35:49 -04:00
Fixed styling. Fixed definitions not being returned.
This commit is contained in:
@@ -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" },
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user