mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
fixed more tests.
This commit is contained in:
parent
48880e4964
commit
048162a0ef
45 changed files with 424 additions and 677 deletions
|
@ -133,7 +133,7 @@ namespace NzbDrone.Core.Providers
|
|||
}
|
||||
|
||||
//Make sure this file is an upgrade for ALL episodes already on disk
|
||||
if (episodes.All(e => e.EpisodeFile == null || e.EpisodeFile.QualityModel <= parseResult.Quality))
|
||||
if (episodes.All(e => e.EpisodeFile == null || e.EpisodeFile.Quality <= parseResult.Quality))
|
||||
{
|
||||
Logger.Debug("Deleting the existing file(s) on disk to upgrade to: {0}", filePath);
|
||||
//Do the delete for files where there is already an episode on disk
|
||||
|
@ -152,8 +152,7 @@ namespace NzbDrone.Core.Providers
|
|||
episodeFile.SeriesId = series.Id;
|
||||
episodeFile.Path = filePath.NormalizePath();
|
||||
episodeFile.Size = size;
|
||||
episodeFile.Quality = parseResult.Quality.Quality;
|
||||
episodeFile.Proper = parseResult.Quality.Proper;
|
||||
episodeFile.Quality = parseResult.Quality;
|
||||
episodeFile.SeasonNumber = parseResult.SeasonNumber;
|
||||
episodeFile.SceneName = Path.GetFileNameWithoutExtension(filePath.NormalizePath());
|
||||
episodeFile.ReleaseGroup = parseResult.ReleaseGroup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue