From 73af5c9a726f0aba18f399af011cc802622eed18 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 27 Dec 2022 19:17:38 +0200 Subject: [PATCH] Fixed: (Indexer) Changed FL to use internal flag --- src/NzbDrone.Core/Indexers/Definitions/FileList/FileList.cs | 3 ++- .../Indexers/Definitions/FileList/FileListApi.cs | 1 + .../Indexers/Definitions/FileList/FileListParser.cs | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/FileList/FileList.cs b/src/NzbDrone.Core/Indexers/Definitions/FileList/FileList.cs index 630283e80..7d725a9ca 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/FileList/FileList.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/FileList/FileList.cs @@ -39,7 +39,7 @@ namespace NzbDrone.Core.Indexers.FileList { TvSearchParams = new List { - TvSearchParam.Q, TvSearchParam.Season, TvSearchParam.Ep + TvSearchParam.Q, TvSearchParam.ImdbId, TvSearchParam.Season, TvSearchParam.Ep }, MovieSearchParams = new List { @@ -55,6 +55,7 @@ namespace NzbDrone.Core.Indexers.FileList }, Flags = new List { + IndexerFlag.Internal, IndexerFlag.FreeLeech } }; diff --git a/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListApi.cs b/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListApi.cs index b92766e14..aa09996b9 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListApi.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListApi.cs @@ -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")] diff --git a/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs b/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs index 2a4176bd2..a495d4fe9 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/FileList/FileListParser.cs @@ -38,6 +38,11 @@ namespace NzbDrone.Core.Indexers.FileList var flags = new List(); + if (result.Internal) + { + flags.Add(IndexerFlag.Internal); + } + var imdbId = 0; if (result.ImdbId != null && result.ImdbId.Length > 2) {