More > JRiver Media Center 21 for Windows
How To: Build A Custom Watched Field for Media Center
6233638:
--- Quote from: glynor on December 15, 2013, 10:01:17 am ---Exactly. That was the goal. To make a smarter Watched().
--- End quote ---
I think that's the one edge case I was missing before with my previous attempt at this, so I'll be replacing the watched markers in my library with it.
It would be nice if there was some way to evaluate the performance overhead of an expression. I'm curious to see if there's a difference between the two approaches, especially as I've been running into problems with high CPU usage lately.
I'm also curious if something like watched(3) were added to simply return the percentage, if that would be any quicker than [Bookmark Percent]
--- Quote from: glynor on December 15, 2013, 10:01:17 am ---You see, I was led astray by MrC's clever concatenating trick, which works but if you flip it on end like this, that is much more readable. You forgot a parenthesis there though. This seems to work as a replacement for my [Percent Watched] expression. I'll do a bit more edge case testing, and then update my original post, but it looks right
--- End quote ---
I think that must have got lost when copying & pasting. I did some testing earlier and there didn't seem to be any problems with it. Hopefully I haven't overlooked anything.
--- Quote from: glynor on December 15, 2013, 10:01:17 am ---I don't know about the 1 percentage difference. I'd guess the internal Watched() uses a different degree of accuracy, so it rounds differently. Or maybe it just truncates instead of rounding?
--- End quote ---
That's probably it.
InflatableMouse:
Glynor's Tip Of The Week: 2013.51: Build A Custom Watched Field for Media Center ;D
Bookmarked. Thanks! :P.
glynor:
--- Quote from: 6233638 on December 15, 2013, 10:37:58 am ---Hopefully I haven't overlooked anything.
--- End quote ---
I didn't find any problems. So, I've implemented it. Though, I did tweak it a slight bit again to make it even easier to understand when reading it:
--- Code: ---If(IsRange([Bookmark Percent], 0-9),
If(Compare([Number Plays],<,1),,✔),
If(IsRange([Bookmark Percent], 10-89),[Bookmark Percent]%, ✔))
--- End code ---
Works great. I'm going to update my original post.
glynor:
I also found a mistake in my original Movie File Info Template for Theater View. I'd taken the screenshot and copy/pasted the expression before I made the changes to use my new system. Oops. Fixed now. :-[
EDIT: I tweaked the caption one more time. Next, I'll show how you can use this to (more) quickly reset Watched status.
glynor:
Moved up.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version