1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

Episode file import fixes

Fixed: Import event when file doesn't have a valid scene name
Fixed: Filename when file doesn't have a valid scene name
This commit is contained in:
Mark McDowall
2014-09-15 16:46:12 -07:00
parent 7c01f46cc0
commit 4cbb59d4e8
6 changed files with 49 additions and 4 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ namespace NzbDrone.Core.History
EventType = HistoryEventType.DownloadFolderImported,
Date = DateTime.UtcNow,
Quality = message.EpisodeInfo.Quality,
SourceTitle = message.ImportedEpisode.SceneName,
SourceTitle = message.ImportedEpisode.SceneName ?? Path.GetFileNameWithoutExtension(message.EpisodeInfo.Path),
SeriesId = message.ImportedEpisode.SeriesId,
EpisodeId = episode.Id
};