From 20ea76cb1a2e51aac0583718fdbcc32793335858 Mon Sep 17 00:00:00 2001 From: yizhi <946185759@qq.com> Date: Fri, 10 Feb 2023 14:10:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/net/download.ts | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/net/download.ts b/src/net/download.ts index 5e2e157..1021365 100644 --- a/src/net/download.ts +++ b/src/net/download.ts @@ -1,6 +1,3 @@ -import zlib from 'zlib' -import http from 'http' -import https from 'https' import crypto from 'crypto' import * as qrcUtil from '../lyric/qrc' import * as krcUtil from '../lyric/krc' @@ -20,16 +17,6 @@ interface IQQMusicLyricDownloadOption { singerName?: string | string[] } -/** QQ音乐歌词下载结果 */ -interface IQQMusicDownloadResult { - /** 歌词内容 */ - lyric: string - /** 翻译内容 */ - trans: string | null - /** 音译内容 */ - roma: string | null -} - /** * 从QQ音乐API下载歌词 * @param option 下载选项 @@ -131,6 +118,8 @@ interface IKugouLyricDownloadOption { * * __`id`和`accessKey`可以通过歌词搜索api获得__ * + * `http://lyrics.kugou.com/search?ver=1&man=yes&client=pc&keyword=&duration=&hash=` + * * @param option 下载选项 * @returns krc歌词文本内容 */