INTERACT FORUM

Windows => JRiver Media Center 33 for Windows => Topic started by: zybex on January 21, 2025, 04:17:33 pm

Title: ~expand modifier with multiple fields
Post by: zybex on January 21, 2025, 04:17:33 pm
Possible bug?

This works fine - selects a random episode and expands to the whole series:
[Media Sub Type]=[TV Show] ~n=1 ~expand=Series

Shouldn't this select a single season? It seems to always return the same set of mixed files, even files from a different [Media Sub Type]:
[Media Sub Type]=[TV Show] ~n=1 ~expand=Series,Season
Title: Re: ~expand modifier with multiple fields
Post by: Matt on January 21, 2025, 04:25:09 pm
Looking at the code I don't see that multiple fields were ever supported.
Title: Re: ~expand modifier with multiple fields
Post by: zybex on January 21, 2025, 04:27:03 pm
This here says "~expand=fields", plural, so I assumed it was supported. It's actually returning all files.
https://wiki.jriver.com/index.php/Search_Language

Maybe a nice feature to add? I can work around it by creating a calculated field like [Series+Season]="[Series] (S[Season])", and then use it on the ~expand.
Title: Re: ~expand modifier with multiple fields
Post by: Matt on January 21, 2025, 04:30:00 pm
I just switched the wiki.

Taking an expression would be slick as well.

~expand="[Artist] - [Album]"
Title: Re: ~expand modifier with multiple fields
Post by: zybex on January 21, 2025, 04:31:28 pm
I just switched the wiki.
Thank you for the quick fix! /s

Quote
Taking an expression would be slick as well.

~expand="[Artist] - [Album]"
Indeed :)
Title: Re: ~expand modifier with multiple fields
Post by: Matt on January 21, 2025, 04:58:18 pm
I like the idea. I'll try to work it in tomorrow. Thanks for the help!
Title: Re: ~expand modifier with multiple fields
Post by: Matt on January 23, 2025, 08:11:09 am
Expression support is coming to the next build. Thanks again!