瀏覽代碼

Fix support for attachments with baseURL set

* Revert "Add baseURL to attachments"
* This is properly handled by jellyfin-web#1020
Vasily 5 年之前
父節點
當前提交
5be60782ed
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      MediaBrowser.Api/Playback/MediaInfoService.cs

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

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