Added a way to filter by codec

This commit is contained in:
emeric
2025-12-06 23:30:00 +01:00
parent bbde689a16
commit 22ed424745
10 changed files with 112 additions and 18 deletions
+3
View File
@@ -197,6 +197,9 @@ namespace lms::db
query.where("t_e_i_l.track_embedded_image_id = ?").bind(params.embeddedImageId);
}
if (params.filters.codec.has_value())
query.where("t.codec = ?").bind(detail::getDbCodecType(*params.filters.codec));
switch (params.sortMethod)
{
case TrackSortMethod::None: