Commit graph

1 commit

Author SHA1 Message Date
eli
e5d636e01e feat: add neteasecloud backend
Emms supports real-time lyrics(.lrc format) which can be showed in
minibuffer or modeline. It would be better for lyrics-fetcher to fetch
`.lrc` format lyrics.

Luckily, I find `music.163.com` offers an API to return such format
lyrics, for instance:
https://music.163.com/api/song/lyric?id=35804609&lv=1&kv=1&tv=-1,
in which '35804609' is the song id you query.

So I writes a new backend for 'lyrics-fetcher' to get lrc format lyrics,
and the following are my config
```
(setq lyrics-fetcher-fetch-method #'lyrics-fetcher-neteasecloud-do-search)
(setq lyrics-fetcher-format-file-name-method #'lyrics-fetcher-neteasecloud-format-file-name)
(setq lyrics-fetcher-format-song-name-method #'lyrics-fetcher-neteasecloud-format-song-name)
(setq lyrics-fetcher-lyrics-file-extension ".lrc")
```
P.S. This is my first package writing and first pr, so if I did something
wrong, please tell me.
2022-02-04 14:31:55 +08:00