docs: lowercase all artists in artist examples.
This commit is contained in:
parent
80803cd048
commit
4db98eb1c8
1 changed files with 5 additions and 5 deletions
10
examples.md
10
examples.md
|
@ -26,19 +26,19 @@
|
|||
(is-genre "swing" g)))
|
||||
```
|
||||
|
||||
- `All of Seeed`: A playlist containing all items by artist `Seeed`,
|
||||
- `All of Haller`: A playlist containing all items by artist `Haller`,
|
||||
useless, since you also can just navigate to the artist to play all
|
||||
their songs, but a good example.
|
||||
```
|
||||
Id: Seeed
|
||||
Name: Seeed
|
||||
Id: Haller
|
||||
Name: Haller
|
||||
Program: |
|
||||
(let
|
||||
(parent
|
||||
(invoke-generic *item* "FindParent" nil (list "MediaBrowser.Controller.Entities.Audio.MusicArtist, MediaBrowser.Controller")))
|
||||
(cond
|
||||
((null parent) nil)
|
||||
(t (string= (car (getitems parent "Name")) "Haller"))))
|
||||
(t (string= (lower (car (getitems parent "Name"))) (lower "Haller")))))
|
||||
```
|
||||
or simplified with definitions contained in the preamble:
|
||||
```
|
||||
|
@ -91,7 +91,7 @@
|
|||
(lambda
|
||||
(i)
|
||||
;; the `(and (find-artist)` is here to prevent null violations.
|
||||
(and (find-artist) (string= i (lower (get-name (find-artist))))))
|
||||
(and (find-artist) (string= (lower i) (lower (get-name (find-artist))))))
|
||||
*include-artists*)))
|
||||
SortProgram: (begin (shuf *items*))
|
||||
Filename: /config/data/smartplaylists/German.yaml
|
||||
|
|
Loading…
Add table
Reference in a new issue