docs: update examples.

This commit is contained in:
redxef 2024-11-08 20:22:46 +01:00
parent 8e97ef7170
commit 5439b1de4f
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
4 changed files with 11 additions and 11 deletions

View file

@ -14,10 +14,9 @@ $ touch config/data/smartplaylists/Rock.yaml
Afterwards run the Task `(re)generate Smart Playlists`, this will rename Afterwards run the Task `(re)generate Smart Playlists`, this will rename
the `yaml` file and populate it with some default values. You can now the `yaml` file and populate it with some default values. You can now
adjust the file to your liking. [Go here](examples/index.md) to see more adjust the file to your liking. [Go here](examples.md) to see more
examples. examples.
Example file
```yaml ```yaml
Id: Rock Id: Rock
Playlists: Playlists:

10
examples.md Normal file
View file

@ -0,0 +1,10 @@
# Examples
* `Favourite Pop`: A Playlist
containing all favourite items of the genre pop.
```
Id: Favourite Pop
Name: Favourite Pop
Program: |
(and (is-favorite) (is-genre "pop" (genre-list)))
```

View file

@ -1,5 +0,0 @@
{
"Id": "a1d02dee-f1da-4472-bee3-f568c15c8360",
"Name": "Favourite Pop",
"Program": "(and (invoke item 'IsFavoriteOrLiked' (user)) (find 'Pop' (car (getitems item 'Genres'))))"
}

View file

@ -1,4 +0,0 @@
# Examples
* [Favourite Pop](a1d02dee-f1da-4472-bee3-f568c15c8360.json): A Playlist
containing all favourite items of the genre pop.