瀏覽代碼

Merge pull request #4494 from nyanmisaka/hdr-title

Add video range info to the title
Claus Vium 4 年之前
父節點
當前提交
dc0e353b96

+ 3 - 0
Emby.Server.Implementations/Localization/Core/en-US.json

@@ -9,11 +9,13 @@
     "Channels": "Channels",
     "Channels": "Channels",
     "ChapterNameValue": "Chapter {0}",
     "ChapterNameValue": "Chapter {0}",
     "Collections": "Collections",
     "Collections": "Collections",
+    "Default": "Default",
     "DeviceOfflineWithName": "{0} has disconnected",
     "DeviceOfflineWithName": "{0} has disconnected",
     "DeviceOnlineWithName": "{0} is connected",
     "DeviceOnlineWithName": "{0} is connected",
     "FailedLoginAttemptWithUserName": "Failed login attempt from {0}",
     "FailedLoginAttemptWithUserName": "Failed login attempt from {0}",
     "Favorites": "Favorites",
     "Favorites": "Favorites",
     "Folders": "Folders",
     "Folders": "Folders",
+    "Forced": "Forced",
     "Genres": "Genres",
     "Genres": "Genres",
     "HeaderAlbumArtists": "Album Artists",
     "HeaderAlbumArtists": "Album Artists",
     "HeaderContinueWatching": "Continue Watching",
     "HeaderContinueWatching": "Continue Watching",
@@ -77,6 +79,7 @@
     "Sync": "Sync",
     "Sync": "Sync",
     "System": "System",
     "System": "System",
     "TvShows": "TV Shows",
     "TvShows": "TV Shows",
+    "Undefined": "Undefined",
     "User": "User",
     "User": "User",
     "UserCreatedWithName": "User {0} has been created",
     "UserCreatedWithName": "User {0} has been created",
     "UserDeletedWithName": "User {0} has been deleted",
     "UserDeletedWithName": "User {0} has been deleted",

+ 5 - 0
MediaBrowser.Model/Entities/MediaStream.cs

@@ -191,6 +191,11 @@ namespace MediaBrowser.Model.Entities
                             attributes.Add(Codec.ToUpperInvariant());
                             attributes.Add(Codec.ToUpperInvariant());
                         }
                         }
 
 
+                        if (!string.IsNullOrEmpty(VideoRange))
+                        {
+                            attributes.Add(VideoRange.ToUpperInvariant());
+                        }
+
                         if (!string.IsNullOrEmpty(Title))
                         if (!string.IsNullOrEmpty(Title))
                         {
                         {
                             var result = new StringBuilder(Title);
                             var result = new StringBuilder(Title);