Lyrics functions.
More...
◆ lyrics_fromfile()
| void lyrics_fromfile |
( |
struct t_list * | extracted, |
|
|
sds | mediafile, |
|
|
const char * | ext, |
|
|
bool | synced ) |
|
static |
Reads lyrics from a textfiles
- Parameters
-
| extracted | t_list struct to append found lyrics |
| mediafile | absolute filepath of song uri |
| ext | file extension |
| synced | true for synced lyrics else false |
◆ lyrics_get()
| void lyrics_get |
( |
struct t_lyrics * | lyrics, |
|
|
struct t_list * | extracted, |
|
|
sds | mediafile, |
|
|
const char * | mime_type_mediafile ) |
|
static |
Privat definitions
Private functions Retrieves lyrics and appends it to extracted list
- Parameters
-
| lyrics | pointer to lyrics configuration |
| extracted | t_list struct to append found lyrics |
| mediafile | absolute filepath of song uri |
| mime_type_mediafile | mime type of the song uri |
◆ webserver_lyrics_get()
| bool webserver_lyrics_get |
( |
struct mg_connection * | nc, |
|
|
unsigned | request_id, |
|
|
sds | body ) |
Gets synced and unsynced lyrics from filesystem and embedded
- Parameters
-
| nc | Mongoose connection |
| request_id | Jsonrpc id |
| body | Request body |
- Returns
- true if a response was send, else false