diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-06-17 09:22:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-17 09:22:31 -0400 |
| commit | 718981f3f8d2f29db8e58f65e88ca5b1c5d2d966 (patch) | |
| tree | 63b4d69385cd85fb12075a013a57dc93212451cf /MediaBrowser.Controller/Entities/Studio.cs | |
| parent | 921bd804744bd8419c7e1453583c45150056c6d6 (diff) | |
| parent | aee9d294304679e536a106a68af1f7a7c7db4191 (diff) | |
Merge pull request #1857 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Controller/Entities/Studio.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Studio.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/Studio.cs b/MediaBrowser.Controller/Entities/Studio.cs index e46978af3e..762798b553 100644 --- a/MediaBrowser.Controller/Entities/Studio.cs +++ b/MediaBrowser.Controller/Entities/Studio.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; +using MediaBrowser.Common.Extensions; namespace MediaBrowser.Controller.Entities { @@ -14,10 +15,18 @@ namespace MediaBrowser.Controller.Entities { var list = base.GetUserDataKeys(); - list.Insert(0, "Studio-" + Name); + list.Insert(0, GetType().Name + "-" + (Name ?? string.Empty).RemoveDiacritics()); return list; } + public override string PresentationUniqueKey + { + get + { + return GetUserDataKeys()[0]; + } + } + /// <summary> /// Returns the folder containing the item. /// If the item is a folder, it returns the folder itself |
