diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-04 20:44:43 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-10-04 20:44:43 -0400 |
| commit | d1d639ce2cb2974418c7ccd3b35841ed99a068cf (patch) | |
| tree | 0f757177596660b3d06018e46fa4b97c2a378df9 /MediaBrowser.Controller/Entities/GameSystem.cs | |
| parent | 82664bdae82ea0a7e13604e06c7356a8f7e828f9 (diff) | |
prefix game/music user data id's to avoid collisions with movies and tv
Diffstat (limited to 'MediaBrowser.Controller/Entities/GameSystem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/GameSystem.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/GameSystem.cs b/MediaBrowser.Controller/Entities/GameSystem.cs index c568dda12..054071b35 100644 --- a/MediaBrowser.Controller/Entities/GameSystem.cs +++ b/MediaBrowser.Controller/Entities/GameSystem.cs @@ -32,7 +32,11 @@ namespace MediaBrowser.Controller.Entities /// <returns>System.String.</returns> public override string GetUserDataKey() { - return GameSystemName ?? base.GetUserDataKey(); + if (!string.IsNullOrEmpty(GameSystemName)) + { + return "GameSystem-" + GameSystemName; + } + return base.GetUserDataKey(); } } } |
