Devin Buhl 8 years ago
parent 46daa11c46
commit 39322cbbca

@ -112,7 +112,7 @@ namespace NzbDrone.Api.Movie
var files = _diskScanService.GetVideoFiles(f.Path); var files = _diskScanService.GetVideoFiles(f.Path);
var decisions = _importDecisionMaker.GetImportDecisions(files.ToList(), m, true, true); var decisions = _importDecisionMaker.GetImportDecisions(files.ToList(), m, true);
var decision = decisions.Where(d => d.Approved && !d.Rejections.Any()).FirstOrDefault(); var decision = decisions.Where(d => d.Approved && !d.Rejections.Any()).FirstOrDefault();

@ -178,7 +178,7 @@ namespace NzbDrone.Core.MediaFiles
_mediaFileTableCleanupService.Clean(movie, mediaFileList); _mediaFileTableCleanupService.Clean(movie, mediaFileList);
var decisionsStopwatch = Stopwatch.StartNew(); var decisionsStopwatch = Stopwatch.StartNew();
var decisions = _importDecisionMaker.GetImportDecisions(mediaFileList, movie, true, true); var decisions = _importDecisionMaker.GetImportDecisions(mediaFileList, movie, true);
decisionsStopwatch.Stop(); decisionsStopwatch.Stop();
_logger.Trace("Import decisions complete for: {0} [{1}]", movie, decisionsStopwatch.Elapsed); _logger.Trace("Import decisions complete for: {0} [{1}]", movie, decisionsStopwatch.Elapsed);

@ -15,6 +15,8 @@ module.exports = Backgrid.SelectCell.extend({
if(ProfileCollection.get(this.defaultProfile)) if(ProfileCollection.get(this.defaultProfile))
{ {
this.profile = this.defaultProfile; this.profile = this.defaultProfile;
} else {
this.profile = ProfileCollection.get(1);
} }
this.render(); this.render();

Loading…
Cancel
Save