Cleanup Sonarr References

pull/4415/head
Qstick 5 years ago
parent d36608b4fd
commit e71973b16c

@ -44,19 +44,19 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
{
if (!movie.HasFile)
{
_logger.Debug("Skipping already imported check for episode without file");
_logger.Debug("Skipping already imported check for movie without file");
return Decision.Accept();
}
var historyForEpisode = _historyService.GetByMovieId(movie.Id, null);
var lastGrabbed = historyForEpisode.FirstOrDefault(h => h.EventType == MovieHistoryEventType.Grabbed);
var historyForMovie = _historyService.GetByMovieId(movie.Id, null);
var lastGrabbed = historyForMovie.FirstOrDefault(h => h.EventType == MovieHistoryEventType.Grabbed);
if (lastGrabbed == null)
{
return Decision.Accept();
}
var imported = historyForEpisode.FirstOrDefault(h =>
var imported = historyForMovie.FirstOrDefault(h =>
h.EventType == MovieHistoryEventType.DownloadFolderImported &&
h.DownloadId == lastGrabbed.DownloadId);

@ -207,7 +207,7 @@ namespace NzbDrone.Core.Download.TrackedDownloads
existingItem.CanBeRemoved != downloadItem.CanBeRemoved ||
existingItem.CanMoveFiles != downloadItem.CanMoveFiles)
{
_logger.Debug("Tracking '{0}:{1}': ClientState={2}{3} SonarrStage={4} Episode='{5}' OutputPath={6}.",
_logger.Debug("Tracking '{0}:{1}': ClientState={2}{3} RadarrStage={4} Movie='{5}' OutputPath={6}.",
downloadItem.DownloadClientInfo.Name,
downloadItem.Title,
downloadItem.Status,

@ -45,15 +45,6 @@ namespace NzbDrone.Core.MediaFiles
_mediaFileService.Delete(movieFile, DeleteMediaFileReason.MissingFromDisk);
continue;
}
//var localMovie = _parsingService.GetLocalMovie(movieFile.Path, movie);
//if (localMovie == null)
//{
// _logger.Debug("File [{0}] parsed episodes has changed, removing from db", localMovie.Path);
// _mediaFileService.Delete(localMovie);
// continue;
//}
}
catch (Exception ex)
{

Loading…
Cancel
Save