Commit graph

10 commits

Author SHA1 Message Date
f7f82ed997 lyrics-fetcher: add Published-At header & update copyright 2023-12-26 01:33:55 +03:00
5e36d35148 chore: update copyright 2022-07-17 15:21:35 +03:00
8edf2447f0 fix: native-comp warning 2022-02-07 16:11:58 +03:00
fc0c4731b6 fix: recursive load 2022-02-07 15:02:48 +03:00
27f12fc8c1 fix: byte-compilation and checkdoc 2022-02-07 14:51:09 +03:00
eli
1ac35c95b0 chore: remove FSF Copyright 2022-02-04 16:59:23 +08:00
eli
48b6d8e8ac chore: remove trailing parentheses 2022-02-04 16:58:51 +08:00
eli
3dfe79f34c chore: update docstring 2022-02-04 16:35:21 +08:00
eli
3613646387 chore: remove unused packages 2022-02-04 16:34:09 +08:00
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