From ed883fd0146339b254ffab13280bcc95f252fa27 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 17 Aug 2013 12:40:23 -0700 Subject: [PATCH] added .iso and .m2ts to known media file extensions. --- NzbDrone.Core/MediaFiles/DiskScanService.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Core/MediaFiles/DiskScanService.cs b/NzbDrone.Core/MediaFiles/DiskScanService.cs index 3b08b8898..babfd27c8 100644 --- a/NzbDrone.Core/MediaFiles/DiskScanService.cs +++ b/NzbDrone.Core/MediaFiles/DiskScanService.cs @@ -1,4 +1,5 @@ -using System.IO; +using System.Collections.Generic; +using System.IO; using System.Linq; using NLog; using NzbDrone.Common; @@ -20,21 +21,18 @@ namespace NzbDrone.Core.MediaFiles IHandle { private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); - private static readonly string[] MediaExtensions = new[] { ".mkv", ".avi", ".wmv", ".mp4", ".mpg", ".mpeg", ".xvid", ".flv", ".mov", ".rm", ".rmvb", ".divx", ".dvr-ms", ".ts", ".ogm", ".m4v", ".strm" }; + private static readonly HashSet MediaExtensions = new HashSet { ".mkv", ".avi", ".wmv", ".mp4", ".mpg", ".mpeg", ".xvid", ".flv", ".mov", ".rm", ".rmvb", ".divx", ".dvr-ms", ".ts", ".ogm", ".m4v", ".strm", ".iso", "m2ts" }; private readonly IDiskProvider _diskProvider; - private readonly ISeriesService _seriesService; private readonly IMakeImportDecision _importDecisionMaker; private readonly IImportApprovedEpisodes _importApprovedEpisodes; private readonly IMessageAggregator _messageAggregator; public DiskScanService(IDiskProvider diskProvider, - ISeriesService seriesService, IMakeImportDecision importDecisionMaker, IImportApprovedEpisodes importApprovedEpisodes, IMessageAggregator messageAggregator) { _diskProvider = diskProvider; - _seriesService = seriesService; _importDecisionMaker = importDecisionMaker; _importApprovedEpisodes = importApprovedEpisodes; _messageAggregator = messageAggregator;