diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-03-07 14:17:32 +0000 |
|---|---|---|
| committer | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-03-07 14:17:32 +0000 |
| commit | 75c9659e05363f2e29e01757dc66f14f3f20f318 (patch) | |
| tree | 98d3e8d6d2ffb6cb916e37be89fd3f115427fbea /Emby.Dlna/Profiles/DefaultProfile.cs | |
| parent | 557a2ad7158b14ae97fa503a551ed17251b97ca0 (diff) | |
Fix unreachable code & assign id to each profile.
Diffstat (limited to 'Emby.Dlna/Profiles/DefaultProfile.cs')
| -rw-r--r-- | Emby.Dlna/Profiles/DefaultProfile.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Emby.Dlna/Profiles/DefaultProfile.cs b/Emby.Dlna/Profiles/DefaultProfile.cs index d4af72b62..8eaf12ba9 100644 --- a/Emby.Dlna/Profiles/DefaultProfile.cs +++ b/Emby.Dlna/Profiles/DefaultProfile.cs @@ -1,5 +1,7 @@ #pragma warning disable CS1591 +using System; +using System.Globalization; using System.Linq; using MediaBrowser.Model.Dlna; @@ -10,6 +12,7 @@ namespace Emby.Dlna.Profiles { public DefaultProfile() { + Id = Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture); Name = "Generic Device"; ProtocolInfo = "http-get:*:video/mpeg:*,http-get:*:video/mp4:*,http-get:*:video/vnd.dlna.mpeg-tts:*,http-get:*:video/avi:*,http-get:*:video/x-matroska:*,http-get:*:video/x-ms-wmv:*,http-get:*:video/wtv:*,http-get:*:audio/mpeg:*,http-get:*:audio/mp3:*,http-get:*:audio/mp4:*,http-get:*:audio/x-ms-wma:*,http-get:*:audio/wav:*,http-get:*:audio/L16:*,http-get:*:image/jpeg:*,http-get:*:image/png:*,http-get:*:image/gif:*,http-get:*:image/tiff:*"; |
