[httpd] Add fetching lyrics in the JSON api

This commit is contained in:
X-Ryl669
2023-09-15 19:36:18 +02:00
committed by ejurgensen
parent cf8b3ecd3a
commit 9670f6b079
5 changed files with 13 additions and 7 deletions

View File

@@ -1544,7 +1544,8 @@ curl -X GET "http://localhost:3689/api/library/tracks/1"
"data_kind": "file",
"path": "/music/srv/Incubus/Make Yourself/12 Pardon Me.mp3",
"uri": "library:track:1",
"artwork_url": "/artwork/item/1"
"artwork_url": "/artwork/item/1",
"lyrics": "[00:00:10] Let's start the music [...]"
}
```
@@ -2622,6 +2623,7 @@ curl --include \
| uri | string | Resource identifier |
| artwork_url | string | *(optional)* [Artwork url](#artwork-urls) |
| usermark | integer | User review marking of track (ranges from 0) |
| lyrics | string | The lyrics if found either as LRC or plain text |
### `paging` object