feat: migrate ChKSz API and support API key authentication
This commit is contained in:
@@ -27,7 +27,7 @@ There are no tests, linter, or build step. Verify changes by running the script.
|
||||
|
||||
## External dependencies (all optional / runtime-detected)
|
||||
|
||||
- **`api.chksz.top`** — third-party API (`API` object at top of file) for song URLs, search, lyrics, and playlists. This is the core download source.
|
||||
- **`api.chksz.com`** — third-party API (`API` object in `lib/config.js`) for song URLs, search, lyrics, and playlists (requires `apikey`). This is the core download source.
|
||||
- **`music.163.com`** — queried directly (`fetchNeteaseSongDetail`, `fetchNeteaseAlbumDetail`) for rich metadata (album, publish date, popularity). Requires `Cookie: os=pc` header.
|
||||
- **`node-id3`** (npm) — preferred for MP3 tag/lyric/cover embedding. `require`d lazily via `hasNodeID3()`; absent by default.
|
||||
- **`ffmpeg`** (system) — fallback embedder for non-MP3 (FLAC etc.) and when node-id3 is missing. Detected via `hasFFmpeg()`.
|
||||
|
||||
Reference in New Issue
Block a user