From 04f85954989c849618da9d02774ec35735d22f00 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 28 Jun 2024 17:03:06 -0700 Subject: [PATCH] Custom Import List improvements Fixed: Add placeholder title for Custom Import List title New: Support 'title' property for Custom Import List --- src/NzbDrone.Core/ImportLists/Custom/CustomAPIResource.cs | 1 + src/NzbDrone.Core/ImportLists/Custom/CustomImport.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NzbDrone.Core/ImportLists/Custom/CustomAPIResource.cs b/src/NzbDrone.Core/ImportLists/Custom/CustomAPIResource.cs index 3dbe7e184..8db0b0f92 100644 --- a/src/NzbDrone.Core/ImportLists/Custom/CustomAPIResource.cs +++ b/src/NzbDrone.Core/ImportLists/Custom/CustomAPIResource.cs @@ -2,6 +2,7 @@ namespace NzbDrone.Core.ImportLists.Custom { public class CustomSeries { + public string Title { get; set; } public int TvdbId { get; set; } } } diff --git a/src/NzbDrone.Core/ImportLists/Custom/CustomImport.cs b/src/NzbDrone.Core/ImportLists/Custom/CustomImport.cs index f82e2f9f9..dbe2938d0 100644 --- a/src/NzbDrone.Core/ImportLists/Custom/CustomImport.cs +++ b/src/NzbDrone.Core/ImportLists/Custom/CustomImport.cs @@ -43,6 +43,7 @@ namespace NzbDrone.Core.ImportLists.Custom { series.Add(new ImportListItemInfo { + Title = item.Title.IsNullOrWhiteSpace() ? $"TvdbId: {item.TvdbId}" : item.Title, TvdbId = item.TvdbId }); }