INTERACT FORUM

More => Old Versions => JRiver Media Center 23 for Windows => Topic started by: glynor on February 20, 2018, 09:43:40 am

Title: IsEmpty(,0) String Check Function Doesn't Work in RMCF
Post by: glynor on February 20, 2018, 09:43:40 am
I've been having trouble with a simple expression I want to use in RMCF to include the [Season] field in the filename, for files which contain a season, and omit it for files which don't. These particular files use string-type seasons, not numeric ones, so I have to do a string-type test.

I think this is because the RMCF pre-parser is replacing empty [Season] fields with zeroes before it goes to the expression engine, but I want to make sure this is on purpose and not something just broken.

Here's a very simple demonstration. I made an expression column with the following very simple expression:
If(IsEmpty([Season],0),Empty,Not Empty)

Then, I used that same expression in RMCF in the directory rule. You can see the results here:
(http://glynor.com/img/screenshots/MC23/RMCF-IsEmpty_Season_Test-small.png) (http://glynor.com/img/screenshots/MC23/RMCF-IsEmpty_Season_Test.png)

As you can see, the two results don't match. I think I can "fix" it by testing for a zero value, but the behavior is very strange, so I thought I'd bring it up.
Title: Re: IsEmpty(,0) String Check Function Doesn't Work in RMCF
Post by: glynor on February 20, 2018, 09:50:27 am
I think I can "fix" it by testing for a zero value, but the behavior is very strange, so I thought I'd bring it up.

Ack. That doesn't work either. Then string-type [Season]s are all evaluated as zero when evaluated numerically. Here, I used this expression for the Numeric Test column:
If(IsEqual([Season],0,2),Empty,Not)

That works when the contents of [Season] are numeric, but when they're strings, they all evaluate as empty. I also tried Greater than and the Compare() function, and I can't get it to evaluate properly, while also working in RMCF.

(http://glynor.com/img/screenshots/MC23/RMCF-IsEmpty_Season_Test-Alt.png)

Hmmm....
Title: Re: IsEmpty(,0) String Check Function Doesn't Work in RMCF
Post by: glynor on February 20, 2018, 09:58:18 am
Anyone have any suggestions on how to solve this?
Title: Re: IsEmpty(,0) String Check Function Doesn't Work in RMCF
Post by: Matt on February 20, 2018, 10:06:45 am
This gives "Unknown Season" for an empty season:
If(IsEmpty([Season],0),Empty,Not Empty)

So I think you would need to use [Season, 0].
Title: Re: IsEmpty(,0) String Check Function Doesn't Work in RMCF
Post by: glynor on February 20, 2018, 10:09:17 am
Ahh, maybe that will work. I'll give it a whirl. Thanks, Matt!
Title: Re: IsEmpty(,0) String Check Function Doesn't Work in RMCF
Post by: glynor on February 20, 2018, 10:11:52 am
Yep. That fixed it.
(http://glynor.com/img/screenshots/MC23/RMCF-IsEmpty_Season_Test-Solved.png)

Thanks again!

Title: Re: IsEmpty(,0) String Check Function Doesn't Work in RMCF
Post by: JimH on February 20, 2018, 10:14:01 am
You've been AWOL for a long time.
Title: Re: IsEmpty(,0) String Check Function Doesn't Work in RMCF
Post by: glynor on February 20, 2018, 10:26:35 am
You've been AWOL for a long time.

I know. I am still checking in periodically, just generally not commenting much. I've just been absurdly busy, with both work and being a dad, and... It is hard to get motivated to spend time.

Also, to be completely honest, though, I'm using my mobile devices far more frequently for media playback than previously, and JRemote is pretty annoying to use for video. It works brilliantly for music, and I still use it heavily for that. But I've basically abandoned using it for any kind of video playback because I can't 30-second seek ahead/back or seek half-way through a file to find my spot. And it doesn't remember playback position.

I've been using Plex, which is annoying and I hate it in so many ways, but... I hardly ever get to finish movies in one viewing anymore, and even hour-long shows I sometimes have to break up into hunks, and I just can't use JRemote without those features. I've tried Panel a handful of times, but... I'm just not really into the whole idea of using a Web App, and there are way too many other workflow issues with using it for my purposes (everyday video playback).

I still use MC for all my HTPC playback, and all of my media organization, but my uses for actual media playback have gotten more and more rare (save for basically 3-4 times per week, one hour a night, on the couch, before going to bed).
Title: Re: IsEmpty(,0) String Check Function Doesn't Work in RMCF
Post by: ~OHM~ on February 20, 2018, 03:38:46 pm
Well just know that your contributions here on Interact are missed! Along with yourself of course.... 8)