More > JRiver Media Center 21 for Windows
How To: Build A Custom Watched Field for Media Center
MrHaugen:
When the watched function was first introduced, there were plenty of reports that it was only partially working. At least for video. Now, a year+ later, people still have to create custom stuff to at least prevent files from being marked as watched when you reach above 50%. Simply adding the bookmarks to the equation for video would prevent this. This is not easy for new users. Even experienced users have difficulties with this I reckon.
Thanks to Glynor it's at least something that everyone can do if they just spend the time needed.
glynor:
--- Quote from: MrHaugen on December 16, 2013, 10:47:17 am ---Now, a year+ later, people still have to create custom stuff to at least prevent files from being marked as watched when you reach above 50%. Simply adding the bookmarks to the equation for video would prevent this.
--- End quote ---
My goal was really to allow it to show percentages before you reached 50%. My previous system did allow percentages from 50-90%, but the built-in Watched() expression doesn't "trigger" until [Number Plays] increments (which is at 50%), so you couldn't get any percentages from 0-50%.
This system is much more flexible. You can fully customize the percentages shown. All you have to tweak is the [Watched Percent] expression (and, thanks to 6233638, this expression is pretty legible and easy to modify):
--- Code: ---If(IsRange([Bookmark Percent], 0-9),
If(Compare([Number Plays],<,1),,✔),
If(IsRange([Bookmark Percent], 10-89),[Bookmark Percent]%, ✔))
--- End code ---
This one does:
[*]Percent 0-9: Blank if [Number Plays] = 0, and Checked otherwise.
[*]Percent 10-89: Percentage
[*]Percent 90-100: Checkmark
[/list]
If you want to modify this, you just need to tweak the numbers. So, if you don't like my percentage cutoffs, and would prefer:
[*]Percent 0-19: Blank if [Number Plays] = 0, and Checked otherwise.
[*]Percent 20-84: Percentage
[*]Percent 85-100: Checkmark
[/list]
You'd use:
--- Code: ---If(IsRange([Bookmark Percent], 0-19),
If(Compare([Number Plays],<,1),,✔),
If(IsRange([Bookmark Percent], 20-84),[Bookmark Percent]%, ✔))
--- End code ---
The process feels long above, but that's mostly because I was heavily documenting it. You should basically be able to just create these three custom fields:
[Bookmark Percent], [Watched Percent], and [Plays]
Copypasta my expressions into the proper spots, and tweak your views to use these new fields. It isn't terrible. The hardest part, by far, is tweaking the Theater View File Info Templates, but this is mostly because the Theater View View designer is... pretty bad. You have to drill down deep into the Options panel, apply a change, and then back all the way out to test it. Rinse, wash, repeat 10 times and you realize you've spent hours doing it, mostly fighting the UI and clicking OK buttons over and over.
MrHaugen:
Yea. I know your goal was much more :) I'll try it out when I have the chance. Looks good!
akira54:
--- Quote from: glynor on December 16, 2013, 06:35:13 am ---It is all there. What are you missing?
--- End quote ---
What I see under TV Show Watched is:
but it appears to copy fine.
akira54:
Trying to implement the Theater View code (the rest went fine), but cannot find the File Info panel (in TheaterView Options). ?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version