Compare commits
No commits in common. "f39633d7c507c67fa6424a4c00e9db45b559ae46" and "61478095ea37be629af5ee20bf36ea1cfadb9572" have entirely different histories.
f39633d7c5
...
61478095ea
4 changed files with 4 additions and 12 deletions
|
@ -141,7 +141,7 @@ namespace Jellyfin.Plugin.SmartPlaylist.Lisp {
|
|||
return args.Last();
|
||||
}
|
||||
private static Expression _haskeys(IEnumerable<Expression> args) {
|
||||
Object o = new Object(((IInner) args.First()).Inner());
|
||||
Object o = (Object) args.First();
|
||||
foreach (var e in args.Skip(1)) {
|
||||
String s = (String) e;
|
||||
PropertyInfo? pi = o.Value().GetType().GetProperty(s.Value());
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Jellyfin.Plugin.SmartPlaylist {
|
|||
(define is-genre-exact (lambda (g g-list) (find g g-list)))
|
||||
(define genre-list (lambda nil (let (_g (getitems item "Genres")) (if (null _g) nil (car _g)))))
|
||||
(define is-favorite (lambda nil (invoke item "IsFavoriteOrLiked" (list user)))))
|
||||
(define is-type (lambda (x) (and (haskeys item "GetClientTypeName") (invoke (invoke item "GetClientTypeName" nil) "Equals" (list x)))))
|
||||
|
||||
|
||||
(define is-favourite is-favorite)
|
||||
""";
|
||||
|
|
|
@ -22,10 +22,10 @@ changelog: |
|
|||
the filter expressions.
|
||||
|
||||
**Breaking Changes:**
|
||||
- The lisp interpreter will now only detect strings in double quotes (`"`).
|
||||
- The lisp interpreter will no only detect strings in double quotes (`"`).
|
||||
- The interpreter will also not allow specifying lists without quoting them.
|
||||
`(1 2 3)` ... used to work but will no longer, replace by either specifying
|
||||
the list as `(list 1 2 3)` or `(quote (1 2 3))`.
|
||||
the list as `(list 1 2 3)` or (quote (1 2 3)).
|
||||
|
||||
## v0.1.1.0
|
||||
- Initial Alpha release.
|
||||
|
|
|
@ -2,11 +2,6 @@
|
|||
|
||||
Smart playlists with Lisp filter engine.
|
||||
|
||||
This readme contains instructions for the most recent changes in
|
||||
the development branch (`main`). To view the file appropriate
|
||||
for your version select the tag corresponding to your version.
|
||||
The latest version is [v0.2.0.0](https://gitea.redxef.at/redxef/jellyfin-smart-playlist/src/tag/v0.2.0.0).
|
||||
|
||||
## How to use
|
||||
|
||||
After [installing](#installation) the plugin and restarting Jellyfin
|
||||
|
@ -97,9 +92,6 @@ to: `(is-favourite)`.
|
|||
allowed, the example filter would match the genre "Nu-Metal" (`(is-genre "metal" (genre-list))`)
|
||||
- **is-genre-exact**: the same as `is-genre`, but does not match paritally
|
||||
- **is-favorite**: matches a favorite item (`(is-favorite)`)
|
||||
- **is-type**: matches the type of item look at
|
||||
[BaseItemKind.cs](https://github.com/jellyfin/jellyfin/blob/master/Jellyfin.Data/Enums/BaseItemKind.cs)
|
||||
for a list of items. The plugin has enabled support for `Audio, MusicAlbum, Playlist` (`(is-type "Audio")`)
|
||||
|
||||
### Filename
|
||||
|
||||
|
|
Loading…
Reference in a new issue