Skip to content

Commit

Permalink
Merge pull request jellyfin#2443 from dmitrylyzo/fix-tizen-subtitles
Browse files Browse the repository at this point in the history
Fix attachment delivery urls
  • Loading branch information
thornbill committed Feb 27, 2021
2 parents 6dd4672 + 7568388 commit 0a342ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/htmlVideoPlayer/plugin.js
Expand Up @@ -1049,11 +1049,11 @@ function tryRemoveElement(elem) {
renderSsaAss(videoElement, track, item) {
const avaliableFonts = [];
const attachments = this._currentPlayOptions.mediaSource.MediaAttachments || [];
const apiClient = ServerConnections.getApiClient(item);
attachments.map(function (i) {
// embedded font url
return avaliableFonts.push(i.DeliveryUrl);
return avaliableFonts.push(apiClient.getUrl(i.DeliveryUrl));
});
const apiClient = ServerConnections.getApiClient(item);
const fallbackFontList = apiClient.getUrl('/FallbackFont/Fonts', {
api_key: apiClient.accessToken()
});
Expand Down

0 comments on commit 0a342ce

Please sign in to comment.