From ece3241041d5e489f4162e073337848d12467d4a Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 19 Feb 2019 18:27:26 -0800 Subject: [PATCH] Fixed: Adding series with unknown IMDB ID and series folder includes IMDB ID --- src/NzbDrone.Core/Organizer/FileNameBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Organizer/FileNameBuilder.cs b/src/NzbDrone.Core/Organizer/FileNameBuilder.cs index d3fdaec5f..f4cf43509 100644 --- a/src/NzbDrone.Core/Organizer/FileNameBuilder.cs +++ b/src/NzbDrone.Core/Organizer/FileNameBuilder.cs @@ -590,7 +590,7 @@ namespace NzbDrone.Core.Organizer private void AddIdTokens(Dictionary> 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(); }