Media: fixes album cover serialization in JSON result

This commit is contained in:
李通洲
2025-11-11 13:58:45 +08:00
parent 11cd7153a2
commit e6b0bd3817
+1 -1
View File
@@ -144,7 +144,7 @@ bool ffGenerateMediaJsonResult(FF_MAYBE_UNUSED FFMediaOptions* options, yyjson_m
yyjson_mut_obj_add_strbuf(doc, song, "album", &media->album);
yyjson_mut_obj_add_strbuf(doc, song, "status", &media->status);
if (media->cover.length > 0)
yyjson_mut_obj_add_strbuf(doc, song, "cover", &media->status);
yyjson_mut_obj_add_strbuf(doc, song, "cover", &media->cover);
else
yyjson_mut_obj_add_null(doc, song, "cover");