diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-10-31 08:49:24 -0600 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2021-10-31 08:49:24 -0600 |
| commit | 2f6437a987423bf75a32bf7112f596f6cfa242ec (patch) | |
| tree | 8349ae6cc6917df2aa63508dccabc8f17dd0e236 /Emby.Dlna | |
| parent | 5a7433472ef88c7e8e52840425a7296e242155ee (diff) | |
Use correct id when finding existing dlna profile
Diffstat (limited to 'Emby.Dlna')
| -rw-r--r-- | Emby.Dlna/DlnaManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Dlna/DlnaManager.cs b/Emby.Dlna/DlnaManager.cs index 73e8a0008..f37d2d7d7 100644 --- a/Emby.Dlna/DlnaManager.cs +++ b/Emby.Dlna/DlnaManager.cs @@ -416,7 +416,7 @@ namespace Emby.Dlna } /// <inheritdoc /> - public void UpdateProfile(DeviceProfile profile) + public void UpdateProfile(string profileId, DeviceProfile profile) { profile = ReserializeProfile(profile); @@ -430,7 +430,7 @@ namespace Emby.Dlna throw new ArgumentException("Profile is missing Name"); } - var current = GetProfileInfosInternal().First(i => string.Equals(i.Info.Id, profile.Id, StringComparison.OrdinalIgnoreCase)); + var current = GetProfileInfosInternal().First(i => string.Equals(i.Info.Id, profileId, StringComparison.OrdinalIgnoreCase)); var newFilename = _fileSystem.GetValidFilename(profile.Name) + ".xml"; var path = Path.Combine(UserProfilesPath, newFilename); |
