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) => {