Fixed issue where quality weight was mapped wrongly. Fixes #597

This commit is contained in:
Leonardo Galli 2017-02-05 20:00:41 +01:00
parent 1d0a6af7d7
commit 721773ef68
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,9 @@ namespace NzbDrone.Api.Indexers
release.ReleaseWeight = initialWeight;
if (decision.RemoteEpisode.Series != null)
if (decision.RemoteMovie.Movie != null)
{
release.QualityWeight = decision.RemoteEpisode.Series
release.QualityWeight = decision.RemoteMovie.Movie
.Profile.Value
.Items.FindIndex(v => v.Quality == release.Quality.Quality) * 100;
}