mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add missing changes from #1636
This commit is contained in:
parent
a9e539b713
commit
2e1e44d8c4
1 changed files with 15 additions and 1 deletions
|
@ -1065,7 +1065,21 @@ function tryRemoveElement(elem) {
|
||||||
renderAhead: 90
|
renderAhead: 90
|
||||||
};
|
};
|
||||||
import('libass-wasm').then(({default: SubtitlesOctopus}) => {
|
import('libass-wasm').then(({default: SubtitlesOctopus}) => {
|
||||||
this.#currentSubtitlesOctopus = new SubtitlesOctopus(options);
|
apiClient.getNamedConfiguration('encoding').then(config => {
|
||||||
|
if (config.EnableFallbackFont) {
|
||||||
|
apiClient.getJSON(fallbackFontList).then((fontFiles = []) => {
|
||||||
|
fontFiles.map(font => {
|
||||||
|
const fontUrl = apiClient.getUrl(`/FallbackFont/Fonts/${font.Name}`, {
|
||||||
|
api_key: apiClient.accessToken()
|
||||||
|
});
|
||||||
|
return avaliableFonts.push(fontUrl);
|
||||||
|
});
|
||||||
|
this.#currentSubtitlesOctopus = new SubtitlesOctopus(options);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.#currentSubtitlesOctopus = new SubtitlesOctopus(options);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue