mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix attachment delivery urls (sa d3c0bdd
)
This commit is contained in:
parent
2e23887ebe
commit
7568388d97
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