aL1CesT 4ec67b9ee0 feat(scanner): 让网易云歌单扫描器能在终端之外使用
网易云的扫描器是照着 CLI 的场景写的:把登录二维码画成 ASCII 艺术丢进日志,
然后在一个没有上限的循环里等待。这在终端里没问题,在别处都不行:GUI 无法
呈现那块 ASCII 图形,看不到登录进行到哪一步,也没法取消等待。

NetEaseMusicSongListMusicScanner 的改动:

- LoginAsync 增加可选回调,收到结构化的 NetEaseQrCodePayload(二维码内容、
  unikey、以及 ASCII 渲染结果)。传了回调就跳过 ASCII 那一步;不传(CLI
  正是如此)时原有的日志输出完全不变,download -sc netease 的行为与改动前
  一致。

- 增加可选的 Action<NetEaseLoginState>,汇报中间状态(等待扫码 / 已扫码
  未确认 / 成功 / 二维码过期),而不是只留一个会阻塞到底的 await。

- 每个循环、每次 HTTP 调用都接受 CancellationToken,关掉二维码窗口就能真的
  中止扫描。

- Cookie 与 CsrfToken 从私有字段改成公开属性,调用方可以跨重启恢复会话,
  不必每次启动都扫码。同时补上 RestoreLoginState / ClearLoginState /
  IsLoggedIn。

- 登录失败原先抛 ErrorCodes.NotSupportedFileEncoding,这个错误码与实际情况
  毫无关系。改为 UnableGetSongListFromNetEaseCloudMusic。

CsvFileMusicScanner 另有一个解析缺陷:它按 Environment.NewLine 切行,而
Windows 上那是 "\r\n"。从网页导出、或从 git 里签出的 CSV 通常是纯 "\n",
于是整个文件被当成一行,跳过表头之后就是空的,界面上表现为"解析了却一首歌
都没有"。改成同时按两个字符切分即可;过短的行也不再抛异常。
2026-11-09 04:27:42 +08:00
2026-01-09 00:25:01 +08:00
2026-01-09 00:25:01 +08:00
2022-10-01 14:01:46 +08:00
2026-01-09 00:15:43 +08:00
2021-05-07 10:26:26 +08:00

English | 简体中文

Disclaimer

  • This tool is for personal learning and research purposes only. The executable binary files are for demonstration purposes only and the source code and its products must not be used for commercial purposes. Otherwise, I here will not be responsible for any related legal issues.
  • Any unit or individual that downloads and uses the software resulting in any accidents, negligence, contract breaches, defamation, copyright or intellectual property infringement, and their resulting losses (including but not limited to direct, indirect, incidental or derivative losses), I here will not bear any legal responsibility.
  • Users clearly agree to all the terms listed in this statement and fully assume the risks and consequences of using this tool. I here will not bear any legal responsibility.

Introduction

ZonyLrcToolX 4 is a cross-platform lyrics download tool based on CEF. QQ Group: 337656932. Detailed video tutorials are available in the group files.

🚧 The current version is under development. 🚧 If you want to see working code, please switch to the dev branch.

Download

To get the latest version, please visit the Release page for download.

Arch Linux User Repository

This software has been packaged into AUR. Arch Linux and its derivative distribution users can install it with the following command:

# yay or other AUR Helpers
yay -S zonylrctoolsx-bin

ZonyLrcTools.Cli --help

Usage

Detailed usage instructions have been moved to a new documentation site. Please visit https://docs.myzony.com for complete documentation.

Donation

爱发电

Star History

Star History Chart

S
Description
ZonyLrcToolsX 是一个能够方便地下载歌词的小软件。
Readme MIT
18 MiB
0 Stars 1 Watchers 0 Forks
Languages
C# 99.7%
PowerShell 0.2%
Shell 0.1%