mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
library: New query logic
This commit is contained in:
parent
d96bdf56e2
commit
a6e0935df8
7 changed files with 432 additions and 302 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue