Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/5e4f7c5d8ec33ea46bd0c7eea45afb2e614ad30e
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
9 additions and
10 deletions
@ -15,12 +15,12 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
private readonly Logger _logger ;
public QueueSpecification ( IQueueService queueService ,
UpgradableSpecification U pgradableSpecification,
UpgradableSpecification u pgradableSpecification,
IPreferredWordService preferredWordServiceCalculator ,
Logger logger )
{
_queueService = queueService ;
_upgradableSpecification = U pgradableSpecification;
_upgradableSpecification = u pgradableSpecification;
_preferredWordServiceCalculator = preferredWordServiceCalculator ;
_logger = logger ;
}
@ -31,8 +31,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
public Decision IsSatisfiedBy ( RemoteEpisode subject , SearchCriteriaBase searchCriteria )
{
var queue = _queueService . GetQueue ( ) ;
var matchingEpisode = queue . Where ( q = > q . RemoteEpisode ! = null & &
q . RemoteEpisode . Series ! = null & &
var matchingEpisode = queue . Where ( q = > q . RemoteEpisode ? . Series ! = null & &
q . RemoteEpisode . Series . Id = = subject . Series . Id & &
q . RemoteEpisode . Episodes . Select ( e = > e . Id ) . Intersect ( subject . Episodes . Select ( e = > e . Id ) ) . Any ( ) )
. ToList ( ) ;
@ -53,6 +53,11 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
{
var recent = mostRecent . Date . After ( DateTime . UtcNow . AddHours ( - 12 ) ) ;
if ( ! recent & & cdhEnabled )
{
continue ;
}
// The series will be the same as the one in history since it's the same episode.
// Instead of fetching the series from the DB reuse the known series.
var preferredWordScore = _preferredWordServiceCalculator . Calculate ( subject . Series , mostRecent . SourceTitle ) ;
@ -76,11 +81,6 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
subject . ParsedEpisodeInfo . Language ,
subject . PreferredWordScore ) ;
if ( ! recent & & cdhEnabled )
{
continue ;
}
if ( ! cutoffUnmet )
{
if ( recent )
@ -51,7 +51,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Specifications
return Decision . Reject ( "Not an upgrade for existing episode file(s)" ) ;
}
if ( languageComparer . Compare ( localEpisode . Language , episodeFile . Language ) < 0 & & qualityCompare = = 0 )
if ( languageComparer . Compare ( localEpisode . Language , episodeFile . Language ) < 0 & & qualityCompare = = 0 )
{
_logger . Debug ( "This file isn't a language upgrade for all episodes. Skipping {0}" , localEpisode . Path ) ;
return Decision . Reject ( "Not an upgrade for existing episode file(s)" ) ;