shayded-exe / tuneup-prime

NO LONGER MAINTAINED - A library management toolkit for Denon Engine PRIME 🎧
https://community.enginedj.com/t/tuneup-prime-library-management-toolkit-for-windows-macos-create-smart-playlists-relocate-your-tracks-and-more/33067
MIT License
29 stars 2 forks source link

Simplified smart playlist rule definition #43

Closed shayded-exe closed 3 years ago

shayded-exe commented 3 years ago

Current

rules:
  and:
    - field: artist
      operator: contains
      value: test
    - field: title
      operator: contains
      value: remix
      caseSensitive: true
    - field: bpm
      operator: '>='
      value: 128

New

rules:
  and:
    - [artist, contains, test]
    - [title, contains, remix, { caseSensitive: true }]
    - [bpm, '>=', 128]

Originally posted by @rshea0 in https://github.com/rshea0/enjinn/discussions/40