27 lines
660 B
Markdown
27 lines
660 B
Markdown
# Examples
|
|
|
|
- `Favourite Pop`: A playlist
|
|
containing all favourite items of the genre pop.
|
|
```
|
|
Id: Favourite Pop
|
|
Name: Favourite Pop
|
|
Program: |
|
|
(and (is-type "Audio") (is-favorite) (is-genre "pop" (genre-list)))
|
|
```
|
|
- `Electro Swing`: A playlist containing all items
|
|
which have a genre that contains "electro" and a
|
|
genre that contains "swing". It will only include
|
|
albums and single tracks.
|
|
```
|
|
Id: Electro Swing
|
|
Name: Electro Swing
|
|
Program: |
|
|
(let
|
|
(g (genre-list))
|
|
(and
|
|
(or
|
|
(is-type "Audio")
|
|
(is-type "MusicAlbum"))
|
|
(is-genre "electro" g)
|
|
(is-genre "swing" g)))
|
|
```
|