aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-02-12 20:51:33 -0500
committerLuke <luke.pulverenti@gmail.com>2016-02-12 20:51:33 -0500
commit61ac8151ff0a25ad4469b74f7a7defa24e4e8b22 (patch)
treee165028a81b196c7e222973f3ae49771f62a41c8 /MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs
parent5a2778f6d833b591dfe52fa03de19324a1253250 (diff)
parent59c9081f4b25b96f7cc9203a319ad19328651772 (diff)
Merge pull request #1435 from softworkz/SeriesDetectionV2
Auto-Organize - Feature to remember/persist series matching in manual organization dialog: Changed to match against plain library name instead of library item GUID.
Diffstat (limited to 'MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs')
-rw-r--r--MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs b/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs
index ce388bd8e..cf1387b0e 100644
--- a/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs
+++ b/MediaBrowser.Server.Implementations/FileOrganization/FileOrganizationService.cs
@@ -149,13 +149,11 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
};
}
- public void DeleteSmartMatchEntry(string IdString, string matchString)
+ public void DeleteSmartMatchEntry(string itemName, string matchString)
{
- Guid Id;
-
- if (!Guid.TryParse(IdString, out Id))
+ if (string.IsNullOrEmpty(itemName))
{
- throw new ArgumentNullException("Id");
+ throw new ArgumentNullException("itemName");
}
if (string.IsNullOrEmpty(matchString))
@@ -165,7 +163,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
var options = GetAutoOrganizeptions();
- SmartMatchInfo info = options.SmartMatchInfos.FirstOrDefault(i => string.Equals(i.Id, IdString));
+ SmartMatchInfo info = options.SmartMatchInfos.FirstOrDefault(i => string.Equals(i.ItemName, itemName));
if (info != null && info.MatchStrings.Contains(matchString))
{