瀏覽代碼

Apply suggestions from code review

Co-authored-by: Cody Robibero <cody@robibe.ro>
Shadowghost 2 年之前
父節點
當前提交
a0d13a2418

+ 1 - 1
Jellyfin.Server.Implementations/Events/Consumers/Session/PlaybackStartLogger.cs

@@ -67,7 +67,7 @@ namespace Jellyfin.Server.Implementations.Events.Consumers.Session
                 GetPlaybackNotificationType(eventArgs.MediaInfo.MediaType),
                 user.Id)
             {
-                ItemId = eventArgs.Item?.Id.ToString()
+                ItemId = eventArgs.Item?.Id.ToString("N", CultureInfo.InvariantCulture),
             })
             .ConfigureAwait(false);
         }

+ 1 - 1
Jellyfin.Server.Implementations/Events/Consumers/Session/PlaybackStopLogger.cs

@@ -75,7 +75,7 @@ namespace Jellyfin.Server.Implementations.Events.Consumers.Session
                     notificationType,
                     user.Id)
                 {
-                    ItemId = eventArgs.Item?.Id.ToString()
+                    ItemId = eventArgs.Item?.Id.ToString("N", CultureInfo.InvariantCulture),
                 })
                 .ConfigureAwait(false);
         }