From 8c8b932d6b90dd3e6cb69aac1304481af10f6b48 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Sat, 8 Nov 2025 23:11:14 +0300 Subject: [PATCH] [FIX] Chromium browser does not render subtitles after HLS attach --- app/library/Playlist.py | 2 +- ui/app/components/VideoPlayer.vue | 84 ++++++++++++++++++++++++++++--- ui/app/utils/index.ts | 5 +- 3 files changed, 82 insertions(+), 9 deletions(-) diff --git a/app/library/Playlist.py b/app/library/Playlist.py index 9fed2312..e43bf23f 100644 --- a/app/library/Playlist.py +++ b/app/library/Playlist.py @@ -42,6 +42,6 @@ class Playlist: ) playlist.append(f"#EXT-X-STREAM-INF:PROGRAM-ID=1{subs}") - playlist.append(f"{self.url}api/player/m3u8/video/{quote(ref)}.m3u8") + playlist.append(f"{self.url}api/player/m3u8/video/{quote(str(ref))}.m3u8") return "\n".join(playlist) diff --git a/ui/app/components/VideoPlayer.vue b/ui/app/components/VideoPlayer.vue index c3fa32fc..83289f59 100644 --- a/ui/app/components/VideoPlayer.vue +++ b/ui/app/components/VideoPlayer.vue @@ -84,8 +84,8 @@