diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index dd115c87..bfd22d31 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/__tests__/lyricfetch/qqqrc.test.ts b/__tests__/lyricfetch/qqqrc.test.ts index 4086c354..6e455947 100644 --- a/__tests__/lyricfetch/qqqrc.test.ts +++ b/__tests__/lyricfetch/qqqrc.test.ts @@ -1,6 +1,6 @@ import qqLrcFetch from '../../src/utils/lrcfetch/qqqrc'; test('qq lrc', async () => { - const lrcOptions = await qqLrcFetch.getLrcOptions('wake'); + const lrcOptions = await qqLrcFetch.getLrcOptions('故事'); expect(lrcOptions[0].lrc).not.toBeUndefined(); await new Promise(resolve => setTimeout(resolve, 1000)); diff --git a/package.json b/package.json index 3fb916c6..1751951a 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "ffmpeg-kit-react-native": "^6.0.2", "he": "^1.2.0", "i18next": "^23.11.2", + "js-base64": "^3.7.7", "libmuse": "git+https://github.com/lovegaoshi/muse.git#apm-release", "lottie-react-native": "^6.7.2", "lru-cache": "7.14.0", diff --git a/src/utils/lrcfetch/qqqrc.ts b/src/utils/lrcfetch/qqqrc.ts index eaf77aeb..801b38c4 100644 --- a/src/utils/lrcfetch/qqqrc.ts +++ b/src/utils/lrcfetch/qqqrc.ts @@ -1,5 +1,5 @@ // https://github.com/bingaha/kugou-lrc -import { decode as atob, encode as btoa } from 'base-64'; +import { decode as atob, encode as btoa } from 'js-base64'; import bfetch from '@utils/BiliFetch'; import { biliApiLimiter } from '@utils/mediafetch/throttle'; diff --git a/yarn.lock b/yarn.lock index 5abf5bbf..772a9b21 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5513,6 +5513,7 @@ __metadata: he: "npm:^1.2.0" i18next: "npm:^23.11.2" jest: "npm:^29.7.0" + js-base64: "npm:^3.7.7" libmuse: "git+https://github.com/lovegaoshi/muse.git#apm-release" lottie-react-native: "npm:^6.7.2" lru-cache: "npm:7.14.0" @@ -11218,6 +11219,13 @@ __metadata: languageName: node linkType: hard +"js-base64@npm:^3.7.7": + version: 3.7.7 + resolution: "js-base64@npm:3.7.7" + checksum: 10c0/3c905a7e78b601e4751b5e710edd0d6d045ce2d23eb84c9df03515371e1b291edc72808dc91e081cb9855aef6758292a2407006f4608ec3705373dd8baf2f80f + languageName: node + linkType: hard + "js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0"