From 043e300f429db57b2373daf0e1fe2103ab3ce51b Mon Sep 17 00:00:00 2001 From: Thomas Cheyney Date: Mon, 2 Dec 2024 18:15:57 +0000 Subject: [PATCH] Pass query parameters to playlist downloader --- .../additional-content/local-playlists-manager.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/services/additional-content/local-playlists-manager.service.ts b/src/main/services/additional-content/local-playlists-manager.service.ts index 5be06e9b..d77bb85c 100644 --- a/src/main/services/additional-content/local-playlists-manager.service.ts +++ b/src/main/services/additional-content/local-playlists-manager.service.ts @@ -69,8 +69,8 @@ export class LocalPlaylistsManagerService { this.deepLink.addLinkOpenedListener(this.DEEP_LINKS.BeatSaver, link => { log.info("DEEP-LINK RECEIVED FROM", this.DEEP_LINKS.BeatSaver, link); const url = new URL(link); - const bplistUrl = url.host === "playlist" ? url.pathname.replace("/", "") : ""; - this.windows.openWindow(`oneclick-download-playlist.html?playlistUrl=${bplistUrl}`); + const bplistUrl = url.host === "playlist" ? url.pathname.replace("/", "") + url.search : ""; + this.windows.openWindow(`oneclick-download-playlist.html?playlistUrl=${encodeURIComponent(bplistUrl)}`); }); this.fileAssociation.registerFileAssociation(".bplist", filePath => {