From 889900b6d2095fc71473150bdc5b3bc988dee16a Mon Sep 17 00:00:00 2001 From: qsniyg Date: Tue, 12 Sep 2023 00:49:56 +0000 Subject: [PATCH] Fix shaka subtitles --- src/userscript.ts | 2 +- userscript.user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/userscript.ts b/src/userscript.ts index ddf5136f..ce5ec932 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -117450,7 +117450,7 @@ var $$IMU_EXPORT$$; let title = subtitle.title || null; let mime = subtitle.mime || undefined; let forced = false; - player.addTextTrack(subtitle.url, language, kind, mime, undefined, title, forced); + player.addTextTrackAsync(subtitle.url, language, kind, mime, undefined, title, forced); } } diff --git a/userscript.user.js b/userscript.user.js index 150fef80..6d1cafe6 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -104548,7 +104548,7 @@ var $$IMU_EXPORT$$; var title = subtitle.title || null; var mime = subtitle.mime || undefined; var forced = false; - player.addTextTrack(subtitle.url, language, kind, mime, undefined, title, forced); + player.addTextTrackAsync(subtitle.url, language, kind, mime, undefined, title, forced); } } var text_tracks = player.getTextTracks();