Explorar o código

Format attachment DeliveryURL with CultureInfo.InvariantCulture.

Co-Authored-By: Bond-009 <bond.009@outlook.com>
Andrew Mahone %!s(int64=5) %!d(string=hai) anos
pai
achega
a78aec56e3
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      MediaBrowser.Api/Playback/MediaInfoService.cs

+ 3 - 1
MediaBrowser.Api/Playback/MediaInfoService.cs

@@ -527,7 +527,9 @@ namespace MediaBrowser.Api.Playback
 
             foreach (var attachment in mediaSource.MediaAttachments)
             {
-                attachment.DeliveryUrl = string.Format("/Videos/{0}/{1}/Attachments/{2}",
+                attachment.DeliveryUrl = string.Format(
+                    CultureInfo.InvariantCulture,
+                    "/Videos/{0}/{1}/Attachments/{2}",
                     item.Id,
                     mediaSource.Id,
                     attachment.Index);