INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 9 10 11 12 [13] 14 15 16 17 18   Go Down

Author Topic: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos  (Read 120679 times)

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #600 on: June 07, 2020, 11:04:31 pm »

Hi and thank you for having this in mind.

For me it only presents the first actor.

The expression I use to display actors is this (see screenshot) :
Code: [Select]
Replace([Actors],;,  / // )
See screenshoot of my Library field if that is of any help.


Again thank you.

Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #601 on: June 07, 2020, 11:37:48 pm »

If you're talking about regex-2, you must update to .90 for it to work properly.
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #602 on: June 07, 2020, 11:39:41 pm »

Ahhh. I see.
I'll do that when I'm home again.
Thanks for the info.
Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #603 on: June 08, 2020, 12:21:59 am »

Regex([Actors],/#([\w\s\.]+(?=\s\[))#/,-2)

Perhaps you already realised Wer, but that Regex expression only returns Actors that have a role in [] brackets. That was the original requirement after all.

Running it against an [Actors] field where there are no Actors with roles inserted returns nothing. I also tested with just two Actors having roles inserted, and only those two Actors were returned out of thirty eight in the field. So either the Regex isn't a generic "trim out anything inside any [] brackets, and the bracket", or the Regex -2 Mode still needs a little work. I don't know which is the case.


Arcspin, also note that if you have updated the actual [Actors] field with that formatting, rather than create a new field based on the [Actors] field just for display, then you now have an [Actors] field with just one very long name in it, and so of course the Regex expression only returns one Actor. MC won't recognise the " / " as a delimiter for multiple records in the field, but just as a character in one Actor's name.

Note that Jim has said JRiver will fix the display issue with the new ";" only delimiter. So you may want to revert any formatting you have done.
We will fix the readability issue.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #604 on: June 08, 2020, 12:42:11 am »

Yes, I know. I wrote the expression to address the question asked. There are a lot of permutations of what could occur in the list.

But if the list doesn't have the roles in brackets, a simple conditional will solve that, because the field doesn't need to be processed with a regex at all to display what he wanted.
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #605 on: June 08, 2020, 02:19:33 am »

Just to do some testing of Regex-2, I tried to write a generic version that would work in all circumstances.

It was good I did, as I discovered some "idiosyncrasies" of the syntax. Parenthesis create capture groups in a regex, and normally these are transparent, but with MC, nested parenthesis lead to duplicated results.

Here's a version that works with Regex-2 as currently implemented in .90, and will return the actor name, whether it has a role or not, and whether it has a dual role or not.  It works in all circumstances I can think of, and that I've seen MCR produce.  If someone can think of additional possibilities it doesn't cover, they are welcome to improve it. :)

Code: [Select]
Regex([Actors],/#([\w\s\.]+(?=;)|[\w\s\.]+(?=\s\[)|[\w\s\.]+$)#/,-2)
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #606 on: June 08, 2020, 02:30:03 am »

Sounds like it would be useful for MCR ZR to write out Actors and Actor&Roles as separate fields...
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #607 on: June 08, 2020, 02:45:50 am »

Parenthesis create capture groups in a regex, and normally these are transparent, but with MC, nested parenthesis lead to duplicated results.
This is correct behavior. You can create non-capture groups with (?:something).

Quote
Code: [Select]
Regex([Actors],/#([\w\s\.]+(?=;)|[\w\s\.]+(?=\s\[)|[\w\s\.]+$)#/,-2)

Lookahead/behind regex are heavy and should be avoided when possible. Here's a simpler expression that also works:
Regex([Actors],/#(.+?) \[.+?\];?#/,-2)

Shameless plug for my upcoming Expression language test tool - see screenshot where I tested these expressions :)
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #608 on: June 08, 2020, 02:53:19 am »

This one handles mixed lists where some have roles and others don't:
Regex([Actors],/#(.+?)(?: \[.+?\]|;|$)#/,-2)
Regex([Actors],/#(.+?)(?: \[.+?\];?|;|$)#/,-2)
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #609 on: June 08, 2020, 02:55:53 am »

This one handles mixed lists where some have roles and others don't:
Regex([Actors],/#(.+?)(?: \[.+?\]|;|$)#/,-2)


When roles are present, this one returns an erroneous list with empty elements.  You see ;; together.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #610 on: June 08, 2020, 02:57:10 am »

Yep, fixed above.

Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #611 on: June 08, 2020, 03:00:56 am »

MC is built using Visual Studio 2019 as of MC26.0.76. MC uses the Regex provided in VS 2019, which uses ECMAScript grammar. A quick search would imply it is the "ECMA-262, 10th edition, June 2019" version.

Does that make any difference? Is that reference the relevant one to use? Or should I just read the Microsoft Docs?


PS: You guys are doing my head in!  ?
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #612 on: June 08, 2020, 03:03:33 am »

Documentation?? Naaaah, just google "c++ regex cheat sheet" FTW ;D

e.g., https://www.rexegg.com/regex-quickstart.html

PS: there are no significant differences between ECMA regex versions, only minor technicalities.
PS2: there are no significant differences between ECMA 2019 and PCRE grammars either. .Net has some syntax differences though. But basically, if you know one of them, you're good for the others.
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #613 on: June 08, 2020, 03:05:37 am »

Yep, fixed above.

I was looking at your expression, and interestingly, well it works in MC, it does NOT work properly in online Regex testers, including one that supports ECMAscript.

Usually it's the other way around: things work with a standard engine that don't work in MC.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #614 on: June 08, 2020, 03:11:37 am »

It's a standard regex expression, it should work. It seems to be working here: https://regex101.com/

Though I now just use my tool to quickly edit expressions and see the results immediately, so I don't care if they work outside of JR or not.
One thing that didn't work and should have was this:
Regex([Actors],/#(.+?)(?: \[.+?\];?|[;$])#/,-2)

That last bit had to be replaced with Regex([Actors],/#(.+?)(?: \[.+?\];?|;|$)#/,-2) for JR to work. That should not be needed since they are equivalent expressions.
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #615 on: June 08, 2020, 03:21:15 am »

The formatting is broken on Regex101.  It seems to show it works in the match info panel, but the formatting in the text string area shows it's matching too much.

Unless there's some trick to get that site to NOT highlight things that aren't matched.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #616 on: June 08, 2020, 03:27:43 am »

You're right - it's just a site issue. It does work though.
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #617 on: June 08, 2020, 03:38:35 am »

Your expression clearly works in MC, as I said.  But it's not just Regex101...  I tried three different sites, and none of them liked your expression.  That matters to people who don't have your new util, because doing all one's testing in MC is extremely cumbersome, as you know. :)

But that's part of the charm of regex, after all...  ;)
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #618 on: June 08, 2020, 04:04:03 am »

It's a perfectly cromulent expression, it's their fault for not recognizing it  ;D

I guess it does have to do with the ECMA version. Lazy quantifiers (+?) are relatively new in ECMA, so perhaps the sites are still using an older engine version.


edit: can't find proof of that assertion, so I'm not sure anymore.
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #619 on: June 08, 2020, 04:09:34 am »

I'm wondering if we go on like this, if we'll hear Rod's head explode...
Logged

greynolds

  • Citizen of the Universe
  • *****
  • Posts: 558
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #620 on: June 08, 2020, 06:16:42 am »

I'm wondering if we go on like this, if we'll hear Rod's head explode...
Without video proof, it never happened.  ;D
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71402
  • Where did I put my teeth?
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #621 on: June 08, 2020, 07:11:41 am »

e.g., https://www.rexegg.com/regex-quickstart.html
May not be working right now.  I tried to send the author a link to this mention and offer a license, using their form.  It may have broken the server.  Sorry.
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #622 on: June 08, 2020, 10:42:47 am »

Both Wer and Zybex expressions works and are displaying actors name (without the character name).
My small view thanks you!

Yes, RoderickGI, I should have made a specific actors field for this particular formatting.
I guess I was so excited when Zybex came out with an updated ZRatings that I didn't think of that.


Thank you for this improvement!

//arcspin
Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #623 on: June 08, 2020, 04:10:35 pm »

I'm wondering if we go on like this, if we'll hear Rod's head explode...

Without video proof, it never happened.  ;D

You guys! You know I am all the way down in Australia, so that would have to be a big bang!


I was boiling over... but then I learned a new word for the day: Cromulent.

That calmed me down. Thanks Zybex.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #624 on: June 09, 2020, 05:09:29 pm »

For those who haven't seen it, I've started a feature request thread that I think would be of benefit to people customizing their views like in this thread: the ability to export/import views for theater view.

This would allow us to share views, or copy them to another computer.

If you think that would be helpful, please add your voice to the thread... The more that support it, the better the chances of it being implemented.
https://yabb.jriver.com/interact/index.php/topic,125720.0.html
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #625 on: July 17, 2020, 03:18:38 am »

It seems like we have reached a level of customization that we are satisfied with and there haven’t been much activity going on in this thread.

I suggest that we share our Theater view with each other and briefly explaining the reasoning behind our view.
I can start off by saying that I have been working with icons as much as possible because an icon takes up less space that the word it represents. I also am trying to work with different colors to highlight certain information for the eye to easily find when looking at the Theater view on my 100-inch screen.


A brief walk through of my view from top to bottom.
A gold colored icon representing the resolution followed by the movie name in a retro font.

If the movie is of a special edition it will show up in green underneath the title.

The tagline is in cursive to make it livelier.

Genre doesn’t need any explanation.

Some data of the movie, with the release year highlighted in red.

Here we come to icons representing the language of the subtitles and spoken language of the movie.

A line full of useful information from the four big review sites, highly interesting information on that line.

Some information if the movie has earned any Oscars or other wins and nominations.

Relations is a field that I have made to link together the movie and if there is an documentary of the movie.

Ordinary description.

Three icons representing Director, Producer (limited to the two first Producers) and Screenwriter (limited to the two first Screen writers) and their name in gold

The pièce de résistance, eight photos of actors and underneath the actors name and role they are playing in the movie.

Three more icons representing Budget, Gross revenue and Studio.

A line full of technical aspects of the movie and if it has an Atmos or DTS:X codec it will show up I yellow. Two more icons representing the size of the movie file and bitrate, both color coded in green, yellow or red depending of file size and bitrate.

If there is an extra audio track, mostly commentary track, it will show up at the bottom.

What we don’t see is an ugly hack that if I scroll down there is three field types for Director, Producer and Screen writer. This is the only way I know how to directly go from this view to a view that shows all the movies that, for example, the Director have directed.


I owe you all in this thread a big thank you for helping me get to where I am regarding my theater view!



Now, how do your Theater view looks like?
Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #626 on: August 03, 2020, 09:39:24 am »

Hi,
I hope everyone have or have had a great vacation!

I'm tinkering around with my Theater view and need some help making an expression to show different FPS icons I have made depending on the movies frame rate.


These are my current frame rates according to JRiver.
18,00
21,58
23,98
24,00
25,00
29,97
60,00

The movie has a frame rate of 18,00, show <img src="tooltip:18_FPS-Grey">
The movie has a frame rate of 21,58, show <img src="tooltip:22_FPS-Grey">
The movie has a frame rate of 23,98, show <img src="tooltip:24_FPS-Grey">
The movie has a frame rate of 24,00, show <img src="tooltip:24_FPS-Grey">
The movie has a frame rate of 25,00, show <img src="tooltip:25_FPS-Grey">
The movie has a frame rate of 29,97, show <img src="tooltip:30_FPS-Grey">
The movie has a frame rate of 60,00, show <img src="tooltip:60_FPS-Grey">


I attach my transparent png icons, feel free to use them or improve them.


Thank you and stay safe!

//arcspin
Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1971
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #627 on: August 03, 2020, 10:24:43 am »

Code: [Select]
<img src="tooltip:FormatNumber([FPS],0)_FPS-Grey">something like that?
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #628 on: August 03, 2020, 10:34:16 am »

EXACTLY!

This works perfekt.
Amazing that such small string of code can manage to do this!

Thank you so much lepa,

//arcspin
Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71402
  • Where did I put my teeth?
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #630 on: August 16, 2020, 09:05:33 am »

I had this idea of having a (5, 10, 15, and so on) anniversary icon in front of the name of a movie to highlite that the movie is having an anniversary.

Zybex came to the rescue and I'm sharing his expression with you guys.

Expression to show anniversary icon:
Code: [Select]
save(Math(formatdate(now(),yyyy)-[year]),age)/
if(and(isequal([age],0,5),isequal(math([age]%5),0,2)),<img src="tooltip:Anniv_[age]">,)

He also made another expression that also highlites if the movie is from the current year and the code for that is as follow.

Expression that shows a "NEW" icon when a movie is from the current year and also show the anniversary icon:
Code: [Select]
save(Math(formatdate(now(),yyyy)-[year]),age)/
if(isequal(math([age]%5),0,2),<img src="tooltip:Anniv_[age]">,)


To make this function you need some icons to show and I made a bunch of those for you to use if you like.
Make sure to add the icons into the Tooltip folder and then the above expressions should work just fine.

See the attached screenshot of the 40th anniversary logo in front of the movie name.
Download the attached Anniversary logos.zip file to use on your computer.



A big thank you to Zybex who came thru yet again!!!

//arcspin
Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 695
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #631 on: August 17, 2020, 09:18:08 am »

While not for me, thank you for sharing.  I haven't had much to share lately, glad to see people are still tweaking and enhancing their views though.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8943
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #632 on: August 20, 2020, 04:59:26 am »

Images are much simpler. You can go to Tools->Options->TheaterView->Appearance->"... Customize file info panel" and add new field (row in theaterview)
e.g.
Type = "Expression"
Name = "L: Tech Icons Row"
Value = see below code...
Style = "Text Only (no label)"
Show = "Show only in large field" (changing this to "Show only when viewing a file grouping" will hide this row so you don't need to delete all your work in progress if you don't get it right at first time or want to continue on some other time)

(x) hide when value is empty

Images are in MC's data/tooltip folder. Following checks are made to determine which image is wanted to be shown in the code below
1.Check [File Type] and show image for it e.g. "tooltip:container-mkv.png" or "tooltip:container-mp4.png" etc.
2. Check from [Notes] if the movie is HDR and from user field [Definition] in which definition film is presented. Image e.g. "tooltip:definition-1080p.png", "tooltip:definition-4k-hdr.png"
3. Check Aspect ratio from user field  [AR-Calculated] e.g. "tooltip-aspect-1.78.png"
4. Check Channel amount from [Channels] field e.g. "tooltip-speakers-5.png"
5. Check Audio type from [Audio Codec] e.g. "tooltip-audio-dts-hd.png"
6. Check film studios from [Production Companies]. Will show 0-5 film studios e.g. "tooltip-studio-Columbia Pictures.png"
7. Check Publisher (Arrow, Criterion etc.) from [Publisher] field e.g. "tooltip-publisher-Arrow.png"

Code for Value:
<font size="150"><img src="tooltip:container-[File Type]">  If(IsEqual([Dolby Vision],1,2),<img src="tooltip:Definition-DolbyVision">/  ,)<img src="tooltip:definition-[Definition]If(IsEqual([HDR],1,2),-hdr,)">If(!IsEmpty([Aspect Ratio]),/  <img src="tooltip:aspect-[AR-calculated]">,)  <img src="tooltip:speakers-[Channels]">  <img src="tooltip:audio-[Audio Codec]">If(!IsEmpty([Production Companies]),/  <img src="tooltip:studio-ListItem([Production Companies],0)"><img src="tooltip:studio-ListItem([Production Companies],1)"><img src="tooltip:studio-ListItem([Production Companies],2)"><img src="tooltip:studio-ListItem([Production Companies],3)"><img src="tooltip:studio-ListItem([Production Companies],4)">,)If(!IsEmpty([Publisher]),/  <img src="tooltip:publisher-[Publisher]">,)<//font>





[AR-Calculated] is calculated field:
Code: [Select]
Save(Math(Trunc(Replace([Aspect Ratio], :, // ) + .005, 2)), gAR)IfElse(Compare(Load(gAR), <, 1), empty, Compare(Load(gAR), <, 1.38), 1.33, Compare(Load(gAR), <, 1.68), 1.66,Compare(Load(gAR), <, 1.80), 1.78,Compare(Load(gAR), <, 1.87), 1.85,Compare(Load(gAR), <, 2.36), 2.35,Compare(Load(gAR), <, 2.40), 2.39)
[Definition] is calculated field:
Code: [Select]
IfElse(IsEqual([Width],1920,5),4K,IsEqual([Width],1360,5),1080p,IsEqual([Width],888,5),720p,IsEqual(Replace([FPS],/,,.),25,2),576p,1,480p)
[Audio Codec] is Calculated field:
Code: [Select]
IfElse(IsEqual([Compression],dts-hd,8),dts-hd,IsEqual([Compression],eac3,8),dolby digital,IsEqual([Compression],PCM,8),pcm,IsEqual([Compression],mp3,8),mp3,IsEqual([Compression],flac,8),flac,IsEqual([Compression],aac,8),aac,IsEqual([Compression],Vorbis,8),vorbis,IsEqual([Compression],DTS,8),dts,IsEqual([Compression],AC3,8),dolby digital,IsEqual([Compression],truehd,8),truehd,IsEqual([Compression],opus,8),opus,IsEqual([Compression],MPEG,8),mpeg)
[HDR] is check type user field
[Dolby Vision] is check type user field
Hi Lepa, if this template offers the chance to enter this arena a bit further up the learning curve, especially for those of us that are competant in regards to fixing references to custom fields you may be using that aren't documented here, could you "Copy template to clipboard" and paste it in this thread?

-marko

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #633 on: August 20, 2020, 08:30:00 am »

Just wanted to thank Wer and Matt for the ifCase function which does simplify code by a LOT. For instance, the expression above for AR:

Code: [Select]
Save(Math(Trunc(Replace([Aspect Ratio], :, // ) + .005, 2)), gAR)
IfElse(Compare(Load(gAR), <, 1), empty, Compare(Load(gAR), <, 1.38), 1.33, Compare(Load(gAR), <, 1.68), 1.66,Compare(Load(gAR), <, 1.80), 1.78,Compare(Load(gAR), <, 1.87), 1.85,Compare(Load(gAR), <, 2.36), 2.35,Compare(Load(gAR), <, 2.40), 2.39)

becomes:
Code: [Select]
Save(Math(Trunc(Replace([Aspect Ratio], :, // ) + .005, 2)), gAR)
ifcase([gAR], 3, 1, empty, 1.38, 1.33, 1.68, 1.66, 1.80, 1.78, 1.87, 1.85, 2.36, 2.35, 2.40, 2.39)

Others can also be simplified.
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8943
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #634 on: August 20, 2020, 09:41:48 am »

Agreed... Also...
Just wanted to thank zybex and Matt for the ListGrep function which does simplify code by a lot, and also, finally, allows me to extract multiple ocurrancies of a string from my keywords field. 'tis brilliant.

The recent work on expression functions (Zelda included, thank you) has been wonderful.
:D

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #635 on: August 20, 2020, 11:55:57 am »

Thanks.
I proposed a couple of new functions that would allow us to build and maintain our own function libraries, but Matt hasn't answered, perhaps he finds it too complex (or he's just too busy with v27):
https://yabb.jriver.com/interact/index.php/topic,124543.msg877195.html#msg877195

Implementation is actually quite simple, it's mostly string replacement... if anyone one finds it useful, please add your vote there.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71402
  • Where did I put my teeth?
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #636 on: August 20, 2020, 12:57:13 pm »

Matt's too busy with his vacation.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #637 on: August 20, 2020, 01:07:50 pm »

That would explain it :)
Enjoy your vacation, Matt. What are you doing here reading this??
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1971
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #638 on: August 21, 2020, 08:05:05 am »

My current movie template for theater view attached and explained here...

Custom fields needed to get all the images shown:
[HDR]: Manually entered check box. Shows icon if set.
[Dolby Vision]: Manually entered check box. Shows icon if set
[Cast Images]: Manually entered check box. If not set cast will be shown as text
[LogoExist]: If set will use different duplicate template (not included here) which shows movie name as image. Special case for some movies with iconic font like Back to the Future etc. Not used by default

[HD Audio]: From compression field + JMone's SoT => Atmos / DTS:X
Code: (HD Audio calculate expression) [Select]
ListItem([Compression], 1, +)
[Audio Codec]: Calculated from compression field => mp3 / dts / true-hd etc.
Code: (Audio Codec calculate expression) [Select]
IfCase([Compression],8,dts-hd,dts-hd,eac3,dolby digital,pcm,pcm,mp3,mp3,vorbis,vorbis,dts,dts,ac3,dolby digital,truehd,truehd,opus,opus,flac,flac,mpeg,mpeg,aac,aac)
[Definition]: Calculated from width/height/fps fields => 4K, 1080p, 720p, 576p, 480p
Code: (Definition) [Select]
IfElse(Compare([Width],>,1920),4K,Compare([Width],>,1360),1080p,Or(Compare([Width],>,1024),Compare([Height],>,576)),720p,Compare(Left([FPS],2),=,25),576p,1,480p)
[AR-Calculated]: A can of worms. Calculated from MC's Aspect Ratio field. Return empty if not set so you discover where manual input is needed. Not always accurate infromation.
Code: (AR-Calculated) [Select]
Save(Math(Trunc(Replace([Aspect Ratio],:, // ) + .005, 2)), v_AspectRatio)/
IfCase([v_AspectRatio], 3, 1, empty, 1.38, 1.33, 1.68, 1.66, 1.80, 1.78, 1.87, 1.85, 2.36, 2.35, 2.40, 2.39)

[Audio Language] List populated by Jmone's SoT
[Subtitles] List populated by Jmone's SoT

Special calculated fields for LINKING purposes
[LINK_Year_Movie]
Code: [Select]
If(IsEqual([Media Sub Type],Movie),Movies Released in FormatDate([Date,0],year),)
[LINK_Extras_Movie]
Code: [Select]
If(Or(IsEqual([Media Sub Type],Extras),IsEqual([Media Sub Type],Movie)),EXTRAS For [Name] /(FormatDate([Date,0],year)/),)
[LINK_Director]
Code: [Select]
If(IsEqual([Media Sub Type], Movie),Directed By ListItem([Director],0),)
[LINK_Genre_Movie]

Code: [Select]
If(IsEqual([Media Sub Type], Movie),Movies at Genre Replace(ListSort(ListLimit([Genre],2)),;,/ /// ),)

Images are under Data/Tooltip using following sub folder structure:
Actors\[Original Title] (Year)\Andrew Garfield.png etc (Could also use [Name] instead of [Original Title] but I have populated name field to include different version e.g Terminator [Director's Cut])
Studios\studio-20th Century Fox.png etc
Country\country-Finland.png
Languages\language-Finnish.png etc
Publisher\publisher-Criterion Collection.png etc

(I'm using / as a folder separator in expressions as it also works for linux)

E: Fixed subtitle language expression bug in the template
E2: Added some formats to [Audio Codec]
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #639 on: August 21, 2020, 10:40:13 am »

Love the "Special calculated fields for LINKING purposes" lepa!

I implemented a couple of those right away, thank you for sharing.

Is there a way to add a "Special calculated fields for LINKING purposes" for IMDB?
I was thinking of a link that linked to movies that have the same ballpark rating on IMDB, not the exact rating but for example, the movie Bad Boys have an IMDB rating of 6.9 and the link that I ask for would link to all movies that have an IMDB rating between 6.0 to 6.9.


Have a great weekend!

//arcspin

Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1971
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #640 on: August 21, 2020, 11:09:28 am »

Sure. Forgot to add that one... This one will show every other movie which have same integer imdb value. If you want exact match then just use [IMDb Rating] without calculations

[LINK_IMDb_Rating]
Code: [Select]
Movies Rated Math(Int([IMDb Rating])) in IMDb
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #641 on: August 21, 2020, 11:17:58 am »

Cool, you already thought about that!

Works great.

Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

lello

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 552
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #642 on: October 13, 2020, 09:38:59 am »

Sorry for my trivial question, but unfortunately I am not at your level as mentioned in the past.

So far I have used your first template, and I am very satisfied. I wanted to try the new one, but it doesn't work because obviously I didn't quite understand how to structure the folders in which to keep the various logos and images.

What I would like, continuing to use the old template, to be able to add the HDR logo but this step is not clear to me:
[HDR]: Manually entered check box. Shows icon if set.

Could you explain it in a simple way, like you do with children? :)
Thank you
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1971
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #643 on: October 14, 2020, 08:07:57 am »

HDR It's just another user created library field made in here: Tools -> Options -> Library & Folders -> Manage Library Fields

For folder "issue" I have set logos to be found
MC install folder's Data\Tooltip folder and possibly subfolder under that (like Studios, Countries)

So in this case images would need to be put in:
e.g. C:\Program Files\J River\Media Center 26\Data\Tooltip\aspect-1.33.png
e.g. C:\Program Files\J River\Media Center 26\Data\Tooltip\Studios\studio-20th Century Fox.png
Logged

greynolds

  • Citizen of the Universe
  • *****
  • Posts: 558
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #644 on: October 14, 2020, 09:26:46 am »

HDR It's just another user created library field made in here: Tools -> Options -> Library & Folders -> Manage Library Fields

For folder "issue" I have set logos to be found
MC install folder's Data\Tooltip folder and possibly subfolder under that (like Studios, Countries)

So in this case images would need to be put in:
e.g. C:\Program Files\J River\Media Center 26\Data\Tooltip\aspect-1.33.png
e.g. C:\Program Files\J River\Media Center 26\Data\Tooltip\Studios\studio-20th Century Fox.png
It would probably be a pain to change it now, but it could make sense to do this:

Folder:
D:\Audio\MC27\Data\Tooltip\Studios

Name:
D:\Audio\MC27\Data\Tooltip\Studios\20th Century Fox Film Corporation.png
D:\Audio\MC27\Data\Tooltip\Studios\20th Century Fox.png

Folder:
D:\Audio\MC27\Data\Tooltip\Aspect

Name:
D:\Audio\MC27\Data\Tooltip\Aspect\1.33.png
D:\Audio\MC27\Data\Tooltip\Aspect\1.66.png
D:\Audio\MC27\Data\Tooltip\Aspect\1.78.png

Folder:
D:\Audio\MC27\Data\Tooltip\Audio

Name:
D:\Audio\MC27\Data\Tooltip\Audio\aac.png

And so on.  So no need to duplicate the folder name in the filename and anything that has more than 1 or 2 files ends up grouped together in a folder (so Aspect and Audio get folders, for example).
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #645 on: October 14, 2020, 02:31:42 pm »

Hi Lepa,
Nice Theater view!

Could you explain more how you have named your extras movie files and where you have put those in what folder (the same as the main movie?).



I have a similar solution where I use the Relations field and for example a Star Wars movie extra file I have named it Star Wars Extras (in the Relation field) in both the movie file as in the extra file. That way I have a link between those two movie files, the main movie and the Extra movie file (for example some outtakes).
I have then tagged the extra movie file with "Extra" Keyword and "Shorts" Media Sub Type so I can have all the Extra materiel in one view.
Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

arcspin

  • Galactic Citizen
  • ****
  • Posts: 379
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #646 on: October 14, 2020, 02:46:11 pm »

Also, I have made some new FPS icons if anyone is interested in using those, fell free to download and use.

Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

lello

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 552
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #647 on: October 14, 2020, 04:15:30 pm »

Thank You Lepa :)
Logged

lello

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 552
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #648 on: October 15, 2020, 03:29:32 am »

I created the new field in the library, but it doesn't work because I don't understand the hdr.png file in which folder it should be placed.

As for the photos of the actors, I created the folder structure C: \ Program Files \ J River \ Media Center 27 \ Data \ Tooltip \ Actors \ [Original Title] (Year) and here I have the photos downloaded with MCRatings but does not work: are there other steps to take? Should a folder be created for each film?
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1971
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #649 on: October 15, 2020, 04:40:17 am »

I'm off from my setup for a couple of days so cant't walk you through right now but quickly:
Definition files including which contains HDR are read from tooltip root folder eg eg [MC setup folder]\Data\Tooltip\. My definition files attached here..

If you have ticked [Cast Images] (another user field like [HDR]) for movie, the template tries to find cast images from eg [MC setup folder]\Data\Tooltip\Actors\Hacksaw Ridge (2016)\Andrew Garfield.png
If [Cast Images] is not 1 ie not checked, actor names will be shown.

"Hacksaw Ridge (2016)" being cleaned [Original Title] ([Year])

I can some time in next week upload template which will load actor images from ZRatings default folder if wanted
Logged
Pages: 1 ... 9 10 11 12 [13] 14 15 16 17 18   Go Up