1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-17 21:26:22 -04:00

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

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;
}