library: New query logic

This commit is contained in:
Elias Projahn 2025-03-01 20:54:22 +01:00
parent d96bdf56e2
commit a6e0935df8
7 changed files with 432 additions and 302 deletions

View file

@ -30,6 +30,9 @@ mod imp {
#[property(get, set)]
pub ensemble_id: RefCell<Option<String>>,
#[property(get, set)]
pub instrument_id: RefCell<Option<String>>,
#[property(get, set)]
pub work_id: RefCell<Option<String>>,
@ -74,6 +77,7 @@ impl Program {
.property("composer-id", query.composer.map(|p| p.person_id))
.property("performer-id", query.performer.map(|p| p.person_id))
.property("ensemble-id", query.ensemble.map(|e| e.ensemble_id))
.property("instrument-id", query.instrument.map(|i| i.instrument_id))
.property("prefer-recently-added", 0.25)
.property("prefer-least-recently-played", 0.5)
.property("play-full-recordings", true)