jellyfin-smart-playlist/examples.md

28 lines
660 B
Markdown
Raw Normal View History

2024-11-08 20:22:46 +01:00
# Examples
- `Favourite Pop`: A playlist
2024-11-08 20:22:46 +01:00
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)))
2024-11-08 20:22:46 +01:00
```