Fixed: Plex RSS TMDb ID Lookup

This commit is contained in:
nexus671 2023-11-19 14:27:31 -05:00 committed by GitHub
parent 81f3c4bd55
commit 4f57c088a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -47,13 +47,13 @@ namespace NzbDrone.Core.ImportLists.Rss.Plex
if (int.TryParse(guid.Replace("tmdb://", ""), out var tmdbId))
{
info.TmdbId = tvdbId;
info.TmdbId = tmdbId;
}
}
if (info.ImdbId.IsNullOrWhiteSpace() && info.TvdbId == 0)
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 or TVDB ID");
throw new UnsupportedFeedException("Each item in the RSS feed must have a guid element with a IMDB ID, TVDB ID or TMDB ID");
}
return info;