mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 05:16:34 +02:00
Fixed: Updating Kodi won't fail if a series has an IMDB ID instead of a TVDB ID
This commit is contained in:
@@ -65,7 +65,13 @@ namespace NzbDrone.Core.Notifications.Xbmc
|
||||
return null;
|
||||
}
|
||||
|
||||
var matchingSeries = allSeries.FirstOrDefault(s => s.ImdbNumber == series.TvdbId || s.Label == series.Title);
|
||||
var matchingSeries = allSeries.FirstOrDefault(s =>
|
||||
{
|
||||
var tvdbId = 0;
|
||||
Int32.TryParse(s.ImdbNumber, out tvdbId);
|
||||
|
||||
return tvdbId == series.TvdbId || s.Label == series.Title;
|
||||
});
|
||||
|
||||
if (matchingSeries != null) return matchingSeries.File;
|
||||
|
||||
|
Reference in New Issue
Block a user