INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: ~expand modifier with multiple fields  (Read 116 times)

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2739
~expand modifier with multiple fields
« on: Yesterday at 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
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42523
  • Shoes gone again!
Re: ~expand modifier with multiple fields
« Reply #1 on: Yesterday at 04:25:09 pm »

Looking at the code I don't see that multiple fields were ever supported.
Logged
Matt Ashland, JRiver Media Center

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2739
Re: ~expand modifier with multiple fields
« Reply #2 on: Yesterday at 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.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42523
  • Shoes gone again!
Re: ~expand modifier with multiple fields
« Reply #3 on: Yesterday at 04:30:00 pm »

I just switched the wiki.

Taking an expression would be slick as well.

~expand="[Artist] - [Album]"
Logged
Matt Ashland, JRiver Media Center

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2739
Re: ~expand modifier with multiple fields
« Reply #4 on: Yesterday at 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 :)
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42523
  • Shoes gone again!
Re: ~expand modifier with multiple fields
« Reply #5 on: Yesterday at 04:58:18 pm »

I like the idea. I'll try to work it in tomorrow. Thanks for the help!
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up