From b6665e3b4dbebed37d602aeac157a4443201233b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 15 Mar 2016 15:12:10 -0400 Subject: [PATCH] add api key to subtitle url --- MediaBrowser.Model/Dlna/StreamInfo.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MediaBrowser.Model/Dlna/StreamInfo.cs b/MediaBrowser.Model/Dlna/StreamInfo.cs index 69733cefb..700b6ef7d 100644 --- a/MediaBrowser.Model/Dlna/StreamInfo.cs +++ b/MediaBrowser.Model/Dlna/StreamInfo.cs @@ -345,6 +345,11 @@ namespace MediaBrowser.Model.Dlna StringHelper.ToStringCultureInvariant(startPositionTicks), subtitleProfile.Format); + if (!string.IsNullOrWhiteSpace(accessToken)) + { + info.Url += "?api_key=" + accessToken; + } + info.IsExternalUrl = false; } else