db/simple: add an AudioFormat to each Song

This commit is contained in:
Max Kellermann
2018-07-06 13:22:17 +02:00
parent c05bca6f2c
commit 72b6c09a73
11 changed files with 68 additions and 7 deletions

View File

@@ -92,6 +92,9 @@ song_print_info(Response &r, const LightSong &song, bool base) noexcept
if (!IsNegative(song.mtime))
time_print(r, "Last-Modified", song.mtime);
if (song.audio_format.IsDefined())
r.Format("Format: %s\n", ToString(song.audio_format).c_str());
tag_print(r, song.tag);
}