diff --git a/package.json b/package.json index 23954ce..02c2174 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 98ab528..6fc8cdd 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) {