From c8ffbc55afcf0c93893d7c37ceab106d1e07f130 Mon Sep 17 00:00:00 2001 From: real-zony Date: Mon, 11 Sep 2023 09:49:02 +0800 Subject: [PATCH] fix: Fixed the issue mentioned in #145. Added a new line break.('\n') --- src/ZonyLrcTools.Common/Lyrics/ILyricsDownloader.cs | 12 ++++++++++++ .../MusicScanner/NetEaseMusicSongListMusicScanner.cs | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ZonyLrcTools.Common/Lyrics/ILyricsDownloader.cs b/src/ZonyLrcTools.Common/Lyrics/ILyricsDownloader.cs index 5a830e37..45a896c8 100644 --- a/src/ZonyLrcTools.Common/Lyrics/ILyricsDownloader.cs +++ b/src/ZonyLrcTools.Common/Lyrics/ILyricsDownloader.cs @@ -1,10 +1,22 @@ namespace ZonyLrcTools.Common.Lyrics; +/// +/// 歌词下载核心逻辑的接口定义。 +/// public interface ILyricsDownloader { + /// + /// 使用给定的歌词信息下载歌词,并输出文件到指定的路径。 + /// + /// 需要下载的歌词信息。 + /// 下载线程/并发量。 + /// 任务取消标记。 Task DownloadAsync(List needDownloadMusicInfos, int parallelCount = 2, CancellationToken cancellationToken = default); + /// + /// 获取目前可用的歌词下载器。 + /// IEnumerable AvailableProviders { get; } } \ No newline at end of file diff --git a/src/ZonyLrcTools.Common/MusicScanner/NetEaseMusicSongListMusicScanner.cs b/src/ZonyLrcTools.Common/MusicScanner/NetEaseMusicSongListMusicScanner.cs index 0fd0c61b..120cf955 100644 --- a/src/ZonyLrcTools.Common/MusicScanner/NetEaseMusicSongListMusicScanner.cs +++ b/src/ZonyLrcTools.Common/MusicScanner/NetEaseMusicSongListMusicScanner.cs @@ -139,7 +139,7 @@ private Dictionary HandleRequest(object srcParams, string secret var asciiQrCodeString = qrCode.GetGraphic(1, drawQuietZones: false); _logger.LogInformation("请使用网易云 APP 扫码登录:"); - _logger.LogInformation(asciiQrCodeString); + _logger.LogInformation("\n{AsciiQrCodeString}", asciiQrCodeString); // Wait for login success. var isLogin = false;