mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
a7780fab67
Reworked RssSyncProvider to make it cleaner. SeasonProvider was returning the reveresed boolean result Indexer changed to not store empty strings as null when saving config (ApiUrl).
26 lines
727 B
C#
26 lines
727 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using SubSonic.SqlGeneration.Schema;
|
|
|
|
namespace NzbDrone.Core.Repository
|
|
{
|
|
public class Indexer
|
|
{
|
|
[SubSonicPrimaryKey(true)]
|
|
public string IndexerName { get; set; }
|
|
public string RssUrl { get; set; }
|
|
|
|
[SubSonicNullStringAttribute]
|
|
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
|
public string ApiUrl { get; set; }
|
|
public bool Enabled { get; set; }
|
|
public int Order { get; set; }
|
|
|
|
[SubSonicToManyRelation]
|
|
public virtual List<History> Histories { get; private set; }
|
|
}
|
|
}
|