mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 14:10:11 +01:00
Media (Linux): detects song length & play position
This commit is contained in:
@@ -158,6 +158,8 @@ bool ffGenerateMediaJsonResult(FF_A_UNUSED FFMediaOptions* options, yyjson_mut_d
|
||||
yyjson_mut_obj_add_strbuf(doc, song, "artist", &media->artist);
|
||||
yyjson_mut_obj_add_strbuf(doc, song, "album", &media->album);
|
||||
yyjson_mut_obj_add_strbuf(doc, song, "status", &media->status);
|
||||
yyjson_mut_obj_add_uint(doc, song, "length", media->length);
|
||||
yyjson_mut_obj_add_uint(doc, song, "position", media->position);
|
||||
if (media->cover.length > 0) {
|
||||
yyjson_mut_obj_add_strbuf(doc, song, "cover", &media->cover);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user