feat: auth: add auth module
This commit is contained in:
@@ -14,9 +14,9 @@ Sources are queried in order. High-confidence results (exact match or manual ins
|
||||
2. **Cache Search** — fuzzy cross-album lookup in local cache
|
||||
3. **Spotify** — synced lyrics via Spotify's API (requires `SPOTIFY_SP_DC` and Spotify trackid)
|
||||
4. **LRCLIB** — exact match from [lrclib.net](https://lrclib.net) (requires full metadata)
|
||||
5. **Musixmatch (Spotify)** — Musixmatch API with Spotify trackid (requires `MUSIXMATCH_USERTOKEN` and Spotify trackid)
|
||||
5. **Musixmatch (Spotify)** — Musixmatch API with Spotify trackid (requires Spotify trackid)
|
||||
6. **LRCLIB Search** — fuzzy search from lrclib.net (requires at least a title)
|
||||
7. **Musixmatch** — Musixmatch API with metadata search (requires `MUSIXMATCH_USERTOKEN` and at least a title)
|
||||
7. **Musixmatch** — Musixmatch API with metadata search (requires at least a title)
|
||||
8. **Netease** — Netease Cloud Music public API
|
||||
9. **QQ Music** — QQ Music via self-hosted API proxy (requires `QQ_MUSIC_API_URL` that provides the same interface as [tooplick/qq-music-api](https://github.com/tooplick/qq-music-api))
|
||||
|
||||
@@ -35,7 +35,7 @@ See `lrx --help` for full command reference. Common use cases:
|
||||
targeting a specific player and a source to fetch from:
|
||||
|
||||
```bash
|
||||
lrx --player mpd fetch --method lrclib-search
|
||||
lrx fetch --player mpd --method lrclib-search
|
||||
```
|
||||
|
||||
- Search by metadata (bypasses MPRIS):
|
||||
@@ -85,7 +85,7 @@ PREFERRED_PLAYER=spotify
|
||||
```
|
||||
|
||||
- `SPOTIFY_SP_DC` — required for Spotify source. Defaults to empty (disabled Spotify source).
|
||||
- `MUSIXMATCH_USERTOKEN` — required for Musixmatch sources ([Curators Settings Page](https://curators.musixmatch.com/settings) -> Login (if required) -> "Copy debug info")
|
||||
- `MUSIXMATCH_USERTOKEN` — optional for Musixmatch sources ([Curators Settings Page](https://curators.musixmatch.com/settings) -> Login (if required) -> "Copy debug info"). If not set, an anonymous token will be fetched at runtime.
|
||||
- `QQ_MUSIC_API_URL` — required for QQ Music source. Defaults to empty (disabled QQ Music source).
|
||||
- `PREFERRED_PLAYER` — preferred MPRIS player when multiple are active. Defaults to `spotify`. Only used when no `--player` flag is given and more than one player (or none of them) is currently playing.
|
||||
|
||||
@@ -102,4 +102,6 @@ lrx --install-completion
|
||||
- [librelyrics-spotify](https://github.com/libre-lyrics/librelyrics-spotify)
|
||||
- [NeteaseCloudMusicAPI](https://www.npmjs.com/package/NeteaseCloudMusicApi?activeTab=readme)
|
||||
- [qq-music-api](https://github.com/tooplick/qq-music-api)
|
||||
- [LyricsMPRIS-Rust](https://github.com/BEST8OY/LyricsMPRIS-Rust)
|
||||
- [onetagger](https://github.com/Marekkon5/onetagger)
|
||||
- [Rise Media Player](https://github.com/theimpactfulcompany/Rise-Media-Player)
|
||||
|
||||
Reference in New Issue
Block a user