Fixed: (Indexer) Changed FL to use internal flag

pull/1271/head
Bogdan 2 years ago committed by Qstick
parent d556545e7f
commit 73af5c9a72

@ -39,7 +39,7 @@ namespace NzbDrone.Core.Indexers.FileList
{
TvSearchParams = new List<TvSearchParam>
{
TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep
TvSearchParam.Q, TvSearchParam.ImdbId, TvSearchParam.Season, TvSearchParam.Ep
},
MovieSearchParams = new List<MovieSearchParam>
{
@ -55,6 +55,7 @@ namespace NzbDrone.Core.Indexers.FileList
},
Flags = new List<IndexerFlag>
{
IndexerFlag.Internal,
IndexerFlag.FreeLeech
}
};

@ -16,6 +16,7 @@ namespace NzbDrone.Core.Indexers.FileList
public uint Files { get; set; }
[JsonProperty(PropertyName = "imdb")]
public string ImdbId { get; set; }
public bool Internal { get; set; }
[JsonProperty(PropertyName = "freeleech")]
public bool FreeLeech { get; set; }
[JsonProperty(PropertyName = "doubleup")]

@ -38,6 +38,11 @@ namespace NzbDrone.Core.Indexers.FileList
var flags = new List<IndexerFlag>();
if (result.Internal)
{
flags.Add(IndexerFlag.Internal);
}
var imdbId = 0;
if (result.ImdbId != null && result.ImdbId.Length > 2)
{

Loading…
Cancel
Save