Skip to content

Commit

Permalink
更新依赖&版本号(2.9.0-beta.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Jul 24, 2024
1 parent 4b01326 commit 98fe433
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 55 deletions.
94 changes: 47 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lx-music-desktop",
"version": "2.9.0-beta.3",
"version": "2.9.0-beta.4",
"description": "一个免费的音乐查找助手",
"main": "./dist/main.js",
"productName": "lx-music-desktop",
Expand Down Expand Up @@ -122,7 +122,7 @@
"@types/tunnel": "^0.0.7",
"@types/ws": "8.5.4",
"@volar/vue-language-plugin-pug": "^1.6.5",
"@vue/language-plugin-pug": "^2.0.26",
"@vue/language-plugin-pug": "^2.0.28",
"babel-loader": "^9.1.3",
"browserslist": "^4.23.2",
"chalk": "^4.1.2",
Expand All @@ -137,7 +137,7 @@
"electron-builder": "^24.13.3",
"electron-debug": "^3.2.0",
"electron-devtools-installer": "github:lyswhut/electron-devtools-installer#64596d615c1fc891eefd8aef1dfcb2c87aaadf03",
"electron-to-chromium": "^1.4.832",
"electron-to-chromium": "^1.5.0",
"electron-updater": "^6.2.1",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
Expand Down Expand Up @@ -166,7 +166,7 @@
"terser-webpack-plugin": "^5.3.10",
"tree-kill": "^1.2.2",
"ts-loader": "^9.5.1",
"typescript": "^5.5.3",
"typescript": "^5.5.4",
"vue-eslint-parser": "^9.4.3",
"vue-loader": "^17.4.2",
"vue-template-compiler": "^2.7.16",
Expand All @@ -182,14 +182,14 @@
"bufferutil": "^4.0.8",
"comlink": "~4.3.1",
"crypto-js": "^4.2.0",
"electron-log": "^5.1.6",
"electron-log": "^5.1.7",
"font-list": "^1.5.1",
"iconv-lite": "^0.6.3",
"image-size": "^1.1.0",
"jschardet": "^3.1.3",
"long": "^5.2.3",
"message2call": "^0.1.3",
"music-metadata": "^9.0.3",
"music-metadata": "^10.0.0",
"needle": "github:lyswhut/needle#93299ac841b7e9a9f82ca7279b88aaaeda404060",
"node-id3": "^0.2.6",
"sortablejs": "^1.15.2",
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/utils/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ export const getLocalMusicFileLyric = async(path: string): Promise<string | null
// 尝试读取文件内歌词
const metadata = await getFileMetadata(path)
if (!metadata) return null
if (metadata.common.lyrics?.length && metadata.common.lyrics[0].length > 10) {
return metadata.common.lyrics[0]
if (metadata.common.lyrics?.[0]?.text && metadata.common.lyrics[0].text.length > 10) {
return metadata.common.lyrics[0].text
}
// console.log(metadata)
for (const info of Object.values(metadata.native)) {
Expand Down

0 comments on commit 98fe433

Please sign in to comment.