From bfd24da2d9fcad35c754c09d6d8433d56d4d5273 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 19 Jan 2024 07:42:51 +0200 Subject: [PATCH] Fixed: Importing Plex RSS lists with invalid items (#6374) --- .../ImportLists/Rss/Plex/PlexRssImportParser.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/ImportLists/Rss/Plex/PlexRssImportParser.cs b/src/NzbDrone.Core/ImportLists/Rss/Plex/PlexRssImportParser.cs index 2dda602cb..97c5a9d73 100644 --- a/src/NzbDrone.Core/ImportLists/Rss/Plex/PlexRssImportParser.cs +++ b/src/NzbDrone.Core/ImportLists/Rss/Plex/PlexRssImportParser.cs @@ -3,18 +3,19 @@ using System.Xml.Linq; using NLog; using NzbDrone.Common.Extensions; using NzbDrone.Core.Indexers; -using NzbDrone.Core.Indexers.Exceptions; using NzbDrone.Core.Parser.Model; namespace NzbDrone.Core.ImportLists.Rss.Plex { public class PlexRssImportParser : RssImportBaseParser { + private readonly Logger _logger; private static readonly Regex ImdbIdRegex = new (@"(tt\d{7,8})", RegexOptions.IgnoreCase | RegexOptions.Compiled); public PlexRssImportParser(Logger logger) : base(logger) { + _logger = logger; } protected override ImportListItemInfo ProcessItem(XElement item) @@ -53,7 +54,9 @@ namespace NzbDrone.Core.ImportLists.Rss.Plex if (info.ImdbId.IsNullOrWhiteSpace() && info.TvdbId == 0 && info.TmdbId == 0) { - throw new UnsupportedFeedException("Each item in the RSS feed must have a guid element with a IMDB ID, TVDB ID or TMDB ID"); + _logger.Warn("Each item in the RSS feed must have a guid element with a IMDB ID, TVDB ID or TMDB ID: '{0}'", info.Title); + + return null; } return info;