-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tuneup.example.yaml
112 lines (102 loc) · 2.63 KB
/
tuneup.example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# yaml-language-server: $schema=https://raw.githubusercontent.com/rshea0/tuneup-prime/master/src/app/engine/library-config/tuneup.schema.json
# Supported fields
#
# [string]
# album
# artist
# comment
# composer
# filename
# fileType
# genre
# label
# path
# remixer
# title
#
# [numeric]
# bitrate
# bpm
# length
# rating
# year
# Supported operators
#
# [string]
# equals
# notequal
# contains
# excludes
# regex (Don't know what Regex is? Read https://regexone.com/)
#
# These operators must be in quotes like this: '='
# [numeric]
# =
# !=
# >
# >=
# <
# <=
# The config file is sensitive to indentation
# Please note how everything in this example is aligned and indented
# Playlist names must be unique
# Any playlists that already exist with the same name will be replaced
smartPlaylists:
- name: Single filter
rules:
and:
- [artist, contains, shayded]
- name: Multiple filters
rules:
# Must match all rules
and:
- [title, contains, remix]
# caseSensitive is optional (default: false)
- [artist, equals, ILLENIUM, { caseSensitive: true }]
- name: Multiple genres
rules:
# Only has to match one rule
or:
- [genre, equals, house]
- [genre, equals, deep house]
- [genre, equals, tech house]
# Create folders with the children property (can be nested multiple levels)
# Any playlists that aren't in a folder will remain in place so you can put them in whatever folder you want within Engine
- name: Years
children:
# Playlists with numeric names must be in quotes
- name: '2020'
rules:
and:
# Note that the = is in quotes
# This is the case for all numeric operators
- [year, '=', 2020]
- name: '2021'
rules:
and:
- [year, '=', 2021]
# Matches rating above 3 stars and years 2009-2013
- name: Rating and year filters
rules:
and:
# More than 3 stars
- [rating, '>', 3]
# 2009-2013
- [year, '>=', 2009]
- [year, '<=', 2013]
# Matches rating above 3 stars OR years 2009-2013
- name: Rating OR year filters
rules:
# The root rule can only be "and" or "or" not both
or:
- [rating, '>', 3]
# Note that "and" here is indented
and:
- [year, '>=', 2009]
- [year, '<=', 2013]
# Creates a crate instead of a playlist (Engine 1.6.x only)
- name: Sample crate
isCrate: true
rules:
and:
- [title, excludes, fight club]