Merge pull request #2532 from MrTimscampi/attachment-baseurl

Add baseURL to attachments API url
This commit is contained in:
Joshua M. Boniface 2020-03-07 12:21:01 -05:00 committed by GitHub
commit 2610bb2cc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);