mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-16 23:39:44 +02:00
Fixed: Importing Plex RSS lists with invalid items
This commit is contained in:
parent
da02ec3b04
commit
3d2ca830bc
@ -3,15 +3,17 @@
|
|||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Core.ImportLists.ImportListMovies;
|
using NzbDrone.Core.ImportLists.ImportListMovies;
|
||||||
using NzbDrone.Core.Indexers;
|
using NzbDrone.Core.Indexers;
|
||||||
using NzbDrone.Core.Indexers.Exceptions;
|
|
||||||
|
|
||||||
namespace NzbDrone.Core.ImportLists.Rss.Plex
|
namespace NzbDrone.Core.ImportLists.Rss.Plex
|
||||||
{
|
{
|
||||||
public class PlexRssImportParser : RssImportBaseParser
|
public class PlexRssImportParser : RssImportBaseParser
|
||||||
{
|
{
|
||||||
|
private readonly Logger _logger;
|
||||||
|
|
||||||
public PlexRssImportParser(Logger logger)
|
public PlexRssImportParser(Logger logger)
|
||||||
: base(logger)
|
: base(logger)
|
||||||
{
|
{
|
||||||
|
_logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override ImportListMovie ProcessItem(XElement item)
|
protected override ImportListMovie ProcessItem(XElement item)
|
||||||
@ -45,7 +47,9 @@ protected override ImportListMovie ProcessItem(XElement item)
|
|||||||
|
|
||||||
if (info.ImdbId.IsNullOrWhiteSpace() && info.TmdbId == 0)
|
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;
|
return info;
|
||||||
|
Loading…
Reference in New Issue
Block a user