From a427f9c16dfa9adc356de2a82b81b807ae5343e1 Mon Sep 17 00:00:00 2001 From: markus101 Date: Sun, 26 Sep 2010 19:20:42 -0700 Subject: [PATCH 1/3] SabController - Removed AddByPath, Completed AddByUrl and IsInQueue Created SabControllerTest - Added AddByPath Test (Needs more work) Added, Episode, FeedItem, ItemInfo and Site classes to store information --- NzbDrone.Core.Test/NzbDrone.Core.Test.csproj | 1 + NzbDrone.Core.Test/SabControllerTest.cs | 39 ++++++ .../Controllers/IDownloadClientController.cs | 5 +- NzbDrone.Core/Controllers/SabController.cs | 97 +++++++++++-- NzbDrone.Core/NzbDrone.Core.csproj | 2 + NzbDrone.Core/Repository/Episode.cs | 127 ++++++++++++++++++ NzbDrone.Core/Repository/FeedItem.cs | 16 +++ NzbDrone.Core/Repository/ItemInfo.cs | 21 +++ NzbDrone.Core/Repository/Site.cs | 36 +++++ 9 files changed, 329 insertions(+), 15 deletions(-) create mode 100644 NzbDrone.Core.Test/SabControllerTest.cs create mode 100644 NzbDrone.Core/Repository/Episode.cs create mode 100644 NzbDrone.Core/Repository/FeedItem.cs create mode 100644 NzbDrone.Core/Repository/ItemInfo.cs create mode 100644 NzbDrone.Core/Repository/Site.cs diff --git a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj index 7c1333c11..9ec3f0fa0 100644 --- a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj +++ b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj @@ -60,6 +60,7 @@ + diff --git a/NzbDrone.Core.Test/SabControllerTest.cs b/NzbDrone.Core.Test/SabControllerTest.cs new file mode 100644 index 000000000..fe061bb79 --- /dev/null +++ b/NzbDrone.Core.Test/SabControllerTest.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Text; +using Gallio.Framework; +using log4net; +using MbUnit.Framework; +using MbUnit.Framework.ContractVerifiers; +using Moq; +using NzbDrone.Core.Repository; +using NzbDrone.Core.Controllers; +using SubSonic.Repository; + +namespace NzbDrone.Core.Test +{ + [TestFixture] + public class SabControllerTest + { + [Test] + public void AddByUrl() + { + //Setup + String key = "SabnzbdInfo"; + String value = "192.168.5.55:2222"; + + var repo = new Mock(); + var config = new Mock(); + config.Setup(c => c.SetValue("SabnzbdInfo", "192.168.5.55:2222")); + + //var config = new Config() { Key = key, Value = value }; + var target = new SabController(config.Object, new Mock().Object); + + //Act + bool result = target.AddByUrl("http://www.nzbclub.com/nzb_download.aspx?mid=1950232"); + + //Assert + Assert.AreEqual(true, result); + } + } +} diff --git a/NzbDrone.Core/Controllers/IDownloadClientController.cs b/NzbDrone.Core/Controllers/IDownloadClientController.cs index cf996005a..ea3fb5ffc 100644 --- a/NzbDrone.Core/Controllers/IDownloadClientController.cs +++ b/NzbDrone.Core/Controllers/IDownloadClientController.cs @@ -2,12 +2,13 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using NzbDrone.Core.Repository; namespace NzbDrone.Core.Controllers { public interface IDownloadClientController { - string AddByUrl(string url); //Should accept something other than string (NzbInfo?) returns result if applicable - bool IsInQueue(string goodName);//Should accept something other than string (Episode?) returns bool + bool AddByUrl(ItemInfo nzb); //Should accept something other than string (NzbInfo?) returns success or failure + bool IsInQueue(Episode episode);//Should accept something other than string (Episode?) returns bool } } diff --git a/NzbDrone.Core/Controllers/SabController.cs b/NzbDrone.Core/Controllers/SabController.cs index 409d2e066..ff36455e7 100644 --- a/NzbDrone.Core/Controllers/SabController.cs +++ b/NzbDrone.Core/Controllers/SabController.cs @@ -1,37 +1,108 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Net; using System.Text; +using log4net; +using System.Xml.Linq; +using System.Xml; +using NzbDrone.Core.Repository; namespace NzbDrone.Core.Controllers { public class SabController : IDownloadClientController { private readonly IConfigController _config; + private readonly ILog _logger; - public SabController(IConfigController config) + public SabController(IConfigController config, ILog logger) { _config = config; + _logger = logger; } - public string AddByUrl(string url) + #region IDownloadClientController Members + + public bool AddByUrl(ItemInfo nzb) { - + const string mode = "addurl"; + const string cat = "tv"; + string name = nzb.Link.ToString().Replace("&", "%26"); + string nzbName = CleanUrlString(nzb.Title); - return ""; - } + string action = string.Format("mode={0}&name={1}&cat={2}&nzbname={3}", mode, name, cat, nzbName); + string request = GetSabRequest(action); - public string AddByPath(string path) - { + _logger.DebugFormat("Adding report [{0}] to the queue.", nzbName); - return ""; - } - - - public bool IsInQueue(string goodName) - { + if (SendRequest(request) == "ok") + return true; return false; } + + public bool IsInQueue(Episode epsiode) + { + string action = "mode=queue&output=xml"; + + XDocument xDoc = XDocument.Load(action); + + //If an Error Occurred, retuyrn + if (xDoc.Descendants("error").Count() != 0) + return false; + + if (xDoc.Descendants("queue").Count() == 0) + return false; + + //Get the Count of Items in Queue where 'filename' is Equal to goodName, if not zero, return true (isInQueue) + if ((from s in xDoc.Descendants("slot") where s.Element("filename").ToString().Equals(epsiode.FeedItem.TitleFix, StringComparison.InvariantCultureIgnoreCase) select s).Count() != 0) + { + _logger.DebugFormat("Episode in queue - '{0}'", epsiode.FeedItem.TitleFix); + + return true; + } + + return false; //Not in Queue + } + + #endregion + + private string GetSabRequest(string action) + { + string sabnzbdInfo = _config.GetValue("SabnzbdInfo", String.Empty, false); + string username = _config.GetValue("Username", String.Empty, false); + string password = _config.GetValue("Password", String.Empty, false); + string apiKey = _config.GetValue("ApiKey", String.Empty, false); + string priority = _config.GetValue("Priority", String.Empty, false); + + return string.Format( + @"http://{0}/sabnzbd/api?$Action&priority={1}&apikey={2}&ma_username={3}&ma_password={4}", + sabnzbdInfo, priority, apiKey, username, password).Replace("$Action", action); + } + + private string SendRequest(string request) + { + var webClient = new WebClient(); + string response = webClient.DownloadString(request).Replace("\n", String.Empty); + _logger.DebugFormat("Queue Repsonse: [{0}]", response); + return response; + } + + private string CleanUrlString(string name) + { + string result = name; + string[] badCharacters = + { + "%", "<", ">", "#", "{", "}", "|", "\\", "^", "`", "[", "]", "`", ";", "/", "?", + ":", "@", "=", "&", "$" + }; + string[] goodCharacters = + { + "%25", "%3C", "%3E", "%23", "%7B", "%7D", "%7C", "%5C", "%5E", "%7E", "%5B", + "%5D", "%60", "%3B", "%2F", "%3F", "%3A", "%40", "%3D", "%26", "%24" + }; + + return result.Trim(); + } } } diff --git a/NzbDrone.Core/NzbDrone.Core.csproj b/NzbDrone.Core/NzbDrone.Core.csproj index 393b1637b..57a52338c 100644 --- a/NzbDrone.Core/NzbDrone.Core.csproj +++ b/NzbDrone.Core/NzbDrone.Core.csproj @@ -130,6 +130,8 @@ + + diff --git a/NzbDrone.Core/Repository/Episode.cs b/NzbDrone.Core/Repository/Episode.cs new file mode 100644 index 000000000..2de356d68 --- /dev/null +++ b/NzbDrone.Core/Repository/Episode.cs @@ -0,0 +1,127 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Text.RegularExpressions; + +namespace NzbDrone.Core.Repository +{ + public class Episode + { + //Information about the current episode being processed + + private const string EpisodePattern = @" +(?.*) +(?: + s(?\d+)e(?\d+)-?e(?\d+) +| s(?\d+)e(?\d+) +| (?\d+)x(?\d+) +| (?\d{4}.\d{2}.\d{2}) +) +(?: + (?.*?) + (? + (?:hdtv|pdtv|xvid|ws|720p|x264|bdrip|dvdrip|dsr|proper) + .*) +| (?.*) +) +"; + public FeedItem FeedItem { get; set; } + public string ShowName { get; set; } + public string EpisodeName { get; set; } + public string EpisodeName2 { get; set; } + public int SeasonNumber { get; set; } + public int EpisodeNumber { get; set; } + public int EpisodeNumber2 { get; set; } + public DateTime AirDate { get; set; } + public string Release { get; set; } + public int Quality { get; set; } + + public bool IsProper + { + get { return FeedItem.Title.Contains("PROPER"); } + } + + public bool IsDaily + { + get { return AirDate != DateTime.MinValue; } + } + + public bool IsMulti + { + get { return SeasonNumber != 0 && EpisodeNumber != 0 && EpisodeNumber2 != 0; } + } + + public string EpisodeTitle + { + get { return IsDaily ? GetDailyEpisode() : IsMulti ? GetMultiEpisode() : GetSeasonEpisode(); } + } + + public string Title + { + get { return string.Format("{0} - {1}", ShowName, EpisodeTitle); } + } + + public override string ToString() + { + return string.Format("{0} - {1}", ShowName, EpisodeTitle); + } + + private string GetDailyEpisode() + { + return AirDate.ToString("yyyy-MM-dd"); + } + + private string GetMultiEpisode() + { + return string.Format("{0}x{1:D2}-{0}x{2:D2}", SeasonNumber, EpisodeNumber, EpisodeNumber2); + } + + private string GetSeasonEpisode() + { + return string.Format("{0}x{1:D2}", SeasonNumber, EpisodeNumber); + } + + public static Episode Parse(FeedItem feedItem) + { + Match match = Regex.Match(feedItem.Title, EpisodePattern, + RegexOptions.IgnorePatternWhitespace | RegexOptions.IgnoreCase); + + if (!match.Success) + return null; + + return new Episode + { + ShowName = ReplaceSeparatorChars(match.Groups["showName"].Value), + SeasonNumber = ParseInt(match.Groups["seasonNumber"].Value), + EpisodeNumber = ParseInt(match.Groups["episodeNumber"].Value), + EpisodeNumber2 = ParseInt(match.Groups["episodeNumber2"].Value), + EpisodeName = ReplaceSeparatorChars(match.Groups["episodeName"].Value), + Release = ReplaceSeparatorChars(match.Groups["release"].Value) + }; + } + + private static string ReplaceSeparatorChars(string s) + { + if (s == null) return string.Empty; + return s.Replace('.', ' ').Replace('-', ' ').Replace('_', ' ').Trim(); + } + + private static int ParseInt(string s) + { + int i; + int.TryParse(s, out i); + return i; + } + + private static DateTime ParseAirDate(string s) + { + DateTime d; + if (DateTime.TryParse(ReplaceSeparatorChars(s).Replace(' ', '-'), out d)) + return d; + return DateTime.MinValue; + } + + + } +} diff --git a/NzbDrone.Core/Repository/FeedItem.cs b/NzbDrone.Core/Repository/FeedItem.cs new file mode 100644 index 000000000..d3b84da2c --- /dev/null +++ b/NzbDrone.Core/Repository/FeedItem.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace NzbDrone.Core.Repository +{ + public class FeedItem + { + //Item from the NZB Feed waiting tp be processed. + public string Description { get; set; } + public string Title { get; set; } + public string TitleFix { get; set; } + public string NzbId { get; set; } + } +} diff --git a/NzbDrone.Core/Repository/ItemInfo.cs b/NzbDrone.Core/Repository/ItemInfo.cs new file mode 100644 index 000000000..6482203f4 --- /dev/null +++ b/NzbDrone.Core/Repository/ItemInfo.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace NzbDrone.Core.Repository +{ + public class ItemInfo + { + public string Id { get; set; } + public string Title { get; set; } + public Site Site { get; set; } + public Uri Link { get; set; } + public string Description { get; set; } + + public bool IsPassworded() + { + return Title.EndsWith("(Passworded)", StringComparison.InvariantCultureIgnoreCase); + } + } +} diff --git a/NzbDrone.Core/Repository/Site.cs b/NzbDrone.Core/Repository/Site.cs new file mode 100644 index 000000000..8c53795b6 --- /dev/null +++ b/NzbDrone.Core/Repository/Site.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Text.RegularExpressions; + +namespace NzbDrone.Core.Repository +{ + public class Site + { + private static readonly IList Sites = new List + { + new Site {Name = "nzbmatrix", Url = "nzbmatrix.com", Pattern = @"\d{6,10}"}, + new Site {Name = "nzbsDotOrg", Url = "nzbs.org", Pattern = @"\d{5,10}"}, + new Site {Name = "nzbsrus", Url = "nzbsrus.com", Pattern = @"\d{6,10}"}, + new Site {Name = "lilx", Url = "lilx.net", Pattern = @"\d{6,10}"}, + }; + + public string Name { get; set; } + public string Pattern { get; set; } + public string Url { get; set; } + + // TODO: use HttpUtility.ParseQueryString(); + // https://nzbmatrix.com/api-nzb-download.php?id=626526 + public string ParseId(string url) + { + return Regex.Match(url, Pattern).Value; + } + + public static Site Parse(string url) + { + return Sites.Where(site => url.Contains(site.Url)).SingleOrDefault() ?? + new Site { Name = "unknown", Pattern = @"\d{6,10}" }; + } + } +} From 50f97e824e1eaec864529e0f38181cbbe8b003ff Mon Sep 17 00:00:00 2001 From: markus101 Date: Mon, 27 Sep 2010 00:19:43 -0700 Subject: [PATCH 2/3] Fixed Unit Test for SabController.AddByUrl Added unit test for SabController.IsInQueue (Need to Mock SAB) SabController uses HttpUtility.UrlEncode on Title to clean it --- NzbDrone.Core.Test/SabControllerTest.cs | 52 +++++++++++++++++++--- NzbDrone.Core/Controllers/SabController.cs | 22 ++------- NzbDrone.Core/NzbDrone.Core.csproj | 4 ++ 3 files changed, 53 insertions(+), 25 deletions(-) diff --git a/NzbDrone.Core.Test/SabControllerTest.cs b/NzbDrone.Core.Test/SabControllerTest.cs index fe061bb79..c094f882a 100644 --- a/NzbDrone.Core.Test/SabControllerTest.cs +++ b/NzbDrone.Core.Test/SabControllerTest.cs @@ -19,21 +19,61 @@ public class SabControllerTest public void AddByUrl() { //Setup - String key = "SabnzbdInfo"; - String value = "192.168.5.55:2222"; + string sabnzbdInfo = "192.168.5.55:2222"; + string apikey = "5c770e3197e4fe763423ee7c392c25d1"; + string username = "admin"; + string password = "pass"; + string priority = "0"; - var repo = new Mock(); var config = new Mock(); - config.Setup(c => c.SetValue("SabnzbdInfo", "192.168.5.55:2222")); + config.Setup(c => c.GetValue("SabnzbdInfo", String.Empty, false)).Returns(sabnzbdInfo); + config.Setup(c => c.GetValue("ApiKey", String.Empty, false)).Returns(apikey); + config.Setup(c => c.GetValue("Username", String.Empty, false)).Returns(username); + config.Setup(c => c.GetValue("Password", String.Empty, false)).Returns(password); + config.Setup(c => c.GetValue("Priority", String.Empty, false)).Returns(priority); - //var config = new Config() { Key = key, Value = value }; var target = new SabController(config.Object, new Mock().Object); + ItemInfo nzb = new ItemInfo(); + nzb.Link = new Uri("http://www.nzbclub.com/nzb_download.aspx?mid=1950232"); + nzb.Title = "This is an Nzb"; + //Act - bool result = target.AddByUrl("http://www.nzbclub.com/nzb_download.aspx?mid=1950232"); + bool result = target.AddByUrl(nzb); //Assert Assert.AreEqual(true, result); } + + [Test] + public void IsInQueue() + { + //Setup + string sabnzbdInfo = "192.168.5.55:2222"; + string apikey = "5c770e3197e4fe763423ee7c392c25d1"; + string username = "admin"; + string password = "pass"; + string priority = "0"; + + var config = new Mock(); + config.Setup(c => c.GetValue("SabnzbdInfo", String.Empty, false)).Returns(sabnzbdInfo); + config.Setup(c => c.GetValue("ApiKey", String.Empty, false)).Returns(apikey); + config.Setup(c => c.GetValue("Username", String.Empty, false)).Returns(username); + config.Setup(c => c.GetValue("Password", String.Empty, false)).Returns(password); + config.Setup(c => c.GetValue("Priority", String.Empty, false)).Returns(priority); + + var target = new SabController(config.Object, new Mock().Object); + + Episode episode = new Episode(); + FeedItem item = new FeedItem(); + item.TitleFix = "This is my fixed title"; + episode.FeedItem = item; + + //Act + bool result = target.IsInQueue(episode); + + //Assert + Assert.AreEqual(false, result); + } } } diff --git a/NzbDrone.Core/Controllers/SabController.cs b/NzbDrone.Core/Controllers/SabController.cs index ff36455e7..8dd42037e 100644 --- a/NzbDrone.Core/Controllers/SabController.cs +++ b/NzbDrone.Core/Controllers/SabController.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Net; using System.Text; +using System.Web; using log4net; using System.Xml.Linq; using System.Xml; @@ -28,7 +29,7 @@ public bool AddByUrl(ItemInfo nzb) const string mode = "addurl"; const string cat = "tv"; string name = nzb.Link.ToString().Replace("&", "%26"); - string nzbName = CleanUrlString(nzb.Title); + string nzbName = HttpUtility.UrlEncode(nzb.Title); string action = string.Format("mode={0}&name={1}&cat={2}&nzbname={3}", mode, name, cat, nzbName); string request = GetSabRequest(action); @@ -45,7 +46,7 @@ public bool IsInQueue(Episode epsiode) { string action = "mode=queue&output=xml"; - XDocument xDoc = XDocument.Load(action); + XDocument xDoc = XDocument.Load(GetSabRequest(action)); //If an Error Occurred, retuyrn if (xDoc.Descendants("error").Count() != 0) @@ -87,22 +88,5 @@ private string SendRequest(string request) _logger.DebugFormat("Queue Repsonse: [{0}]", response); return response; } - - private string CleanUrlString(string name) - { - string result = name; - string[] badCharacters = - { - "%", "<", ">", "#", "{", "}", "|", "\\", "^", "`", "[", "]", "`", ";", "/", "?", - ":", "@", "=", "&", "$" - }; - string[] goodCharacters = - { - "%25", "%3C", "%3E", "%23", "%7B", "%7D", "%7C", "%5C", "%5E", "%7E", "%5B", - "%5D", "%60", "%3B", "%2F", "%3F", "%3A", "%40", "%3D", "%26", "%24" - }; - - return result.Trim(); - } } } diff --git a/NzbDrone.Core/NzbDrone.Core.csproj b/NzbDrone.Core/NzbDrone.Core.csproj index 57a52338c..6d3c4416b 100644 --- a/NzbDrone.Core/NzbDrone.Core.csproj +++ b/NzbDrone.Core/NzbDrone.Core.csproj @@ -141,6 +141,10 @@ + + + + From a2967f46588c73dd7a3458ee9dbbd2b96bbc850c Mon Sep 17 00:00:00 2001 From: markus101 Date: Mon, 27 Sep 2010 17:49:34 -0700 Subject: [PATCH 3/3] IHttpController/HttpController Added (So we can Mock SABnzbd requests) More unit tests for SabController --- NzbDrone.Core.Test/Files/Queue.xml | 115 ++++++++++++++++ NzbDrone.Core.Test/Files/QueueEmpty.xml | 94 ++++++++++++++ NzbDrone.Core.Test/Files/QueueError.txt | 4 + NzbDrone.Core.Test/NzbDrone.Core.Test.csproj | 10 ++ NzbDrone.Core.Test/SabControllerTest.cs | 130 ++++++++++++++++++- NzbDrone.Core/Controllers/HttpController.cs | 27 ++++ NzbDrone.Core/Controllers/IHttpController.cs | 12 ++ NzbDrone.Core/Controllers/SabController.cs | 36 ++--- NzbDrone.Core/NzbDrone.Core.csproj | 2 + 9 files changed, 407 insertions(+), 23 deletions(-) create mode 100644 NzbDrone.Core.Test/Files/Queue.xml create mode 100644 NzbDrone.Core.Test/Files/QueueEmpty.xml create mode 100644 NzbDrone.Core.Test/Files/QueueError.txt create mode 100644 NzbDrone.Core/Controllers/HttpController.cs create mode 100644 NzbDrone.Core/Controllers/IHttpController.cs diff --git a/NzbDrone.Core.Test/Files/Queue.xml b/NzbDrone.Core.Test/Files/Queue.xml new file mode 100644 index 000000000..82afab54f --- /dev/null +++ b/NzbDrone.Core.Test/Files/Queue.xml @@ -0,0 +1,115 @@ + +us-en +5c770e3197e4fe763423ee7c392c25d1 +Queued +0 +unknown +0:00:00 +11h + + + + +770.96 +770.96 MB +Ubuntu Test +Normal +None +770.96 +0 +SABnzbd_nzo_xyr5ak + +3 +770.96 MB + + +0 +770.96 MB +0 +0 +259.45 +False + + +0 +1 +0 +None +anime +apps +books +consoles + +ds-games +emulation +games +misc +movies +music +pda +resources +test + +tv +tv-dvd +unknown +wii-games +xbox-dlc +xbox-xbla + +259.45 +770.96 + + +157286400 + +C:\Program Files\SABnzbd\interfaces\Plush\templates +True +False +False +True +http://wiki.sabnzbd.org/ +4d + + +0.6.x + + +True +Paused +0 +0 +False + +770.96 MB + +0B +770.96 +1177.64 +1177.64 + + + + + + + + + + + + + + + + + + + +0:00:00 + +unknown +0.00 + +0 + \ No newline at end of file diff --git a/NzbDrone.Core.Test/Files/QueueEmpty.xml b/NzbDrone.Core.Test/Files/QueueEmpty.xml new file mode 100644 index 000000000..3fc093842 --- /dev/null +++ b/NzbDrone.Core.Test/Files/QueueEmpty.xml @@ -0,0 +1,94 @@ + +us-en +5c770e3197e4fe763423ee7c392c25d1 + +0 +0B +0 +0 +259.45 +False + + +0 +0 +0 +None +anime +apps +books +consoles + +ds-games +emulation +games +misc +movies +music +pda +resources +test + +tv +tv-dvd +unknown +wii-games +xbox-dlc +xbox-xbla + +259.45 +0.00 + + +157286400 + +C:\Program Files\SABnzbd\interfaces\Plush\templates +False +False +False +True +http://wiki.sabnzbd.org/ +4d + + +0.6.x + + +True +Idle +0 +0 +False + +0B + +0B +0.00 +1177.64 +1177.64 + + + + + + + + + + + + + + + + + + + +0:00:00 + +unknown +0.00 + +0 + \ No newline at end of file diff --git a/NzbDrone.Core.Test/Files/QueueError.txt b/NzbDrone.Core.Test/Files/QueueError.txt new file mode 100644 index 000000000..3079b7cfd --- /dev/null +++ b/NzbDrone.Core.Test/Files/QueueError.txt @@ -0,0 +1,4 @@ + +False +API Key Incorrect + \ No newline at end of file diff --git a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj index 9ec3f0fa0..7ed034312 100644 --- a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj +++ b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj @@ -70,9 +70,19 @@ + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + +