Skip to content

Commit dbbdb63

Browse files
committed
feat(synced-lyrics): NetEase provider
1 parent bef8252 commit dbbdb63

File tree

6 files changed

+363
-1
lines changed

6 files changed

+363
-1
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
"butterchurn-presets": "3.0.0-beta.4",
9191
"color": "5.0.0",
9292
"conf": "14.0.0",
93+
"crypto-js": "^4.2.0",
9394
"custom-electron-prompt": "1.5.8",
9495
"deepmerge-ts": "7.1.5",
9596
"delay": "6.0.0",
@@ -144,6 +145,7 @@
144145
"@playwright/test": "1.55.0",
145146
"@stylistic/eslint-plugin": "5.3.1",
146147
"@total-typescript/ts-reset": "0.6.1",
148+
"@types/crypto-js": "^4.2.2",
147149
"@types/electron-localshortcut": "3.1.3",
148150
"@types/howler": "2.2.12",
149151
"@types/html-to-text": "9.0.4",

pnpm-lock.yaml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plugins/synced-lyrics/providers/LRCLib.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ export class LRCLib implements LyricProvider {
7777
}
7878

7979
const filteredResults = [];
80+
const artists = artist.split(/[&,]/g).map((i) => i.trim());
81+
8082
for (const item of data) {
8183
const { artistName } = item;
8284

83-
const artists = artist.split(/[&,]/g).map((i) => i.trim());
8485
const itemArtists = artistName.split(/[&,]/g).map((i) => i.trim());
8586

8687
// Try to match using artist name first

0 commit comments

Comments
 (0)