Fixed: Adding series with unknown IMDB ID and series folder includes IMDB ID

This commit is contained in:
Mark McDowall 2019-02-19 18:27:26 -08:00
parent fcb1bcb91b
commit ece3241041
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ namespace NzbDrone.Core.Organizer
private void AddIdTokens(Dictionary<string, Func<TokenMatch, string>> tokenHandlers, Series series)
{
tokenHandlers["{ImdbId}"] = m => series.ImdbId;
tokenHandlers["{ImdbId}"] = m => series.ImdbId ?? string.Empty;
tokenHandlers["{TvdbId}"] = m => series.TvdbId.ToString();
tokenHandlers["{TvMazeId}"] = m => series.TvMazeId.ToString();
}