Skip to content

Commit

Permalink
fix: Fixed the issue mentioned in #145.
Browse files Browse the repository at this point in the history
Added a new line break.('\n')
  • Loading branch information
real-zony committed Sep 11, 2023
1 parent b0835dc commit c8ffbc5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/ZonyLrcTools.Common/Lyrics/ILyricsDownloader.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
namespace ZonyLrcTools.Common.Lyrics;

/// <summary>
/// 歌词下载核心逻辑的接口定义。
/// </summary>
public interface ILyricsDownloader
{
/// <summary>
/// 使用给定的歌词信息下载歌词,并输出文件到指定的路径。
/// </summary>
/// <param name="needDownloadMusicInfos">需要下载的歌词信息。</param>
/// <param name="parallelCount">下载线程/并发量。</param>
/// <param name="cancellationToken">任务取消标记。</param>
Task DownloadAsync(List<MusicInfo> needDownloadMusicInfos,
int parallelCount = 2,
CancellationToken cancellationToken = default);

/// <summary>
/// 获取目前可用的歌词下载器。
/// </summary>
IEnumerable<ILyricsProvider> AvailableProviders { get; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private Dictionary<string, string> 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;
Expand Down

0 comments on commit c8ffbc5

Please sign in to comment.