mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #2443 from dmitrylyzo/fix-tizen-subtitles
Fix attachment delivery urls
(cherry picked from commit 0a342ce095
)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
2a7d708944
commit
7724b5fedc
1 changed files with 2 additions and 2 deletions
|
@ -1049,11 +1049,11 @@ function tryRemoveElement(elem) {
|
||||||
renderSsaAss(videoElement, track, item) {
|
renderSsaAss(videoElement, track, item) {
|
||||||
const avaliableFonts = [];
|
const avaliableFonts = [];
|
||||||
const attachments = this._currentPlayOptions.mediaSource.MediaAttachments || [];
|
const attachments = this._currentPlayOptions.mediaSource.MediaAttachments || [];
|
||||||
|
const apiClient = ServerConnections.getApiClient(item);
|
||||||
attachments.map(function (i) {
|
attachments.map(function (i) {
|
||||||
// embedded font url
|
// 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', {
|
const fallbackFontList = apiClient.getUrl('/FallbackFont/Fonts', {
|
||||||
api_key: apiClient.accessToken()
|
api_key: apiClient.accessToken()
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue