Browse Source

Add baseURL to attachments

MrTimscampi 5 năm trước cách đây
mục cha
commit
e8c593f413
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      MediaBrowser.Api/Playback/MediaInfoService.cs

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

@@ -573,7 +573,8 @@ namespace MediaBrowser.Api.Playback
             {
                 attachment.DeliveryUrl = string.Format(
                     CultureInfo.InvariantCulture,
-                    "/Videos/{0}/{1}/Attachments/{2}",
+                    "{0}/Videos/{1}/{2}/Attachments/{3}",
+                    ServerConfigurationManager.Configuration.BaseUrl,
                     item.Id,
                     mediaSource.Id,
                     attachment.Index);