mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Added pre-search check for EpisodeSearch to see if an upgrade is possible, before attempting.
This commit is contained in:
parent
d1262f1ced
commit
20c1639ada
9 changed files with 151 additions and 12 deletions
|
@ -129,6 +129,14 @@ namespace NzbDrone.Core.Providers
|
|||
return false;
|
||||
}
|
||||
|
||||
//Check to see if an upgrade is possible before attempting
|
||||
if (!_inventoryProvider.IsUpgradePossible(episode))
|
||||
{
|
||||
Logger.Info("Search for {0} was aborted, file in disk meets or exceeds Profile's Cutoff", episode);
|
||||
notification.CurrentMessage = String.Format("Aborting search for {0}, Upgrade is not possible", episode);
|
||||
return false;
|
||||
}
|
||||
|
||||
notification.CurrentMessage = "Searching for " + episode;
|
||||
|
||||
if (episode.Series.IsDaily && !episode.AirDate.HasValue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue