mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Cleanup Sonarr References
This commit is contained in:
parent
d36608b4fd
commit
e71973b16c
@ -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);
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user