Skip to content

Commit

Permalink
Merge pull request #679 from beatmaps-io/signed-playlists
Browse files Browse the repository at this point in the history
Pass query parameters to playlist downloader
  • Loading branch information
Zagrios authored Dec 2, 2024
2 parents 6e3d885 + 043e300 commit 127a538
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 127a538

Please sign in to comment.