From 2a0af8f9752e731b46bbb1ac041edb65314ba4fa Mon Sep 17 00:00:00 2001 From: qier222 Date: Sat, 28 Jan 2023 12:09:39 +0800 Subject: [PATCH] fix: update version --- package.json | 2 +- src/utils/Player.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 23954ce3b4..02c21749ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yesplaymusic", - "version": "0.4.5", + "version": "0.4.6", "private": true, "description": "A third party music player for Netease Music", "author": "qier222", diff --git a/src/utils/Player.js b/src/utils/Player.js index 98ab528e8f..6fc8cdde71 100644 --- a/src/utils/Player.js +++ b/src/utils/Player.js @@ -432,12 +432,11 @@ export default class { } }; - /** @type {import("@unblockneteasemusic/rust-napi").RetrievedSongInfo | null} */ const retrieveSongInfo = await ipcRenderer.invoke( 'unblock-music', store.state.settings.unmSource, track, - /** @type {import("@unblockneteasemusic/rust-napi").Context} */({ + { enableFlac: store.state.settings.unmEnableFlac || null, proxyUri: store.state.settings.unmProxyUri || null, searchMode: determineSearchMode(store.state.settings.unmSearchMode), @@ -446,7 +445,7 @@ export default class { 'qq:cookie': store.state.settings.unmQQCookie || null, 'ytdl:exe': store.state.settings.unmYtDlExe || null, }, - }) + } ); if (store.state.settings.automaticallyCacheSongs && retrieveSongInfo?.url) {