Browse Source

add api key to subtitle url

Luke Pulverenti 9 years ago
parent
commit
b6665e3b4d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      MediaBrowser.Model/Dlna/StreamInfo.cs

+ 5 - 0
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