mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Added debug messages to check quality.
This commit is contained in:
parent
39322cbbca
commit
5cace1d857
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
|
||||||
localMovie.MediaInfo = _videoFileInfoReader.GetMediaInfo(file);
|
localMovie.MediaInfo = _videoFileInfoReader.GetMediaInfo(file);
|
||||||
if (shouldCheckQuality)
|
if (shouldCheckQuality)
|
||||||
{
|
{
|
||||||
|
_logger.Debug("Checking quality for this video file to make sure nothing mismatched.");
|
||||||
var width = localMovie.MediaInfo.Width;
|
var width = localMovie.MediaInfo.Width;
|
||||||
var current = localMovie.Quality;
|
var current = localMovie.Quality;
|
||||||
var qualityName = current.Quality.Name.ToLower();
|
var qualityName = current.Quality.Name.ToLower();
|
||||||
|
@ -255,6 +256,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
|
||||||
}
|
}
|
||||||
if (updated != null && updated != current)
|
if (updated != null && updated != current)
|
||||||
{
|
{
|
||||||
|
_logger.Debug("Quality ({0}) of the file is different than the one we have ({1})", updated, current);
|
||||||
updated.QualitySource = QualitySource.MediaInfo;
|
updated.QualitySource = QualitySource.MediaInfo;
|
||||||
localMovie.Quality = updated;
|
localMovie.Quality = updated;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue