From 920b216466a3936fee437c8fd4bc0b37f8f44f5c Mon Sep 17 00:00:00 2001 From: Revincx Date: Mon, 17 May 2021 23:59:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20the=20UnblockNeteaseMusic=20|=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8DUnblockNeteaseMusic=E6=97=A0=E6=B3=95=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98=20(#670)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: change to @revincx/unblockneteasemusic moudle * Update README.md * Update README.md Co-authored-by: qier222 --- README.md | 2 +- package.json | 2 +- src/electron/ipcMain.js | 2 +- vue.config.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7548ffd..720c142 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ - 📻 支持私人 FM - 🚫🤝 无任何社交功能 - 🌎️ 海外用户可直接播放(需要登录网易云账号) -- 🔐 支持 [UnblockNeteaseMusic](https://github.com/nondanee/UnblockNeteaseMusic),自动使用 QQ/酷狗/酷我音源替换变灰歌曲链接 (网页版不支持) +- 🔐 支持 [UnblockNeteaseMusic](https://github.com/nondanee/UnblockNeteaseMusic)([使用revincx修复的npm包](https://github.com/revincx/UnblockNeteaseMusic)),自动使用 QQ/酷狗/酷我音源替换变灰歌曲链接 (网页版不支持) - ⏭️ 支持 MediaSession API,可以使用系统快捷键操作上一首下一首 - ✔️ 每日自动签到(手机端和电脑端同时签到) - 🌚 Light/Dark Mode 自动切换 diff --git a/package.json b/package.json index 205ed5c..2b18314 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ }, "main": "background.js", "dependencies": { - "@njzy/unblockneteasemusic": "^0.25.3", + "@revincx/unblockneteasemusic": "^0.25.5", "axios": "^0.21.0", "change-case": "^4.1.2", "core-js": "^3.6.5", diff --git a/src/electron/ipcMain.js b/src/electron/ipcMain.js index 107e830..c42e467 100644 --- a/src/electron/ipcMain.js +++ b/src/electron/ipcMain.js @@ -1,5 +1,5 @@ import { app, dialog, globalShortcut, ipcMain } from 'electron'; -import match from '@njzy/unblockneteasemusic'; +import match from '@revincx/unblockneteasemusic'; import { registerGlobalShortcut } from '@/electron/globalShortcut'; const client = require('discord-rich-presence')('818936529484906596'); diff --git a/vue.config.js b/vue.config.js index c4c22ec..80c80af 100644 --- a/vue.config.js +++ b/vue.config.js @@ -59,7 +59,7 @@ module.exports = { // electron-builder的配置文件 electronBuilder: { nodeIntegration: true, - externals: ["@nondanee/unblockneteasemusic", "@njzy/unblockneteasemusic"], + externals: [ "@revincx/unblockneteasemusic" ], builderOptions: { productName: "YesPlayMusic", copyright: "Copyright © YesPlayMusic",