1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Cleanup Sonarr References

This commit is contained in:
Qstick 2020-04-30 19:46:53 -04:00
parent d36608b4fd
commit e71973b16c
3 changed files with 5 additions and 14 deletions

View File

@ -44,19 +44,19 @@ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCrit
{
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);

View File

@ -207,7 +207,7 @@ private void LogItemChange(TrackedDownload trackedDownload, DownloadClientItem e
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,

View File

@ -45,15 +45,6 @@ public void Clean(Movie movie, List<string> filesOnDisk)
_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)
{