1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Don't fetch media info when adding existing episodes

This commit is contained in:
Mark McDowall 2014-12-14 14:09:51 -08:00
parent e3893083bc
commit 9686c2579b

View File

@ -74,8 +74,12 @@ private IEnumerable<ImportDecision> GetDecisions(IEnumerable<String> videoFiles,
localEpisode.Size = _diskProvider.GetFileSize(file); localEpisode.Size = _diskProvider.GetFileSize(file);
_logger.Debug("Size: {0}", localEpisode.Size); _logger.Debug("Size: {0}", localEpisode.Size);
localEpisode.MediaInfo = _videoFileInfoReader.GetMediaInfo(file); //TODO: make it so media info doesn't ruin the import process of a new series
if (sceneSource)
{
localEpisode.MediaInfo = _videoFileInfoReader.GetMediaInfo(file);
}
decision = GetDecision(localEpisode); decision = GetDecision(localEpisode);
} }