From bfe624dc5759c277fbfaaed85fd15048c443aac6 Mon Sep 17 00:00:00 2001 From: h-banii <121690516+h-banii@users.noreply.github.com> Date: Thu, 11 Apr 2024 06:16:02 -0300 Subject: [PATCH] fix(mpris): use global regex to replace minus in the video ID (#1963) --- src/plugins/shortcuts/mpris.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/shortcuts/mpris.ts b/src/plugins/shortcuts/mpris.ts index 64f465ff..5b1ca481 100644 --- a/src/plugins/shortcuts/mpris.ts +++ b/src/plugins/shortcuts/mpris.ts @@ -99,7 +99,7 @@ function registerMPRIS(win: BrowserWindow) { const microToSec = (n: number) => Math.round(Number(n) / 1e6); const correctId = (videoId: string) => { - return videoId.replace('-', '_MINUS_'); + return videoId.replace(/-/g, '_MINUS_'); }; const seekTo = (event: Position) => {