Browse Source

Fix support for attachments with baseURL set

* Revert "Add baseURL to attachments"
* This is properly handled by jellyfin-web#1020
Vasily 5 years ago
parent
commit
5be60782ed
1 changed files with 1 additions and 2 deletions
  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(
                     CultureInfo.InvariantCulture,
-                    "{0}/Videos/{1}/{2}/Attachments/{3}",
-                    ServerConfigurationManager.Configuration.BaseUrl,
+                    "/Videos/{0}/{1}/Attachments/{2}",
                     item.Id,
                     mediaSource.Id,
                     attachment.Index);