Skip to content

Commit

Permalink
fix: qqQrc
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed Apr 17, 2024
1 parent 2fec089 commit 2e59d12
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/utils/LyricFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export const searchLyricOptions = async (
try {
switch (source) {
case LrcSource.Kugou:
return kugouLrcFetch.getLrcOptions(searchKey);
return await kugouLrcFetch.getLrcOptions(searchKey);
case LrcSource.QQQrc:
return qqQrcFetch.getLrcOptions(searchKey);
return await qqQrcFetch.getLrcOptions(searchKey);
case LrcSource.QQ:
default:
return qqLrcFetch.getLrcOptions(searchKey);
return await qqLrcFetch.getLrcOptions(searchKey);
}
} catch (e) {
logger.warn(`[lrcOptionFetch] ${searchKey} & ${source}: ${e}`);
Expand All @@ -32,7 +32,6 @@ export const searchLyric = async (searchMID: string, source = LrcSource.QQ) => {
case LrcSource.Kugou:
return kugouLrcFetch.getLyric(searchMID);
case LrcSource.QQQrc:
return 'oh no!';
return qqQrcFetch.getLyric(searchMID);
case LrcSource.QQ:
default:
Expand Down

0 comments on commit 2e59d12

Please sign in to comment.