From dfbb222c6c1cf42ef1e19ac4832a6375afd451c1 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 13 Jan 2012 21:40:09 -0800 Subject: [PATCH] Changed the second .xvid to .divx. .mkv & .ts will be treated as HDTV, all others will be treated as SDTV. --- NzbDrone.Core/Parser.cs | 10 ++++++++++ NzbDrone.Core/Providers/DiskScanProvider.cs | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core/Parser.cs b/NzbDrone.Core/Parser.cs index 4402544ff..8a824a55a 100644 --- a/NzbDrone.Core/Parser.cs +++ b/NzbDrone.Core/Parser.cs @@ -277,13 +277,23 @@ internal static Quality ParseQuality(string name) { case ".avi": case ".xvid": + case ".divx": case ".wmv": case ".mp4": + case ".mpg": + case ".mpeg": + case ".mov": + case ".rm": + case ".rmvb": + case ".flv": + case ".dvr-ms": + case ".ogm": { result.QualityType = QualityTypes.SDTV; break; } case ".mkv": + case ".ts": { result.QualityType = QualityTypes.HDTV; break; diff --git a/NzbDrone.Core/Providers/DiskScanProvider.cs b/NzbDrone.Core/Providers/DiskScanProvider.cs index 25978e6ee..15f7fb4e7 100644 --- a/NzbDrone.Core/Providers/DiskScanProvider.cs +++ b/NzbDrone.Core/Providers/DiskScanProvider.cs @@ -15,7 +15,7 @@ namespace NzbDrone.Core.Providers public class DiskScanProvider { private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); - private static readonly string[] MediaExtentions = new[] { ".mkv", ".avi", ".wmv", ".mp4", ".mpg", ".mpeg", ".xvid", ".flv", ".mov", ".rm", ".rmvb", ".xvid", ".dvr-ms", ".ts", ".ogm" }; + private static readonly string[] MediaExtentions = new[] { ".mkv", ".avi", ".wmv", ".mp4", ".mpg", ".mpeg", ".xvid", ".flv", ".mov", ".rm", ".rmvb", ".divx", ".dvr-ms", ".ts", ".ogm" }; private readonly DiskProvider _diskProvider; private readonly EpisodeProvider _episodeProvider; private readonly MediaFileProvider _mediaFileProvider;