Meting Agent
Use The Bundled Implementation
- In the release bundle, treat
./scripts/metingas the implementation root. - Use
./scripts/meting-cli.mjsfor normal lookup tasks. - Downloaded bundles are self-contained and should not rely on repository-relative paths.
Core Workflow
- Run
node scripts/meting-cli.mjs platformsto inspect supported platforms. - Run
node scripts/meting-cli.mjs search --platform netease --keyword "我怀念的" --limit 3for search tasks. - Run
node scripts/meting-cli.mjs song --platform netease --id <songId>and related commands for detail lookups. - Remember the default cookie resolution order: environment variable
METING_<PLATFORM>_COOKIEfirst, environment variableMETING_COOKIEsecond, and CLI option--cookieonly as the final override.
Commands
platformssearch --platform <code> --keyword <text> [--page <n>] [--limit <n>] [--type <n>]song --platform <code> --id <id>album --platform <code> --id <id>artist --platform <code> --id <id> [--limit <n>]playlist --platform <code> --id <id>url --platform <code> --id <id> [--br <n>]lyric --platform <code> --id <id>pic --platform <code> --id <id> [--size <n>]
Tencent Music cover note:
- For
pic --platform tencent, prefer square sizes300,500,800, or1200. - Other square sizes appear unreliable and may return
404, so do not assume arbitrary custom sizes will work.
Configuration Rules
- Follow the default cookie resolution order used by the program:
METING_<PLATFORM>_COOKIEfirst,METING_COOKIEsecond, and--cookie <value>last. - Treat
METING_<PLATFORM>_COOKIEandMETING_COOKIEas environment variable names, not CLI options. - Available environment variables include
METING_NETEASE_COOKIE,METING_TENCENT_COOKIE,METING_KUGOU_COOKIE,METING_KUWO_COOKIE, and shared fallbackMETING_COOKIE. - Use CLI option
--cookie <value>only when the call needs an explicit one-off override.
Source: ELDment/Meting-Agent — distributed by TomeVault.