Skip to content

Commit

Permalink
Merge pull request #393 from lovegaoshi/dev
Browse files Browse the repository at this point in the history
fix: qqqrc encoding
  • Loading branch information
lovegaoshi authored Apr 25, 2024
2 parents e2e9ae1 + 0b930c3 commit b443854
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion __tests__/lyricfetch/qqqrc.test.ts
Original file line number Diff line number Diff line change
@@ -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));
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/lrcfetch/qqqrc.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit b443854

Please sign in to comment.