Fixed: Importing Plex RSS lists with invalid items

This commit is contained in:
Bogdan 2024-01-17 01:13:21 +02:00
parent da02ec3b04
commit 3d2ca830bc
1 changed files with 6 additions and 2 deletions

View File

@ -3,15 +3,17 @@ using NLog;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.ImportLists.ImportListMovies;
using NzbDrone.Core.Indexers;
using NzbDrone.Core.Indexers.Exceptions;
namespace NzbDrone.Core.ImportLists.Rss.Plex
{
public class PlexRssImportParser : RssImportBaseParser
{
private readonly Logger _logger;
public PlexRssImportParser(Logger logger)
: base(logger)
{
_logger = logger;
}
protected override ImportListMovie ProcessItem(XElement item)
@ -45,7 +47,9 @@ namespace NzbDrone.Core.ImportLists.Rss.Plex
if (info.ImdbId.IsNullOrWhiteSpace() && info.TmdbId == 0)
{
throw new UnsupportedFeedException("Each item in the RSS feed must have a guid element with a IMDB ID or TMDB ID");
_logger.Warn("Each item in the RSS feed must have a guid element with a IMDB ID or TMDB ID");
return null;
}
return info;