mirror of
https://github.com/Sonarr/Sonarr
synced 2026-04-18 19:21:31 +02:00
Fixed: Plex RSS TMDb ID Lookup
This commit is contained in:
parent
81f3c4bd55
commit
4f57c088a1
1 changed files with 3 additions and 3 deletions
|
|
@ -47,13 +47,13 @@ protected override ImportListItemInfo ProcessItem(XElement item)
|
|||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue