INTERACT FORUM

More => Old Versions => JRiver Media Center 31 for Windows => Topic started by: lepa on February 02, 2019, 08:29:13 am

Title: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 02, 2019, 08:29:13 am
A newer thread is here:  https://yabb.jriver.com/interact/index.php/topic,135179.msg936142.html#msg936142

---------
In this thread you can discuss about custom Tooltips & TheaterView templates.

Image tag based icons:
Today MC also support image tag which is considerably easier to work with than using above font based imaging.
how to use:
<img src="filepath" width="nn" height="nn" valign="[top|middle|bottom]">

Font based icons:
(Kind of obsolete now days but still usable)
Thanks to Moe's media dedicated icons font it is now easy to display many kinds logos and icons related to audio / video. Moe has also collected icons for genres and created a font for that also

Download and install video and audio icons font from here (https://moesrealm.com/MC/mc-tooltip/)
If you like genre icons download and install font from here (https://moesrealm.com/MC/genre-icons/)
 
Scrape information from internet:
Graphical UI to fetch movie data, posters and personnel images:
 - ZRatings is here  (https://yabb.jriver.com/interact/index.php/topic,125575.0.html)
CLI tool to do everything  ;D
 - MCUtils is here (https://yabb.jriver.com/interact/index.php?topic=100449.0)


CUSTOM TOOLTIPS FOR DIFFERENT MEDIA TYPES:
Create new calculated fields so it is easier to customize different media types.
ref: https://yabb.jriver.com/interact/index.php/topic,135033.0.html

Tooltip examples:
 - Moe's Movie wonderfull tooltip: https://yabb.jriver.com/interact/index.php/topic,119385.msg837496.html#msg837496
 - My Movie tooltip: https://yabb.jriver.com/interact/index.php/topic,119385.msg825497.html#msg825497
 - zybex thread to collect tooltips: https://yabb.jriver.com/interact/index.php/topic,119874.0.html

THEATER VIEW MOVIE TEMPLATES
Attached to this post you can find my outdated 8) movie template for theater view (both small and large views). You can try it by copying its contents to clipboard and using Tools >> Options >> Theater View >> Options >> ...Customize file info panel... >> Manage >> Add Template From Clipboard.

More hints how to copy paste theater view template: https://yabb.jriver.com/interact/index.php/topic,119385.msg840971.html#msg840971

In my screens I'm using 4K mode for Theater View UI with size value 80%. That is because MC doesn't support custom default font size and 80% gives me font size that works for me. If you are going to use different size values (bigger), you will need to change some font sizes in the items (at least for separator lines) in order to draw them correct.

Metadata has been fetched with MC,  MCUtils (https://yabb.jriver.com/interact/index.php?topic=100449.0) and MCRatings (https://yabb.jriver.com/interact/index.php/topic,119792.0.html)

 - Moe's Theater View screen: https://yabb.jriver.com/interact/index.php/topic,119385.msg838983.html#msg838983
 - Thorsten Movie Theater View and tooltip: https://yabb.jriver.com/interact/index.php/topic,119385.msg839927.html#msg839927
 - New MC30 Template using video file metadata import introduced in MC30.60. Stock fields should be enough to get going. ZRatings / MCUtils gives something extra like [IMDb Rating], [TMDB Rating], [Movie Series] etc LINK TO BE ADDED


THEATER VIEW TV SHOWS TEMPLATES
 - New "MC30 No Cover" Template using video file metadata import introduced in MC30.60. Stock fields should be enough to get going. MCUtils gives something extra like [TMDB Rating], [Guest Stars], series [Status] etc LINK TO BE ADDED

More examples and info can be found in this thread...

EDIT:
12.2.2023 Cleaned up an preparing for the MC 30.61 which introduces more video attributes scraping from the file
18.11.2022 Cleaned post a little some information might be outdated. Latest things are somewhere in latest posts in this tread. Don't have time to update first post always
21.8.2020 My new movie template here https://yabb.jriver.com/interact/index.php/topic,119385.msg877551.html#msg877551
15.3.2020 New "Movie-Template.txt". Images usage for icons and cast. Preview Image (https://yabb.jriver.com/interact/index.php/topic,119385.msg862044.html#msg862044)
29.7.2019 added info about size %, Added links for MCUtils and MCRatings
27.7. 2019 cleaned up a little
14.7.2019 updated movie template zip file
13.7.2019 Updated TheaterView TV Show large screen
11.7.2019 Updated TheaterView Audio image
10.7.2019 Added audio tooltip and theater view image
7.7.2019 with new screen template and preview image
Title: Re: Ability to change fonts
Post by: RoderickGI on February 02, 2019, 03:13:29 pm
Ability to change font using html tags. It would enable us using fonts which have icons for bluray, dts etc.

Already there. See the image in this post (http://) for an example.

There are fonts with icons for Blu-ray, DTS, etc.? Please share.
Title: Re: Ability to change fonts
Post by: leezer3 on February 02, 2019, 03:52:55 pm
Quote
There are fonts with icons for Blu-ray, DTS, etc.? Please share.

Look into IcoMoon:
https://icomoon.io

Chromium engine would probably support it if the appropriate CSS could be injected somewhere.
Title: Re: Ability to change fonts
Post by: lepa on February 02, 2019, 05:06:47 pm
Already there. See the image in this post (http://) for an example.

There are fonts with icons for Blu-ray, DTS, etc.? Please share.
Oh, I thought you could only change properties of the font set in the options. There is no URL in your link though..
I found DigitalSymbols named front which might have something usable. Don't remember anymore where did I get it but I think that it could be found with google
Title: Re: Ability to change fonts
Post by: swiv3d on February 02, 2019, 05:08:54 pm
It's at
https://www.fontspace.com/snapefonts/digitalsymbols
Title: Re: Ability to change fonts
Post by: lepa on February 03, 2019, 03:12:44 am
Ok, if anyone else is wondering <font face=> works and you can dynamically change font with it. I don't know why I didn't it get to work in the first place when I tried it.
Title: Re: Ability to change fonts
Post by: lepa on February 03, 2019, 04:28:05 am
Played a little with this

Code: [Select]
If(IsEqual([Media Sub Type],Movie,1), <font size="200"><b>[Name]Delimit([Year],/),/# (#/)Delimit([Access Rating],/),/# (#/)<//b><//font> /[ <font color="#f69838">RatingStars() <//font>/]
<font face="ToolTip01" size="100" color="#9496a3">If(IsEqual([MPAA Rating],G),A,If(IsEqual([MPAA Rating],PG),B,If(IsEqual([MPAA Rating],PG-13),C,If(IsEqual([MPAA Rating],R),D,If(IsEqual([MPAA Rating],NC-17),E,If(IsEqual([MPAA Rating],NR),<//font><font face="ToolTip01" size="80" color="#9496a3">F,))))))   <//font><font color="#9496a3" size="100"><b>|<//b><//font>   <font color="#9496a3" size="100">Size()   <b>|<//b><//font>   <font color="#9496a3" size="100"><i>Replace([Genre],;,  / // )<//i>   <b>|<//b>   [Date] /([Country]/)<//font>

If(IsEqual([Awards], Oscar, 8),If(IsEqual([Awards], Won, 8),<font face="ToolTip01" size="150" color="#b59031">4<//font> <font face="ToolTip01" size="300" color="#FFFF00">@  <//font>, <font face="ToolTip01" size="150" color="#b59031">4<//font> <font face="ToolTip01" size="300" color="#a6a6a6">@  <//font>),)<font size="150">If(!IsEmpty([Critic Rating]),<font face="ToolTip01" size="150"><font color="#01CB73">;<//font><//font>  [Critic Rating] ,) If(!IsEmpty([Rating IMDb]),<font face="ToolTip01" size="150"><font color="##E8B708">7<//font><//font>  [Rating IMDb] ,)  If(!IsEmpty([Rotten Tomatoes]),<font face="ToolTip01" size="150"><font color="#ED1C08">8<//font><//font>  [Rotten Tomatoes]% If(isequal([Rotten Tomatoes], , 0), , If(isequal([Rotten Tomatoes], 60, 6), <font face="ToolTip01" size="150"><font color="#F13008">:<//font><//font>,<font face="ToolTip01" size="150"><font color="#0FC152">9<//font><//font>)),)<//font>
____________________________________________________________________________________________________________________
If(!IsEmpty([Description]),<font size="115">[Description]<//font>,)

If(!IsEmpty([Keywords]),/(<i>[Keywords]<//i>/),)
____________________________________________________________________________________________________________________
If(!IsEmpty([Director]),<font size="120" color="#898989"><b>DIRECTOR:    <//b><//font><font color="#ffffff"><i>Replace([Director],;,  / // )<//i><//font>
,)If(!IsEmpty([Actors]),<font size="120" color="#898989"><b>STARS:          <//b><//font><font color="#ffffff"><i>Replace(ListLimit([Actors],5),;,  / // )<//i><//font>
,)If(!IsEmpty([Screenwriter]),<font size="120" color="#898989"><b>WRITER:       <//b><//font><font color="#ffffff"><i>Replace([Screenwriter],;,  / // )<//i><//font>
,)If(!IsEmpty([Screenwriter]),<font size="120" color="#898989"><b>PRODUCER:  <//b><//font><font color="#ffffff"><i>Replace([Producer],;,  / // )<//i><//font>

,)If(!IsEmpty([Budget]),<b>BUDGET:<//b> $Math(Trunc([Budget]/1000000,1)) Million  ,)If(!IsEmpty([Gross Revenue]),//  <b>GROSS REVENUE:<//b> $Math(Trunc([Gross Revenue]/1000000,1)) Million
,)If(!IsEmpty([Awards]), <b>AWARDS:<//b> <i>[Awards]<//i>
,)






____________________________________________________________________________________________________________________
<font face="ToolTip01" size="310" color="#9496a3">If(IsEqual([Width],1920,5),¥,If(IsEqual([Width],1360,5),¤,If(IsEqual([Width],888,5),£,If(IsEqual([FPS],25,2),¢,¡))))<//font>    <font face="ToolTip01" size="300" color="#9496a3">If(Math(Below(Trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.38)),M, If(Math(Below(Trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.68)),N,If(Math(Below(Trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.80)),O,If(Math(Below(Trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.87)),P,Q))))<//font>   <font face="ToolTip01" size="300" color="#9496a3">If(IsEqual([Channels],1,2),=,If(IsEqual([Channels],2,2),>,If(IsEqual([Channels],3,2),],If(IsEqual([Channels],4,2),?,If(IsEqual([Channels],5,2),^,If(IsEqual([Channels],6,2),‐,If(IsEqual([Channels],7,2),_,‑)))))))<//font>   <font face="ToolTip01" size="300" color="#9496a3">If(IsEqual([Compression],DTS,8),# ,If(IsEqual([Compression],AC3,8),z ,If(IsEqual([Compression],PCM,8),/) ,If(IsEqual([Compression],mp3,8),+ ,If(IsEqual([Compression],flac,8),/( ,If(IsEqual([Compression],aac,8),0 ,If(IsEqual([Compression],MPEG,8),à ,If(IsEqual([Compression],Vorbis,8),/ ,,))))))))<//font><font face="FilmStudios" size="200" color="#9496a3">If(IsEqual([Notes],Criterion Collection,8),w ,)If(IsEqual([Notes],Arrow,8),q ,)<//font><font face="FilmStudios" size="250" color="#9496a3">If(IsEqual([Production Companies],Century Fox,8),e ,)If(IsEqual([Production Companies],Buena Vista,8),y ,)If(IsEqual([Production Companies],Cannon,8),u ,)If(IsEqual([Production Companies],Castle Rock,8),i ,)If(IsEqual([Production Companies],Columbia,8),o ,)If(IsEqual([Production Companies],DC,8),p ,)If(IsEqual([Production Companies],DreamWorks,8),s ,)If(IsEqual([Production Companies],Gaumont,8),d ,)If(IsEqual([Production Companies],Golden Harvest,8),g ,)If(IsEqual([Production Companies],Imagine Entertainment,8),h ,)If(IsEqual([Production Companies],Jim Henson,8),j ,)If(IsEqual([Production Companies],Lionsgate,8),k ,)If(IsEqual([Production Companies],Lorimar,8),l ,)If(IsEqual([Production Companies],Lucasfilm,8),z ,)If(IsEqual([Production Companies],Marvel,8),c ,)If(IsEqual([Production Companies],Metro,8),b ,)If(IsEqual([Production Companies],Miramax,8),n ,)If(IsEqual([Production Companies],Morgan Creek,8),1 ,)If(IsEqual([Production Companies],New Line Cinema,8),3 ,)If(IsEqual([Production Companies],New World Pictures,8),4 ,)If(IsEqual([Production Companies],Orion,8),5 ,)If(IsEqual([Production Companies],Paramount,8),6 ,)If(IsEqual([Production Companies],Pathe,8),7 ,)If(IsEqual([Production Companies],Pixar,8),8 ,)If(IsEqual([Production Companies],Regency,8),0 ,)If(IsEqual([Production Companies],RKO,8),Q ,)If(IsEqual([Production Companies],RKO,8),E ,)If(IsEqual([Production Companies],Ghibli,8),R ,)If(IsEqual([Production Companies],StudioCanal,8),T ,)If(IsEqual([Production Companies],Touchstone,8),Y ,)If(IsEqual([Production Companies],Tristar,8),U ,)If(IsEqual([Production Companies],United Artists,8),I ,)If(IsEqual([Production Companies],Universal,8),O ,)If(IsEqual([Production Companies],Walt Disney,8),A ,)If(IsEqual([Production Companies],Warner Bros.,8),S ,)If(IsEqual([Production Companies],Virgin,8),D ,)<//font>
____________________________________________________________________________________________________________________
[Filename]

If(!IsEmpty(FilePlaylists()),Playlists:
  <b>FilePlaylists()<//b>,),)
Title: Re: Ability to change fonts
Post by: RoderickGI on February 03, 2019, 03:24:45 pm
Very nice.

I've been meaning to play with this for some time, but never got to it. Maybe I will need to now that you've shown the way!
Title: Re: Ability to change fonts
Post by: Moe on February 04, 2019, 10:54:48 am
Played a little with this

Would you mind showing the code that you used to achieve this.  It would be nice to have a starting place rather than reinvent the wheel.  It looks great.
Title: Re: Ability to change fonts
Post by: lepa on February 04, 2019, 11:58:09 am
I've made some new calculated fields so it is easier to customize different media types
https://yabb.jriver.com/interact/index.php/topic,99227.0.html

[Tooltip] field calculation rule:
Code: [Select]
FirstNotEmpty([Tooltip - Movie], [Tooltip - TV Show], [Tooltip - Audio]) - You would only need [Tooltip - Movie] if you only want to customize movies

[Tooltip - Movie] field calculation rule:
Code: [Select]
If(IsEqual([Media Sub Type],Movie,1), <font size="150"><b>[Name]Delimit([Year],/),/# (#/)Delimit([Access Rating],/),/# (#/)<//b><//font> /[ <font color="#f69838">RatingStars() <//font>/]
<font size="130">TVInfo(SizeDisplay)   <b>||  <//b>If(!IsEmpty([Critic Rating]),<b>TMDb:<//b> <font color="#f69838">★[Critic Rating]<//font>,) If(!IsEmpty([Rating IMDb]),<b> | IMDb:<//b> <font color="#f69838">★[Rating IMDb]<//font>,)<b>  ||<//b>
If(!IsEmpty([Genre]),/(<i>[Genre]<//i>/)<//font>,)

<font face="DigitalSymbols" size="200">≤ If(IsEqual([MPAA Rating],G),ä,If(IsEqual([MPAA Rating],PG),ë,If(IsEqual([MPAA Rating],PG-13),ï,If(IsEqual([MPAA Rating],R),ö,If(IsEqual([MPAA Rating],NC-17),T,))))) If(IsEqual([Width],1920,5),<font face="Segoe UI" size="80"><b>⋐4K⋑<//b><//font>,If(IsEqual([Width],720,5),I,z)) ~<//font>
____________________________________________________________________________________________________________________
If(!IsEmpty([Description]),<font size="115">[Description]<//font>,)

If(!IsEmpty([Keywords]),/(<i>[Keywords]<//i>/),)
____________________________________________________________________________________________________________________
If(!IsEmpty([Director]),<b>Director:<//b> [Director]
,)If(!IsEmpty([Screenwriter]),<b>Screenwriter:<//b> [Screenwriter]
,)If(!IsEmpty([Actors]),<b>Actors:<//b> [MainActors]

,)If(!IsEmpty([Budget]),<b>Budget:<//b> $Math(trunc([Budget]/1000000,1)) Million  ,)If(!IsEmpty([Gross Revenue]),//  <b>Gross Revenue:<//b> $Math(trunc([Gross Revenue]/1000000,1)) Million
,)
____________________________________________________________________________________________________________________
[Filename]
Playlists: FilePlaylists(),)
- Separator horizontal line length works for me with font size 9.
 - tmdb data is collected with MrC's perl script. For example actors are limited to five first credited persons and rating is number without tmdb prefix.
 - [Rating IMDb] is custom field
 - Bluray / DVD icons are calculated from resolution. This I would like to change so that, tv recordings, complete bluray/dvd, rips etc would identified and icon would be accordingly.
 - TODO: Aspect Ratio and Audio type icons are for now hard coded and not calculated

Maybe we should start a new threads to share Tooltips and TheaterView views so people can get new ideas how to enhance their interface. I at least have made most of my modifications by copying and altering other peoples work.

I think that this tooltip engine could be used also to make OSD info sheet much nicer looking.
Title: Re: Ability to change fonts
Post by: Moe on February 04, 2019, 01:35:37 pm
Thank you so much!  Going to have to play around with this when I have a chance.
Title: Re: Ability to change fonts
Post by: Moe on June 17, 2019, 06:34:15 pm
I finally got around to fooling around with this.  Love it.

Here are my results

(http://moesrealm.com/img/MC/tooltip.png)

Couple of things that I think are kind of cool.  The Oscar statue is gold if the movie won an Oscar, gray if it was only nominated.  The linked digitalsymbols font was great, but it was missing a few icons that I wanted.  It didn't have an MPAA rating thing for unrated movies.  It didn't have an icon for FLAC or MP3 audio streams and a few other things as well.  I was able to add some extra symbols to that font, I've uploaded it here (http://moesrealm.com/img/MC/DigitalSymbols2.zip)

Big thanks to Lepa for the starting point and the tip for creating tooltips for the different media types!
Title: Re: Ability to change fonts
Post by: lepa on June 18, 2019, 03:28:06 am
Looking very good, Moe! Glad you decided to share and give us some new ideas and thanks for the updated font. I'm gonna look in to that. Was it hard to add new icons to a font? Did explore it bit but never actually got anything done. I was (am) missing truehd and dts-hd logos and also some other music related icons would be cool.

Found some icons from the eu-sym font (https://www.dafont.com/eu-sym.font)
Title: Re: Ability to change fonts
Post by: Moe on June 18, 2019, 10:54:46 am
What I did with the font was very easy, but I (mostly) didn't design any icons myself.  I actually took some from that eu-sym font that you linked.  I used a free program called Birdfont (https://birdfont.org/) to edit the font.  Birdfont allows you to open multiple instances at the same time.  So, what I did was open the DigitalSymbols font in one instance of Birdfont and then opened the font that I wanted to borrow other elements from in another instance of Birdfont.  From there it's as easy as copying and pasting the symbols you want from one font to another. 

I couldn't find a good existing font symbol for the FLAC logo (https://commons.wikimedia.org/wiki/File:Flac_logo_vector.svg).  I did a bit of research into making fonts and I found out that they are based off SVG files.  I found the flac logo in an SVG format and pasted that into Birdfont as a new character and it worked (kind of).  I mostly got lucky that it worked, this was the result. 

(http://moesrealm.com/img/MC/tooltip2.png)

Looks good, but what I pasted in actually had the "Free Lossless Audio Codec" text on the bottom.  Additionally, the aspect ratio image was overlapping the FLAC logo.  I fixed that by adding some spaces to the expression (ć corresponds to the FLAC icon)

Code: [Select]
if(isequal([Compression],flac,8),ć       ,
I have a few more icons I'd like to find as well.  I'd like to find one for TMDb, IMDb and I'd love to find icons for the Rotten Tomatoes fresh and rotten reviews.

Maybe as a group we can make the ultimate font for tooltips.  Lepa, since you created this thread I wonder if it would be worthwhile to change the title of the thread to something about customizing the tooltip, may get some more eyeballs on the thread? 
Title: Re: Create Custom Tooltips for Various Media Types
Post by: lepa on June 18, 2019, 02:37:31 pm
Changed title. I think that I tried BirdFont but it was so terribly slow that I deleted it already. Maybe will try it again... So for videos at least true-hd and dts-hd ma is missing. Not sure if there was an icon for AC3.

What is the easiest way to preview fonts to see all the icons in it?
Title: Re: Create Custom Tooltips for Various Media Types
Post by: Moe on June 18, 2019, 04:06:12 pm
Quote
What is the easiest way to preview fonts to see all the icons in it?

I've mostly been using birdfont, it's a bit limited, because you can't always see the entire image if it's wide, but it's been serving it's purpose for me so far.  There is also freeware that allows you to preview.  I haven't used it, but I just found this via a quick google https://us.fontviewer.de/

I've been trying to get IMDB and Rotten Tomatoes icons going and I am making good progress.  I found this site https://icomoon.io/app/#/select which makes it really easy to convert an SVG file into a font.  The site does all the work for you.  I'll share my progress later, once I have something substantial to show, but it's looking really good (I have IMDB up and running).

If you can find an SVG file for true-hd and dts-hd I'd be happy to add it to my font.

I want to make a page on my website when all is said and done that shows all the icons in the font I am creating as well as the corresponding letter to generate the icon.  Should make doing this a lot easier.
Title: Re: Create Custom Tooltips for Various Media Types
Post by: lepa on June 18, 2019, 04:50:44 pm
Few ones which are missing:
Multicolor DTS-HD MA (https://commons.wikimedia.org/wiki/File:DTS-HD-MA.svg)
https://commons.wikimedia.org/wiki/File:Dolby_TrueHD.svg
https://upload.wikimedia.org/wikipedia/commons/7/75/Opus_logo1.svg

aac?

Tried also to create mono logo with inkscape but could get it imported properly to font  ;D

EDIT: Also it would be great if you could change position of some of the logos. At least that bluray disc and also matroska icons are upper on y scale than some others at least in the original digitalsymbols/eu-symbols
Title: Re: Create Custom Tooltips for Various Media Types
Post by: Moe on June 18, 2019, 05:50:22 pm
I made some progress, check out the bottom part of this tooltip

(http://moesrealm.com/img/MC/tooltip3.png)

A couple of options for IMDB, Rotten Tomatoes logo, RT Rotten/Fresh logos, DTS HD, fixed the FLAC icon and Dolby TrueHD.

I'll get that Opus logo added and see about AAC.  What's the Mono logo? 

I found this site https://www.pngtosvg.com/ which will turn a PNG or Jpg into an SVG file.  I've been having really good luck with it.  Since fonts don't support multiple colors, if I find an image with multiple colors (the RT fresh icon is how I learned about all this as it is two colors) I open it up in Photoshop and turn it into a black and white image and then create the SVG from that image. 

Quote
Also it would be great if you could change position of some of the logos. At least that bluray disc and also matroska icons are upper on y scale than some others at least in the original digitalsymbols/eu-symbols

I haven't messed around with it much, but in Birdfont this should be very easy to do.  If you look at the icon in Birdfont you can adjust the margins (see the image below), they just drag to where you want.

(http://moesrealm.com/img/MC/bfmargins.png)

While I am thinking about it, this is my workflow. 

1. Find an image that you want to turn into a font icon. 
2. If it's multiple color I open it up in Photoshop and turn it black and white
3. Go to https://www.pngtosvg.com/ and turn the image into a SVG file
4. Go to https://icomoon.io/app/#/select and press "Import Icons" in the top left corner and then select the SVG file generated in step 3
5. Still on icomoon.io at the bottom of the page click "Generate Font" and then "Download"
6. At this point you have a font with your new icons.  I then open up my master (DigitalSymbols3) font in one instance of Birdfont and the newly created font created in step 5 in another instance of Birdfont.
7. Copy and paste from the new font into the master font in Birdfont
8. Export the update font from Birdfont and install it.
Title: Re: Create Custom Tooltips for Various Media Types
Post by: lepa on June 18, 2019, 07:50:05 pm
Very cool. I like especially yellow icon for imdb. It seems that MC just scales the font instead of using bigger size so when using bigger icons the edges gets jagged.

What's the Mono logo? 
There were icons for stereo and 5.1 surround so tried to do the mono icon in the same style.

Thanks for sharing and I think that I will try also learn font/svg stuff by replicating your workflow


EDIT: was searching for musepack logo and found at least one aac icon in jpeg format http://www7a.biglobe.ne.jp/~fortywinks/image/logo/aac.jpg
Title: Re: Create Custom Tooltips for Various Media Types
Post by: Moe on June 18, 2019, 10:36:32 pm
I'm in the middle of a big font update.  If you have any requests, now is the time to make them.

I am going to add the icons like your mono one for 5.1, 7.1, etc.  Already have your Opus one and ACC
Title: Re: Create Custom Tooltips for Various Media Types
Post by: Moe on June 19, 2019, 12:36:54 am
Okay, I think I'm ready to share the font that I've been working.  I also found a great WordPress plugin that lets you view the font very easily

Here is what I have so far, I omitted a bunch from the original DigitalSymbols font, I didn't think we needed recycling icons or 30 different compact disc icons.  There are some things that I plan on adding back in, like the TV ratings (including for the different regions) and some other odds and ends.  But I think this is a good starting place. 

I am happy to take requests as well.  It's pretty easy to add new ones once you wrap your head around it all.

Here is a sneak peek

(http://www.moesrealm.com/img/MC/font.png)

And here is the link where you can play around with it

https://moesrealm.com/MC/mc-tooltip/

There are sliders to resize and whatnot on the page as well.

(lepa, I nudged one of the Blu-Ray Disc icons down for you too)
Title: Re: Create Custom Tooltips for Various Media Types
Post by: lepa on June 19, 2019, 03:19:55 am
That looks GREAT. Thanks also for getting rid of useless icons.
Might be useful still to add some icons for file type containers like e.g. matroska/mp4/avi/mpeg/ts (ifo/iso could then be uhd/bluray/dvd) and for dimensions e.g. 4K, HD (1080p, 720p), SD.

Now I just need some time to tune tooltips  :)

I've also experimented with the TheaterView but have still not figured out how to setup logos so that they look good and integrated to other components.

I still think that it would be great if tooltip engine could be utilized to create also some fancy OSD info overlay look.
Title: Re: Create Custom Tooltips for Various Media Types
Post by: JimH on June 19, 2019, 05:41:43 am
Nice work!  Thanks for sharing!
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 19, 2019, 09:41:42 am
TMDb icon to accompany that square IMDb logo:
https://www.themoviedb.org/assets/2/v4/logos/stacked-blue-5cd9d4be255c92e26c4a6c7722a66a7b636abaf8b0f3d7b44cbb26c6dcee605d.svg
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 19, 2019, 11:07:36 am
I'll add the TMDB square one.  I am currently collecting 4K, 1080P, etc logos per your request.
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 19, 2019, 01:35:15 pm
I updated the set. I got the square TMDB icon, a bunch of file type icons (I am not crazy about them, but they work and there are a few options), SD/HD/4k etc type icons and the MKV one.  I also added a download link, which I forgot last night :)

https://moesrealm.com/MC/mc-tooltip/
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 19, 2019, 01:49:04 pm
Thanks a lot Moe! Looking pretty awesome! Not a big deal for me but as someone in the PAL land perhaps there could be also 576p which was SD resolution here.

Anyway thanks for your work on the font. Hopefully others will also pick up tool tip tuning and we get more ideas here to steal  ;D
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 19, 2019, 03:02:08 pm
Another small update.  I added a couple 576 icons.  Also fixed the sizing of some of the characters.  I was wondering why some were appearing so small, it took awhile but I figured it out.  Should anyone try and use the https://icomoon.io/app/#/select tool to convert to a font.  If you have icons of varying width, do them in separate batches.  It seems that when you do a bulk upload the program makes them all a uniform width and doesn't default to the largest.

https://moesrealm.com/MC/mc-tooltip/

EDIT:  I have now added all the rating icons that were in the original font and other odds and ends as well.  I think that's about it for now.  Happy to take requests though.
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 19, 2019, 11:28:17 pm
Here's the fruits of my labor, pretty happy with it!

(http://www.moesrealm.com/img/MC/tooltip4.png)

Now to do TV shows and music  ;D
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 20, 2019, 02:49:54 am
Not bad (Meaning very good in finnish ;D )

One idea what I get from looking the image is that have you tried to put that oscar statue in the same row as ratings? It would perhaps catch eye better there and also logically groups to ratings quite well. Anyway just an idea.

I'm not so satisfied to my own template at this time so nothing to show for now...
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: BryanC on June 20, 2019, 06:29:28 am
I'd love to see these icons integrated into MC by default, they look great!
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 20, 2019, 08:26:04 am
Excellent idea lepa!  I may brighten the font a bit, but this does look much better.

(http://www.moesrealm.com/img/MC/tooltip5.png)
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 20, 2019, 12:43:56 pm
I'd love to see these icons integrated into MC by default, they look great!
There might be some copyright issues when companies are involved

And Moe, I might steal your Iron Man icon-row-flow  ;D Is "oscars" text one character or some different font?
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 20, 2019, 01:28:45 pm
The "Oscars" is a new symbol in the font (It corresponds to the number 4).  I just updated the site so you should see it on there now.  I was running out the door to get to work so I didn't have time this morning.

https://moesrealm.com/MC/ 
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: vairulez on June 21, 2019, 01:24:12 am
I agree with BrianC this should be integrated by default in MC especially in theaterview
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 21, 2019, 11:57:14 pm
I received a pm asking me for the final expression for how I achieved what I am doing, so instead of replying privately, I figured it was best if I just shared it with everyone. 

It may all look a bit complicated but I really don't think it's that bad, you just kind of have to wrap your head around it.  It also helps if you have a decent grasp of expressions.

I ended up making a few new custom fields to make things easier for me.  I figured it was easier to break the tooltip into little chunks and then piece it all together.  I've made a change or two since the last screenshot, so here is how it currently looks and the directions provided should get you this as a result.

(http://moesrealm.com/img/MC/tooltip6.png)

I should also preface this post with the fact that I am metadata junkie and I am very meticulous when it comes to tagging my media.  I use the built in "Get Movie & TV Info" function, the amazing MCUtils (https://yabb.jriver.com/interact/index.php?topic=100449.0) (created by the much missed MrC) and zybex's MCRatings (https://yabb.jriver.com/interact/index.php/topic,119792.0.html) to gather data.

I should also add that I heavily used lepa's code (https://yabb.jriver.com/interact/index.php/topic,119385.msg825600.html#msg825600) as a starting point and a lot of what I have done would not be possible without his work (thank you!).  I also highly suggest creating separate fields for different media type tooltips and then use this expression in the actual tooltip field.

Code: [Select]
FirstNotEmpty([Tooltip - Movie], [Tooltip - TV Show], [Tooltip - Audio])
Here is the final code, placed in the [Tooltip - Movie] field referenced above, that I used to create my tooltip.

Code: [Select]
If(IsEqual([Media Sub Type],Movie,1),<font size="200"><b>[Name]<//b><//font>
If(!IsEmpty([Tag Line]),<font size="150"><i>[Tag Line]<//i><//font>,)

 If(!IsEmpty([Oscar Winner]),[Oscar Winner],)   <font size="150">If(!IsEmpty([TMdbRating]),<font face="ToolTip01" size="150"><font color="#01CB73">;<//font><//font>  [TMdbRating] ,) If(!IsEmpty([IMDb Rating]),<font face="ToolTip01" size="150"><font color="##E8B708">7<//font><//font>  [IMDb Rating] ,)  If(!IsEmpty([Rotten Tomatoes]),<font face="ToolTip01" size="150"><font color="#ED1C08">8<//font><//font>  [Rotten Tomatoes]% [RT],)<//font>   

 If(!IsEmpty([MPAA]),[MPAA],)  [Audio_Stream]   [Speakers]   [Resolution]   [Aspect_Ratio] 

  <font size="150" color="#80C0C0"><b>[Duration] - [Genre] - [Year]<//b><//font>,)

<font size="150"><b><i><u>Synopsis                                                                                                 <//b><//i><//u><//font>
If(!IsEmpty([Synopsis]),<font size="115">[Synopsis]<//font>,)

<font size="150"><b><i><u>Credits                                                                                                    <//b><//i><//u><//font>
<font size="115">If(!IsEmpty([Director]),<b>Director:<//b> [Director]
,)If(!IsEmpty([Screenwriter]),<b>Screenwriter:<//b> [Screenwriter]
,)If(!IsEmpty([Producer]),<b>Producer:<//b> [Producer]

,)If(!IsEmpty([TMDB Actors]),<b>Cast:<//b> [TMDB Actors Short],)<//font>
If(!IsEmpty([Bonus_Section]),

<font size="150"><b><i><u>Bonus//Other                                                                                          <//b><//i><//u><//font>
<font size="115">If(!IsEmpty([Commentary]),<b>Commentary:<//b> [Commentary],)
If(!IsEmpty([Collections]),<b>Collections:<//b> [Collections],)
If(!IsEmpty([Movie Series]),<b>Movie Series:<//b> [Movie Series],)<//font>,)

If(!IsEmpty([Rifftrax]),
<font size="150"><b><i><u>Rifftrax                                                                                              <//b><//i><//u><//font>
<font size="115"><b>Rifftrax:<//b> [Rifftrax],)<//font>
,)

Lets start with the title of the movie and the tagline, this comes from this bit of code

Code: [Select]
<font size="200"><b>[Name]<//b><//font>
If(!IsEmpty([Tag Line]),<font size="150"><i>[Tag Line]<//i><//font>,)


I think this should be pretty self explanatory.  If it's not, ask and I will explain.  FYI, I am getting the tagline via the TMDB scriptlet in MCUtils (https://yabb.jriver.com/interact/index.php?topic=100449.0).


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------



The next part is all of the awards and ratings for the movie, it's this line of code.

Code: [Select]
If(!IsEmpty([Oscar Winner]),[Oscar Winner],)   <font size="150">If(!IsEmpty([Critic Rating]),<font face="ToolTip01" size="150"><font color="#01CB73">;<//font><//font>  [TMdbRating] ,) If(!IsEmpty([IMDb Rating]),<font face="ToolTip01" size="150"><font color="##E8B708">7<//font><//font>  [IMDb Rating] ,)  If(!IsEmpty([Rotten Tomatoes]),<font face="ToolTip01" size="150"><font color="#ED1C08">8<//font><//font>  [Rotten Tomatoes]% [RT],)<//font>
This part contains my first my custom field [Oscar winner], it looks like this

Code: [Select]
if(isequal([Awards], Oscar, 8), if(isequal([Awards], Won, 8), <font face="ToolTip01" size="150" color="#b59031">4<//font> <font face="ToolTip01" size="350" color="#FFFF00">@<//font>, <font face="ToolTip01" size="150" color="#b59031">4<//font> <font face="ToolTip01" size="350" color="#a6a6a6">@<//font>),)

I'll try and explain this as briefly as I can.  zybex's MCRatings (https://yabb.jriver.com/interact/index.php/topic,119792.0.html) tool returns results like this for movies that have won or been nominated for an Academy Award

Nominated for 1 Oscar. Another 7 wins & 10 nominations.
Won 3 Oscars. Another 235 wins & 326 nominations.

Basically, if the movie won or was nominated for an Oscar, the word Oscar will appear in the [Awards] field. So the first thing I do is look for the word Oscar

Code: [Select]
if(isequal([Awards], Oscar, 8),
I then look to see if the field [Awards]contains the word "Won", if it does I then tell it to return

Code: [Select]
<font face="ToolTip01" size="150" color="#b59031">4<//font> <font face="ToolTip01" size="350" color="#FFFF00">@<//font>
Which is just saying, use my custom font, called ToolTip01 and return the number 4 (which corresponds to the gold word Oscars symbol in my custom font) at a size of 150 and then return, at a size of 350, the @ symbol (which corresponds to the Oscar statue symbol in my custom font) with a color value of #FFFF00, which makes the statue gold.

If the Awards field does not contain the word "Won" then it returns this code

Code: [Select]
<font face="ToolTip01" size="150" color="#b59031">4<//font> <font face="ToolTip01" size="350" color="#a6a6a6">@<//font>)
Which is pretty much identical to the above, but the color has changed from #FFFF00 to #a6a6a6a to make the statue gray.  So, a gold statue means that the movie won an Oscar (since the word "Won" appears in the [Awards] field and a gray statue means it was only nominated.

If neither the word Oscar or Won appears in the [Awards] field then I have the expression return nothing. 

I sure hope this makes sense, it's a lot harder for me to explain than it is for me to do  ;D


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------


The next part is

Code: [Select]
<font size="150">If(!IsEmpty([TMdbRating]),<font face="ToolTip01" size="150"><font color="#01CB73">;<//font><//font>  [TMdbRating] ,) If(!IsEmpty([IMDb Rating]),<font face="ToolTip01" size="150"><font color="##E8B708">7<//font><//font>  [IMDb Rating] ,)
Which should be pretty self explanatory, the only thing that could be confusing is why I have it returning a ";" and "7".  These correspond to the TMDB and IMDB icons in my custom font.

The last bit of code in the Ratings/awards section pertains to Rotten Tomatoes, it looks like this

Code: [Select]
If(!IsEmpty([Rotten Tomatoes]),<font face="ToolTip01" size="150"><font color="#ED1C08">8<//font><//font>  [Rotten Tomatoes]% [RT],)<//font>
This is also referencing another custom field that I created called [RT], it looks like this

Code: [Select]
if(isequal([Rotten Tomatoes], , 0), , if(isequal([Rotten Tomatoes], 60, 6), <font face="ToolTip01" size="150"><font color="#F13008">:<//font><//font>,<font face="ToolTip01" size="150"><font color="#0FC152">9<//font><//font>))
Basically, how Rotten Tomatoes works, is if a movie has a rating of 60% or above it's considered "Fresh" if it's 59% or lower, it's considered rotten.  This bit of code displays either the tomato icon, (for fresh movies), which corresponds to the : in my custom font, or the rotten icon (for rotten movies) which corresponds to the 9 in my font.  I am getting the Rotten Tomatoe's rating from MCRatings.


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Next up we have the MPAA, sound format, channels, resolution and aspect ratio.  This is all done with this bit of code

Code: [Select]
If(!IsEmpty([MPAA]),[MPAA],)  [Audio_Stream]   [Speakers]   [Resolution]   [Aspect_Ratio]
all of these are custom fields that I created.  I am not going to explain any of them, by now I am hoping you have a grasp of how all this works.  If I am just confusing the hell out of you, I apologize and feel free to berate me and ask me questions.  Anyway, here are the expressions used for each of these fields.

MPAA

Code: [Select]
<font face="ToolTip01" size="300">If(IsEqual([MPAA Rating],G),G,If(IsEqual([MPAA Rating],PG),H,If(IsEqual([MPAA Rating],PG-13),I,If(IsEqual([MPAA Rating],R),J,If(IsEqual([MPAA Rating],Unrated),L,If(IsEqual([MPAA Rating],NC-17),K,))))))<//font>
Audio_Stream

Code: [Select]
<font face="ToolTip01" size="300">if(isequal([Compression],DTS,8),#,if(isequal([Compression],AC3,8),z,if(isequal([Compression],PCM,8),/),if(isequal([Compression],mp3,8),+,if(isequal([Compression],flac,8),/(,if(isequal([Compression],aac,8),0,if(isequal([Compression],MPEG,8),à,if(isequal([Compression],Vorbis,8),/,,))))))))<//font>
[Speakers]

Code: [Select]
<font face="ToolTip01" size="300">if(isequal([Channels],1,2),=,if(isequal([Channels],2,2),>,if(isequal([Channels],3,2),],if(isequal([Channels],4,2),?,if(isequal([Channels],5,2),^,if(isequal([Channels],6,2),‐,if(isequal([Channels],7,2),_,‑)))))))<//font>
 [Resolution] (this one I use a bit of fuzzy logic on, it could probably be improved)
Code: [Select]
<font face="ToolTip01" size="300">If(IsEqual([Width],1920,5),¥,If(IsEqual([Width],1360,5),¤,If(IsEqual([Width],888,5),£,¡)))<//font>
[Aspect_Ratio] (A bit more fuzzy logic here  ::) )
Code: [Select]
<font face="ToolTip01" size="300">ifelse(isrange([AR2,0],1.00-1.50),M,isrange([AR2,0],1.51-1.69),N,isrange([AR2,0],1.70-1.95),P,1,Q)<//font>

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------


The rest of the code

Code: [Select]
  <font size="150" color="#80C0C0"><b>[Duration] - [Genre] - [Year]<//b><//font>,)

<font size="150"><b><i><u>Synopsis                                                                                                 <//b><//i><//u><//font>
If(!IsEmpty([Synopsis]),<font size="115">[Synopsis]<//font>,)

<font size="150"><b><i><u>Credits                                                                                                    <//b><//i><//u><//font>
<font size="115">If(!IsEmpty([Director]),<b>Director:<//b> [Director]
,)If(!IsEmpty([Screenwriter]),<b>Screenwriter:<//b> [Screenwriter]
,)If(!IsEmpty([Producer]),<b>Producer:<//b> [Producer]

,)If(!IsEmpty([TMDB Actors]),<b>Cast:<//b> [TMDB Actors Short],)<//font>
If(!IsEmpty([Bonus_Section]),

<font size="150"><b><i><u>Bonus//Other                                                                                          <//b><//i><//u><//font>
<font size="115">If(!IsEmpty([Commentary]),<b>Commentary:<//b> [Commentary],)
If(!IsEmpty([Collections]),<b>Collections:<//b> [Collections],)
If(!IsEmpty([Movie Series]),<b>Movie Series:<//b> [Movie Series],)<//font>,)

If(!IsEmpty([Rifftrax]),
<font size="150"><b><i><u>Rifftrax                                                                                              <//b><//i><//u><//font>
<font size="115"><b>Rifftrax:<//b> [Rifftrax],)<//font>

Should be pretty self explanatory, as it's pretty straight forward.

Ugh, reading this post after writing it I feel like I have just muddied the waters.  Hopefully it makes sense, I have end of the week brain so please forgive me.  I am happy to clarify any of the above if needed.

I can see people getting confused with how the number 7 returns the imbd icon.  I highly recommend going to https://moesrealm.com/MC/ and typing in some letters/numbers and seeing what is happening.  Or better yet, double click the very first icon, which is the G rating, so that it turns blue and then copy it.  Once it's copied paste it into notepad or something and see what happens (spoiler alert, it will return the letter "A") as I think that will help understand what's going on.

Okay, I've been working on this post for about 2 hours, time to call it quits.  I hope it helped more than it hurt! 
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 22, 2019, 12:49:06 pm
I think that you need to encapsulate whole [Tooltip - Movie] with [Media Sub Type]=Movie in order to get this tooltip only for the movies. Otherwise it just select first one i.e. Tooltip Movie for the all files. You probably have it yourself but just note for others.

So [Tooltip - Movie] expression would start with
Code: [Select]
If(IsEqual([Media Sub Type],Movie,1),
and end with
Code: [Select]
,)
Whole thing
If(IsEqual([Media Sub Type],Movie,1),YOUR EXPRESSION HERE,)


EDIT:
Quote
If neither the word Oscar or Won appears in the [Awards] field then I have the expression return the field [Altitude].  There may be a better way to do this, but I know that the Altitude field will be empty so it will return nothing.  I am happy to get an education here for a better way to do this.
You can just leave it empty:
Code: [Select]
If(IsEqual([Awards], Oscar, 8), If(IsEqual([Awards], Won, 8), <font face="ToolTip01" size="150" color="#b59031">4<//font> <font face="ToolTip01" size="350" color="#FFFF00">@<//font>, <font face="ToolTip01" size="150" color="#b59031">4<//font> <font face="ToolTip01" size="350" color="#a6a6a6">@<//font>),)
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 22, 2019, 01:22:11 pm
Oops, you were totally right.  I have edited the post.

I had another idea last night that I am working on.  I should have something to show shortly :)

Quote
You can just leave it empty:

I could have sworn I tried this, repeatedly, but I couldn't get it to work.  I just tried again and it works.  Thanks :)  Edited the above as well.
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 22, 2019, 01:37:20 pm
I could have sworn I tried this, repeatedly, but I couldn't get it to work.  I just tried again and it works.  Thanks :)  Edited the above as well.
Maybe you had deleted also the comma.  Happened to me...
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: MGD_King on June 22, 2019, 01:38:22 pm
Whole thing
If(IsEqual([Media Sub Type],Movie,1),YOUR EXPRESSION HERE,)
Lepa, can you provide a little more clarity for this? I have two custom fields, [Tooltip - Audio] and [Tooltip - Movie], but what do I put in your expression to make it work on each custom field? And that expression you provided goes into the [Tooltip] custom field, correct?
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 22, 2019, 01:51:06 pm
Quote
Lepa, can you provide a little more clarity for this? I have two custom fields, [Tooltip - Audio] and [Tooltip - Movie], but what do I put in your expression to make it work on each custom field? And that expression you provided goes into the [Tooltip] custom field, correct?

You're going to want to wrap your individual Tooltip expressions in this bit of code.  So for example, the beginning of your Movie Toop tip field will have

Code: [Select]
If(IsEqual([Media Sub Type],Movie,1),YOUR EXPRESSION HERE,)
The beginning of your Tooltip Audio field will have

Code: [Select]
If(IsEqual([Media Sub Type],Audio,1),YOUR EXPRESSION HERE,)
The YOUR EXPRESSION HERE part is where you're going to want to put the view specific details. 
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 22, 2019, 01:53:38 pm
Lepa, can you provide a little more clarity for this? I have two custom fields, [Tooltip - Audio] and [Tooltip - Movie], but what do I put in your expression to make it work on each custom field? And that expression you provided goes into the [Tooltip] custom field, correct?
So if you want to have custom tooltip for movie, tv show and audio then you would make calculated field [Tooltip]
Code: [Select]
FirstNotEmpty([Tooltip - Movie], [Tooltip - TV Show], [Tooltip - Audio])
Then you would make 3 more calculated fields [Tooltip - Movie], [Tooltip - TV Show], [Tooltip - Audio]

[Tootip - Movie] calculated Expression would be for example like in second picture.. or starts like that

So the [Tooltip] calculated field works like this:
- In this [Tooltip - Movie] You are only inserting metadata for [Tooltip] field if file in question is movie. if it is not then nothing is written from this calculated field.

- Then it moves to [Tooltip - TV Show] and same thing will happen. in the start of [Tooltip - TV Show] calculated field expression we'll put if decision that only write these if subtype is tv show.... and so on. If nothing fits then default tooltip should be visible

More discussion about custom tooltips can be found in here (https://yabb.jriver.com/interact/index.php/topic,99227.0.html)

EDIT: Okay I answered to wrong question but luckily Moe already explained the right thing....
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: MGD_King on June 22, 2019, 02:05:15 pm
EDIT: Okay I answered to wrong question but luckily Moe already explained the right thing....

Figured it out!!! Thanks!!! This works great!! Now I can customize each custom field!

Thank you, and Moe both for doing all the heavy lifting on this! This is a really awesome feature of MC that I wasn't aware of, and quite honestly, was a little intimidated by it. 
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 22, 2019, 03:38:39 pm
Okay, what do you all think about this?  I felt like Genre could be spiced up a bit, so this is what I've come up with so far.  I've only really done Horror

(http://www.moesrealm.com/img/MC/Horror-tooltip.png)

Here is one of the icons with all the other data

(http://www.moesrealm.com/img/MC/Horror-tooltip2.png)

I have a bunch of other icons that I can use for other genres as well.  You can see what I've got so far here https://moesrealm.com/MC/genre-icons/ just a word of warning.  There are some comically simply adult ones there, so if you are incredibly easy offended, then don't click that link.

Also, I stick to a very select set of Genres, they are:

Action/Adventure
Adult
Anime
Comedy
Documentary
Drama
Fantasy
Horror
Musical
Science Fiction
Short
Thriller
Western

So, at least in the beginning I am going to focus on those.  If enough people are interested and there is demand for other Genres, I will try and accommodate.

I could also use some help.  I can't think of anything good to represent Drama.  I have the drama mask (https://static.thenounproject.com/png/861451-200.png) Icon but that's about it, suggestions very welcome.  Could also use suggestions for Documentary and for Shorts.
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 22, 2019, 04:13:14 pm
Since I made all the different horror icons, I didn't want to just choose one.  So, I figured out a way to return a random one.

Here is how I did it.  I made a new field called [Random] with the following value.

Code: [Select]
right([Duration], 1)
All this does is return the last number of the movies duration time.  So if a movie is 1:25:44 it returns the number 4.  I figured this was a quick and easy way to generate a random number.

I then made another new field called [Horror Icon] with the following value

Code: [Select]
<font face="Horror" size="150">if(isequal([Genre],Horror,1),
if(isequal([Random],1,1),A,
if(isequal([Random],2,1),C,
if(isequal([Random],3,1),D,
if(isequal([Random],4,1),H,
if(isequal([Random],5,1),I,
if(isequal([Random],6,1),J,
if(isequal([Random],7,1),K,
if(isequal([Random],8,1),L,
if(isequal([Random],9,1),M,N))))))))),)<//font>

Here is the end result in theater view


(http://www.moesrealm.com/img/MC/Horror-random.png)
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 22, 2019, 04:17:26 pm
I have a bunch of other icons that I can use for other genres as well.  You can see what I've got so far here https://moesrealm.com/MC/genre-icons/ just a word of warning.  There are some comically simply adult ones there, so if you are incredibly easy offended, then don't click that link.
I only guessed those genres from the icons  ;D
Seriously though it might be hard to make genre icons easily understandable for casual viewer without words. That said I'm curious what you can make with genre icons.  :) ....oh cool with the random icon... and it seems you also have genre as a word in there..

Tried to do something with TheaterView. Not yet sure how to integrate technical icons as so far I have failed miserably to get them look as a part of whole structure. They always seem to look like outsiders. Anyway here is a picture to which I'll settle it for the night
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 22, 2019, 04:39:32 pm
I think what you have so far looks awesome, nice work.
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 22, 2019, 04:49:52 pm
I think what you have so far looks awesome, nice work.
Thanks I kind of like too. Basically it's your rating row  ;)
Second row is borrowed from imbd. Realized from screenshot that I now have country two times so replaced the other one with writer and added keyword list. Tomorrow I'll try to figure out those technical data icons but now when there already is some eye candy represented by the ratings row it already looks quite nice
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: thorsten on June 23, 2019, 01:09:15 pm
Hi everyone,

thanks for your impressive work!

I, as a newbee to this area of MC, managed to get the tag- fields filled.

However, 2 things don't work:
1 - the custom logos aren't shown. Where do I have to copy the MCTooltip fond file? I copied it to programs\MC25\ but it seems it must be another folder...


2- despite the [Tooltips - Movie] field is filled correctly, it doesn't appear to the hovering mouse.

I just restarted the PC, but that didn't help.

Any suggestions?
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 23, 2019, 01:27:07 pm
1 - the custom logos aren't shown. Where do I have to copy the MCTooltip fond file? I copied it to programs\MC25\ but it seems it must be another folder...
You need to install font in Windows. Right click on explorer and then select install
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 23, 2019, 01:32:23 pm
Lepa is correct that you will have to install the font to windows.  If that still doesn't work, you may have to completely shutdown MC and restart it.
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: thorsten on June 23, 2019, 02:57:56 pm
Thanks Lepa, that was my first font installation ever  ;D

And I got the solution for my second point: I just created tags in the tag editor (as shown on my screeenshots), but they must be in library (extras -> options -> library). ::)
Now it is working! Time to get my tags optimized like Lepa described.


Thanks again for the very good documentation!  :)
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 23, 2019, 11:30:33 pm
I finished my Genre Icons font, if anyone is interested.

https://moesrealm.com/MC/genre-icons/
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: JimH on June 24, 2019, 06:19:29 am
Nice work!  Thanks!
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: eddyshere on June 24, 2019, 09:40:14 am
That is really excellent !! thanks. Am starting to play with it. It's great !
Hopefully it will bring some JRiver development Spotlight back to theaterview going forward
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 24, 2019, 09:42:18 am
Thanks Moe! Have you already utilized the new genre icons?
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 24, 2019, 10:05:51 am
Quote
Thanks Moe! Have you already utilized the new genre icons?

Not completely yet, it's in process.  It's my goal for the day to at least get it most of the way there.
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 24, 2019, 01:59:56 pm
Okay, I've got my Genre Icons incorporated into tooltip, this is how it currently looks

(http://moesrealm.com/img/MC/tooltip7.png)

The Genre Icon has a bit of randomness built into it based off the movie's duration via a custom field I created called [Random] (see this post (https://yabb.jriver.com/interact/index.php/topic,119385.msg837546.html#msg837546) for the code)

I like it, but I am a little afraid that the whole top section is looking a bit too busy.  Thoughts?  What I'd love to be able to do is move one of the rows either below or above the image.  Here's a Photoshop mockup job if @Matt is listening :)

(http://moesrealm.com/img/MC/tooltip8.png)

(http://moesrealm.com/img/MC/tooltip9.png)

But I digress, since neither of those is currently possible.

To save anyone who is interested in doing what I did, there are quite a few moving pieces, I'll try and break it down as simply as I can.

In my [Movie tooltip] custom field, the line that has duration/genre/year looks like this.

Code: [Select]
  <font size="150" color="#80C0C0"><b>[Duration]     [Genre Icon]      [Year]<//b><//font>
I decided to break each genre into it's own separate field, because it would otherwise be a very long, complicated expression.  Also, breaking it into smaller chunks it will be easier for me to make changes, should I ever decide to.

I made an Icon field for each Genre,  I named them as follows (I'll share the value of each of these at the end, that's where all the heavy lifting takes place).

[Action Icon]
[Adult Icon]
[Anime Icon]
[Comedy Icon]
[Documentary Icon]
[Drama Icon]
[Fantasy Icon]
[Horror Icon]
[Music Icon]
[Musical Icon]
[SciFi Icon]
[Short Icon]
[Thriller Icon]
[Western Icon]

So, the above mentioned [Genre Icon] has the following value

Code: [Select]
<font size="150">if(isequal([Genre],Action//Adventure,8),[Action Icon],if(isequal([Genre],Adult,8),[Adult Icon],if(isequal([Genre],Anime,8),[Anime Icon],if(isequal([Genre],Comedy,8),[Comedy Icon],if(isequal([Genre],Documentary,8),[Documentary Icon],if(isequal([Genre],Drama,8),[Drama Icon],if(isequal([Genre],Fantasy,8),[Fantasy Icon],if(isequal([Genre],Horror,8),[Horror Icon],if(isequal([Genre],Music,8),[Music Icon],if(isequal([Genre],Musical,8),[Musical Icon],if(isequal([Genre],Science Fiction,8),[SciFi Icon],if(isequal([Genre],Short,8),[Short Icon],if(isequal([Genre],Thriller,8), [Thriller Icon],[Western Icon])))))))))))))<//font>
Here is the value of the individual Genre Icon fields.  These are "tricky" because you have to figure out which icon corresponds to which character in the font (which isn't hard, just a bit tedious).  Anyway, here are all the field values.

[Action Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Action//Adventure,1),if(isequal([Random],1,1),//,if(isequal([Random],2,1),0,if(isequal([Random],3,1),1,if(isequal([Random],4,1),2,
if(isequal([Random],5,1),3,if(isequal([Random],6,1),4,if(isequal([Random],7,1),5,if(isequal([Random],8,1),6,if(isequal([Random],9,1),7,8))))))))),)<//font>

[Adult Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Adult,1),if(isequal([Random],1,1),/[,if(isequal([Random],2,1),/\,if(isequal([Random],3,1),/],if(isequal([Random],4,1),^,if(isequal([Random],5,1),_,if(isequal([Random],6,1),`,if(isequal([Random],7,1),/],if(isequal([Random],8,1),/[,if(isequal([Random],9,1),/\,_))))))))),)<//font>
[Anime Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Anime,1),if(isequal([Random],1,1),y,if(isequal([Random],2,1),z,if(isequal([Random],3,1),’,if(isequal([Random],4,1),“,if(isequal([Random],5,1),”,if(isequal([Random],6,1),y,if(isequal([Random],7,1),z,if(isequal([Random],8,1),’,if(isequal([Random],9,1),“,”))))))))),)<//font>
[Comedy Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Comedy,1),if(isequal([Random],1,1),9,if(isequal([Random],2,1),:,if(isequal([Random],3,1),;,if(isequal([Random],4,1),<,if(isequal([Random],5,1),=,if(isequal([Random],6,1),>,if(isequal([Random],7,1),?,if(isequal([Random],8,1),‐,if(isequal([Random],9,1),9,:))))))))),)<//font>
[Documentary Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Documentary,1),if(isequal([Random],1,1),!,if(isequal([Random],2,1),",if(isequal([Random],3,1),#,if(isequal([Random],4,1),$,if(isequal([Random],5,1),!,if(isequal([Random],6,1),",if(isequal([Random],7,1),#,if(isequal([Random],8,1),!,if(isequal([Random],9,1),!,#))))))))),)<//font>
[Drama Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Drama,1),if(isequal([Random],1,1),%,if(isequal([Random],2,1),&,if(isequal([Random],3,1),',if(isequal([Random],4,1),/(,if(isequal([Random],5,1),/),if(isequal([Random],6,1),*,if(isequal([Random],7,1),+,if(isequal([Random],8,1),/,,if(isequal([Random],9,1),-,.))))))))),)<//font>
[Fantasy Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Fantasy,1),if(isequal([Random],1,1),U,if(isequal([Random],2,1),V,if(isequal([Random],3,1),W,if(isequal([Random],4,1),X,if(isequal([Random],5,1),Y,if(isequal([Random],6,1),Z,if(isequal([Random],7,1),a,if(isequal([Random],8,1),b,if(isequal([Random],9,1),c,d))))))))),)<//font>
[Horror Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Horror,1),if(isequal([Random],1,1),A,if(isequal([Random],2,1),B,if(isequal([Random],3,1),C,if(isequal([Random],4,1),D,if(isequal([Random],5,1),E,if(isequal([Random],6,1),F,if(isequal([Random],7,1),G,if(isequal([Random],8,1),H,if(isequal([Random],9,1),I,J))))))))),)<//font>
[Music Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Music,1),if(isequal([Random],1,1),‑,if(isequal([Random],2,1),‒,if(isequal([Random],3,1),–,if(isequal([Random],4,1),–,if(isequal([Random],5,1),‑,if(isequal([Random],6,1),‒,if(isequal([Random],7,1),–,if(isequal([Random],8,1),‑,if(isequal([Random],9,1),‑,‒))))))))),)<//font>
[Musical Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Musical,1),if(isequal([Random],1,1),‑,if(isequal([Random],2,1),‒,if(isequal([Random],3,1),–,if(isequal([Random],4,1),–,if(isequal([Random],5,1),‑,if(isequal([Random],6,1),‒,if(isequal([Random],7,1),–,if(isequal([Random],8,1),‑,if(isequal([Random],9,1),‑,‒))))))))),)<//font>
Music and Musical share the same icons, I didn't bother making separate ones.

[SciFi Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Science Fiction,1),if(isequal([Random],1,1),o,if(isequal([Random],2,1),p,if(isequal([Random],3,1),q,if(isequal([Random],4,1),r,if(isequal([Random],5,1),s,if(isequal([Random],6,1),t,if(isequal([Random],7,1),u,if(isequal([Random],8,1),v,if(isequal([Random],9,1),w,x))))))))),)<//font>
[Short Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Short,1),if(isequal([Random],1,1),—,if(isequal([Random],2,1),—,if(isequal([Random],3,1),—,if(isequal([Random],4,1),—,if(isequal([Random],5,1),—,if(isequal([Random],6,1),—,if(isequal([Random],7,1),—,if(isequal([Random],8,1),—,if(isequal([Random],9,1),—,—))))))))),)<//font>
[Thriller Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Thriller,1),if(isequal([Random],1,1),K,if(isequal([Random],2,1),L,if(isequal([Random],3,1),M,if(isequal([Random],4,1),N,if(isequal([Random],5,1),O,if(isequal([Random],6,1),P,if(isequal([Random],7,1),Q,if(isequal([Random],8,1),R,if(isequal([Random],9,1),L,P))))))))),)<//font>
[Western Icon]
Code: [Select]
<font face="GenreIcons01" size="150">if(isequal([Genre],Western,1),if(isequal([Random],1,1),e,if(isequal([Random],2,1),f,if(isequal([Random],3,1),g,if(isequal([Random],4,1),h,if(isequal([Random],5,1),i,if(isequal([Random],6,1),j,if(isequal([Random],7,1),k,if(isequal([Random],8,1),l,if(isequal([Random],9,1),m,n))))))))),)<//font>
And that's about it.

If enough people like this but want some more Genre Icons made, I may be able to be persuaded if there is enough demand :)
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: xpto on June 24, 2019, 04:01:00 pm
Hi Moe and thanks for all the nice work!

I use Size() instead of [Duration] for displaying Movie Runtime information.

For Atomic Blonde:

With [Duration] = "1:54:43"

With Size() = "1 hour 55 minutes"

It's certainly a matter of preference (and everyone has different preferences) but I find it more readable to my (old) eyes.

Keep up the good work!

xpto
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: RoderickGI on June 24, 2019, 06:50:00 pm
I like the full height image on the left.

I would stick with the layout in the first image of your last post Moe, but move the viewing Rating (R), Dolby Digitial, etc. down below the text, much like it is on Blu-ray covers. It is down the bottom on those cover because it usually isn't what people want to see first. I would also probably put the Duration, Genre, and Year immediately below the Title and Sub-title, and the movie rating (TheMovieDB, IMDB, etc.) below that. But anyone could tweak the layout to their desires.

I'm not totally convinced with your Genre icons either, particularly at the size you are using in that image. Icons are supposed to be used to impart information quickly without the need to read the words, so they don't need to be big, once they become recognisable. Also, with MC, it is easy to have a VIew by Genre, so unless you are just browsing all movies, you don't need to read the Genre as you go.

I was also concerned about the explosion of new Library fields that the solution relied upon. It would be nice to keep that to a minimum, or even none, so that all users could implement it quickly. Perhaps not none, as the four tooltip fields are required for an easy solution.

But excellent work all around. I had a plan to do some of this at some stage, but have never made time for it. Kudos to both Lepa and Moe.
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 24, 2019, 09:19:18 pm
I actually had already done a lot of what you suggested, it does look better.  This is what I currently have.

(http://moesrealm.com/img/MC/tooltip10.png)

Quote
I'm not totally convinced with your Genre icons either, particularly at the size you are using in that image.

Easy enough to change the size or not use them at all, I think they are kind of fun.

You could achieve what I did without really adding any new fields.  The expression in your tooltip would be about a mile long and very hard to work with (In my opinion).  I find it easier to break things up into smaller, more manageable pieces.  Your mileage may vary.
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: RoderickGI on June 24, 2019, 09:44:07 pm
Yep. Anything is possible.

Thanks for sharing everything. I might have to have a go at it all at some time.  8)
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 28, 2019, 03:18:19 pm
Been trying to do with the movie template and I think that I settle to this for  a while. I'm not completely satisfied with the technical data icon stuff row as I can't seem to find perfect place where to put those but it's not too bad either.

For anyone who might be interested to try himself here couple of readily calculated templates to get you going. I'm using font provided by Moe (Link somewhere in this thread).

Get icon for aspect ratio. Checks for (2:35,1:85,1:78, 1:66 and 1:33)
Code: [Select]
<font face="ToolTip01" size="180" color="#9496a3">If(Math(below(trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.38)),M, If(Math(below(trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.68)),N,If(Math(below(trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.80)),O,If(Math(below(trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.87)),P,Q))))<//font>
Get icon for definition. (4K, 1080p, 720p, 576p and 480)
Code: [Select]
<font face="ToolTip01" size="200" color="#9496a3">If(IsEqual([Width],1920,5),¥,If(IsEqual([Width],1360,5),¤,If(IsEqual([Width],888,5),£,If(IsEqual([FPS],25,2),¢,¡))))<//font>
Get icon for file type. (mkv, dvd and blu-ray)
Code: [Select]
<font face="ToolTip01" size="170" color="#9496a3">If(IsEqual([File Type],mkv),î,If(IsEqual([File Type],ifo),W,If(IsEqual([File Type],bdmv),U,)))<//font>
Get icon for video compression (divx, hevc, h264, xvid, vc-1, mpeg2, mpeg1, mpeg4)
Code: [Select]
<font face="ToolTip01" size="150" color="#9496a3">If(IsEqual([Compression],div,8),ú,If(IsEqual([Compression],hevc,8),ü,If(IsEqual([Compression],h264,8),û,If(IsEqual([Compression],xvid,8),ă,If(IsEqual([Compression], vc-1,8),Ā,If(IsEqual([Compression],mpeg2,8),þ,If(IsEqual([Compression],mpeg1,8),ý,If(IsEqual([Compression],mpeg4),ÿ,))))))))<//font>
Get icon for audio compression (dts-hd, dts, ac3, pcm, mp3, flac, mpeg1/2, vorbis, truehd, opus)
Code: [Select]
<font face="ToolTip01" size="150" color="#9496a3">If(IsEqual([Compression],dts-hd ma,8),&,If(IsEqual([Compression],dts,8),#,If(IsEqual([Compression],ac3,8),z,If(IsEqual([Compression],pcm,8),/),If(IsEqual([Compression],mp3,8),*,If(IsEqual([Compression],flac,8),',If(IsEqual([Compression],aac,8),0,If(IsEqual([Compression],mpeg,8),z,If(IsEqual([Compression],vorbis,8),/,,If(IsEqual([Compression],truehd,8),x,If(IsEqual([Compression],opus,8),1,)))))))))))<//font>
Get icon for channels (mono, stereo, etc...)
Code: [Select]
<font face="ToolTip01" size="165" color="#9496a3">If(IsEqual([Channels],1,2),=,If(IsEqual([Channels],2,2),>,If(IsEqual([Channels],3,2),],If(IsEqual([Channels],4,2),?,If(IsEqual([Channels],5,2),^,If(IsEqual([Channels],6,2),‐,If(IsEqual([Channels],7,2),_,‑)))))))<//font>

Whole row of techical stuff icons on the screenshots is just above combined and separated by spaces. For color and size you can of course use whatever you like. In those examples the font size is adjusted so that all of the icons combined should be in similar size related to each other.


MPAA+Duration+Genre+Year+Country row:
Code: [Select]
<font face="ToolTip01" size="90" color="#9496a3">If(IsEqual([MPAA Rating],G),A,If(IsEqual([MPAA Rating],PG),B,If(IsEqual([MPAA Rating],PG-13),C,If(IsEqual([MPAA Rating],R),D,If(IsEqual([MPAA Rating],NC-17),E,If(IsEqual([MPAA Rating],NR),<//font><font face="ToolTip01" size="70" color="#9496a3">F,If(IsEmpty([MPAA Rating],),F,If(IsEqual([MPAA Rating],Approved),A,))))))))   <//font><font color="#9496a3" size="90"><b>|<//b><//font>   <font color="#9496a3" size="90">Size()   <b>|<//b><//font>   <font color="#9496a3 size="90""><i>Replace([Genre],;,  / // )<//i>   <b>|<//b>   [Date] /([Country]/)<//font>
TMDb+IMDb+RottenTomatoes row (I don't think I'm using any new fields apart from [Rating IMDb] and [Rotten Tomatoes]. Data has been fetched in addtion to MC with JRatings and tmdb.pl perl script)
Code: [Select]
If(IsEqual([Awards],Oscar,8),If(IsEqual([Awards],Won,8),<font face="ToolTip01" size="110" color="#b59031">4 <//font><font face="ToolTip01" size="200" color="#FFFF00">@  <//font>,<font face="ToolTip01" size="110" color="#b59031">4 <//font><font face="ToolTip01" size="200" color="#a6a6a6">@  <//font>),)If(!IsEmpty([Critic Rating]),<font face="ToolTip01" size="110" color="#01CB73">; <//font>[Critic Rating]    ,)If(!IsEmpty([Rating IMDb]),<font face="ToolTip01" size="110" color="#E8B708">7 <//font>[Rating IMDb]    ,)If(!IsEmpty([Rotten Tomatoes]),<font face="ToolTip01" size="110" color="#ED1C08">8 <//font>[Rotten Tomatoes]% If(IsEqual([Rotten Tomatoes],,0),,If(IsEqual([Rotten Tomatoes],60,6),<font face="ToolTip01" size="150" color="#F13008">: <//font>,<font face="ToolTip01" size="150" color="#0FC152">9<//font>)),)
EDIT: Cleaned up ratings row
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: Moe on June 28, 2019, 04:31:07 pm
Looking really good.

Have you tried putting a line break before the technical icons, just to separate them out a little more?  May help to make things look a little less crowded.
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lepa on June 28, 2019, 05:58:10 pm
Looking really good.

Have you tried putting a line break before the technical icons, just to separate them out a little more?  May help to make things look a little less crowded.
Will try more spaces, it's just that they will easily look too separated (been aching with this :D )
Problem with using the last row is also that if there are more stuff like larger synopsis or more fields to be shown then icons will go so down to a point you cannot see them anymore without scrolling. In that sense it would be best to use static field as up as possible...

I like the more space towards upper element. I added also little more space on horizontal level. To me in the first picture it is a little too much already. Have also experimenting from time to time using separator lines like in pic3.

EDIT: Edited first post to include some pictures and copy paste template of the theater view movie template
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: thorsten on July 04, 2019, 01:35:40 am
Moe,

thank you very much again for your efforts and detailed documentation! Together with MCRating, this looks really professional!

This is my setup: german and with the file path below, as this is handy for me.
Code:
Code: [Select]
If(IsEqual([Media Sub Type],Movie,1),<font size="180"><b>[Name]<//b><//font>
If(!IsEmpty([Tag Line]),<font size="150"><i>[Tag Line]<//i><//font>,)

 If(!IsEmpty([Oscar Winner]),[Oscar Winner],)   <font size="130">If(!IsEmpty([Critic Rating]),<font face="ToolTip01" size="130"><font color="#01CB73">;<//font><//font>  [Critic Rating] ,) If(!IsEmpty([IMDb Rating]),<font face="ToolTip01" size="130"><font color="##E8B708">7<//font><//font>  [IMDb Rating] ,) If(!IsEmpty([Rotten Tomatoes]),<font face="ToolTip01" size="130"><font color="#ED1C08">8<//font><//font>  [Rotten Tomatoes]% [RT],)<//font>   

 If(!IsEmpty([MPAA]),[MPAA],)  [Audio_Stream]   [Speakers]   [Aspect_Ratio]   [Resolution]

 If(!IsEmpty([Budget]),<b>Produktionskosten:<//b> [Budget],)  If(!IsEmpty([Gross Revenue]),<b>Einspielergebnis:<//b> [Gross Revenue],)   If(!IsEmpty([Gross Revenue]),<b>Ursprungsland:<//b> [Country],)

  <font size="120" color="#80C0C0"><b>[Duration] - [Genre] - [Year]<//b><//font>,)

<font size="140"><b><i><u>Inhalt                                                                                                 <//b><//i><//u><//font>
If(!IsEmpty([Description]),<font size="115">[Description]<//font>,)

<font size="140"><b><i><u>Credits                                                                                                    <//b><//i><//u><//font>
<font size="115">If(!IsEmpty([Director]),<b>Direktor:<//b> [Director]
,)If(!IsEmpty([Screenwriter]),<b>Drehbuchautor:<//b> [Screenwriter]
,)If(!IsEmpty([Producer]),<b>Produzent:<//b> [Producer]

,)If(!IsEmpty([Actors]),<b>Darsteller:<//b> [Actors],)<//font>

<font size="75">[Filename (path)][Filename (name)]


However, one thing is not perfect: the TMDb-Rating. I use "critic rating", as this is filled by the Movie Lookup of MC. But I have always the "TMDb xx / 10" shown. Is there a easy way to cut out the Rating by itselv? Something like left[] for getting the characters or so?
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: Moe on July 04, 2019, 11:54:23 am
If you want the word TMDb before the number, then this will work

Code: [Select]
listitem([Critic Rating], 0, // )
If you only want the numbers then this should do the trick

Code: [Select]
regex([Critic Rating], /#TMDB\s(\d\,\d)#/, 1)
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: thorsten on July 04, 2019, 03:15:21 pm
Perfect! Thanks!

Btw, what kind of programming language is this? xml?
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: Moe on July 05, 2019, 09:29:22 am
This is JRiver's expression language (https://wiki.jriver.com/index.php/Expression_Language), I don't know if it's based off of a different language though, I am not a programmer.  The second example solution I provided above was using a regular expression within the JRiver expression language.

Here is yet another way to get the TMDb rating numbers only

Code: [Select]
mid([critic rating], 5, 3)
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: JimH on July 05, 2019, 09:58:08 am
This is JRiver's expression language (https://wiki.jriver.com/index.php/Expression_Language), I don't know if it's based off of a different language though, I am not a programmer. 
I believe it evolved when MrC asked for support of regular expressions.  I went looking just now for the old threads. This was as far as I got:

https://yabb.jriver.com/interact/index.php/topic,66146.0.html
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: marko on July 05, 2019, 11:04:32 am
I posted this (https://yabb.jriver.com/interact/index.php/topic,38566.0.html) back in 2007  :o

A few years later, I wote up the expression page for the wiki, which was then handed over to MrC, and then most lately, to glynor.

We've just been given new 'ListLimit' and 'Rand(...)' functions. ListLimit is added to the list, but still needs a description and some examples, and Rand() still needs to be added. I may get to that in the near future if no-one beats me to it.

Since their inception, expressions have grown and evolved, always in a good way. They allow each of us to fine tune MC to fit neatly into our own personal use-case scenarios, and they are brilliant.

MrC, if I recall correctly, was instrumental in several expression function goodies... regex, and ifelse() are two that immediately spring to mind. ifelse() is just inspired, that gets a ton of use around here :)

This thread, btw, is fascinating. Much excellent work going on. No-one's stepped up to the Theater View plate yet, which is what I was waiting/watching for, as I'm getting lazy in my old age ;)
Something has to be possible in there surely? I wish I had some time to explore what, if any, possibilities there are in that particular playground. Maybe I can make some 'Me' time for that next month.... we'll see...

-marko.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: Moe on July 05, 2019, 02:02:08 pm
We've just been given new 'ListLimit' and 'Rand(...)' functions. ListLimit is added to the list, but still needs a description and some examples, and Rand() still needs to be added. I may get to that in the near future if no-one beats me to it.

While I was trying to figure out how to do something recently I ran across these two commands which aren't in the wiki (except for announcing that they were added in the release notes).  I have no idea what parameters, etc. they take though. 

ListEqual(...)
ListContains(...)

It would be nice to get a full list of all commands, I bet there are more than this that aren't documented in the wiki and it would be nice to get all that info out.  (maybe this should be it's own thread though, feel free to split)

I tried adding ListLimit to the wiki the other day but I didn't have editing privileges, I've since requested them though.  But, I am going out of the country for 3 weeks (woohoo, Spain!) starting tomorrow so I don't know if I'll have time to get anything added. 


Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: Moe on July 05, 2019, 02:16:48 pm
This thread, btw, is fascinating. Much excellent work going on. No-one's stepped up to the Theater View plate yet, which is what I was waiting/watching for, as I'm getting lazy in my old age ;)
Something has to be possible in there surely? I wish I had some time to explore what, if any, possibilities there are in that particular playground. Maybe I can make some 'Me' time for that next month.... we'll see...

-marko.

I've done some stuff with theater view.

While browsing I see

(http://www.moesrealm.com/img/MC/TheaterView01.png)

The purple icon with the title denotes that the movie has a commentary track audio stream available.  The orange R (on Titanic) denotes that the movie has a Rifftrax audio stream available

When looking at an individual movie, I see this

(http://www.moesrealm.com/img/MC/TheaterView02.png)

I'm still fiddling with it though, but so far, so good.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: thorsten on July 05, 2019, 02:20:55 pm
Hell yeah, modifying theatre view is also on my list. I even bought an xml-reference book  :o But, as many know: after some dozens of pages, the attention is lost as my wife/kids capture my time….

Maybe I should restart this project.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: lepa on July 07, 2019, 01:44:31 pm
No-one's stepped up to the Theater View plate yet, which is what I was waiting/watching for, as I'm getting lazy in my old age ;)
Something has to be possible in there surely? I wish I had some time to explore what, if any, possibilities there are in that particular playground.
Come on marko, I have posted many theaterview images here... :) I know they are not much but anyway ;)

This is my current large single item view

Updated first post to include movie template

Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: lepa on July 10, 2019, 07:59:01 am
Started to twiddle a little with audio tooltip. Will also integrate same kind of style to theater view once I am satisfied with the results. Anyway this is what I have now.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: dtc on July 10, 2019, 09:15:18 am
Thanks for working on audio.

You probably need a different display for classical and non-classical. For classical Composer is typically primary and Artist secondary.

Media type (mp3, flac, DSD) is also relevant, as is number of bits and sample rate.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: lepa on July 10, 2019, 09:38:41 am
Thanks for working on audio.

You probably need a different display for classical and non-classical. For classical Composer is typically primary and Artist secondary.

Media type (mp3, flac, DSD) is also relevant, as is number of bits and sample rate.
My tooltip will already show different icons for different media types. Just happened to be ogg in the picture. My classical collection metadata is in such a bad shape that I haven't concentrated to that. Though it wouldn't be too hard to make totally different template for classical once all the logos are catched from the metadata.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: dtc on July 10, 2019, 09:54:40 am
Sorry -missed the ogg.

I would just start with a simple conditional that put Composer on the first line if genre contains "Classical" and Artist if it does not.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: lepa on July 10, 2019, 03:39:18 pm
Tried something in theater view also...
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: marko on July 10, 2019, 09:25:34 pm
Impressive. Do you notice any slowdown at all when it comes to processing the expressions for these?
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: MGD_King on July 10, 2019, 11:04:57 pm
Impressive. Do you notice any slowdown at all when it comes to processing the expressions for these?
I haven't noticed any at all. It's quite impressive how fast it is actually.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: lepa on July 11, 2019, 04:45:57 am
Haven't noticed any slowdowns and my calculations aren't that complicated anyway and the source data amount for calculation is also small as it only uses one file at the time.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: lepa on July 11, 2019, 09:10:55 pm
First take on TV shows. For better or worse trying to keep similar style for all the screens...
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: MGD_King on July 12, 2019, 08:39:47 am
First take on TV shows. For better or worse trying to keep similar style for all the screens...

Lepa, I'm curious as to which Theater View theme you're using, and how you get the spacing between sections. I really like that layout, I just haven't figured out how you're doing it. LOL
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: lepa on July 12, 2019, 09:28:06 am
Lepa, I'm curious as to which Theater View theme you're using, and how you get the spacing between sections. I really like that layout, I just haven't figured out how you're doing it. LOL
Skin seems to be Blue Puzzle and I'm using it at 80% size (1080p UI). Still making changes to screens but attached current series template anyway in case someone has better ideas how to do things. There are some custom fields I believe I'm using and a custom font also. For spacing I guess I'm just using line feeds  ;D

EDIT: updated template
EDIT2: updated template again (13.7)
EDIT3: Removed template. New link can be found from first post
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: thorsten on July 14, 2019, 10:24:32 am
I tried to modify the look of movies in theatre view.
But I don't get it running…
I go to options-> theatre view -> Customize file info panel -> Movie Template and tried
- manage Template: Capiton -> regular / extended (with the code from my last post)
- add expression (with the code)

The first way did nothing, the second way showed the code, but only after entering the movie + cursor down + cursor right
What do I have to do for showing it without cursor moving?
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: lepa on July 14, 2019, 10:44:45 am
In practice you can't just copy paste whole Tooltip code to Theater View. You can take bits and peaces here and there though so you don't need to do every calculations again..
My template for example looks like this in attached image. S: and L: prefixes are just for me to see what items concerns small or large part of the template
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: thorsten on July 14, 2019, 11:32:40 am
Hi,

ok, I thought something like that...
But how do I get the movie description part always completely unfolded? Is it a matter of data length?
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: lepa on July 14, 2019, 11:43:34 am
Is it a matter of data length?
Corectomundo. Maximum length of one TheaterView item is hardcoded so if the description (or whatever data) you want to show is over that size then rest of the text will only be shown by entering the field

So her for example bio is over sized to be shown without interaction
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: thorsten on July 14, 2019, 11:54:10 am
Thanks lepa !  ;)

Btw, you CAN copy the whole tooltip, but it won't be shown automatically due to the data length.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: lepa on July 14, 2019, 12:02:48 pm
Thanks lepa !  ;)

Btw, you CAN copy the whole tooltip, but it won't be shown automatically due to the data length.
Yes you CAN. But it isn't practical and hence I said that "In practice you can't just copy paste whole Tooltip code to Theater View."  ;D ;)

And it would be great if you are willing to share your screens when you are happy with it so we all can perhaps get improvement ideas to our own screens  :)
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: thorsten on July 14, 2019, 03:10:27 pm
And it would be great if you are willing to share your screens when you are happy with it so we all can perhaps get improvement ideas to our own screens  :)

For sure! I'm just adopting the "rapier fusion" theme to my needs, with german translation.
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: thorsten on July 16, 2019, 04:07:31 pm
Hi,
here is my setup, based on raper fusion with own pictures and german text. I removed the MPAA in theatre view, because we have a different system here in germany.
I have a 120 in. wide screen, sitting 110 in. away  8) ;D

Thanks again for your work an documantation!

Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: Moe on July 17, 2019, 06:22:46 am
Looking good Thorsten. Would you like me to add the German movie rating (FSK) icons to the font?  https://en.m.wikipedia.org/wiki/Motion_picture_content_rating_system#Germany  I can add them easy enough once I’m back from vacation.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on July 17, 2019, 02:04:35 pm
This would be fantastic, Moe!

A friend of mine, who is also using mc for quite a time but mainly in explorer mode, was very surprised what it is capable of. Seems I have to set his system up the same way  :D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on July 17, 2019, 04:09:31 pm
Nice Thorsten! One thing I noticed that on small screen the ratings row will continue on second row if oscars were given.  So if you want you can do separate ratings row for large and small screen and decrease font size a little for small screen so everything fits in one row or even decrease font only when it would continue on the second row. Of course your current setup is fine. Just thought i could mention it if you haven't noticed the option in template.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on July 18, 2019, 11:07:35 am
Thanks lepa!
How can I do different setting for preview and detail view? I tried it with "editing template" but it didn't work.

And another fault: the IMDB-rating in tooltip is of smaller font than the others. No clue why as there are no fond size changes, but I will add one......
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: fitbrit on July 19, 2019, 09:15:26 am
Thank you to all contributors to this thread. My intern was able to get IMDb and RT ratings (using MCRatings), and then with the Tooltip font face set up Theater View in a very useful way. We'll address the tooltips themselves soon.

This is a huge leap forward to improving the look and feel of MC.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on July 19, 2019, 12:25:01 pm
Yes, I wasn't aware what is possible with the mighty expression language  :o
I must admit, you have to work with it, and do a lot of trial and error at the beginning, but the help here in the forum is priceless.

If this tooltip stuff is officially well documented, this will reduce a lot of complaints about the HMI of mc.

This thread is for me by far the most fruitful the last months  :) :) :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on July 19, 2019, 12:39:02 pm
If this tooltip stuff is officially well documented, this will reduce a lot of complaints about the HMI of mc.

This thread is for me by far the most fruitful the last months  :) :) :)

I wonder if we could talk Lepa into creating a Wiki article on it?  ;D

I have a question about one of the pieces of code that shows the Budget and Gross Revenue. The code is:
Code: [Select]
<font size="100" color="#9496a3">If(!IsEmpty([Budget]),<b>Budget:<//b> $Math(trunc([Budget]/1000000,1)) Million  ,)If(!IsEmpty([Gross Revenue]),//  <b>Gross Revenue:<//b> $Math(trunc([Gross Revenue]/1000000,1)) Million,)<//font>
This works great unless the movie has grossed $1 Billion or more, such as Iron Man 3 which grossed $1,215,439,994 (US). Using the above code, the result is only $1 Million. Anyone got any ideas? Thanks in advanced!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on July 20, 2019, 04:53:16 am
This works to append the correct millions/billions suffix:

1. Create field GrossRevenueNum to hold the clean numeric value (see note below):
Code: [Select]
removecharacters([Gross Revenue],/,.$,0)
2. Create GrossRevenueExt like this:
Code: [Select]
if(!isempty([Gross Revenue]),
  if(compare([GrossRevenueNum],<,1000000),<$1 Million,
  if(compare([GrossRevenueNum],<,1000000000),$Math(trunc([GrossRevenueNum]/1000000,1)) Million,
  $Math(trunc([GrossRevenueNum]/1000000000,2)) Billion
)),)

Do the same for Budget field.

Note: While testing this I found out that Math functions [correctly] use the decimal separator that is setup in Windows. This is a problem for non-US machines like mine where the decimal separator is a comma and the thousands separator is a dot (ie, €234.455,00). Since the Gross Revenue is usually stored using US convention, the Math parsing of the string and the division by 1000000 outputs wrong numbers. This is why I'm cleaning up the string using removecharacters() function.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on July 20, 2019, 05:52:05 am
Another thing I noticed: I complained several times, that the tooltip is disappearing too fast, my wife often need a second in-out-mouse move for complete reading.

With the Selfmade tooltips, the popup stays for minutes (or till the next mouse movement)! Very nice!!!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Matt on July 24, 2019, 10:10:41 am
Is there anything we could do at JRiver to make this process easier?  Thanks so much for the contribution!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: fitbrit on July 24, 2019, 10:40:27 am
Is there anything we could do at JRiver to make this process easier?  Thanks so much for the contribution!

Absolutely, I think!  :)
We got a newsletter yesterday from JRiver that showed what could be done with tooltips and TheaterView. It linked to this thread. And in this thread there is a ton of html/xml/whatever code that the vast majority of MC users would take one look at and think, "Yeah, MC is just too hard to use." I'm really happy that you asked for this feedback.

So, yes, there are things that can be done. I am not the expert here, so forgive my naive suggestions:

1. Make the ToolTip font part of MC when it is installed, it installs the font for MC's use

2. Make ToolTips and Theater View more Wizard-based if possible. Make it so that we can specify which font we want to use for which field. Make it so that we do not have to use characters for the font to get a symbol - that translation is done for us. Therefore more could be done without relying on writing in a mark-up language

3. If possible render the result in an example window beside the code/Wizard so that the output can be tested without having to exit, enter the appropriate view and then check to see if it was right.

4. Let us choose a few variations of default layouts that people can use immediately.

5. Or create an online repository that one can just link to and it will add that template to the views. It could be a separate section on this forum where the talented people present screenshots of their work and a link that you copy-paste into the right area in MC to get the template installed.

Right now we have all the "choice" in the world because there is not much to choose from - we have it all at our disposal if we can create it ourselves. This is either too hard for most people to do, or results in "choice fatigue" where one cannot decide on anything. A few good choices that are easy to implement would be most welcome, I suspect. Other programs offer these pre-made choices and they may not suit everyone, but the majority just deal with it.


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Spike1000 on July 24, 2019, 11:04:40 am
Is there anything we could do at JRiver to make this process easier?  Thanks so much for the contribution!

Allow (and preserve) line breaks and indenting in expressions so complex expressions are easier to read and edit.

Spike
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on July 24, 2019, 11:13:49 am
Allow (and preserve) line breaks and indenting in expressions so complex expressions are easier to read and edit.

We've been down that route before, and as stated then - formating in expressions results in formating in the output. There is no really good way to differentiate that. And being able to format the output properly is more important.

Many of fitbrit's suggestions seem like something we might be able to do.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on July 24, 2019, 01:14:39 pm
Hi,

But I must say, that even me as a total noob to expression language and installing fonts found it at the end really easy! Ok, you need 1-3 hours for getting your unique design, but the tooltip setup is now rather straightforward as decribed in the post that is linked in the very first post here:

- start a good, relaxing music album (no trash metal  ;D )
- get your tags with MCRating complete
- install the font (4 mouse clicks)
- create the sub-tag expressions resolution, audio, oscar winner, mpaa etc.
- use the in the thread provided tooltip (movie) as a starting point
- enjoy!

And when you get the system in your head, with a little bit of testing you got it even up and running in the theatre view. This is more difficult, but isn‘t everything concerning the theatre view complex?  ::)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: fitbrit on July 24, 2019, 01:19:27 pm
Hi,

But I must say, that even me as a total noob to expression language and installing fonts found it at the end really easy! Ok, you need 1-3 hours for getting your unique design, but the tooltip setup is now rather straightforward as decribed in the post that is linked in the very first post here:

- start a good, relaxing music album (no trash metal  ;D )
- get your tags with MCRating complete
- install the font (4 mouse clicks)
- create the sub-tag expressions resolution, audio, oscar winner, mpaa etc.
- use the in the thread provided tooltip (movie) as a starting point
- enjoy!

And when you get the system in your head, with a little bit of testing you got it even up and running in the theatre view. This is more difficult, but isn‘t everything concerning the theatre view complex?  ::)

Actually, that is a great summary!
I think I made the mistake of tackling TheaterView first.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on July 24, 2019, 03:13:51 pm
Is there anything we could do at JRiver to make this process easier?  Thanks so much for the contribution!

I like Fitbrit ideas. If you decide to use the symbol font from this thread, please reward the creators with a minimum of a lifetime JR license :)

Some other suggestions:
1. The Field editing UI should have a button to open a bigger/more featured Expression Editor window, with some nice features:
- syntax highlighting
- matching bracket highlighting
- syntax tooltips for the function names and arguments (à la Visual Studio) would also be nice
- an "insert symbol" button could show the symbols from the excellent font in this thread, or from other fonts
- a "preview" panel, perhaps using the currently selected movie. For most expressions the preview is simple, but for Tooltip it's really awkward to keep having to close the options to see how it looks, then go there again to make a change, close again... etc.

2. An alternative whitespace handling method could also be declared, either by using a new SetMode() function or preprocessor-style directives:
Code: [Select]
SetMode(whitespace, 1)or
Code: [Select]
#whitespace 1
Zero would be the current mode (default), and 1 would be EXPLICIT whitespace mode.
Following this directive, all whitespace (except between words) would be ignored allowing for proper code indentation, code comments (another feature), etc. Explicit whitespace would be introduced as in HTML, with < p >, < br >, &nbsp, etc. < pre > could also be supported. Alternatively (or on top), the standard \n could also be supported, and perhaps \t and \s for a space.
Other preprocessor directives could be introduced in the same way.

3. Support for some more HTML tags would be nice. < hr> comes to mind. < center > would also be great. I guess CSS is asking too much :)

4. Adding alignment/tables would be awesome. This could be with html (table/td/tr) or with markup-style tables.

5. Expression language could use a few more functions. Just look at the convoluted code in this thread, sometimes just to get to a simple value at the end. Examples:
- repeat(\n,30)    // repeat a char/string N times.
- ifCase(expression, 1, ValueFor1, 2, ValueFor2, 3, ValueFor3, ...)        // switch/case implementation

That's it for now, I hope some of these make sense to you :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on July 24, 2019, 03:15:52 pm
One more thought for the Expression Editor - a WYSIWYG editor with a toolbar for font, color, size, etc, with a quick toggle to switch between code/wysiwyg/preview modes.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on July 24, 2019, 05:39:35 pm
Is there anything we could do at JRiver to make this process easier?  Thanks so much for the contribution!

Lots. But it wouldn't be simple or quick. MC often provides all the basic tools, but doesn't finish functionality with usability. I know, old argument, but it is patently obvious with this existing functionality. So, add some usability tools.

Zybex is on the track I was thinking.

1. Leave all the existing functionality in place for users who want to deep dive into code and tweak it.
2. Standardise the fields used in this solution, if it is seen as appropriate, so that templates become transportable and shareable. Also so inexperienced users don't have to build a bunch of fields before trying a template. Or build into shared template addition the creation of required fields.
3. Commercialise the font being used, or find an equivalent solution that has everything required for media symbols. The current result is great, but I suspect if it was anything other than users sharing the font, there would be legal issues.

4. Provide a graphical, drag and drop fields, symbols and other components, layout tool, so that user could start with a standard template and modify it just by moving, adding or deleting components. Or create a new layout from scratch. I wouldn't expect JRiver to write such a tool from scratch, but maybe select a tool and facilitate its integration into a workflow for editing and creating layouts. An open-source tool would be great. Something that is relatively simple. i.e. Microsoft's Visual Studio might be too much. Basically, hide the complexity from users by using a simple front end tool. If the tools built CSS in the background, I wouldn't care, as long as I didn't have to edit them, even if I could.
5. Make this work for all elements of the layouts. i.e. Turn off image rotation and reflection easily. Resize, move, format images etc.
6. Make the tools added universal for multiple areas of MC. Tooltips and Theatre View are a good start.


We've been down that route before, and as stated then - formating in expressions results in formating in the output. There is no really good way to differentiate that. And being able to format the output properly is more important.

There are development tools that will format code to make it readable though, either without adding anything to the code, or by adding in non-processed functions to the code that tell a tool how to format the code for editing. Even Notepad++ has a language module, and I have a JRiver language version, but it isn't complete or reliable for some functions. It gets bracketing wrong pretty often at the moment. Anyway, any tool that could be launched anywhere where expressions can be edited, so that formatted code could be viewed, edited and saved back to the MC dialogue would be good.

As an example, Moe's tooltip code currently looks like that attached image in Notepad++ using the JRiver language.

Plus all the stuff above. I'm sure that is more than enough to think about!  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: jdizzy623 on July 24, 2019, 11:44:36 pm
Been waiting for what I consider a breakthrough on presentation.
I have added code in Zip file as stated in first post but beyond that am lost as to what to do next.
I see there are a couple of image/font files but don't know where to put them.
Also can't figure how to implement new view created from imported code when browsing movies.

Is there a dummies guide with step by step instructions available?
Thanks!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on July 25, 2019, 03:49:48 am
....delete.....
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: jdizzy623 on July 26, 2019, 01:20:03 am
Didn't mean to barge in, just trying to figure out how to get this added to my system.

It would be great if JRM could corporate this into the stock program, to create the needed fields, scrape automagically, and display these nice looking pages in Theaterview.
Thanks
Title: Re: Create Custom Tooltips/TheaterViev Screens Using Dolby etc. Logos
Post by: Skyx on July 27, 2019, 08:28:40 am
Dear all,

first I'd like to thank all of the contributors who have put so much work into this topic and share their results.
I'm certainly missing A LOT... but with everything that is posted, I thought it is more or less just copy paste... I'm obviously wrong :-(

What I found is:
Install the fonts ... HOW ? The links provided let me download an html file... but I want a ttf ?
---
In the html is a download link that lets you download the ttf... sorry I missed that !!!
BIG thanks to Moe !!!
---
Create a custom library field ToolTip and copy the code into the expression...
Install Moe's custom Movie Template.
Depending on the available tags, it should give me something I can start working with...

What am I missing ? Which additional steps are required ?

Many many thanks for any input.

BR
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on July 27, 2019, 09:29:46 am
I think you might be confusing tooltip and theaterview parts. I've cleaned first post a little so maybe the different parts are now more clear.

I'm currently on holiday from work and also from MC tuning so any complicated answers from me are on hold  ;D

But for short: for tooltips you're gonna need to create custom calculated fields (see first post) and if you want to tune theater view you can copy paste template or create rows manually. Of course if you copy paste a template you can then adjust all the rows yourself to anything you like

font files are just windows ttf fonts so double clicking it will let you install it to windows. Might need to restart MC afterwards to refresh the changes
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on July 27, 2019, 09:40:51 am
word
Pretty much what RoderickGI said (and others too)
So more html tags would be helpful to organize data inside theater view item. Basically I've been cheating a little bit by using many fields inside one item to be able to change the look of theater view a bit. Concerning to that one thing to make theater view more flexible could be option to allow to show item fully without selecting it first. In the same way there is currently "hide item when empty" so new option could be "show item always maximized" (of course hidden if empy if that option is selected)

I'm also using notepad++ with MC language file. I've also added new functions there so I get the bracket starts and ends correct most of the times at least
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Skyx on July 27, 2019, 11:08:47 am
Hi Lepa,
thanks for your answers... and I think you're right, I may have confused/mixed up Tooltip and Theater Views... from your and Moe's description I thought this is a combo, like you can't have the Theater View shown in the screenshots without the Tooltips...

What are Tooltips for then... ? To show computed data when hovering ? Like when my Mouse is over a Movie in Standard View ?

Enjoy your holidays !!

BR

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on July 27, 2019, 11:25:06 am
What are Tooltips for then... ? To show computed data when hovering ? Like when my Mouse is over a Movie in Standard View ?

Enjoy your holidays !!
thanks and yes tooltips are mouse overs in standard view
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on July 27, 2019, 05:53:43 pm
I'm also using notepad++ with MC language file. I've also added new functions there so I get the bracket starts and ends correct most of the times at least

Could you share your updated Notepad++ language file? I've been lazy and not gone back to it to update and correct mine. When you are off holidays would be fine. Enjoy the break.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Skyx on July 28, 2019, 05:17:36 am

But for short: for tooltips you're gonna need to create custom calculated fields (see first post) and if you want to tune theater view you can copy paste template or create rows manually. Of course if you copy paste a template you can then adjust all the rows yourself to anything you like

font files are just windows ttf fonts so double clicking it will let you install it to windows. Might need to restart MC afterwards to refresh the changes

Sorry to bother again...
I spent a couple of hours to get the TheaterView Template running... without success :-(
I loaded using the zip file or pasted the entire text, I could see your S and L differentiation... but I never got the layout with the icons from ToolTip01 font...
Would someone be so kind and give me a step by step guidance how I can get lepas's or thorsten's TheaterView layout ...
I'd be so grateful...

Many thanks

BR

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on July 28, 2019, 05:57:07 am
Sorry to bother again...
I spent a couple of hours to get the TheaterView Template running... without success :-(
I loaded using the zip file or pasted the entire text, I could see your S and L differentiation... but I never got the layout with the icons from ToolTip01 font...
Would someone be so kind and give me a step by step guidance how I can get lepas's or thorsten's TheaterView layout ...
I'd be so grateful...

Many thanks

BR
Could you post pictures of your progress? what does it look like? what have you done?

Flow should be something like this:
If you try to use my template inside the zip you should do steps 1-4 and result should be 5.
Next if you check edit template (second picture) and that search criteria is set to movie (third picture)
Last you should check (4th picture) that this imported movie template (which you just added from the clipboard) is highest movie template (remember pic3 search criteria)


You don't have my filmstudios font so those wont show up as icons but that shouldn't bother the rest of the things so let's not concentrate on that now. You of course you need to install ToolTip01 font to windows
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on July 28, 2019, 05:58:48 am
Could you share your updated Notepad++ language file? I've been lazy and not gone back to it to update and correct mine. When you are off holidays would be fine. Enjoy the break.
Sure, it's not complete though, I've just added things what have broken my brackets at the time. Don't know though where it is saved...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Skyx on July 28, 2019, 07:59:28 am
Last you should check (4th picture) that this imported movie template (which you just added from the clipboard) is highest movie template (remember pic3 search criteria)


Lepa,

you're the best.... thank you so much for taking the time while you're on holidays....
The problem was that I didn't move the template up the list... so it would always pick the original Movie Template.

I didn't know that the templates are evaluated top to bottom and the first that meets the criteria is taken... if I would have paid more attention, I could have sorted out the logic by seeing the options 'Move Template Up' or 'Move Template Down'...

I owe you big time.... Many many thanks !!

BR
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on July 28, 2019, 12:34:20 pm
I'm back, Spain was awesome!

This would be fantastic, Moe!

German FSK rating icons have been added https://moesrealm.com/MC/

Is there anything we could do at JRiver to make this process easier?  Thanks so much for the contribution!

Yes, so much.  A lot of good ideas already mentioned in this thread.  I have two big requests.  They may be too big, but they would make all the difference in the world.

1.  The part that I have found most frustrating when working with these is the amount of clicks required to see changes.  For instance, say you're trying to choose the correct font color for a bit of your tooltip, you have to go through all of these steps tools/options/Library & Folders/...Manage Library Fields/find the tooltip field/make changes/close out options/hover over a file to see the tooltip/if you don't like the color repeat all of the above and test again.  It gets really, really old fast.  I would love to have a tool where you can see your changes in real time, something like this that I mocked up real quick.

(http://www.moesrealm.com/img/MC/preview.png)

At the top left you can choose which tooltip you want to edit, Movie, Television, Music, etc.
Under that you can choose the font for whatever text you have highlighted in the expression box below.
Then you have the file that you want to use as your preview

Finally, you have the actual expression that you're using to create your tooltip. 

When you make a change in the expression box on the left the preview on the right updates in real time.  Something I forgot to add to the image, some sort of character map so that you know that the number 6 corresponds to the IMDB logo, the < corresponds to the small TMDB icon, etc.

Syntax highlighting would be nice too (this would be great for all expression windows)

Something along these lines would be an absolutely amazing.

2.  Full HTML/CSS/Javascript support.  We already have this with Track Info templates, so the functionality is in MC.  This would make life exponentially easier and I think it would also be more user friendly.  Using a font to get images/icons into tooltips/Theater View works, but it's a serious kludge.  Fonts also have serious drawbacks. Fonts can't be multi-color, the Rotten Tomatoes Fresh icon is a perfect example of this. Fonts are confusing to work with, entering a comma to get the OGG icon isn't exactly logical.  Adding a new icon to the font, while not exactly difficult, it is a bit time consuming.  It probably takes me 5-10 minutes to add a new icon (it's easier/faster when adding mulitple icons at the same time), if we had image support it would take seconds.  HTML/CSS/Javascript would open up tons of different capabilities.  We could have dynamic backgrounds on our tooltips, we could change the color of the font based on the dominate color of the movie poster, etc. etc.   

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on July 28, 2019, 07:35:46 pm
Sure, it's not complete though, I've just added things what have broken my brackets at the time. Don't know though where it is saved...

Cool. Probably just easiest to export it from Notepad++ under "Language > Define your language > {select JRiver language} > Export" to create a new UDL language file.

But no rush.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on July 29, 2019, 03:53:40 am
2.  Full HTML/CSS/Javascript support.

This may sound nice in theory, but you really don't want that. We would need to spin up a browser for every tooltip or every Theater View info panel, and that would be terrible for performance and potentially stability. There just is no nice, easy, stable and performant way to embed a browser rendering component into responsive UI elements like Tooltips, or into the 3D environment of Theater View - even less so if you have to consider multiple platforms.

If inlined images are the main concern, maybe we can define a rendering tag that can do that, pull from some default MC folder somewhere (for performance reasons, web requests would also be problematic here, unless we can find a nice way to make the images load asynchroniously)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on July 29, 2019, 05:48:14 am
Cool. Probably just easiest to export it from Notepad++ under "Language > Define your language > {select JRiver language} > Export" to create a new UDL language file.

But no rush.
Don't know how I missed those import/export buttons ::) I'm sure I didn't handle escape characters properly but seemed to work properly with /( and /) so I didn't dig further. Probably also lacks functions which I didn't use at the time when I updated language file...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on July 29, 2019, 10:49:27 am
If inlined images are the main concern, maybe we can define a rendering tag that can do that, pull from some default MC folder somewhere (for performance reasons, web requests would also be problematic here, unless we can find a nice way to make the images load asynchroniously)

Inline images would be absolutely wonderful.  While I am glad that the font workaround has allowed us to pretty things up, actual images would be another leap forward.  Images probably won't be as fast as fonts, but they will sure be prettier.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: jdizzy623 on July 29, 2019, 11:51:58 am


Last you should check that this imported movie template (which you just added from the clipboard) is highest movie template


That was the key!!
Thanks   :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: jdizzy623 on July 29, 2019, 11:57:11 am
Where might one find the following utilities?

Metadata has been fetched with MC, MCUtils and MCratings

Thanks Again
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on July 29, 2019, 12:07:55 pm
MC Ratings is here https://yabb.jriver.com/interact/index.php/topic,119792.0.html

MCUtils is here https://yabb.jriver.com/interact/index.php?topic=100449.0 (I'm not sure if this is the most up to date link or not)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on July 29, 2019, 01:58:30 pm
Hi Moe,

hope you had a good time in Spain.

Thanks for your work with the FSK! I'm "looking" forward to tag my 500+ movies by hand…  ::) ;)

Unfortunately, the downloadlink seems to be broken with this address: https://moesrealm.com/MC/wp-content/uploads/2019/06/ToolTip01.ttf

BR
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on July 29, 2019, 03:10:25 pm
Sorry about that, font download link is fixed now.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: darky on July 29, 2019, 03:23:12 pm
Quote
And in this thread there is a ton of html/xml/whatever code that the vast majority of MC users would take one look at and think, "Yeah, MC is just too hard to use." I'm really happy that you asked for this feedback.

Even chips ..beer and music..didn't make me understand all the code. But outside that...it is just very interesting to read.
I hope sometime an easy skin/zip noob proof solution comes out of it :D

Thank you for trying to explain it all
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on July 29, 2019, 09:23:31 pm
This works to append the correct millions/billions suffix:
THANK YOU SO MUCH!!! This works perfectly!!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: jdizzy623 on July 30, 2019, 12:16:26 pm
This is very cool... language is a bit challenging though.....

Question, is Theaterview-Audio screen included anywhere?
I like the one shown in first post and could use that for starters as a template.
Still have not got my head around how to start one on my own.
Thanks!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on July 30, 2019, 01:13:29 pm
In case anyone missed it https://yabb.jriver.com/interact/index.php/topic,121636.0.html
Title: Re: Create Custom Tooltips with Dolby etc. Logos for Various Media Types
Post by: lello on July 31, 2019, 12:24:49 am
If enough people like this but want some more Genre Icons made, I may be able to be persuaded if there is enough demand :)

I downloaded and installed the lepa template, I downloaded and installed both icon fonts and genre icons, but I can't get the genre icons to display correctly.

Surely I can't copy the various expressions in the right place: could I know where I have to copy them exactly?

I know, everything is simple for you, but not everyone is so good  ;D :'(
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on July 31, 2019, 10:09:16 am
Lello, I would just hold for now.  JRiver is giving us true image support (see the thread I linked a few posts back) which is going to make this whole process much, much easier.  It will make it easier to create and easier to share as well.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on July 31, 2019, 10:40:34 am
Thank you so much :D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on July 31, 2019, 11:11:03 am
And another fault: the IMDB-rating in tooltip is of smaller font than the others. No clue why as there are no fond size changes, but I will add one......
If you were using tooltip Moe shared as base I think that there were couple places where font was opened but not closed so that caused unpexpected font sizes.
It is easy to have those kind of errors in scripts as we don't have very good editors for this and there are many layers of IF decisions in which you would open font tag but either forgot to close it or purposedly leave it open. Then there might be double errors which evens things out  ;D So it will become quite complex after a while.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 01, 2019, 04:40:20 pm
Changed some font logos to images to test coming new image functionality
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 01, 2019, 05:19:34 pm
Looking good Lepa!  How are you finding it using images instead of fonts?  I am assuming it's easier? 

Out of curiosity, what do the gold stars next to the song titles symbolize in the second image?  I know the blue icons indicate Allmusic track picks.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 01, 2019, 05:37:44 pm
Looking good Lepa!  How are you finding it using images instead of fonts?  I am assuming it's easier? 

Out of curiosity, what do the gold stars next to the song titles symbolize in the second image?  I know the blue icons indicate Allmusic track picks.
not so messy yeah. I think that I will use both. Most of the time went for drawing these simple images with gimp as it has been so long time since I have last used it...

Star means that track is rated by me between 4 and 5. Not yet sure if I leave those marks in front of rows as track names don't look so tidy because they will start from different positions. Do I hear tables??  ;D

Still just playing with this and trying things and probably in the end will choose something simplistic over bling bling
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 02, 2019, 06:05:03 am
Just a little experimentation using images as tech icons row in my movie template. Everything is looks bit chaotic as icons are different width, color etc....  Probably will end up drawing/modifying my own icons so the style will be similar between the logos. At minimum will use similar width for all the icons. Just testing for now
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on August 02, 2019, 08:16:32 am
Just a little experimentation using images as tech icons row in my movie template. Everything is looks bit chaotic as icons are different width, color etc....  Probably will end up drawing/modifying my own icons so the style will be similar between the logos. At minimum will use similar width for all the icons. Just testing for now

I really like the look of those image icons! The colors add depth and texture! The variable width doesn't bother me, in fact, it looks more "natural" in the sense that not all logos are created equal.  :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 02, 2019, 10:16:29 am
I agree with MGD, looking good and the different sizes don't bother me at all.

I want to put together something so that we can all share images easily.  Seems silly for us all to collect the same IMDB image or whatever.  I want to see if we can share a dropbox (or similar) folder and then have a page that automatically generates a gallery from that directory.  Maybe even do sub-directories, such as Movie Studios, Audio/video containers/MPAA (and other country) Ratings/etc. 

Is this something people would be interested in?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Matt on August 02, 2019, 10:22:08 am
We might even be able to include the images in the new "Tooltip" folder if you'd be willing to share.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 02, 2019, 10:32:30 am
I'd be happy to share, I was only worried that you all might have an issue with copyrights and what not.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 02, 2019, 12:14:08 pm
I'd be happy to share, I was only worried that you all might have an issue with copyrights and what not.
That is my concern also. Happy to share otherwise
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 02, 2019, 12:15:14 pm
Here is a quick proof of concept of what I am thinking.  I am not in love with it, but I am having a hard time finding a good script that does what I want.  This does dynamically update the gallery when a new image is uploaded, which is key.  I still need to make it so other users can upload images, but that should be easy enough.  Feedback welcome.

https://moesrealm.com/MC/mc-images/
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 02, 2019, 05:56:05 pm
I added the ability for you all to upload images.  As of right now it's open to anyone, hopefully it doesn't get spammed by nefarious people or bots.  If that starts to happen I will rethink things.  Feedback welcome.

https://moesrealm.com/MC/mc-images/

I renamed the files so that the icons are grouped in a more logical order.  I would ask that if you upload anything you try and do the same as well, that way it's easy to find things.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on August 05, 2019, 03:03:51 pm
Wow, Moe, breathtaking! The images look great!

Btw, I'm using the FSK with this code with [fsk_logo]
Code: [Select]
<font face="ToolTip01" size="400">If(IsEqual([FSK],0,2),<font color="#FFFFFF"> Ē,If(IsEqual([FSK],6,2),<font color="#fff200"> ē,If(IsEqual([FSK],12,2),<font color="#33ff00"> Ĕ,If(IsEqual([FSK],16,2),<font color="#33d9ff"> ĕ,If(IsEqual([FSK],18,2),<font color="#ff0000"> Ė,)))))<//font><//font>It's funny: the german translation of "MPAA" ist "FSK Bewertung"  :o Therefore, I needed a new tag "fsk" for the value and "fsk_logo" for the sign. Works great, but now there are too many icons in theatre view, I have to play with their size. So, no picture of my setup  for now..

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on August 07, 2019, 07:41:09 pm
Lepa,

you're the best.... thank you so much for taking the time while you're on holidays....
The problem was that I didn't move the template up the list... so it would always pick the original Movie Template.

I didn't know that the templates are evaluated top to bottom and the first that meets the criteria is taken... if I would have paid more attention, I could have sorted out the logic by seeing the options 'Move Template Up' or 'Move Template Down'...

I owe you big time.... Many many thanks !!

BR

I ran into this issue as well.  Perhaps create the new template at the top rather than the bottom??
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 08, 2019, 11:48:27 am
Played a little with image feature. Probably too much work unless the image creation process can be automated. (Of course it can, it's just a question how much effort someone would like to invest on it)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 08, 2019, 01:51:24 pm
Those images look great, I agree though, lots and lots of work unless it could be automated somehow.

TheTVDB and themoviedb both have images for people.  Not sure how it could be done within the JRiver architecture, it would be great to figure it out though, what you did looks really slick.

I wonder if MCUtils could be tweaked to pull the actor/director/etc image from TMDB Here's Duchovny's page as an example https://www.themoviedb.org/person/12640-david-duchovny?language=en-US
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: jachin99 on August 08, 2019, 03:16:35 pm
That looks really nice, and I can't wait to see the finished product!!  Now if we could select one of those actors, and have MC return a list of other movies they are in, it would be even better yet.  I remember in WMC you could do this, and even tell it to record a certain movie when it comes on TV. 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 08, 2019, 03:58:19 pm
I agree, that would be amazing.  You can do it with stuff like director or producer, as long as their is only one person.  It would be great if Theater View could parse a list to treat each item in a list as a separate entity. 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 08, 2019, 04:21:03 pm
As Moe said already unfortunately links won't work for list fields and then again when using images it isn't even a recognizable field anymore. For above screen I'm using two images per person first row is for face image and second row of pictures are name of persons. Reason for this is that it is simpler to align name and face by using pictures as they have same width value. Problem is that even if I could get actor faces automatically fetched and mass scaled to same size/aspect I still would have to find a tool or write some kind of script which would mass draw png images for every person using specified dimension (same width as face image) and which have text: first name second name in two rows.

Code: [Select]
If(!IsEmpty([Actors]),<img width="70" src="tooltip:ListItem([Actors],0)">    <img width="70" src="tooltip:ListItem([Actors],1)">    <img width="70" src="tooltip:ListItem([Actors],2)">    <img width="70" src="tooltip:ListItem([Actors],3)">    <img width="70" src="tooltip:ListItem([Actors],4)">,)          If(!IsEmpty([Director]),<img width="70" src="tooltip:ListItem([Director],0)">,)          If(!IsEmpty([Creator]),<img src="tooltip:[Creator]" width="70">,)
If(!IsEmpty([Actors]),<img width="70" src="tooltip:ListItem([Actors],0)-txt">,)    If(!IsEmpty([Actors]),<img width="70" src="tooltip:ListItem([Actors],1)-txt">,)    If(!IsEmpty([Actors]),<img width="70" src="tooltip:ListItem([Actors],2)-txt">,)    If(!IsEmpty([Actors]),<img width="70" src="tooltip:ListItem([Actors],3)-txt">,)    If(!IsEmpty([Actors]),<img width="70" src="tooltip:ListItem([Actors],4)-txt">,)          If(!IsEmpty([Director]),<img width="70" src="tooltip:ListItem([Director],0)-txt">,)          If(!IsEmpty([Creator]),<img src="tooltip:[Creator]-txt" width="70">,)

It could also be possible to use fixed width font for names and try to make to row first name-last name sets from left to right but aligning like that would also be massive PIA
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 09, 2019, 09:50:32 pm
Lepa, have you considered just adding the persons name to the image?  Something like this?

(http://www.moesrealm.com/img/MC/DD.png)

Seems like it would be more efficient than using two images per person.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 10, 2019, 06:39:15 am
Lepa, have you considered just adding the persons name to the image?  Something like this?

(http://www.moesrealm.com/img/MC/DD.png)

Seems like it would be more efficient than using two images per person.
I did it also but but thought that it could lead to more manual work. I think that name image creation could be automated trigger being when "actor name.png" is created into folder => create new image and write that actor name to the image template. Am not so familiar how to do any image automation though and not even sure if I have time or interest going further with this. Just throwing some ideas in the air.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 11, 2019, 03:48:32 am
One beautiful thing what was introduced with image support was that you can simplify tooltip/TV scripts considerably by creating calculated field (if info needs to be parsed) for every varying icon and utilize that for image displaying. You don't need miles long if decision chains anymore after that.

So for example if tag value for [channels] = "5.1" and you have images in tooltip folder like "channels-5.1.png", "channels-6.1.png" etc... You could just simply call
Code: [Select]
<img src="tooltip:channels-[channels]"> and right image would be chosen to you given you have image named like that in folder. If there is no image then nothing is drawn in the screen.

No need to do anymore something complex like:
Code: [Select]
If(IsEqual([channels],5.1),<img src="tooltip:channels-5.1">,If(IsEqual([channels],6.1),<img src="tooltip:channels-6.1">,If(IsEqual(blah, blah),blah,blah))) etc etc etc.........
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 11, 2019, 10:48:36 am
Demonstrating above post:
Code: [Select]
If(IsEqual([Media Sub Type],Movie,1), <font size="200"><b>[Name]Delimit([Year],/),/# (#/)Delimit([Access Rating],/),/# (#/)<//b><//font> /[ <font color="#f69838">RatingStars() <//font>/]
<font size="120">If(!IsEmpty([MPAA Rating]),<img src="tooltip:rating-mpaa-[MPAA Rating]-grey">,<img src="tooltip:rating-mpaa-nr-grey">)<//font><font color="#9496a3" size="100"><b>   |   <//b><//font><font color="#9496a3" size="100">Size()   <b>|<//b><//font>   <font color="#9496a3" size="100"><i>Replace([Genre],;,  / // )<//i>   <b>|<//b>   [Date] /([Country]/)<//font>

<font size="150">If(IsEqual([Awards], Oscar, 8),If(IsEqual([Awards], Won, 8),<img src="tooltip:award-oscar-won">,<img src="tooltip:award-oscar-nomination">),)  If(!IsEmpty([Critic Rating]),<img src="tooltip:web-tmdb-wide"> [Critic Rating] ,) If(!IsEmpty([Rating IMDb]),<img src="tooltip:web-imdb"> [Rating IMDb] ,)  If(!IsEmpty([Rotten Tomatoes]),<img src="tooltip:web-rt"> [Rotten Tomatoes]%  If(IsEqual([Rotten Tomatoes], 60, 6),<img src="tooltip:web-rt-fresh">,<img src="tooltip:web-rt-splat">),)<//font>
____________________________________________________________________________________________________________________
If(!IsEmpty([Description]),<font size="115">[Description]<//font>,)
If(!IsEmpty([Keywords]), /
/(<i>[Keywords]<//i>/),)
____________________________________________________________________________________________________________________
If(!IsEmpty([Director]),<font size="120" color="#898989"><b>DIRECTOR:  <//b><//font><font color="#ffffff"><i>Replace([Director],;,  / // )<//i><//font>
,)If(!IsEmpty([Actors]),<font size="120" color="#898989"><b>STARS:  <//b><//font><font color="#ffffff"><i>Replace(ListLimit([Actors],5),;,  / // )<//i><//font>
,)If(!IsEmpty([Screenwriter]),<font size="120" color="#898989"><b>WRITER:  <//b><//font><font color="#ffffff"><i>Replace([Screenwriter],;,  / // )<//i><//font>
,)If(!IsEmpty([Screenwriter]),<font size="120" color="#898989"><b>PRODUCER:  <//b><//font><font color="#ffffff"><i>Replace([Producer],;,  / // )<//i><//font>

,)If(!IsEmpty([Budget]),<b>BUDGET:<//b> $Math(Trunc([Budget]/1000000,1)) Million  ,)If(!IsEmpty([Gross Revenue]),//  <b>GROSS REVENUE:<//b> $Math(Trunc([Gross Revenue]/1000000,1)) Million
,)If(!IsEmpty([Awards]), <b>AWARDS:<//b> <i>[Awards]<//i>
,)

____________________________________________________________________________________________________________________
<font size="310">If(IsEqual([Notes],HDR,8),<img src="tooltip:resolution-[Resolution]-hdr">,<img src="tooltip:resolution-[Resolution]">)<//font>If(!IsEmpty([Aspect Ratio]),/    <font size="310"><img src="tooltip:aspect-[AR-calculated]"><//font>,)   <font size=310><img src="tooltip:speakers-[Channels]"><//font>   <font size="310"><img src="tooltip:audio-[Audio Codec]"><//font>   <font size="310"><img src="tooltip:studio-ListItem([Production Companies],0)"><//font>
____________________________________________________________________________________________________________________
[Filename]

If(!IsEmpty(FilePlaylists()),Playlists:
  <b>FilePlaylists()<//b>,),)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 11, 2019, 11:07:06 am
Lepa, that is a great trick, I was wondering if it would work. I’m glad to see it does.

Question. I notice many of your screenshots have the studio/production company logo (like the Warner Brothers icon in your Bird screenshot). I’m curious where you’re pulling that data from?  Is it the Studio field from MCRatings?  I like the way it looks, but I have over 1,000 studios represented in my library and being the anal retentive completionist that I am it would drive me nuts if I didn’t have a logo for each one  ;D

On a different note, I’m trying to make it so we can search by actor in theater view https://yabb.jriver.com/interact/index.php/topic,121770.0.html
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 11, 2019, 11:19:19 am
Question. I notice many of your screenshots have the studio/production company logo (like the Warner Brothers icon in your Bird screenshot). I’m curious where you’re pulling that data from?  Is it the Studio field from MCRatings?  I like the way it looks, but I have over 1,000 studios represented in my library and being the anal retentive completionist that I am it would drive me nuts if I didn’t have a logo for each one  ;D
I have just done few biggest ones manually. Most of the movies contains one of big companies anyway. Not taking any pressure and creating one when feels like it. It's more convenient now, when you don't have to modify script but just create image and script will use it if it is found.

Field which get most often populated for me is [Production Companies] not sure is it MC, MCUtils or MCRatings originated..  ::)

I'm lazy and just did like this so it will check 5 fields from list
Code: [Select]
<font size="310"><img src="tooltip:studio-ListItem([Production Companies],0)"><//font><font size="310"><img src="tooltip:studio-ListItem([Production Companies],1)"><//font><font size="310"><img src="tooltip:studio-ListItem([Production Companies],2)"><//font><font size="310"><img src="tooltip:studio-ListItem([Production Companies],3)"><//font><font size="310"><img src="tooltip:studio-ListItem([Production Companies],4)"><//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 12, 2019, 10:21:17 am
I added a bunch of studio logos to my site, feel free to grab and add any you find.  https://moesrealm.com/MC/mc-images/
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 12, 2019, 01:03:10 pm
Actually found Python library (Pillow) (https://hhsprings.bitbucket.io/docs/programming/examples/python/PIL/ImageDraw.html) which could be used to add actor name into actor picture so that would be doable as a mass update. Already tested with one image and preliminarily worked. Would require just a little fine tuning.

BTW I actually used same 20th century fox image but added some lame spotlights there  :D
EDIT: Oh it's not the same after all
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 12, 2019, 01:22:15 pm
Actually found Python library (Pillow) (https://hhsprings.bitbucket.io/docs/programming/examples/python/PIL/ImageDraw.html) which could be used to add actor name into actor picture so that would be doable as a mass update. Already tested with one image and preliminarily worked. Would require just a little fine tuning.

That sounds very interesting.  I am not a programmer, so that looks a bit over my head.  It looks like it would just write their name over the image itself, so their name would be superimposed over the actual picture?  I am not sure how that would look.  I could easy write a macro in Photoshop to add blank space under the persons face.  As an example,

turn this (http://moesrealm.com/img/MC/DD1.png) into this (http://moesrealm.com/img/MC/DD2.png)

If we could get some automated way to pull the actor images from a source, that would go a long way in making this a somewhat realistic goal.  I really, really like the way that it looks in the screens you've shared.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 12, 2019, 01:32:40 pm
There are plenty of space below before face actually starts at least with those x-files images so I was thinking about overriding from below. Also there are complete example doing that (only misses making that part transparent). So something like this but the part where text is added would be completely transparent. Of course white font will only work for darker backgrounds. Also added blank space below is doable I'm sure but for my taste image will became quite tall and takes room from other stuff to be shown. In my TheaterView Example I also zoomed into faces...

Actually it looks kind of nice also with semi transparent mask.... Readability is my concern or maybe I just need glasses  8)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 12, 2019, 02:02:22 pm
That semi transparent mix looks pretty great actually.  I tried it with black text, here was the result

(http://moesrealm.com/img/MC/Gillian%20Anderson.png)

Or with a darker trasparent color and white text

(http://moesrealm.com/img/MC/Gillian-Anderson2.png)

I worry about images where the person's face takes up more of the picture.  Something like this https://image.tmdb.org/t/p/w600_and_h900_bestv2/ks7Ba8x9fJUlP9decBr6Dh5mThX.jpg may look a bit weird.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 12, 2019, 02:20:45 pm
Yeah, where are the standards when you need it....  :(
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 12, 2019, 02:37:04 pm
I updated the dark semi transparent mix and really like that look a lot.

I really hope that we can make this a reality in some sort of automated fashion. 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 17, 2019, 08:35:52 am
Question, is Theaterview-Audio screen included anywhere?
I like the one shown in first post and could use that for starters as a template.
Still have not got my head around how to start one on my own.
Thanks!
Just noticed this. I have not shared it because it included some special fonts I created. I will publish screen once the image support hopefully gets vertical alignation feature implemented.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: darky on August 17, 2019, 08:40:53 am
would it be possible to make this in a skin.zip....for us non skilled users?
I am sure many are hanging around in this forum drooling
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 17, 2019, 01:09:17 pm
would it be possible to make this in a skin.zip....for us non skilled users?
I am sure many are hanging around in this forum drooling

Unfortunately, not really.  There are a quite a few custom fields being used and a lot of meta data that is pulled using third party tools.  It could, theoretically, be possible.  But JRiver would need to start getting a lot more metadata and create a lot more stock fields.  That said, while it may look hard, once you get started and get a few things working it becomes pretty easy.  If you ever can't figure something out I am sure someone here could assist.  But, it does take time which isn't something we all have disposable amounts of to work on things like this.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on August 17, 2019, 04:09:25 pm
I've got something weird happening, and I'm not sure if it's this version of MC (25.0.92) or what it is. In my Tooltip field, I have the expression
Code: [Select]
FirstNotEmpty([Tooltip - Movie], [Tooltip - Audio])I have two custom fields, Tooltip - Movie and Tooltip - Audio. Worked great up until recently. Now all that is displayed is which ever is first after the FirstNotEmpty in my expression. I can swap them around and the tooltip only displays which ever is first regardless of file type.

Anyone else seeing this? Has something changed and I missing?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 17, 2019, 05:20:49 pm
Your expression looks correct to me, mine looks like this

Code: [Select]
FirstNotEmpty([Tooltip - Movie], [Tooltip - TV Show], [Tooltip - Audio])
Mine works as expected.

The only thing that I can think of that would cause that is if your [Tooltip - Audio] field is populated for your movies (or vice versa).  Then it wouldn't be empty and it would display.  Although, I am not even sure if that is possible.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 19, 2019, 10:17:00 am
MGD, I would try this.  First off, I would back up your [Tooltip - Movie] and [Tool Tip Audio] to a txt file.  I would then fill them in like so

For [Tooltip - Movie] put in

Code: [Select]
If(IsEqual([Media Sub Type],Movie,1),Movie,)
And for [Tooltip - Audio] put in

Code: [Select]
If(IsEqual([Media Sub Type],Audio,1),Audio,)
Then test a movie tooltip to see if it says the word "Movie" and an audio one to see if you see the word "Audio".  I am wondering if you've got a missing bit of code in one of your tooltips that is messing things up. 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on August 19, 2019, 10:50:12 am
MGD, I would try this.  First off, I would back up your [Tooltip - Movie] and [Tool Tip Audio] to a txt file.  I would then fill them in like so

For [Tooltip - Movie] put in

Code: [Select]
If(IsEqual([Media Sub Type],Movie,1),Movie,)
And for [Tooltip - Audio] put in

Code: [Select]
If(IsEqual([Media Sub Type],Audio,1),Audio,)
Then test a movie tooltip to see if it says the word "Movie" and an audio one to see if you see the word "Audio".  I am wondering if you've got a missing bit of code in one of your tooltips that is messing things up.

Thanks Moe. I'll give this a try tomorrow when I get home (currently out of town) and report the results.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on August 20, 2019, 07:01:19 pm
I am wondering if you've got a missing bit of code in one of your tooltips that is messing things up.

Moe, I tried what you suggested and the audio tooltip still didn't show up. However, I got it to work again by making the Tooltip field this:
Code: [Select]
FirstNotEmpty([Tooltip - Audio], [Tooltip - Movie])
I'm not sure why it works that way and not with Tooltip - Movie first, but it does. Thanks for the help!!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on August 25, 2019, 06:11:19 pm
Moe, I tried what you suggested and the audio tooltip still didn't show up. However, I got it to work again by making the Tooltip field this:
Code: [Select]
FirstNotEmpty([Tooltip - Audio], [Tooltip - Movie])
I'm not sure why it works that way and not with Tooltip - Movie first, but it does. Thanks for the help!!

OK, Ill quickly admit I'm a complete idiot when it comes to the coding aspects of MediaCenter but I had the exact problem and after much hair pulling and scratching I found that when I called my audio tooltip Tooltip - Music, everything worked as I expected.  I think my issue is because my music files are tagged with media type audio and media subtype music.  Since I don't have podcasts or other audio files in my library, this is as much resolution as I need but it might bear some scrutiny??
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 26, 2019, 06:04:10 am
OK, Ill quickly admit I'm a complete idiot when it comes to the coding aspects of MediaCenter but I had the exact problem and after much hair pulling and scratching I found that when I called my audio tooltip Tooltip - Music, everything worked as I expected.  I think my issue is because my music files are tagged with media type audio and media subtype music.  Since I don't have podcasts or other audio files in my library, this is as much resolution as I need but it might bear some scrutiny??
Good catch.

@MGD_King:
 - you should use
If(IsEqual([Media Type],Audio,1),GENERAL AUDIO TOOLTIP,)
and not [media sub type] as it doesn't have audio value.
By default any audio file in MC gets values [Media Type] = Audio and [Media Sub Type] = "". So if you want to use something more precise i.e separate different audio types to sub types you would need to fill [Media Sub Type] by hand or in the auto import rule. Then You could use different tooltip for example for music and audiobooks.

So with separate audio tooltips your calculated tooltips would be something like this:
[Tooltip] = FirstNotEmpty([Tooltip - Music], [Tooltip - Audiobook], [Tooltip - Movie])
[Tooltip - Music] = If(IsEqual([Media Sub Type],Music,1),CODE IN HERE WILL SHOW MUSIC TOOLTIP,)
[Tooltip - Audiobook] = If(IsEqual([Media Sub Type],Audiobook,1),CODE IN HERE WILL SHOW AUDIOBOOK TOOLTIP,)
[Tooltip - Movie] = If(IsEqual([Media Sub Type],Movie,1),CODE IN HERE WILL SHOW MOVIE TOOLTIP,)


Simple Audio tooltip example which will handle all the audio (name doesn't matter for MC it is just describing name for us humans but of course needs to match the field you have made):
[Tooltip] = FirstNotEmpty([Tooltip - Audio], [Tooltip - Movie])
[Tooltip - Audio] = If(IsEqual([Media Type],Audio,1),CODE IN HERE WILL SHOW TOOLTIP FOR AUDIO,)
[Tooltip - Movie] = If(IsEqual([Media Sub Type],Movie,1),CODE IN HERE WILL SHOW TOOLTIP FOR MOVIES,)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on August 30, 2019, 09:25:21 pm
Does anyone have a nice high def color quality png logo file for AllMusic?  The best I found was 168X30 and half of the logo is black.  Doesn't show up well on a black skin   :o
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 31, 2019, 12:42:14 am
Here are some.

http://www.tedhowe.com/uploads/1/2/0/8/120832526/b0f350-35a90036ecb94745880473df6a153178_orig.png
https://scontent-sjc3-1.xx.fbcdn.net/v/t31.0-8/10403872_820682787965526_6528951184189024639_o.png?_nc_cat=107&_nc_oc=AQm2wxI289Xc9i4e-UUzRRvI3iUsdIQCa60Z8-tUgz7v3vgQiSZbIWFomf9vo_vcZTU&_nc_ht=scontent-sjc3-1.xx&oh=84149090502f733bbe5b372b04ce34a0&oe=5DD56612
https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Allmusic.svg/1024px-Allmusic.svg.png
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on August 31, 2019, 12:55:22 pm
I got something new to share.

Banners
(http://www.moesrealm.com/img/MC/banner_01.png)

(http://www.moesrealm.com/img/MC/banner_02.png)

or Logos

(http://www.moesrealm.com/img/MC/logo_01.png)

(http://www.moesrealm.com/img/MC/logo_02.png)

I found this program called Mediaelch (https://www.kvibes.de/mediaelch/) which makes getting cover art, banners, logos, etc. very easy.  I then made a new field, currently called logos (I haven't decided between logos or banners) and it has one of these two values.

For logos

Code: [Select]
<img src="[Filename (path)]logo.png" width="800">
For Banners

Code: [Select]
<img src="[Filename (path)]banner.jpg" width="1000">
Then, as long as you have a file named logo.png or banner.jpg in the same directory as your movie, it will display.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 31, 2019, 02:15:01 pm
Nice! I particularly like transparent logos replacing movie name.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on August 31, 2019, 06:03:42 pm
Here are some.

http://www.tedhowe.com/uploads/1/2/0/8/120832526/b0f350-35a90036ecb94745880473df6a153178_orig.png
https://scontent-sjc3-1.xx.fbcdn.net/v/t31.0-8/10403872_820682787965526_6528951184189024639_o.png?_nc_cat=107&_nc_oc=AQm2wxI289Xc9i4e-UUzRRvI3iUsdIQCa60Z8-tUgz7v3vgQiSZbIWFomf9vo_vcZTU&_nc_ht=scontent-sjc3-1.xx&oh=84149090502f733bbe5b372b04ce34a0&oe=5DD56612
https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Allmusic.svg/1024px-Allmusic.svg.png

Thanks Moe, but in light of your follow up post, I may be departing on another track!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on August 31, 2019, 07:46:00 pm
OK, I can see some serious potential with this  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 01, 2019, 12:01:01 am
 I agree, it looks pretty awesome. :) 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 01, 2019, 03:02:57 am
I like it. It is nice to see that all the shared screens here are some kind of hybrids of self made and others work and especially when there is some own twists there which others can then copy 8) That is one of the big purposes of this thread I think.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 01, 2019, 11:55:43 am
I agree Lepa, I've definitely gotten some inspiration from other peoples views. 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 01, 2019, 12:00:04 pm
I agree Lepa, I've definitely gotten some inspiration from other peoples views.

Not to mention how instructive it is to see how others use the scripts/code to their advantage.  I've always learned more from taking things apart than from reading manuals or wiki's.  Just ask my parents about their Coco clock, or their car, or the HVAC system. . . ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 02, 2019, 12:54:37 am
I've been playing with logos a bit.  I think this looks pretty cool, but I am not 100% sold on it...

(http://www.moesrealm.com/img/MC/logos.png)

One thing I can't figure out, at least not gracefully, is how to display the name of the movie if I don't have the logo for it.  I tried If(!IsEmpty([Logo]),[Logo],[Name]) but since my logo field is always filled (<img src="[Filename (path)]logo.png" width="800">) it's never empty so it won't fall back to plain text.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 02, 2019, 03:39:17 am
How about a pretest using IsMissing(filepath)?


The IsMissing() function tests for the existence of a file in the file system. If the file is missing, the function returns 1, otherwise 0 is returned if the file exists. This function is useful for checking for missing files in a Library. IsMissing() treats special entries such as ripped Blu-ray or DVDs as single files, even though they physically exist in the file system as several files and directories.
Note: Any view or list that uses IsMissing() will be slow, is Media Center must interrogate each referenced file in the file system. The larger the number of files being queried, the longer it will take to produce results. Use IsMissing() with care.

Not sure if this qualifies as elegent and has the potential to be slow but might be worth a look-see?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on September 02, 2019, 04:24:27 am
IsMissing will definitely result in those views having potential performance issues, especially in key expressions like view text that'll be evaluated a lot.

Honestly, personally I'm not liking that style as much. Most of the time the logo is just duplicated from a bit further up in the poster anyway, and having a clearly readable name to go with the poster seems like a plus to me.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 02, 2019, 09:49:06 am
I kind of agree with Hendrik although I could use logo text in big screen for few iconic logos which are familiar to everybody like Indy and Back to the Future and such.

IsMissing() will surely slow things up massively and you need to have server available for every view change so if you want to check existance of the file maybe it would be better to do it with new custom db field [LogoExist] or something like that which you would populate originally from IsMissing() call. It would be of course manual or semi-automatic batch job but then you didn't have check every file real time.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 02, 2019, 10:05:40 am
it would be better to do it with new custom db field [LogoExist]

That was the ungraceful solution that I came up with as well. 

I am abandoning this idea though.  You can no longer hit the letter G on your keyboard and jump down to the movies that begin with G.  That's a deal breaker for me. While I do think it looks kind of cool, I think I'd get tired of it in a hurry.

Still, loving the image functionality that we have now!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 08, 2019, 03:03:51 pm
I've been playing around with my audio tooltip, not 100% sure about this layout, I am afraid it's presenting a little too much information.

(http://www.moesrealm.com/img/MC/audio-tooltip.png)

That review is right, I can 100% remember the first time I heard that album.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 08, 2019, 05:50:37 pm
Kind of like this one Moe, I may have to "borrow" some tidbits  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 08, 2019, 06:26:12 pm
Code: [Select]
I like the Album review, but not a fan of lyrics.
I am not 100% sure on it either.  I like having the lyrics, but it makes everything a bit crowded.

Code: [Select]
Like the general layout except for the left lower side is a little unbalanced.  I have this same issue when presenting data that doesn't fit in the nice little cubbyholes the skin allows
I couldn't agree with you more.  I think one of the biggest things the MC team could do for us now would be someway to position elements.  Whether it be something like DIVs or Tables, or something else.  Being able to position elements wherever we want would really open a lot of new possibilities.  There's just so much wasted space under the image and it would be really nice to use that space.

Code: [Select]
I was contemplating using the AllMusic Album Pick tag but already using the Track Pick and thought it might be a little much.  Your layout doesn't seem to overuse it so I may try it on mine ;D
I was worried it would look crowded/busy as well.  I think it looks fine though.

Code: [Select]
I like the use of the Total Tracks field both at the top and in the track number field
Hahaha, the 13 Songs at the top is there because the name of the album happens to be 13 Songs  ;D

Code: [Select]
Did you pull the Band Members data from the Discogs Artist ID tag?
I pull the band member data from MCUtils/AMG.  I wish it told you the members role in the band, something like:

Brendan Canty – Drums
Guy Picciotto – Vocals, Guitar
Ian MacKaye – Vocals, Guitar
Joe Lally – Bass Guitar, Vocals

Code: [Select]
Kinda thinking I like the color cyan for the track, duration, genre, date and media type line
I keep trying different colors but keep coming back to the Cyan.  It makes the line stand out enough but not call too much attention to itself.

Code: [Select]
Love your allmmusic logo.  Where did you find it?
I found it via Google, but I modified it.  In the original image the Music part of it was black text, I inverted it in Photoshop.  Here it is

(http://www.moesrealm.com/img/MC/allmusic.png)

Code: [Select]
Care to share how you did the Allmusic star rating instead of numbers?
Sure, it uses a font that I made that contains stars and half stars.  It can be found here http://moesrealm.com/img/MC/Fonts/ The stars are mapped to A,B,C,D (capital letters)

Then the expression is

Code: [Select]
<font face="Stars" color="226399" size="175">listitem(;D;B;BD;BB;BBD;BBB;BBBD;BBBB;BBBBD;BBBBB, math([AMG Rating] * 2))<//font>/
<font face="Stars" color="747474" size="175">listitem(BBBBB;BBBB;BBBB;BBB;BBB;BB;BB;B;B;, math([AMG Rating] * 2))<//font>

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 08, 2019, 06:47:56 pm
I couldn't agree with you more.  I think one of the biggest things the MC team could do for us now would be someway to position elements.  Whether it be something like DIVs or Tables, or something else.  Being able to position elements wherever we want would really open a lot of new possibilities.  There's just so much wasted space under the image and it would be really nice to use that space.

I'm thinking this is going to involve some deep diving into the theater skin

I pull the band member data from MCUtils/AMG.  I wish it told you the members role in the band, something like:

Brendan Canty – Drums
Guy Picciotto – Vocals, Guitar
Ian MacKaye – Vocals, Guitar
Joe Lally – Bass Guitar, Vocals
You can get this from MCUTILS as well.  You need to configure the AMG script to pull the credits tag then use the Varlist option to organize the credits into Keywords.  The generic instructions are in the amg+discogs.txt configuration file.  Its in the MCUtils\data\config subdirectory:

#==========================================================================================
# Credits
#
# You can define how Credits are handled.  Credits are split into a Name and one or more
# Roles.  For example, the credits:
#
#    Joe Batonwaiver      Conductor, Artist
#    Sally Hornblower      Artist
#
# will be split into a series of role-based lists of names:
#
#    Conductor:  Joe Batonwaiver
#    Artist:     Joe Batonwaiver,Sally Hornblower
#
# You can define how you want the roles to be handled.  They can be mapped into an MC field,
# or can be ignored (i.e. suppressed).  You define a pattern that matches the name of the
# role, and an MC field name where the list of names will be stored.
#
# A Credits mapping is of the form:
#
#     destination:rolepattern
#
# The 'rolepattern' is a regular expression pattern used to match the role's name.  It is a
# regular expression coerced to be fully anchored, which means your 'rolepattern' must
# entirely match all of the characters in the role's name.
#
# The 'destination' can be either the word 'ignore', which means this role will be ignored
# entirely, or it can be an MC field name such as Producer, Composer, Musicians, etc.
#
# You can have multiple Credits mapping definitions, and each Credits line is a comma-
# separated list of mappings.  The role matching is done in the order you've listed the
# mappings.  The first role that matches, wins.
#
# Examples:
#
#   The following two examples ignore any credit that begins with 'Technical As', 'Photo'
#   or 'Saxophone', and map the credit 'Producer' and 'Composer' to the MC fields Producer,
#   and Composer, respectively.  Both examples are equivalent, the second one employing a
#   regular expression using alternation.
#
#   Amg::VarList:     Credits = ignore:Technical As.*:, ignore:Photo.*, ignore:Saxophone, Producer:Producer, Composer:Composer
#   Amg::VarList:     Credits = ignore:(Technical As.*|Photo.*|Saxophone), Producer:Producer, Composer:Composer
#
#   This example shows that multiple Credits lines may be used, making your credit mappings
#   easier to read.  Credits mapping definitions are cummulative.
#
#   Amg::VarList:     Credits = ignore:(Technical As.*|Photo.*|Saxophone)
#   Amg::VarList:     Credits = ignore:Marketing
#   Discogs::VarList: Credits = Producer:Produce.*
#   Discogs::VarList: Credits = Writer:Written-By

#==========================================================================================


I found it via Google, but I modified it.  In the original image the Music part of it was black text, I inverted it in Photoshop.  Here it is

Thanks, it looks much better than the one I was using.  I may have to break down and open Photoshop one of these days

Sure, it uses a font that I made that contains stars and half stars.  It can be found here http://moesrealm.com/img/MC/Fonts/ The stars are mapped to A,B,C,D (capitol letters)

Then the expression is

Code: [Select]
<font face="Stars" color="226399" size="175">listitem(;D;B;BD;BB;BBD;BBB;BBBD;BBBB;BBBBD;BBBBB, math([AMG Rating] * 2))<//font>/
<font face="Stars" color="747474" size="175">listitem(BBBBB;BBBB;BBBB;BBB;BBB;BB;BB;B;B;, math([AMG Rating] * 2))<//font>

Thanks! This will be integrated in a few minutes.  I feel better about this already :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 08, 2019, 07:02:33 pm
Unfortunately, credits and band members are different (unless I am missing something).  As an example, using the same band/album I showed in my screenshot https://www.allmusic.com/album/13-songs-mw0000206716/credits

The band members are:

Group Members
Brendan Canty
Guy Picciotto
Ian MacKaye
Joe Lally
Jerry Busher

But the credits are

Brendan Canty    Drums
Glen E. Friedman    Photography
Fugazi    Composer, Primary Artist, Producer
Paul Gadd    Engineer
Edward Janney    Guitar
Joe Lally    Bass
John Loder    Engineer, Producer
Ian MacKaye    Guitar, Vocals
Ted Niceley    Producer
Guy Picciotto    Guitar, Vocals
Bert Queiroz    Photography
Don Zientara    Engineer

I know that I can filter out people/roles.  But using credits would tell me that Edward Janney is a band member, and he is not (or course I wouldn't include Jerry Busher as a band member either and AMG does).  Maybe that would be rare, I don't know.  I wonder if there is anyway to use group members to filter credits? 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 08, 2019, 11:48:17 pm
Try including artistid, artistmembers and artistmemberof in your config line.  When I tested this config, I got a lot of good info back (see below)  You will have to create fields for Bass, Guitar, Keyboards, Drums, Artist Members and maybe a few others.  Does this help?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 08, 2019, 11:58:25 pm
For amg I've been using just fonts. Not exactly correct fonts I guess but was close enough for me
Code: [Select]
<font face="Verdana" size="150" color="#0e76bc"><b>ALL<//b><//font><font face="Lato Light"size="150">MUSIC <//font>
I also uploaded some of my amg images to Moe's if someone finds them useful.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 09, 2019, 12:16:41 am
Try including artistid, artistmembers and artistmemberof in your config line.  When I tested this config, I got a lot of good info back (see below)  You will have to create fields for Bass, Guitar, Keyboards, Drums, Artist Members and maybe a few others.  Does this help?

I am already pulling a ton of fields from AMG. The problem with using credits is you’re going to get a lot of information that isn’t really relevant and will be hard to filter if all you want is the core band menders.

Here’s an example. The Deftones album White Pony. https://www.allmusic.com/album/white-pony-mw0000608982 It lists Maynard James Keenan as a composer, vocals. He only sings on one song and he’s not a member of the band.

For me, artistmembers doesn’t have enough information and credits has too much information.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 09, 2019, 12:18:04 pm
Understood.  I pull a lot of data from AMG as well but I think to get the type of data your looking for, accurately, formatted in something usable you might have to cull multiple sources then do a format routine which is beyond the expression language will support currently. 

Ironically, I find a lot of disparity between Discogs, AMG, MusicBrains and even Wikipedia so it makes me question which one is accurate?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 09, 2019, 01:05:26 pm
Yeah, I am finding the same thing.  Also, some bands lineup has changed over the years, it can be hard to keep things straight.  I found this site (http://www.umdmusic.com/default.asp?Lang=English&Umd=F7138&View=I) which has a pretty clean and simple band member section.  They also deal with former members pretty well (http://www.umdmusic.com/default.asp?Lang=English&Umd=R14544&View=I).  Of course, I don't think they have an API and I'd never even heard of this place before. 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 10, 2019, 12:27:32 am
I changed my half stars.  The downside of using fonts for half stars is you can only do one color.  I wanted my half star to be half the color of a rated star and half the default gray of an unrated star.  So I created one.

It looks like this in use.

(http://moesrealm.com/img/MC/half-stars.png)

New half stars on the left, old half stars on the right. 

I could have done it by creating 10 images (one for each possible rating), which would have made the expression look a bit cleaner.  But I did it by creating three images (full star, half star, empty star), which makes the expression not the prettiest.

Code: [Select]
listitem(;<img src="tooltip:Star-half" height="12">;<img src="tooltip:Star" height="12">;<img src="tooltip:Star" height="12"><img src="tooltip:Star-half" height="12">;<img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12">;<img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star-half" height="12">;<img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12">;<img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star-half" height="12">;<img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12">;<img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star-half" height="12">;<img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12"><img src="tooltip:Star" height="12">, math([AMG Rating] * 2))/
listitem(<img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12">;<img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12">;<img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12">;<img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12">;<img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12">;<img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12">;<img src="tooltip:Star-null" height="12"><img src="tooltip:Star-null" height="12">;<img src="tooltip:Star-null" height="12">;<img src="tooltip:Star-null" height="12">;, math([AMG Rating] * 2))

If you want the stars, I've uploaded them to my site (https://moesrealm.com/MC/mc-images/)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 10, 2019, 12:11:12 pm
Which version of PS are you using?  I perused your PS tutorials so I guess now I need to improve my PS skills (which is easy because I have none)  I just hate PS subscription version they're big on now.  I was wondering where you hid the Album Pick logo ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 10, 2019, 12:27:33 pm
I have a creative cloud license, my work pays for it :)

Those tutorials are old, they were written 15-20 years ago.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 10, 2019, 12:45:14 pm
Added some useless information on small screen   ;D
I would like to add some transparency for the selector background but can't find which file it is using..
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 10, 2019, 01:14:36 pm
I like it, looking good. 

I don't know what theme you're using and I don't have it.  But for my theme that selector is located at C:\Program Files (x86)\J River\Media Center 25\Skins\Theater View\Obsidian - Clock\List and the file is called ListSelection.png

If I were using your theme, I think I would want the track numbers next to the song titles.  But that's a personal thing.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 10, 2019, 01:20:19 pm
I don't know what theme you're using and I don't have it.  But for my theme that selector is located at C:\Program Files (x86)\J River\Media Center 25\Skins\Theater View\Obsidian - Clock\List and the file is called ListSelection.png

If I were using your theme, I think I would want the track numbers next to the song titles.  But that's a personal thing.
Thanks. Hmm.. I have already tried that one. Maybe restart is needed.. You might be right that track numbers could give a little better structure there. I'll try it!

EDIT: Now I remember why I don't have track numbers there. It's because track numbers would then also be shown in every other views which might not be album centric. As row template is shared with every audio view
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 10, 2019, 02:35:11 pm
Ah, that makes sense. 

I sooooo wish we could have a new way of doing things in Theaterview.  For music have an artist level where we could choose to display things related to the artist as a whole.  Stuff like their bio, band members, years active, similar artist etc.  Of course, also show all the albums that we have for that artist.   Then have an album level view, which shows all the information that is pertinent to that album, Album reviews, track list, guest artists, album credits, etc.  And then finally a song level view where we can show information specific to that song, chart placement, song reviews, guest artist(s), featured artists, etc.

And then do the same thing for TV shows.  A Series level, a season level and then an episode level.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 10, 2019, 08:29:22 pm
I got the start of actor images up and running (I just kind of threw them in for now).

(http://www.moesrealm.com/img/MC/actors-theater.png)

I'm running out of screen real estate!  I'd love to be able to make the poster smaller (it takes up ~35-40% of the screen width) and then utilize the space underneath it (at minimum). 

If anyone from MC is still paying attention, is there any chance of this happening?  Given the ability to position things where we want them in Theater View could really revolutionize the way that theater view looks.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 10, 2019, 10:45:04 pm
Tools - Options - Theater View - Customize file info panel...

When you select the Movie template from the drop down list click Manage - edit Template.  Under the General settings, there is a drop down called Style, select Small Image

This will shrink the size of the poster, but I don't believe you can put anything in the created space.  Perhaps one of the more experts can comment??
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 10, 2019, 11:22:48 pm
Yeah, I am aware of that setting. You can also disable the poster entirely if you want.  The problem is theater view is essentially a series of rows, but only one column (two if you include the poster column).  With the way things are now it's hard to put two elements side by side, especially if they are of different heights or putting multiple lines of text next to an image.

If we could subdivide a row we'd have a lot more options in where we could place element.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 11, 2019, 12:03:03 pm
I'm running out of screen real estate!  I'd love to be able to make the poster smaller (it takes up ~35-40% of the screen width) and then utilize the space underneath it (at minimum). 
  ;D
I'll probably experiment something like that I have "main page" always nice and clean and then have empty space (to make sure about that nice and clean) and when going down from there there will be elements of all of the other secondary stuff revealed e.g. links to other movies in that series etc.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 11, 2019, 09:12:48 pm
I thought I was on to something here.  In the first picture the picture of the person and their name is all one field called [Actor 1]  It looks like

Code: [Select]
regex(listitem([TMDB Actors Name],0), /#(.+)#/,-1)<img src="C:\Users\Moe\Desktop\MCArt\Actors\[R1].jpg" height="200"><br><font size="50">listitem([Cast 2],0,<//i>)<//font>
(http://moesrealm.com/img/MC/yay.png)

But then I tried adding a second person and everything falls apart.

(http://moesrealm.com/img/MC/boo.png)

It appears that MC is honoring the break tag that's encoded into field.  I was hoping it wouldn't do that then we could put all the actors in a row without tables.  I don't know why the fonts are getting all tiny either (but I didn't spend much time looking either).

Back to the drawing board...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 15, 2019, 08:04:32 pm
(http://www.moesrealm.com/img/MC/actors-theater2.png)

Not as good as horizontal images, but I do like that I can get the actors name and their role next to their image. 

The more I work on this stuff though the more I realize MC really needs to give us some control for placement.  I know I probably sound like a broken record, but please, please, please help us out here.  We could really achieve some awesome stuff.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 16, 2019, 12:41:40 am
+1

But I suspect the placement is controlled by the skin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 16, 2019, 09:06:46 pm
This was a fun(?) challenge.  I am not sure how I feel about it, but it works.

(http://www.moesrealm.com/img/MC/solo.jpg)

I made it so it will automatically crop names that are too long to fit in the provided space so the columns will stay in alignment.  It's not perfect as not all my images are the same width.  But it was a fun exercise.  I am not a big fan of the monospace font that is required to pull this off.

There are ten fields, one for each actor.  They all look pretty much the same with the ListItem number changing for each.  Here is the code.

Code: [Select]
regex(listitem([TMDB Actors Name],0), /#(.+)#/,-1)<img src="C:\Users\Moe\Desktop\MCArt\Actors\[R1].jpg" height="100"> <font face="Anka//Coder Narrow">if(compare(length(ListItem([Cast 3],0,<br>)), >=, 45), Left(ListItem([Cast 3],0,<br>), 44), ListItem([Cast 3],0,<br>)<//font><font face="Anka//Coder Narrow"  alpha="0">listitem(;_;__;___;____;_____;______;_______;________;_________;__________;___________;____________;_____________;______________;_______________;________________;_________________;__________________;___________________;____________________;_____________________;______________________;_______________________;________________________;_________________________;__________________________;___________________________;____________________________;_____________________________;______________________________;_______________________________;________________________________;_________________________________;__________________________________;___________________________________;____________________________________;_____________________________________;______________________________________;_______________________________________;________________________________________;_________________________________________;__________________________________________;___________________________________________;____________________________________________;_____________________________________________;______________________________________________;_______________________________________________;, Math(44-Length(ListItem([Cast 3],0,<br>))),;))<//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 17, 2019, 01:53:55 am
Moe,
Thanks for enticing me to come to grips with the regex function 8).

Aside from a massive migraine, I have but one question.....what is [Cast 3]?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 17, 2019, 10:24:44 am
Regex is incredibly useful and powerful, I am a recent student of it myself.  That said, I just realized that the regex part is not necessary at all, it's a remnant of some other function that I borrowed while I was putting this together. 

Code: [Select]
regex(listitem([TMDB Actors Name],0), /#(.+)#/,-1)<img src="C:\Users\Moe\Desktop\MCArt\Actors\[R1].jpg" height="100">
Could simply be

Code: [Select]
<img src="C:\Users\Moe\Desktop\MCArt\Actors\listitem([TMDB Actors Name],0).jpg" height="100">
Quote
Aside from a massive migraine, I have but one question.....what is [Cast 3]?
That would probably be useful information, huh?

[Cast 3] is

Code: [Select]
Replace(Replace(Replace([TMDB Actors],- {,- /  ),; ,<br>),},)&DataType=[list]
I have MCUtils pull down actor information from TMDB in the following format Actor Name - {Character Name} and I've also remapped it to my own custom field called [TMDB Actors] (instead of using the default [Actors] field).  So, [Cast 3] converts "Bob Smith - {Henry Ford}" to "Bob Smith - Henry Ford"
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on September 17, 2019, 07:33:23 pm
Code: [Select]
<img src="C:\Users\Moe\Desktop\MCArt\Actors\listitem([TMDB Actors Name],0).jpg" height="100">

Missing a "\" there?

Code: [Select]
<img src="C:\Users\Moe\Desktop\MCArt\Actors\listitem\([TMDB Actors Name],0).jpg" height="100">
It was a test to see if we are reading, wasn't it?!  ;D


I'm also not sure about the ([TMDB Actors Name],0) section. Maybe [TMDB Actors Name,0]?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 17, 2019, 08:43:06 pm
No, there's no missing "\"   Putting a \ in the middle of the listitem function would break the listitem function.

If my TMDB Actors field has the value of

Robert Redford; Sam Kinison; Carrie Fischer; Kevin Bacon

Code: [Select]
listitem([TMDB Actors Name],0).jpg
What this is saying is return the first item in the list (lists are zero-based, so the first item is 0, second is 1, etc.)  and then append .jpg to the end.  So that code returns "Robert Redford.jpg"

Code: [Select]
listitem([TMDB Actors Name],1).jpg
Would return "Sam Kinison.jpg"

[TMDB Actors Name,0]

Would return the entire list of actors.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on September 17, 2019, 09:04:30 pm
Oh I see. I skipped over that "listitem" was a function in that expression. Doh!  8)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 17, 2019, 10:05:05 pm
[Cast 3] is

Code: [Select]
Replace(Replace(Replace([TMDB Actors],- {,- /  ),; ,<br>),},)&DataType=[list]
I have MCUtils pull down actor information from TMDB in the following format Actor Name - {Character Name} and I've also remapped it to my own custom field called [TMDB Actors] (instead of using the default [Actors] field).  So, [Cast 3] converts "Bob Smith - {Henry Ford}" to "Bob Smith - Henry Ford"

Cool...

I specified TMDB.PL to return Actors as:

Code: [Select]
TMDB::Var: Actors_format      = name [character] # how each actor should be formatted
and then used Regex to strip the name from the name [character] list item:

Code: [Select]
regex( listitem( [TMDB Actors], 0), /#(.+) [[]#/, 0)
and displayed the image as

Code: [Select]
<img src="C:\Program Files\J River\Media Center 25\Data\Tooltip\Actors\[TMDB ID]\[R1].jpg" height="100">
Thus far though, only puts up the first actor image so clearly there is more investigation to be done :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 18, 2019, 09:58:26 am
Thus far though, only puts up the first actor image so clearly there is more investigation to be done :)

That's because

Code: [Select]
regex( listitem( [TMDB Actors], 0), /#(.+) [[]#/, 0)
is using the listitem function which only returns the first actor

You need to create a new field for each actor.  So for actor 2 it will look like

Code: [Select]
regex( listitem( [TMDB Actors], 1), /#(.+) [[]#/, 0)
Actor 3

Code: [Select]
regex( listitem( [TMDB Actors], 2), /#(.+) [[]#/, 0)
and so on and so forth.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 18, 2019, 12:12:28 pm
I had hoped to avoid multiple calls with a shifting data set but would rather make a single call to a single inclusive data point.  I played around with Regex using the entire TMDB Actors field but was not able to come up with a regex expression that would encompass the entire list but so far not good.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 18, 2019, 12:35:48 pm
JRiver's implementation of regex is... lacking as it can not do global searches/captures.  It can only store 9 variables at a time.  This post (https://yabb.jriver.com/interact/index.php/topic,120778.msg835056.html#msg835056) explains the problem way better than I could.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 18, 2019, 12:59:02 pm
JRiver's implementation of regex is... lacking as it can not do global searches/captures.  It can only store 9 variables at a time.  This post (https://yabb.jriver.com/interact/index.php/topic,120778.msg835056.html#msg835056) explains the problem way better than I could.

Interesting.  I like bigentry's suggestions.  Not really interested in the replace functionality but number 3 would be nice as long as you were operating on a copy of your tag so the original tag wasn't destroyed in the process.

It seems to me that a regex based replace would fix a good number of these kinds of cases.  Ala, "s/find/replace/g" from perl, sed, and friends.  Maybe something like:

Code: [Select]
RegexReplace(String, Search Regex, Replace Regex, mode)

example:

Code: [Select]
RegexReplace([Name], /#\(.+\)/#,,0)

This would replace everything between parenthesis in the [Name] field with nothing.  Deleting those substrings.
Modes might include:
0: operate globally on the entire string (like the g modifier in perl and sed)
1.: operate only on the first match (like not using a modifier in perl and sed)
2: delete the regex substring (like using d in sed)

Brian.

Currently, I think my expression field would look a lot like mark_h's in order to allow me to parse the entire [TMDB Actors] field ;D

Well, this monstrosity fits my needs:

listcombine(if(isequal(regex(if(isequal(regex(if(isequal(regex(if(isequal(regex(if(isequal(regex(if(isequal(regex(if(isequal(regex(if(isequal(regex(if(isequal(regex(if(isequal(regex(if(isequal(regex(if(isequal(regex(if(isequal(regex([performer (no guests)],/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),/#^(([^\(]+)\([^\)]+\)+(.*)|(.*))#/,-1)[R1][R2][R3],(,8),[R2][R3],[R1]),)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 19, 2019, 12:01:12 pm
Absinth, this part of your code is redundant

Code: [Select]
regex( listitem( [TMDB Actors], 0), /#(.+) [[]#/, 0)
With listitem you can select what you want the delimiter to be.  Since you have MCUtils pull down actor information in the following format name [character] you could just use [ as your delimiter and it would return the actors name. 

So, turn this

Code: [Select]
listitem( [TMDB Actors], 0)
Into

Code: [Select]
listitem( [TMDB Actors], 0,[)
Then there is no need for the regex step :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on September 19, 2019, 01:48:30 pm
Absinth, this part of your code is redundant

Code: [Select]
listitem( [TMDB Actors], 0,[)
Then there is no need for the regex step :)

Thanks, and strangely enough, I thought this would work as well, but for some reason, it returns the expected results for
Code: [Select]
Listitem[TMDB Actors], 0,[) but not for
Code: [Select]
Listitem[TMDB Actors], 1,[)
for the second call, it returns everything between the "]" of the first Listitem call and the "[" of the second Listitem.  It almost seems that by specifying a delimiter, it is bypassing the ";" in the list structure.  Is this working for you?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on September 19, 2019, 03:09:58 pm
That's correct because you're telling the listitem function that [ is your delimiter so it doesn't think that ; is anymore.

You could either modify how MCUtils pulls down your actor information, something like First Last - [character name] and then use the - as your delimiter.  Or capture the character name using regex. Something like .*\[(.*)\]
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on September 21, 2019, 01:17:43 pm
You crazy crazy boys  ;D ;D ;D




(Keep doing this!)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 22, 2019, 04:32:05 am
I thought I was on to something here.  In the first picture the picture of the person and their name is all one field called [Actor 1]  It looks like
.....
It appears that MC is honoring the break tag that's encoded into field.  I was hoping it wouldn't do that then we could put all the actors in a row without tables.  I don't know why the fonts are getting all tiny either (but I didn't spend much time looking either).

Back to the drawing board...
I think that's why I did two rows when first experimenting this, so all the images are in the first row and then second row consist of all the names and because we don't have tables it is really hard to align name with above picture.

One solution would be to automatically create images (with same width as face photo) which contains desired text (actor name, role name, whatever) and use it instead of font text. That would align with face because width would be the same.

Other solution would be to add name label into face images like discussed earlier.

Both solutions can be done at least semi-automatic. I might also look into this when I got some free time if anyone else doesn't have done this e.g. as programming exercise  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 03, 2019, 01:22:31 pm
(http://moesrealm.com/img/MC/pulp-fiction.jpg)

Thanks to an update to MCUtils, actor image/name/role is completely automated.  I created different templates as well. If you want circular images, à la Plex, you can do that.

(http://moesrealm.com/img/MC/uma.png) 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 03, 2019, 02:03:38 pm
oh yeah  8) Haven't still got time to sit down myself and try the actor fetch yet but it seems  to work just fine  :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on October 03, 2019, 02:33:16 pm
(http://moesrealm.com/img/MC/pulp-fiction.jpg)

Thanks to an update to MCUtils, actor image/name/role is completely automated.  I created different templates as well. If you want circular images, à la Plex, you can do that.


Wow!!! That looks awesome!!! You have inspired me again to work some more on my layout.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 03, 2019, 02:33:34 pm
Man, oh, man.
This is awesome.

I know that perhaps every clue on how to make this is in this thread but boy would I love to have, when you guys are satisfied, a step by step tutorial on how to get this end result.


Cheers!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on October 03, 2019, 02:37:16 pm
Man, oh, man.
This is awesome.

I know that perhaps every clue on how to make this is in this thread but boy would I love to have, when you guys are satisfied, a step by step tutorial on how to get this end result.


Cheers!
THIS
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 03, 2019, 03:11:30 pm
I don't think the official MCUtils release has it yet, I've been helping with testing it do I got an early release.  I am sure it will be released soon.  The above is pretty much one of the defaults in the script (I just changed the font color) so it should be easy to grab actor images with their name/role attached.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on October 04, 2019, 12:40:18 pm
I don't think the official MCUtils release has it yet, I've been helping with testing it do I got an early release.  I am sure it will be released soon.  The above is pretty much one of the defaults in the script (I just changed the font color) so it should be easy to grab actor images with their name/role attached.

Hey Moe, I notice you seem to have different fonts in the Actor/Character fields.  Is this by happy accident, or did you change them along with the color?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 04, 2019, 01:15:04 pm
The actors name is in Segoe-Ui-Semibold and their characters name is in Segoe-UI-Italic.  This should be a default in MCUtils for "caption2".

MCUtils is using imagemagick (https://imagemagick.org/index.php) for post processing of the images that it downloads from tmdb.  If you can figure out imagemagick, you can do lots and lots of different things with the raw actor images.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 05, 2019, 01:34:13 pm
Today I have been playing around customizing my file info panel in Theater view.
Thank you all for contributing lines of code.

I have used Moes Tooltip01-fonts to great success and pasted som suggestions from Lepa.

I have used code from Lepa but I need help to tweak it so that there will only be TMDb icon and the ratings number.
I would like to keep the green "The MOVIE DB" icon but not the text TMDb.

Moe suggested a snippet of code that I think will do that but I cant understand where to paste it.

This is Moes snippet of code:
Code: [Select]
mid([critic rating], 5, 3)
And here is the code that I use from Lepa:
Code: [Select]
If(IsEqual([Awards],Oscar,8),If(IsEqual([Awards],Won,8),<font face="ToolTip01" size="110" color="#b59031">4 <//font><font face="ToolTip01" size="200" color="#FFFF00">@  <//font>,<font face="ToolTip01" size="110" color="#b59031">4 <//font><font face="ToolTip01" size="200" color="#a6a6a6">@  <//font>),)If(!IsEmpty([Critic Rating]),<font face="ToolTip01" size="110" color="#01CB73">; <//font>[Critic Rating]    ,)If(!IsEmpty([IMDb Rating]),<font face="ToolTip01" size="110" color="#E8B708">7 <//font>[IMDb Rating]    ,)If(!IsEmpty([Rotten Tomatoes]),<font face="ToolTip01" size="110" color="#ED1C08">8 <//font>[Rotten Tomatoes]% If(IsEqual([Rotten Tomatoes],,0),,If(IsEqual([Rotten Tomatoes],60,6),<font face="ToolTip01" size="150" color="#F13008">: <//font>,<font face="ToolTip01" size="150" color="#0FC152">9<//font>)),)


Can someone please tell me where to paste the code so that there is only the green "The MOVIE DB" and the rating of course.


Please see attachment where I have crossed over the part that I don't want with a yellow X.


Many thanks,
//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 05, 2019, 02:23:35 pm
Here you go, use this snippet in place of lepa's

Code: [Select]
If(IsEqual([Awards],Oscar,8),If(IsEqual([Awards],Won,8),<font face="ToolTip01" size="110" color="#b59031">4 <//font><font face="ToolTip01" size="200" color="#FFFF00">@  <//font>,<font face="ToolTip01" size="110" color="#b59031">4 <//font><font face="ToolTip01" size="200" color="#a6a6a6">@  <//font>),)If(!IsEmpty([Critic Rating]),<font face="ToolTip01" size="110" color="#01CB73">; <//font>Mid([Critic Rating],4,10)    ,)If(!IsEmpty([IMDb Rating]),<font face="ToolTip01" size="110" color="#E8B708">7 <//font>[IMDb Rating]    ,)If(!IsEmpty([Rotten Tomatoes]),<font face="ToolTip01" size="110" color="#ED1C08">8 <//font>[Rotten Tomatoes]% If(IsEqual([Rotten Tomatoes],,0),,If(IsEqual([Rotten Tomatoes],60,6),<font face="ToolTip01" size="150" color="#F13008">: <//font>,<font face="ToolTip01" size="150" color="#0FC152">9<//font>)),)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 05, 2019, 02:45:00 pm
YOU ARE THE MAN!
This works just perfect.

Thank you and Have a great weekend!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 06, 2019, 04:22:21 am
I going deeper and deeper (baby steps) into customizing my file info panel in Theater view.

When I imported data with MC Ratings I came across the Metascore value.
In Metacritic the score is color coded green, yellow and red with the metascore inside that colored box.

Has the color coded value be added into the file info panel before?
(I don't see anyone using the metascore in their screenshots)


Next question:
How do I get a .png image into an expression?
I was thinking that I could add the Metacritic logo to the right of the other rating images and values and then add the metascore value after the inserted .png. If there are no metascore value the .png would not show up.

The .png in question is this one:
(https://pbs.twimg.com/profile_images/527528131171590144/EQXs3lpX_400x400.png)

Sorry for the huge image...


And finally:
Be able to color code the metascore value as per these values.
0-39 = RED COLOR
40-60 = YELLOW COLOR
61-100 = GREEN COLOR

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 06, 2019, 05:01:59 am
Following expression (not tested) would show rating-MetaScoreRed.png / rating-MetaScoreYellow.png / rating-MetaScoreGreen.png if field [MetaScore] has some (numeric) value and after png [MetaScore] value is displayed. Gotta go now so no time to explain things more right now.
Images in this example needs to be in MC data/tooltip folder..

<font size="110">If(!IsEmpty([MetaScore]),IfElse(IsEqual([MetaScore],39,4),<img src="tooltip:rating-MetaScoreRed">,IsEqual([MetaScore],60,4),<img src="tooltip:rating-MetaScoreYellow">,IsEqual([MetaScore],100,4),<img src="tooltip:rating-MetaScoreGreen">) [MetaScore],) <//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 06, 2019, 06:41:20 am
Hi Lepa and thank you,
Yes, the code you provided worked out just fine.
I did a slight adjustment from my initial thought and color coded the actual Metacritic logo in green, yellow and red instead and I'm letting the actual value be in white as the rest of the values are white.
I think the end result came out quite nice, se screen shot.

I attach the Metacritic icons for others to use or improve upon, they are quite jagged upon closer inspection.

This is the entire code if someone is interested.
Code: [Select]
If(IsEqual([Awards],Oscar,8),If(IsEqual([Awards],Won,8),<font face="ToolTip01" size="110" color="#b59031">4 <//font><font face="ToolTip01" size="200" color="#FFFF00">@  <//font>,<font face="ToolTip01" size="110" color="#b59031">4 <//font><font face="ToolTip01" size="200" color="#a6a6a6">@  <//font>),)If(!IsEmpty([Critic Rating]),<font face="ToolTip01" size="110" color="#01CB73">; <//font>Mid([Critic Rating],4,10)    ,)If(!IsEmpty([IMDb Rating]),<font face="ToolTip01" size="110" color="#E8B708">7 <//font>[IMDb Rating]    ,)If(!IsEmpty([Rotten Tomatoes]),<font face="ToolTip01" size="110" color="#ED1C08">8 <//font>[Rotten Tomatoes]% If(IsEqual([Rotten Tomatoes],,0),,If(IsEqual([Rotten Tomatoes],60,6),<font face="ToolTip01" size="150" color="#F13008">: <//font>,<font face="ToolTip01" size="150" color="#0FC152">9<//font>)),)   <font size="110">If(!IsEmpty([MetaScore]),IfElse(IsEqual([MetaScore],39,4),<img src="tooltip:rating-MetaScoreRed">,IsEqual([MetaScore],60,4),<img src="tooltip:rating-MetaScoreYellow">,IsEqual([MetaScore],100,4),<img src="tooltip:rating-MetaScoreGreen">) [MetaScore],) <//font>
Cheers,


UPDATE:
Upon more inspection I see that the Metascore icon is bigger if there is a Oscar statue/logo as opposed to if there is no Oscar logo.
Se attached screen shot Large MC.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 06, 2019, 07:56:02 am
UPDATE:
Upon more inspection I see that the Metascore icon is bigger if there is a Oscar statue/logo as opposed to if there is no Oscar logo.
Se attached screen shot Large MC.
That's because MC's image support is still a little rough on edges. You can remove <font size="110"> <//font> tags which are surrounding that metacritic part. I'm using font size to make row of images to be displayed as same height. So I will surround whole ratings row with some font size value.

This is one example with images only and not using logo fonts at all:
<font size="110">If(IsEqual([Awards],Oscar,8),If(IsEqual([Awards],Won,8),<img src="tooltip:award-oscar-won-text">  <img src="tooltip:award-oscar-won-figure">,<img src="tooltip:award-oscar-nominated-text">  <img src="tooltip:award-oscar-nominated-figure">)/    ,)If(!IsEmpty([Critic Rating]),<img src="tooltip:web-tmdb-wide"> RemoveCharacters([Critic Rating],TMDb/ ,1)/    ,)If(!IsEmpty([Rating IMDb]),<img src="tooltip:web-imdb"> [Rating IMDb]/    ,)If(!IsEmpty([Rotten Tomatoes]),<img src="tooltip:web-rt"> [Rotten Tomatoes]% If(IsEqual([Rotten Tomatoes],60,6),<img src="tooltip:web-rt-fresh">,<img src="tooltip:web-rt-splat">)/   ,)If(!IsEmpty([MetaScore]),IfElse(IsEqual([MetaScore],39,4),<img src="tooltip:rating-MetaScoreRed">,IsEqual([MetaScore],60,4),<img src="tooltip:rating-MetaScoreYellow">,IsEqual([MetaScore],100,4),<img src="tooltip:rating-MetaScoreGreen">) [MetaScore],)<//font>

Above expression will do more or less the same like yours but is only using images instead of fonts.
- First in red we'll set height for whole row
- Then in orange we'll handle Oscars. First if checks if there is "Oscar" text in the awards field and if it is found we'll check is it "won", otherwise it would be nomination. Finally we'll add some spacing with "/  " before checking next rating. If there wasn't "Oscar" text in the awards we won't display any of the above orange part (nothing after last comma in orange)
- in blue We'll check if Critic Rating has value (if it is empty we print nothing of blue part as there is nothing after last blue comma) and choose tmdb picture to be displayed. Then we remove "TMDb " text if it exist to get only rating value and possible scale. add spacing with "/   "
- in teal we'll show imdb image and rating but only if there is a rating value for it and add spacing with "/   ".
- in brown Rotten Tomatoes. (Again only show if value is not empty) print the value and if it is 60 or more then print fresh tomato, otherwise splatted tomato. Add spacing..
- in green MetaCritic. If there is rating available use IfElse structure to show one of the three images and then the actual score
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 06, 2019, 09:22:23 am
Great and thank you for the explanation of the different code segments that really helps to understand the whole picture.

I have incorporated your .png and code and the result is much better!

I see in your screen shot that you don't have the "/10" after the value in TMDb.
I still have that even though I have pasted your code.

How can I get rid of the "/10" as it is not needed.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 06, 2019, 09:59:01 am
Great and thank you for the explanation of the different code segments that really helps to understand the whole picture.

I have incorporated your .png and code and the result is much better!

I see in your screen shot that you don't have the "/10" after the value in TMDb.
I still have that even though I have pasted your code.

How can I get rid of the "/10" as it is not needed.
I'm using MCUtils to get TMDb rating which can be configured to save only the actual rating. If yo are using MC for [Critic Rating] and always have your tag value something like "TMDb 6,7 / 10" you can for example trim 5 characters from right (" / 10"). So RemoveRight([Critic Rating],5) and combined with RemoveCharacters it would look like this: RemoveCharacters(RemoveRight([Critic Rating],5),TMDb/ ,1)

So first in the inner side you remove 5 characters from the right to get "TMDb 6,7" then this string is run through RemoveCharacters which will search for "TMDb " text and if found remove it so end result is then 6,7



IF you know that you always have TMDb prefix in the [Critic Rating] field you could also use combination of trim left RemoveLeft() and trim right RemoveRight() and trim 5 characters from both ends. RemoveCharacters() is safer in that sense that it only removes if search phrase is found from the field. It could also be used to remove " / 10" same way as we removed "TMDb ".

https://wiki.jriver.com/index.php/String_Manipulation_Functions#RemoveRight
https://wiki.jriver.com/index.php/String_Manipulation_Functions#RemoveCharacters

Of course you could also use fancy regular expression to do the same in one step but that is an another story
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 06, 2019, 10:11:14 am
As always, this works just perfect.
I'll stop bugging you with noob questions.

I do appreciate that you and other people are taking the time and helping out people like myself.


Have a great Sunday!
//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 06, 2019, 10:23:18 am
What lepa gave you works but you can simplify things using the mid command.

Use this if you want the score only.  Like 8.9

Mid([Critic Rating],4,4)

Use this if you want the score out of 10.  Like  8.9 / 10

Mid([Critic Rating],4,9)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 06, 2019, 10:34:56 am
What lepa gave you works but you can simplify things using the mid command.

Use this if you want the score only.  Like 8.9

Mid([Critic Rating],4,4)

Use this if you want the score out of 10.  Like  8.9 / 10

Mid([Critic Rating],4,9)
Yes, that works fine if data is always in same format. RemoveCharacters() example was kind of fail safe method as it removes only text which for sure is wanted to be trimmed out. Also I don't know what is value from TMDb if rating value is integer 8, does TMDb always return also decimal part so like 8,0?

At least in my library it is only integer value of 8 but I don't know if it is because of MCUtils. That would break Mid() expression EDIT: Ok, seems that integer value comes from MCUtils

EDIT: BTW 10000 views on this thread  8)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 06, 2019, 10:42:29 am
Yeah, critic rating will show the .0 on movies rated a whole number.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 06, 2019, 02:18:17 pm
Thank you for the inspiration arcspin, I decided to add metacritic as well. 

(http://moesrealm.com/img/MC/meta.jpg)

I implemented it slightly differently.  I like how their scores look on the website so I decided to emulate that.  Thanks to the power of Imagemagick, I quickly and painlessly made 100 new images, one for each possible score on metacritic.  I then added

Code: [Select]
If(!IsEmpty([Metascore]),<img src="R:\Tooltip\meta.png">   <img src="R:\Tooltip\meta-[Metascore].png">,)
To my theater view code and viola.

If anyone wants to emulate this, I uploaded the rating images, grab them here (http://moesrealm.com/img/MC/meta.zip).

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 06, 2019, 02:51:13 pm
Decided to add the metacritic "must see" icon

(http://www.moesrealm.com/img/MC/meta2.jpg)

Just slip this bit of code in (change the path to the image and I put the image in the zip above)

Code: [Select]
if(isequal([metascore], 81, 6), <img src="R:\Tooltip\meta-must.png">,)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 07, 2019, 01:07:55 pm
Hi,
Thank you Moe for the Metacriting icons and code.
That was exactly what I had in mind when I started out asking and trying to incorporate it into the File info panel.
I have now discarded my approach and fully embraced yours instead!!!

The short code "Mid([Critic Rating],4,4)" did also work out perfectly and now I also only have the TMDb value and nothing more.
Both yours and Lepas approach works just fine.

When i started out trying to improve my own file info panel I have picked up bits and pieces from this thread regarding code, fonts and icons.
I have however not come across the fancy colorful icons (or are those still fonts with different colors) you have at the bottom of your info panel. (red dts logo, blue 1080 logo, yellow Disney Pixar logo and so on)

I might be stepping out of line here, but if they are indeed images would you mind sharing them with some code to go with those?
And also how do you get those fancy Spider man, Toy Story Movie titels?


Best regards,
//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 07, 2019, 01:40:31 pm
I made a page, it's mentioned somewhere in this thread, where people can upload and share images it has all of my studios and colorful icons.  Here is the link https://moesrealm.com/MC/mc-images/ if you want to bulk download you can do some from this page https://moesrealm.com/MC/images/ and use some sort of download manager.

The fancy movie titles I am getting via a program called Mediaelch (https://www.kvibes.de/mediaelch/).  They download as logo.png and I keep that image alongside the movie.  I made a new field called "Logo" with the following value

Code: [Select]
<img src="[Filename (path)]logo.png" width="645">
The code for the DTS, number of speakers, resolution, etc.  is

For audio format

Code: [Select]
if(isequal([Compression],DTS,8),<img src="tooltip:Audio DTS" height="80">,if(isequal([Compression],AC3,8),<img src="tooltip:Audio Dolby Digital" height="80">,if(isequal([Compression],PCM,8),<img src="tooltip:Audio PCM" height="80">,if(isequal([Compression],mp3,8),<img src="tooltip:Audio MP3" height="80">,if(isequal([Compression],flac,8),<img src="tooltip:Audio FLAC" height="80">,if(isequal([Compression],aac,8),<img src="tooltip:Audio AAC" height="80">,if(isequal([Compression],MPEG,8),<img src="tooltip:Audio MPEG" height="80">,if(isequal([Compression],Vorbis,8),<img src="tooltip:Audio Vorbis" height="80">,))))))))
For the number of channels

Code: [Select]
if(isequal([Channels],1,2),<img src="tooltip:speakers mono" height="80">,if(isequal([Channels],2,2),<img src="tooltip:speakers stereo" height="80">,if(isequal([Channels],3,2),<img src="tooltip:speakers 2.1" height="80">,if(isequal([Channels],4,2),<img src="tooltip:speakers quad" height="80">,if(isequal([Channels],5,2),<img src="tooltip:speakers 4.1" height="80">,if(isequal([Channels],6,2),<img src="tooltip:speakers 5.1" height="80">,if(isequal([Channels],7,2),<img src="tooltip:speakers 6.1" height="80">,<img src="tooltip:speakers 7.1" height="80">)))))))
For resolution

Code: [Select]
If(IsEqual([Width],1920,5),<img src="tooltip:Resolution 4K" height="80">,If(IsEqual([Width],1360,5),<img src="tooltip:Resolution 1080" height="80">,If(IsEqual([Width],888,5),<img src="tooltip:Resolution 720" height="80">,<img src="tooltip:Resolution 480" height="80">)))
Aspect Ratio is it a little complex and requires MCUtils, I think.  It also uses a bit of fuzzy logic.  I don't know if you use MCUtils or not, if you do, I am happy to share the code.

For the studios, I use this code.

Code: [Select]
<img src="tooltip:Studios-[Studios]" height="80">


 

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 08, 2019, 01:00:24 pm
Thank you for the many lines of code.

I did try out MediaEech and got it to scrape movie data.
What I did find out is that it is very picky with how a movie is named.
I do not have a strict naming convention which resulted in a lot of manual work to clean up movie filenames.
I will have to try and think more about using Mediaelch.

The Studio logos is quite fun to have in the File info panel and I did go thru my movies and collected additional studio logos for the movies that was not represented in your studio logo batch.
Below is a link to a zip-file with the studio logos that I have used in addition to yours.

https://drive.google.com/open?id=11DjcnkBGjytoXSqDorFUkfsVREvJxEzt (https://drive.google.com/open?id=11DjcnkBGjytoXSqDorFUkfsVREvJxEzt)

Please feel free to download and look them over and incorporate the ones you would like to keep.


Cheers,
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 08, 2019, 01:43:34 pm
Yeah, Mediaelch isn't perfect.  One thing you can do to help, assuming your "Name" and "Year" fields are filled in properly, is use the Rename, Move & Copy tool and set filename to [Name] ([Year]).  I did that and it helped a lot.

Thanks for the Studio logos! I  added yours to my site and into my library as well.  I'd love to get a group effort going to collect more.  I am missing hundreds of them.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Mans on October 09, 2019, 05:31:42 am
Great day to you Moe,

A while ago i installed successfully the custom Theater View templates and got pretty all features as described in this very interesting tread :-)

Only thing i can't figure out is how to use your logo images.
I did create the new [logo] field
Code: [Select]
<img src="[Filename (path)]logo.png" width="645">.
Replaced the tooltip lines within my template, like
Code: [Select]
if(isequal([Compression],DTS,8),<img src="tooltip:Audio DTS" height="80">,if(isequal([Compression],AC3,8),<img src="tooltip:Audio Dolby Digital" height="80">,if(isequal([Compression],PCM,8),<img src="tooltip:Audio PCM" height="80">,if(isequal([Compression],mp3,8),<img src="tooltip:Audio MP3" height="80">,if(isequal([Compression],flac,8),<img src="tooltip:Audio FLAC" height="80">,if(isequal([Compression],aac,8),<img src="tooltip:Audio AAC" height="80">,if(isequal([Compression],MPEG,8),<img src="tooltip:Audio MPEG" height="80">,if(isequal([Compression],Vorbis,8),<img src="tooltip:Audio Vorbis" height="80">,))))))))Downloaded some .png logo's from your side and installed within the respective directories, like the movie related logo's inside the shared folder where my films are located.
The audio related logo's inside the directory where my cd rips are.

I'm pretty sure I'm missing some important part :-)
If you could shine me some light onto adapting towards your nice logo images :-)

Thanks sir !
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 09, 2019, 09:31:02 am
For pretty much every image that isn't a movie logo you want to put them in this directory

C:\Program Files (x86)\J River\Media Center 25\Data\Tooltip

That is MC's default directory for images.  Anytime you see code in this thread like this

Code: [Select]
<img src="tooltip:
That means the image is stored in that default directory.

For the logos, I have my folders/files setup like this .

Movies (main folder)
-----The Breakfast Club (movie folder)
----------The Breakfast Club (1985).mkv (movie file)
----------logo.png (logo art)

-----The Goonies (movie folder)
----------The Goonies (1985).mkv (movie file)
----------logo.png (logo art)


If you have the same sort of structure, then this bit of code should work fine.

Code: [Select]
<img src="[Filename (path)]logo.png" width="645">
You need to make sure that you have the logo art, this isn't something that MC will get for you automatically.  I use a program called Mediaelch  (https://www.kvibes.de/mediaelch/)to get those images
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 09, 2019, 09:32:54 am
Great day to you Moe,

A while ago i installed successfully the custom Theater View templates and got pretty all features as described in this very interesting tread :-)

Only thing i can't figure out is how to use your logo images.
I did create the new [logo] field
Code: [Select]
<img src="[Filename (path)]logo.png" width="645">.
Replaced the tooltip lines within my template, like
Code: [Select]
if(isequal([Compression],DTS,8),<img src="tooltip:Audio DTS" height="80">,if(isequal([Compression],AC3,8),<img src="tooltip:Audio Dolby Digital" height="80">,if(isequal([Compression],PCM,8),<img src="tooltip:Audio PCM" height="80">,if(isequal([Compression],mp3,8),<img src="tooltip:Audio MP3" height="80">,if(isequal([Compression],flac,8),<img src="tooltip:Audio FLAC" height="80">,if(isequal([Compression],aac,8),<img src="tooltip:Audio AAC" height="80">,if(isequal([Compression],MPEG,8),<img src="tooltip:Audio MPEG" height="80">,if(isequal([Compression],Vorbis,8),<img src="tooltip:Audio Vorbis" height="80">,))))))))Downloaded some .png logo's from your side and installed within the respective directories, like the movie related logo's inside the shared folder where my films are located.
The audio related logo's inside the directory where my cd rips are.

I'm pretty sure I'm missing some important part :-)
If you could shine me some light onto adapting towards your nice logo images :-)

Thanks sir !
<img src="[Filename (path)]logo.png" width="645">

You need to have folder for every movie for above to work e.g. M:\Movies\Terminator\ and there you need to have logo.png for Terminator

If you have different kind of folder structure you need to have also different kind of path expression. If you could give example of your folder path / filenaming concerning movies it's easy to modify field expression accordingly


For audio you need to have png files in MC's data\tooltip folder
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 09, 2019, 03:26:42 pm
I have done some work in "Tooltip"  and basically you name a calculated data field: Tooltip and then it is of to cut and past code from my Theater view.

Is there a way to make the tooltip background less transparent?
I am having a hard time seeing the text.

and also, are you Moe and Lepa willing to share your code for your Tooltip?
It would be great to have some recent work to start with.


best regards,
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 09, 2019, 04:45:15 pm
I would recommend making 4 fields.  One called Tooltip with this value

Code: [Select]
FirstNotEmpty([Tooltip - Movie], [Tooltip - TV Show], [Tooltip - Audio])
Then one called Tooltip - Audio with this value

Code: [Select]
If(IsEqual([Media Type],Audio,1),TOOLTIP CODE GOES HERE,)
Then duplicate the above twice, once for TV and once for Movies but change media type accordingly. 

I have no problem sharing my tooltip, but I use a lot of custom fields so they may not be completely useful.  Here is my movie one to get you started.

Code: [Select]
If(IsEqual([Media Sub Type],Movie,1),<font size="200"><b>[Name]<//b><//font>If(!IsEmpty([Tag Line]),<font size="150"><br><i>[Tag Line]<//i><//font>,)
<img src="tooltip:Divider" size="570x20">
<font size="125" color="#80C0C0"><b>size()  <font color="#5b5b5b">||<//font>  [Genre]  <font color="#5b5b5b">||<//font>   [Year]  <font color="#5b5b5b">||<//font>  [Country]<//b><//font>
<img src="tooltip:Divider" size="570x20">
 If(!IsEmpty([Oscar Winner]),[Oscar Winner],)   <font size="150">If(!IsEmpty([TMdbRating]),<img src="tooltip:Web TMDB" height="25">  [TMdbRating] ,) If(!IsEmpty([IMDb Rating]),<img src="tooltip:Web IMDB2" height="25">  [IMDb Rating] ,)  If(!IsEmpty([Metascore]),<img src="R:\Tooltip\meta.png">  <img src="R:\Tooltip\meta-[Metascore].png">,)  If(!IsEmpty([Rotten Tomatoes]),<img src="tooltip:Web RT Logo Red2" height="25">  [Rotten Tomatoes]% [RT],)<//font>   

<img src="tooltip:Synopsis" size="570x30">
If(!IsEmpty([Synopsis]),<font size="115">[Synopsis]<//font>,)


<img src="tooltip:Credits" size="570x30">
<font size="115">If(!IsEmpty([Director]),<b>Director:<//b> [Director]<br>,)If(!IsEmpty([Screenwriter]),<b>Screenwriter:<//b> [Screenwriter]<br>,)If(!IsEmpty([Producer]),<b>Producer:<//b> [Producer]<br>
<img src="tooltip:Cast" size="570x30">
,)If(!IsEmpty([TMDB Actors]),<b><//b>[Cast]<br>,)<//font>If(!IsEmpty([Bonus_Section]),<br><img src="tooltip:Bonus" size="570x30">
<font size="115">If(!IsEmpty([Commentary]),<b>Commentary:<//b> [Commentary]<br>,)If(!IsEmpty([Collections]),<b>Collections:<//b> [Collections]<br>,)If(!IsEmpty([Movie Series]),<b>Movie Series:<//b> [Movie Series]<br>,)<//font>,)If(!IsEmpty([Rifftrax]),<br><br><img src="tooltip:RiffTrax2" size="570x50"><br><b>Rifftrax:<//b> [Rifftrax]<br>,)
<img src="tooltip:Divider" size="570x20">
 <font size="300">If(!IsEmpty([MPAA]),[MPAA],) [Audio_Stream] [Speakers] [Resolution] [Aspect_Ratio]<//font> 


<font size="85" color="#7c7c7c">[filename]<//font>

,)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Mans on October 10, 2019, 01:56:34 am
Quote
For pretty much every image that isn't a movie logo you want to put them in this directory

C:\Program Files (x86)\J River\Media Center 25\Data\Tooltip

That is MC's default directory for images.  Anytime you see code in this thread like this

Bingo Moe ! Thanks a lot for pointing me out to this 'details' :-)
Up and running :-)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Mans on October 11, 2019, 08:53:07 am
Greatday all, dear Moe,

Hoping you're fine ?
I could use some help again,

I've been playing with the Studios images vs [Studios] field.
Like the following code, which does work but surely not ideal and also struggling on the expression.
I tried like ListItem as also including the ,8 value in order to come to a images when multiple studios are within the field.

Sorry if already answered within this topic;

Code: [Select]
<font color="#9496a3">_________________________________________________________________________________________________<//font>
if(isequal([Compression],DTS,8),<img src="tooltip:Audio DTS" height="40">,if(isequal([Compression],AC3,8),<img src="tooltip:Audio Dolby Digital" height="40">,if(isequal([Compression],PCM,8),<img src="tooltip:Audio PCM" height="40">,if(isequal([Compression],mp3,8),<img src="tooltip:Audio MP3" height="40">,if(isequal([Compression],flac,8),<img src="tooltip:Audio FLAC" height="40">,if(isequal([Compression],aac,8),<img src="tooltip:Audio AAC" height="40">,if(isequal([Compression],MPEG,8),<img src="tooltip:Audio MPEG" height="40">,if(isequal([Compression],Vorbis,8),<img src="tooltip:Audio Vorbis" height="40">)))))))) if(isequal([Channels],1,2),<img src="tooltip:speakers mono" height="40">,if(isequal([Channels],2,2),<img src="tooltip:speakers stereo" height="40">,if(isequal([Channels],3,2),<img src="tooltip:speakers 2.1" height="40">,if(isequal([Channels],4,2),<img src="tooltip:speakers quad" height="40">,if(isequal([Channels],5,2),<img src="tooltip:speakers 4.1" height="40">,if(isequal([Channels],6,2),<img src="tooltip:speakers 5.1" height="40">,if(isequal([Channels],7,2),<img src="tooltip:speakers 6.1" height="40">,<img src="tooltip:speakers 7.1" height="40">)))))))   If(IsEqual([Width],1920,5),<img src="tooltip:Resolution 4K" height="40">,If(IsEqual([Width],1360,5),<img src="tooltip:Resolution 1080" height="40">,If(IsEqual([Width],888,5),<img src="tooltip:Resolution 720" height="40">,<img src="tooltip:Resolution 480" height="40">))) <img src="C:\Program Files\J River\Media Center 25\Data\Tooltip\Studios\Studios-[Studios].png" height="40">

Thanks in advance !
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 11, 2019, 11:39:14 am
That expression you showed is doing a lot more than the studios, it's also doing audio type, number of channels and resolution. 

Are you working in Theater View or a Tooltip?

I guess I don't really understand your question.  What are you trying to achieve that you can't?

For me, I like to break things down to their individual pieces.  For instance, you could make a new field called something like [Audio Compression] and give it a calculated value of

Code: [Select]
if(isequal([Compression],DTS,8),<img src="tooltip:Audio DTS" height="40">,if(isequal([Compression],AC3,8),<img src="tooltip:Audio Dolby Digital" height="40">,if(isequal([Compression],PCM,8),<img src="tooltip:Audio PCM" height="40">,if(isequal([Compression],mp3,8),<img src="tooltip:Audio MP3" height="40">,if(isequal([Compression],flac,8),<img src="tooltip:Audio FLAC" height="40">,if(isequal([Compression],aac,8),<img src="tooltip:Audio AAC" height="40">,if(isequal([Compression],MPEG,8),<img src="tooltip:Audio MPEG" height="40">,if(isequal([Compression],Vorbis,8),<img src="tooltip:Audio Vorbis" height="40">))))))))
Then you could create a new field called [Channels] with a calculated value of

Code: [Select]
if(isequal([Channels],1,2),<img src="tooltip:speakers mono" height="40">,if(isequal([Channels],2,2),<img src="tooltip:speakers stereo" height="40">,if(isequal([Channels],3,2),<img src="tooltip:speakers 2.1" height="40">,if(isequal([Channels],4,2),<img src="tooltip:speakers quad" height="40">,if(isequal([Channels],5,2),<img src="tooltip:speakers 4.1" height="40">,if(isequal([Channels],6,2),<img src="tooltip:speakers 5.1" height="40">,if(isequal([Channels],7,2),<img src="tooltip:speakers 6.1" height="40">,<img src="tooltip:speakers 7.1" height="40">)))))))
And new field called something like [Resolution] with a calculated value of

Code: [Select]
If(IsEqual([Width],1920,5),<img src="tooltip:Resolution 4K" height="40">,If(IsEqual([Width],1360,5),<img src="tooltip:Resolution 1080" height="40">,If(IsEqual([Width],888,5),<img src="tooltip:Resolution 720" height="40">,<img src="tooltip:Resolution 480" height="40">)))
And finally, one called [Studio Logo] with a value of

Code: [Select]
<img src="C:\Program Files\J River\Media Center 25\Data\Tooltip\Studios\Studios-[Studios].png" height="40">

This makes things a lot cleaner and easier to read when you are working on your tooltip.  Instead of a big complicated expression you could achieve what you have above with

Code: [Select]
<font color="#9496a3">_________________________________________________________________________________________________<//font>
[Audio Compression]  [Channels]  [Resolution]  [Studio Logo]


This has the added benefit in that if you ever want to make a change to your tooltip and/or Theater View you can change the individual field one time and it will change everywhere that the field is displayed.  You can also use these fields in standard view which I find helpful for testing.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Mans on October 11, 2019, 12:20:18 pm
Really appreciated Moe !

Initially my request was about the last expression which I've got into my Theater View template.
As i wasn't able to get a Studios image up once multiple studios where into the [Studios] field.

Let me use your instructions and play with the custom fields and i agree those will clean up things much more :-)

Another thanks sir, enjoy the weekend !
 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 11, 2019, 12:27:35 pm
Oh, for movies with multiple studios you'll want something like this

Code: [Select]
<img src="tooltip:Studios-ListItem([Studios],0,;)" size="64x64"><img src="tooltip:Studios-ListItem([Studios],1,;)" size="64x64"><img src="tooltip:Studios-ListItem([Studios],2,;)" size="64x64">
That will return three studio icons.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 12, 2019, 12:52:54 am
Hi,
In an attempt to gain back some screen real estate in Theater view I did this code to get all the actors, producers, directors and screenwriters names in one row instead of having each name on a separate row.
The example is for actors.
Code: [Select]
<font color="#ffffff size="80""><i>Replace([Actors],;,  / // )
or even simpler code to accomplish actors names in a row.
Code: [Select]
<font color="#ffffff size="80""><i>[Actors]
This works just fine and I can now see more information in Theater view, however...The ability to follow the link to what (for example) the producer also have produced in my movie collection did go away.

Is there a way to get that functionality back and still have names in a row?
Bonus question, and also be able to not show that field if it is empty.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on October 12, 2019, 08:31:21 am
Is there a way to get that functionality back and still have names in a row?
Bonus question, and also be able to not show that field if it is empty.

This is what I use. It returns only the first 5 actors in the list since there can sometimes be 20 or more. If the field is empty, it doesn't show.

Code: [Select]
If(!IsEmpty([Actors]),<b>Actors:<//b> Replace(ListLimit([Actors],5),;,/,),)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 12, 2019, 10:16:56 am
Is there a way to get that functionality back and still have names in a row?
linking is not possible with expression. I'm using separate links section below visible area to get linking support
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 12, 2019, 10:23:53 am
This works just fine and I can now see more information in Theater view, however...The ability to follow the link to what (for example) the producer also have produced in my movie collection did go away.

Is there a way to get that functionality back and still have names in a row?

I made a request for similar functionality in this thread (https://yabb.jriver.com/interact/index.php/topic,121770.msg842338.html#msg842338) and the MC team seemed to think it was a good idea but then they stopped responding :(  Maybe it would help if more people showed some support for the idea?  *hint hint*
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Mans on October 12, 2019, 01:57:22 pm
Quote
<img src="tooltip:Studios-ListItem([Studios],0,;)" size="64x64"><img src="tooltip:Studios-ListItem([Studios],1,;)" size="64x64"><img src="tooltip:Studios-ListItem([Studios],2,;)" size="64x64">

Thanks a lot Moe, works like a charm !

A also have a issue when using banners, when not available i would need the name field instead.
Made it works like suggested earlier within this topic like:
created the [Banner Exists] field:
Code: [Select]
IsMissing([Banner file path]VIDEO_TS-banner.jpg)Theater View Movies expression:
Code: [Select]
if(isequal([Banner Exists], 1, 8), <i>[Name], [Banner])
Next I'll attempt to get the actors images lineup in my Theater View template, as I've got now the .jpgs in the respective folder via MediaElch, thanks for the topic earlier all !

Cheers   :D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 13, 2019, 12:40:16 am
Maybe it would help if more people showed some support for the idea?  *hint hint*

Thank you for the hint, I have made myself heard in that thread and I really hope that the good people of MC find a solution for this because I find this to be a basic functionality that should have been there from the beginning.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 20, 2019, 06:14:11 am
God day!
New weekend and a new idea that I cant quite master and I'm now in need of assistance.

I have started to meta tag my movies if the movie have a different edition like, special edition, Directors cut and so on.
I'm using a new field "Edition" for this.

I have extended my expression in Grid view to include the new "Edition" field and that is all fine but...when I have a series of grouped movies the "edition" field is still there and that is something I do not want.

How can I write my expression so that he "edition" field is visible when there is only the movie and not when there is a group of movies.

I attach a screenshot where you can see in gren my "edition" filed for the movie "12 Angry men" and you notice that the "edition" field is also visible in the grouped movies "ALFRED HITCHCOCK MOVIES" and "ALIEN MOVIES" and that is something I don't want to be there in this view.

(((Edit; The first post had "Notes" field in the text but I changed my mind and created a special field called "Edition" instead of using the standard field "Notes".)))

Best regards,

The expression I'm using for this is:
Code: [Select]
if(isempty([Series, 1]), <font color="FFFFFF" "size="80"><b>[Name, 1]<//font><//b><font color="C0C0C0" "size="80"> [Year, 1]<//font> <font color="FF3333" "size="80">[Keywords, 1]<//font>, <b><font color="ff3333" "size="80"> Fixcase([Series, 1],3))<//b><//font> <font color="228B22" "size="60">[Edition, 1]
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 20, 2019, 09:15:52 am
Can you share how you have your grid view set up?  That will help try and solve your problem.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 20, 2019, 09:59:23 am
Of course.

The Grid is set up as follow.
See screen shoot: Grid Title and Grid Series.

The code in Grid Title is

Expression to group by:
Code: [Select]
If(IsEmpty([Series]),[Name] [Date (Year)],[Series])
Expression to display is:
Code: [Select]
if(isempty([Series, 1]), <font color="FFFFFF" "size="80"><b>[Name, 1]<//font><//b><font color="C0C0C0" "size="80"> [Year, 1]<//font> <font color="FF3333" "size="80">[Keywords, 1]<//font>, <b><font color="ff3333" "size="80"> Fixcase([Series, 1],3))<//b><//font> <font color="228B22" "size="60">[Edition, 1]

The code in Grid Series is

Expression to group by:
Code: [Select]
[Name][Year]
Expression to display is:
Code: [Select]
<b><font color="ffffff" "size="70">[Name, 1]<//b><//font><font color="C0C0C0" "size="70"> [Year, 1]<//font><font color="ff3333" "size="70"> [Keywords, 1]<//font> <font color="228B22" "size="60">[Edition, 1]
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 20, 2019, 11:02:52 am
I think this is what you're looking for.

Grid Title

Group by
Code: [Select]
If(IsEmpty([Series]),[Name] [Date (Year)],[Series])
Display as

Code: [Select]
if(isempty([Series, 1]), <font color="FFFFFF" "size="80"><b>[Name, 1]<//font><//b><font color="C0C0C0" "size="80"> [Year, 1]<//font> <font color="FF3333" "size="80">[Keywords, 1]<//font>, <b><font color="ff3333" "size="80"> Fixcase([Series, 1],3))<//b><//font> If(IsEmpty([[Series]]),<font color="228B22" "size="60">[Edition]<//font>,)
Grid Series

Group by
Code: [Select]
[Name][Year]
Display as

Code: [Select]
<b><font color="ffffff" "size="70">[Name, 1]<//b><//font><font color="C0C0C0" "size="70"> [Year, 1]<//font><font color="ff3333" "size="70"> [Keywords, 1]<//font> <font color="228B22" "size="60">[Edition, 1]<//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 20, 2019, 11:09:48 am
I'm sorry to say but the code do not work.
When I past the code the Edition text do not show at all.


Edit. The Edition text do show up in my grouped movies but not when the movie is stand alone (so to speak)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 20, 2019, 11:16:14 am
Sorry, I left some double brackets in from a search and replace I did since I was using my own fields.

Change [[Series]] to [series] at the end of the Title Display As section
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 20, 2019, 11:20:09 am
SUCCESS  :D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 20, 2019, 11:24:10 am
Another question.

Is there a way to get more than two lines of text i Theater View?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 20, 2019, 11:27:36 am
No, I don't think so.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 20, 2019, 11:43:12 am
If anyone is interested I made this simple code to get different color to the text "File Size" depending on the size of the movie file.
As seen in yellow in the bottom right corner of the screenshot.
(And you can also see the "Edition" text that I have in the upper part of the Theater View.)

Just sharing, because I have gotten so much help.
If anyone with better skills have a better way of doing this, please feel free to correct my code.


Different color depending on the size of the movie file:
Red, less than 10GB
Purple, 10-20GB
Yellow, 20-30GB
Green, more than 30GB

Code: [Select]
<font size="180">If(!IsEmpty([File Size]),IfElse(IsEqual([File Size],10,4),<font color="#990000">,IsEqual([File Size],20,4),<font color="#662F64">,IsEqual([File Size],30,4),<font color="#FDDB2E">,IsEqual([File Size],100,4),<font color="#008000">) [File Size],) <//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on October 21, 2019, 10:29:06 am
Since apparently you want to use that as a quality indicator of sorts, I would recommend actually using the bitrate field instead of the actual file size, since that is relative to the duration, and would eg. automatically compensate for TV shows vs. Movies which have vastly different runtimes.

As an aside, Blu-ray size really isn't required to produce good looking videos. A 1080p Blu-ray can easily be re-compressed to half its size and not lose any perceivable quality. Just sayin'. :)
Blu-rays quite simply have the size and there is no bonus for the studio to leave room on the disc, so they just throw bitrate at it instead of using more efficient and thus computationally expensive encoding.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on October 21, 2019, 10:57:12 am
Great suggestion.
I assume that when I add bitrate to an expression I get the value in bit per second.

What expression should I use to convert that into Mbps?

I was think of doing a color code based on the values Google have for their upload as shown in the attachment.
And also what is the proper way of also take into account if the movie is 2160, 1080, 720 and so on when doing the color code.


Cheers,
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on October 28, 2019, 05:37:38 pm
Hi,

I'm up and playin' with the theaterview again.
I ran my complete library through media Elch and got so the logo/actor pictures etc.

While I managed to include the Logo, I failed with the [tag line]: how do I get the value, that is in the *.nfo file included, shown? Just using a field named [tag line] didn't work.

@Moe: you use it, I can see it in your code, but do you have an additional function in the back?

And, is there a way to get all the logos from your website at once?

Here's my actual view, hope you like it  ;)


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 28, 2019, 09:58:25 pm
Your view is looking great.  Thanks for sharing.

You can use a download manager (like downthemall (https://www.downthemall.net/)) to download all from here https://moesrealm.com/MC/images/

I get the tag line from MCUtils, not from Mediaelch and I don't really have any experience using nfo files, sorry.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on October 29, 2019, 02:38:59 am
Ok. So I will have to deal with the next tool: MCUtil. As long as I get the results, I will go for it. Don‘t have to tell my skeptical friends about the fuss to get all the data....  ;)  ::)  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on October 29, 2019, 11:34:17 am
Once you get MCUtils set up and customized the way you want it, youll love it :)  AMG, Discogs and now MusicBrainz
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 29, 2019, 12:46:50 pm
As well as TMDB metadata and images.  Pscriptor comes in handy as well.  It's a pretty amazing set of tools.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on October 31, 2019, 12:13:08 pm
So, I'm nearly done with the next step. Logos work, and I'm in total quite satisfied with the look.

As I ran all my movies through media elch I also got the actors pictures. But: the wrong format.

All pictures are surname_name.jpg. But I only have surname [blank] name in my tag field [Actors]. Example:
Picture: Harrison_Ford.jpg  -> tag: Harrison Ford

So, I tried something like
Code: [Select]
replace(listitem([Actors],0), ,_)but it didn't work. What's my fault? (I know the fault: the [blank] is not recognised. But I don't now how to do this?

I want to have only the first 5 oder 7 Actors listed, up to now they are in a row with
Code: [Select]
If(!IsEmpty([Actors]),<b>Actors:<//b> Replace(ListLimit([Actors],5),;,/,),)
Thanks again,

Thorsten
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on October 31, 2019, 02:46:59 pm
Personally, since you are using MCUtils now, I would use it to get the actor images for you.  You'll have a lot more flexibility and you'll be able to choose your filename.

I didn't look too much, but I had no luck getting Mediaelch getting actors images.

If you want to use the images you already obtained, Instead of using the replace() function I would just import all the images into MC and then use the Find & Replace functionality of the Rename, Move and Copy Files tool to change the underscore to a space.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on October 31, 2019, 03:53:04 pm
Try

replace(listitem([Actors],0),/ ,_)

i.e. Escape the blank so that it is taken as a literal space, and not just a space in the expression. I haven't tested that, but it should work.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on November 01, 2019, 01:31:48 pm
That worked, thanks!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on November 20, 2019, 03:58:29 pm
Been messing around with my TV show view.  This is what I have so far, may be too many people.

(http://moesrealm.com/img/MC/TVTV.png)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on November 23, 2019, 03:12:46 pm
Nice! And yes, a little bit too many actors  ;)

So, you integrated the cover in the normal first line? To get more space for the actors?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on November 23, 2019, 03:38:03 pm
I did choose an extreme example, I have it limited to 10 actors and 10 guest stars.  This episode just happens to have the max.  It more frequently looks like this.

(http://moesrealm.com/img/MC/AD.png)

Quote
So, you integrated the cover in the normal first line? To get more space for the actors?

It wasn't only to make more room for actors, it was more to free up space in general.  I wanted the episode still, the series logo and the season poster, I thought it would look cool having them the way that I set it up and I am pretty happy with the result, I like that bit a lot.  I just wish there was a way to align images so I could left align the episode still, center align the logo and right align the poster.  Right now I am spacing them out with literal spaces inserted and the results aren't always consistent.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on November 24, 2019, 01:34:26 pm
So, you integrated the cover in the normal first line? To get more space for the actors?

Moe/Thorsten, can you explain this further?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on November 24, 2019, 02:10:53 pm
Moe/Thorsten, can you explain this further?
Customize file info panel >> manage >> edit template >> no image

and instead draw episode image, series logo, season image with <img src> syntax. It's a very limited way because there isn't table possibility so you can't enter rows of text next to image for example
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on November 24, 2019, 02:43:19 pm
Are you asking how I achieve that top row?  I tweaked it a bit yesterday, I am now using a spacer png (it's just a 1x1 transparent png image) that I stretch to create space between the images.  The top row looks like this in my customize file info panel settings

Code: [Select]
[Episode Still]<img src="R:\Tooltip\spacer.png" size="300x1">[Logo TV]<img src="R:\Tooltip\spacer.png" size="480x1">[Episode Image 2]

Then, [Episode Still] has this value

Code: [Select]
<img src="[Filename (path)]removeright([filename (name)], 3)jpg" height="200" >
I have my episode still saved using the same name as the episode video file.  So, if my episode filename is "30.Rock.S01E02.The.Aftermath.avi" then my image still is "30.Rock.S01E02.The.Aftermath.jpg"

[Logo TV] has this value

Code: [Select]
regex([filename (path)], /#([MN]:.+)\\(.+)#/, -1)<img src="[R1]\logo.png"  height="200">
This one is a bit complex because my TV files can be on either my M or N drive, so I had to use a bit of regex.  I keep the logo image at the series level, so my file structure looks like this.

30 Rock
Logo.png
-----Season 1
-----Season 2

[Episode Image 2] has the following value

Code: [Select]
<img src="[filename (path)]\[Image File]" height="200" >
I store the season posters inside the season folders.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on November 24, 2019, 04:03:25 pm
Oh, I forgot to add.  The built in "Get movie and TV info" tool can get a fair amount of image still.  MCUtils can get a bunch more as well.  But I was still left with a bunch of shows that didn't have any.  I wrote a few batch files (my first!) that automatically generate image stills.  If you want them, you can find them here (http://www.moesrealm.com/img/MC/Batch/).  You will need to have ffmpeg installed.

To use them, select the batch file that corresponds to the filetype you have, so if your videos are mkv files, use the batch file that has mkv in the name. Copy it into directory where your episodes are located.  Then just run the batch file and the images will be generated.  Your results may not be the best, it generates an image at the 7700 frame in the video, so it's a bit random.  But it was a much easier than creating a still manually.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on November 24, 2019, 04:23:35 pm
... it generates an image at the 7700 frame in the video, so it's a bit random.

That sounds like it does the same thing as the settings at;
Options > Tree & View > Thumbnails > Capture video thumbnails at X seconds

Which seems to work pretty well.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on November 24, 2019, 04:43:51 pm
Yeah, that works if you want the thumbnail to be the default image for the file.   I want the season poster to be the default image.  I also need the image still thumbnail to be saved alongside the file that it corresponds with, I'm not sure if you can do that with the thumbnail builder in MC.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Absinthe on November 24, 2019, 05:16:28 pm
Thanks Moe, lepa
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on November 24, 2019, 06:29:00 pm
Yeah, that works if you want the thumbnail to be the default image for the file. I want the season poster to be the default image.

No, it uses any poster image if one is available. MC only generates a thumbnail from a video frame if there is no poster image.


I also need the image still thumbnail to be saved alongside the file that it corresponds with, I'm not sure if you can do that with the thumbnail builder in MC.

It doesn't do that by default, but the MC "Right-click > Cover Art > Save Cover Art To External Location Specified In Options" creates a jpg of the still next to the video file. An extra step, but no need to install ffmpeg separately, or copy batch files of the correct type into each directory containing the video files.


But if you wanted to do it your way I would suggest making one batch file that was file type agnostic, by testing if each file type exists maybe, and calling a subroutine for each type. Then set it up with the MC "Send To (external)" function.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on November 24, 2019, 06:59:32 pm
No, it uses any poster image if one is available. MC only generates a thumbnail from a video frame if there is no poster image.

Yes, the problem was all my videos already had a poster.  I would have had to remove it from thousands of episodes.

Quote from: RoderickGI
It doesn't do that by default, but the MC "Right-click > Cover Art > Save Cover Art To External Location Specified In Options" creates a jpg of the still next to the video file.

Are you sure about that?  I certainly can't get it to work.  Cover Art is different from Thumbnails.  If you can get it to work that would be great.  If you can, would you mind sharing a step by step process?

Quote from: RoderickGI
But if you wanted to do it your way I would suggest making one batch file that was file type agnostic, by testing if each file type exists maybe, and calling a subroutine for each type. Then set it up with the MC "Send To (external)" function.

I would absolutely love that, but beyond my skill set.  I bumbled through making those batch files, they were literally the first batch files I have ever created.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on November 24, 2019, 07:07:45 pm
Actually, thanks for the nudge.  I just figured out how to make the batch file universal.  Was much easier than I anticipated.  I updated my upload.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on November 24, 2019, 07:43:00 pm
Excellent that you improved the batch file. Now using the "Send To (external)" should make it possible to avoid copying the batch file to each directory, and make your solution universal. The resulting image should be saved into the correct directory, although I haven't tested that.

Are you sure about that?  I certainly can't get it to work.  Cover Art is different from Thumbnails.  If you can get it to work that would be great.  If you can, would you mind sharing a step by step process?

Yes.

For any video file. I am talking about the single Cover Art image associated with each file. I'm not talking Series and Season Cover Art for TV Shows, which are stored in a different location to the video file Cover Art. MC creates a Cover Art image from the thumbnail image, which is based on the video frame image. Of course if there is an existing correctly named and therefore used Cover Art image file in the directory, MC won't generate a thumbnail from a video frame. In this respect your solution is better, in that it will overwrite any existing Cover Art file with a file created from a video frame.

Note that some Views need to be refreshed, or even reloaded, to see changes in thumbnails based on new Cover Art files.

It is a single step process, just select one or more files that only have a thumbnail image and not a Cover Art image, and issue the command I documented above: "Right-click > Cover Art > Save Cover Art To External Location Specified In Options".

It works for files that only have embedded Cover Art as well, although that does not apply to video files of course, since thumbnails aren't embedded for video files.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on November 24, 2019, 08:03:57 pm
Quote
Excellent that you improved the batch file. Now using the "Send To (external)" should make it possible to avoid copying the batch file to each directory, and make your solution universal. The resulting image should be saved into the correct directory, although I haven't tested that.

Yeah, I tried that and things went a bit crazy and I did not get the intended result.  I've never used that function before so I am sure I did something wrong.  I am not a programmer so this kind of stuff is a bit over my head. 

Quote
Of course if there is an existing correctly named and therefore used Cover Art image file in the directory, MC won't generate a thumbnail from a video frame.

That was the problem.  I used "remove cover art" and then it saved the thumbs.  Thank you! 

Your solution will work more seamlessly going forward, my batch file worked great for my existing library as it didn't care what already existed and wrote an image to the directory no matter what.

Thanks again!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on November 25, 2019, 03:03:09 am
TV shows should always get a screen grab in MC by default, since individual episodes do not have posters, typically.
Which means for shows you automatically have the season poster, and an episode screen grab. These screen grabs are also stored in parallel to the individual media files directly, which makes them really easy to point to automatically.

For movies, there is only the poster, since each movie has its own poster, naturally.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on November 25, 2019, 03:33:47 pm
Current movie template. Still tinkering with cast images to see if I can get look right. I think it might bee too crowded for my taste. Added also country flags for audio and subtitles languages. The "image on top" problem shows also here. Would be nice if MC could extract track metadata like subtitle and audio languages when it analyzes video files. For ages I've been meaning to create MCUtils scriptor script to populate that information through mediainfo but haven't been able to get started...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on November 25, 2019, 04:41:53 pm
Looking good Lepa!

Quote
Would be nice if MC could extract track metadata like subtitle and audio languages when it analyzes video files.

I asked for similar functionality asking for the number of audio tracks contained in a video file.  I was told "They really didn't like the idea".  Thankfully pscriptor/MCUtils came to rescue and "pscriptor.pl getmediainfo -F "Number of Audio Streams" tells me how many audio tracks a movie has.  Mediainfo makes it all pretty easy.

I think this command will give you the audio language and the subtitle language

Code: [Select]
pscriptor.pl getmediainfo -F _a,_b --params "Audio.Language,Text.Language" -VV  --testonly
_a and _b are just scratch MC fields I use for testing.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on November 25, 2019, 11:51:40 pm
Ah thanks, there already is a ready made script. Should have looked the folder..  ::)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on November 26, 2019, 11:41:15 am
Lepa, that looks amazing!!!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on November 26, 2019, 12:52:03 pm
Not exactly tooltip or Theaterview but been also working with standard view thumbnail texts for a change
AlbumType is my custom field which is populated with one of these to help categorizing different releases types Single;EP;Album;Compilation;Soundtrack;Bootleg;Classical;Misc;Podcast

Code: [Select]
If(!IsEmpty([AMG Awards]),<img src="tooltip:award-Replace(ListItem([AMG Awards],0),//,_)">,If(!IsEmpty([AMG Album Pick]),<img src="tooltip:web-amg-album_pick-3">,))
<b>[Album Artist (auto)]<//b>
[Album] If(IsEqual([AlbumType],Album,1),/([Year]/),/(Right([Date (release)],4)/))
<font color="70c7f9"><b>ALL<//b><//font><font color="ffffff">MUSIC<//font> If(!IsEmpty([AMG Rating]),<b>[AMG Rating]//5<//b>,not rated)<font size="40">
<img src="tooltip:spacer-4x4">
<//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 03, 2020, 08:22:07 am
Hello Custom wizards ;o)

I would like to sort all my movies in "Theater view" based on their IMDB rating.
I know how to do that using the Library Field IMDB Rating and that works ok with the exception that movies with the same IMDB rating are grouped together.

What Expression would I need to write to be able to sort all my movies from highest to lowest IMDB rating?
(Just like the official IMDB Ratings list:)
http://tinyurl.com/uhvouqg


Cheers,
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 03, 2020, 04:06:44 pm
To answer my own question above... ;D

I've made it!!!

I made an expression that is grouped by:
Code: [Select]
[IMDb Rating] [Name] [Date (Year)]
And then added an expression to display by:
Code: [Select]
<b><font color="#ffb90f" "size="80">[IMDb Rating, 1]<//b>  <//font><b><font color="ffffff" "size="80">[Name, 1]<//b><//font><font color="C0C0C0" "size="80"> [Year, 1]<//font><font color="ff3333" "size="80"> [Keywords, 1]<//font> <font color="228B22" "size="70">[Edition, 1]<//font>
And finally sorted the result by:
Descending




Great success!

"And it can also be displayed in list view."

Update:
and I figured out how to group and sort movies based on IMDB rating per decade and per year.
Much fun!


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on January 12, 2020, 11:29:54 am
Just a heads up - I've just published MCRatings 2.0, which adds TMDb support :)
https://yabb.jriver.com/interact/index.php/topic,119792.0.html
https://github.com/zybexXL/MCRatings

This allows MCRatings to get a few additional pieces of information:
- TMDB score
- Original Title
- Tagline
- Movie series (like, "Die Hard" for all of them)
- Keywords
- etc.

Some of this info is also fetched by JRiver itself when you do "Get Movie & TV Info", but not all.

Next step (next year?): movie posters, actor thumbnails, etc.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 12, 2020, 01:47:09 pm
Great addition to an already awesome software!
I specially like the tagline option.

Keep my fingers crossed that the next step will be this year  :)


Made a donation so you can keep coding the night away
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on January 12, 2020, 02:27:56 pm
Arcspin, thank you very much, glad you enjoy it  :D

You are the very first one to make a donation! "Free" as in speech, I guess ;D ::)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: JimH on January 12, 2020, 02:43:34 pm
Why don't you post the donation page?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on January 12, 2020, 03:06:32 pm
Sure! The donation button on the App redirects here (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=59W3EUXWQ4BZS&source=url) (paypal donation)

I make this app primarily for my own needs, but it's nice when others appreciate our work :)

EDIT: Jim rocks ;D Thank you Jim!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on January 13, 2020, 10:25:53 am
Excellent work Zybex, much appreciated.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 16, 2020, 12:23:11 pm
I have started to try and understand MediaElch and what it can do to spice up my Theater view for movies.
I have reread this thread but cant quite understand what Expression to write for the actors jpg to show up in my Theater view.
I do not see any thumbnail for the Director or other persons of interest to the movie besides the actors. Can MediaElch scrape thumbnails for the Director?

In MediaElch, thumbnails for the actors are in the movie folder and the folder are named ".actors".

Can someone share their expressions in theater view for jpg of actors and Director.


Ps,
I have also downloaded and starting to understand TinyMediamanager, that program write an extensive .nfo file that JRiver can access.
https://www.tinymediamanager.org/

What are your opinion on Tinymediamanager in regards to scraping and populating JRiver with jpg;s


Best regards,

//arcspin




Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on January 16, 2020, 12:58:37 pm
Arcspin, I am afraid I can't help you when it comes to Mediaelch and actor/director images.  I use MCUtils to get those images, I didn't even know that Mediaelch could get those images.  The nice thing about MCUtils is that can add the actors name/role to the image as well as modify the look of the image (This post (https://yabb.jriver.com/interact/index.php/topic,119385.msg847563.html#msg847563) has a bit more info).  I use Mediaelch to get the logo image, posters and I also grab some other stuff, like clearart and banners that I am currently not implementing but I figured I might as well grab.

I don't have any experience with TinyMediaManager nor .nfo files.  I have heard it's a good program though.  For me, MCUtils gets 95% of what I want/need.  It's got a learning curve and it's command line only, but once you wrap your head around using it, it's easy to use.  I have sent you a PM.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 16, 2020, 01:30:15 pm
Thanx for the reply and for suggesting some threads to read up on,

Let see if anyone else have some knowledge of Tinymediamanager and what that program can bring to the table.

And of course if @zybex decides to  develop Mcratings even further to also scrape jpg;s for actors/directors, logos and so on. That would be fantastic.
McRatings is the perfect blend of simplicity and functionality with an unprecedented connection straight into my movies in JRiver!


//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 16, 2020, 11:11:35 pm
The weekend is soon here and with it time to tweak my Theater view ;o)

Is there a way of showing different information in the large view and in the small view.
As it is for me now, I know how to, in File info panel, distinguish between the show only in large view and show only in small view but...
Can I have different information in these two views.

Example, in large view I have these beautiful icons from IMDB, TMDB, Rotten tomato and MC. (Thanx Moe, Lepa and all others who contributes with knowledge)
Is there a way of not showing the Icons and instead only type IMDB, TMDB, and so on to save space in the small view.

I attach a picture of how my small view looks like and I would like to replace the icons with simple text instead (and still keep the icons in large view).

Have a great movie weekend!

//arcspin


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on January 17, 2020, 05:19:50 am
I at the work currently but can post later my small screen row. I think that i just use smaller square icons but don't remember exactly...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on January 17, 2020, 10:38:43 am
This is my  current setup. I don't have meta critics etc but they could be easily added to row. Also Rotten Tomatoes could just show tomato or splat as an icon if I needed to save some space

Code: [Select]
<font size="100">If(!IsEmpty([Critic Rating]),<img src="tooltip:web-tmdb"> [Critic Rating]   ,)If(!IsEmpty([IMDb Rating]),<img src="tooltip:web-imdb-square"> [IMDb Rating]   ,)If(!IsEmpty([Rotten Tomatoes]),<img src="tooltip:web-rt"> [Rotten Tomatoes]% If(IsEqual([Rotten Tomatoes],60,6),<img src="tooltip:web-rt-fresh">,<img src="tooltip:web-rt-splat">),)If(IsEqual([Awards],Oscar,8),/  If(IsEqual([Awards],Won,8),<img src="tooltip:award-oscar-won-figure">,<img src="tooltip:award-oscar-nominated-figure">),)<//font>
or e.g.
Code: [Select]
<font size="100">If(!IsEmpty([Critic Rating]),<img src="tooltip:web-tmdb"> [Critic Rating]   ,)If(!IsEmpty([IMDb Rating]),<img src="tooltip:web-imdb-square"> [IMDb Rating]   ,)If(!IsEmpty([Rotten Tomatoes]),If(IsEqual([Rotten Tomatoes],60,6),<img src="tooltip:web-rt-fresh">,<img src="tooltip:web-rt-splat">)/ [Rotten Tomatoes]%,)If(IsEqual([Awards],Oscar,8),/  If(IsEqual([Awards],Won,8),<img src="tooltip:award-oscar-won-text">,<img src="tooltip:award-oscar-nominated-text">),)<//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 17, 2020, 10:44:50 am
Great small theater view.

Do you have the small icons handy and can you perhaps post those for me to download?



(I figured out how to create small view only expressions so that is not a question from me anymore)


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on January 17, 2020, 10:55:52 am
Perhaps they are all there....
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 17, 2020, 11:02:30 am
Excellent.  ;D

Thank you and have a great weekend!

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 18, 2020, 07:39:09 am
Hi and thank you again Lepa for the icons, i had most of the icons from when Moe gave them to me, so a big thank you to you Moe as well!

It was fun designing a smaller theater view layout and I think I'm, for now, satisfied with my layout.


Have a good Saturday!

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on January 18, 2020, 11:58:29 am
Lookin' good arcspin!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 19, 2020, 05:14:01 am
Hello,
I'm into Bitrates now ;o)  and are wondering how to make an expression that rounds off the bitrate value to Mbps.
Example: Bitrate [Bitrate] for a movie is 15307, I would like to display (in theater view) that number rounded off to 15.


Cheers,
//arcspin

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on January 19, 2020, 10:28:08 am
Arcspin, try this

math(round(math([bitrate] / 1000)))
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 19, 2020, 11:08:58 am
As always, spot on!

I thought my next step would be manageable for me but I'm at a lost.
(it is futile for me to trial and error my way around the code)

Ok, this is what I'm after.

I have made two lines of code that I would like to implement dependent of resolution and the bitrate would be shown in Mbit.
The line of code works but I cant implement the round off and I sure as hell don't know how to implement the if resolution part  :P


If resolution is more then 1920
Code: [Select]
If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],16000,3),<font color="#990000">,IsEqual([Bitrate],40000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) [Bitrate],) <//font>

If resolution is 1920 or less
Code: [Select]
If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],10000,3),<font color="#990000">,IsEqual([Bitrate],20000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) [Bitrate],) <//font>


Would be grateful for some master coding wizardry,

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on January 19, 2020, 03:25:55 pm
I think this is what you're looking for.

>1920
Code: [Select]
If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],16000,3),<font color="#990000">,IsEqual([Bitrate],40000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),) <//font>
<1920

Code: [Select]
If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],10000,3),<font color="#990000">,IsEqual([Bitrate],20000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),) <//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 20, 2020, 11:19:01 am
Hello,
Seeing where you pasted the code make sense and was the one place that I didn't try. Thank you for that!

If you would be so kind, I have one final question of your expertise.
This is what I would like to accomplish.
If the movie has a resolution of more than 1920 (UHD) the first line of code would "set in" and if the movie has a resolution of 1920 or less (HD) the second line of code would "set in".

Code: [Select]
If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],16000,3),<font color="#990000">,IsEqual([Bitrate],40000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),) <//font>
Code: [Select]
If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],10000,3),<font color="#990000">,IsEqual([Bitrate],20000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),) <//font>

I don't know the right words and "set in" is probably not a correct term but what I mean is:
I get a green colored bitrate if the bitrate is more than 40Mbit for UHD movies or more than 20Mbit for HD movies.
The same goes for Yellow and red as stated below.

----------------
If resolution is more then 1920
16000 = Red color
40000 = Yellow color
100000 = Green color

If resolution is 1920 or less
10000 = Red color
20000 = Yellow color
100000 = Gren color
---------------


Is this doable?
I hope I'm not asking to much and I'm in no hurry.




Best regards,

//arcspin.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on January 20, 2020, 02:11:44 pm
So do you mean the expression for width around these color rules?
Like this?
If(IsEqual([Width],1920,5),UHD rule here, non-UHD rule here)

>1920
=<1920

If(IsEqual([Width],1920,5),If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],16000,3),<font color="#990000">,IsEqual([Bitrate],40000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),) <//font>,If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],10000,3),<font color="#990000">,IsEqual([Bitrate],20000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),) <//font>)

same thing inside code tag:
Code: [Select]
If(IsEqual([Width],1920,5),If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],16000,3),<font color="#990000">,IsEqual([Bitrate],40000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),) <//font>,If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],10000,3),<font color="#990000">,IsEqual([Bitrate],20000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),) <//font>)

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 20, 2020, 02:25:52 pm
Precisely!
This is great and now it is visually easy to look att the color code to get a sense of the quality of the video file.


Great work Lepa and I'm in awe of your mad skillz!  ;D ;D ;D


Cheers,

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 20, 2020, 03:24:59 pm
Again thank you!, but why doesn't my attempt to translate the code into File size work???

This code works:
Code: [Select]
If(!IsEmpty([File Size]),IfElse(IsEqual([File Size],15,3),<font color="#990000">,IsEqual([File Size],40,3),<font color="#FDDB2E">,IsEqual([File Size],100,3),<font color="#008000">) [File Size],) <//font>
And this code works:
Code: [Select]
If(!IsEmpty([File Size]),IfElse(IsEqual([File Size],7,3),<font color="#990000">,IsEqual([File Size],15,3),<font color="#FDDB2E">,IsEqual([File Size],100,3),<font color="#008000">) [File Size],) <//font>

But when I try to use this in front it doesn't work:
Code: [Select]
If(IsEqual([Width],1920,5)

Complete code:
Code: [Select]
If(IsEqual([Width],1920,5),If(!IsEmpty([File Size]),IfElse(IsEqual([File Size],15,3),<font color="#990000">,IsEqual([File Size],40,3),<font color="#FDDB2E">,IsEqual([File Size],100,3),<font color="#008000">) [File Size],) <//font>,If(!IsEmpty([File Size]),IfElse(IsEqual([File Size],7,3),<font color="#990000">,IsEqual([File Size],15,3),<font color="#FDDB2E">,IsEqual([File Size],100,3),<font color="#008000">) [File Size],) <//font>

My thinking is to have the correspondent file size to match the color coding of the bitrate:


If resolution is more then 1920
16000 = Red color (15GB)
40000 = Yellow color (40GB)
100000 = Green color (100GB)

If resolution is 1920 or less
10000 = Red color (7GB)
20000 = Yellow color (15GB)
100000 = Gren color (100GB)


//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on January 21, 2020, 11:40:20 am
I guess because [File Size] output size AND unit so it isn't as such a plain number (24 vs. 24 GB)

If you use [File Size,0] you'll get file size in bytes which can be used in mathematical operations
or you can use e.g. Replace() function to remove unit: Replace([file size],/ GB)  to convert "40 GB" to "40"

Anyway bitrate would better indicator of quality as file size depends on the length of your video file.

BTW You can experiment expressions and parts of expressions easily in standard view by making expression column and try your expressions there
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 21, 2020, 12:31:29 pm
Great info Lepa,
I will try out your suggestions, especially the part with the expression column.
It is a PITA to always have to go into theater view to see the end results when I do trial and error.

Sorry to bother you all with this, I just find it fun and rewarding figuring out different use-cases for my theater view.

Again, Great help as always!
//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on January 21, 2020, 04:15:01 pm
No bother
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 25, 2020, 05:26:12 pm
Hi,
I have a question about "the small view" as seen in my screenshot.
The sorting and display comes from when I click the directors name (Blake Edwards) and all the movies from that director comes up.

I kind of like that layout and are wondering where the settings are for that layout and I do not mean the layout for the right hand side (file info panel) of my screenshot but the movies titles on the left hand side.
In the screenshot there is only the movie title under each movie poster and I would like to add more info to the movie title name (year and edition) and being able to sort the titles in another way.

And also being able to force that layout when I group a movie serie, for example all my James Bond movies are grouped together with the "series tag" and when I access that view the movies are shown as usual but without the "small view"

I hope I make myself clear!?




Best regards and have a great weekend,

//arcspin

(I know how to customize the file info panel so that is not the issue here)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: tij on January 26, 2020, 10:15:28 am
i read through most of things in this post ... for Theatre View seems mods are centered around info screen/tooltip

can background image be modified based on which item is selected?

can posters for movies/music be modified?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on January 26, 2020, 11:50:18 am
It is easy to switch movie/album poster.
Just right klick on the movie or album and select Cover Art and then Add from file or select anything else
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: tij on January 26, 2020, 12:46:17 pm
It is easy to switch movie/album poster.
Just right klick on the movie or album and select Cover Art and then Add from file or select anything else
What I mean is can posters/covers be modified in Theatre View ... for example adding transparent case image to movie poster so it looks like BlueRay box ... or adding transparent jewel case to album cover
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on January 27, 2020, 02:17:08 pm
What I mean is can posters/covers be modified in Theatre View ... for example adding transparent case image to movie poster so it looks like BlueRay box ... or adding transparent jewel case to album cover

No, I don't think that is possible. 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: tij on January 27, 2020, 09:24:33 pm
No, I don't think that is possible.

How about background? ... can background image be modified based on which item is selected?

At the moment ... I can figure out 3 ways

1. static image defined in TheatreView template
2. online slideshow for when item selected
3. for music only ... if online sources are unselected ... then online slideshow will cycle through all images located in same directory (as this does not work for movies ... I was wondering if something manually can be done)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on January 28, 2020, 12:18:39 pm
I can't say that I have ever tried. I use the built in online slideshow and am happy with the results.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on February 16, 2020, 01:18:31 am
Hi,
I have a question about "the small view" as seen in my screenshot.
The sorting and display comes from when I click the directors name (Blake Edwards) and all the movies from that director comes up.

I kind of like that layout and are wondering where the settings are for that layout and I do not mean the layout for the right hand side (file info panel) of my screenshot but the movies titles on the left hand side.
In the screenshot there is only the movie title under each movie poster and I would like to add more info to the movie title name (year and edition) and being able to sort the titles in another way.

And also being able to force that layout when I group a movie serie, for example all my James Bond movies are grouped together with the "series tag" and when I access that view the movies are shown as usual but without the "small view"

I hope I make myself clear!?




Best regards and have a great weekend,

//arcspin

(I know how to customize the file info panel so that is not the issue here)

Hi all,
I'm bumping my own question as it might have gotten lost in this thread.

The basic question is that when Movies are shown in groups like in the screen shoot from my post above, how do I tweak the information shown on the left hand side and how do I sort movies in that "Small View"?
I can't find how to add an expression to sort and show more information from the movies in that group.

Best regards,

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on February 20, 2020, 10:20:30 am
Arcspin, I believe what you are looking for is still found under the File Info Panel settings. 

Customize File Info Panel > Choose Movies under Templates > Manage Button > Edit Template > Caption/Regular (Place your value here, eg. [Name] [Director])

I am not sure about some of the other stuff you asked, but I think this should get you started.

I wonder if we should get this thread moved to the MC 26 section.  Lots of good info in here and I know that I often forget to check this board now.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on February 20, 2020, 01:30:55 pm
Great Moe,
Exactly what I was looking for. I've been to those fields before but didn't know what they were so I always left those fields alone (I don't want to screw things up).

The follow up to this is if there is a way of sorting those movie files regarding to their release year, as it is now it is sorted by title name and I can't find a way of sorting in a different way in the Movie template as you describe in the post above.

Yes, This should be moved over to MC26 as it is a treasure trove for anyone looking to customize their templates.
I my self have bought MC26 but haven't made the switch as I think that MC26 do not offer any real improvements regarding the Theater view experience over MC25.



Again, Thank you!

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on February 21, 2020, 04:59:59 pm
Sorting is set in the theater view options, here

(http://moesrealm.com/img/MC/sort.png)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on February 22, 2020, 03:10:11 pm
Yes, that I know but I can't find the corresponding sorting view for this section.
"Customize File Info Panel > Choose Movies under Templates > Manage Button > Edit Template > Caption/Regular (Place your value here, eg. [Name] [Director])"


Never mind, I've been thinking about Oscars and when I use Mcratings there is this field that lists all the awards a movie have gotten.
I have figured out how to display movies sorting by how many awards the movie have had, see attachement.

But I do not know how to singel out the Oscar wins and group only by the Oscar wins.

From Mcratings this is how a movie that have won Oscars have in their Awards field: Won 11 Oscars. Another 111 wins & 77 nominations.
Is there a way to single out only the Oscar wins and group those together so I have a group (folder) with 11 Oscars, a group (folder) with 10 Oscars, and so on...

Or perhaps, filter out everything that isn't an Oscar win and group that way instead.

Cheers,

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on February 23, 2020, 06:04:05 pm
Something like this should do it

Code: [Select]
if(isequal([Awards], Oscar, 8), if(isequal([Awards], Won, 8), Oscar Winner,  Oscar Nominee),No Ocar)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on February 25, 2020, 02:13:37 am
Lello, I would just hold for now.  JRiver is giving us true image support (see the thread I linked a few posts back) which is going to make this whole process much, much easier.  It will make it easier to create and easier to share as well.

After a long time I went back to reading this thread, and I see that you have gone ahead making some really beautiful and interesting screens. For me, however, everything is still very difficult to put into practice: is there a release of a simple solution for those who are not as practical as me?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on February 25, 2020, 10:14:04 am
Lets start small, what is one thing you'd like to achieve?  If we start there we can walk you through the process of accomplishing that.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on February 25, 2020, 11:25:50 am
Thanx for the Oscars code. It is working just fine.
(the code is missing an "s" in "No Ocar" at the end of the code.)

I now have a couple of different Oscar views that will come in handy.


Cheers,

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on February 25, 2020, 12:01:49 pm
Lets start small, what is one thing you'd like to achieve?  If we start there we can walk you through the process of accomplishing that.

So, I followed the instructions on the first post of this long thread, downloading and installing everything that was needed, obtaining the relative template, after which I stopped while you made huge steps forward. I'd like to have a template like this https://yabb.jriver.com/interact/index.php?action=dlattach;topic=119385.0;attach=33272;image but besides downloading a ready-made .zip file, I don't think I'm capable :(
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on February 25, 2020, 12:29:35 pm
Unfortunately, you won't find a zip file that will magically get you there.  There are too many moving pieces and everyone's libraries are a bit different. 

That said, I think once you get a couple of things working, you'll begin to see how it all works.  There is a learning curve, but once you figure out one or two things it's easy to wrap your head around it.  That's why I suggest you pick one thing you'd like to add first, like the IMDB rating or something like that.  I would not start with actor images as that's probably the most complex part of the whole thing.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on February 26, 2020, 02:08:40 am
Okay, let's forget the photos of the actors.
Currently I get the icons audio format, video, channels but they are in black and white and I would like to have them in color like those in the image above. As for the aspect ratio, moreover, in several films it is wrong (the 2.35: 1 icon appears to me when it is actually a 1.85: 1) and I cannot understand where the information comes from.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: fitbrit on February 26, 2020, 12:58:28 pm
I think this is at a stage where a lot of the most common mods - Dolby logos, ratings etc, should be rolled into a default view. Anyone new to MC who wants to use this new feature currently has to wade through a LOT of stuff in this thread. If a default view was given some of these options, and could then be user modified, we'd have some kind of expression template in place that we could experiment with. Right now, I really feel it's too much of a time investment to start from scratch.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on February 26, 2020, 05:53:48 pm
Okay, let's forget the photos of the actors.
Currently I get the icons audio format, video, channels but they are in black and white and I would like to have them in color like those in the image above. As for the aspect ratio, moreover, in several films it is wrong (the 2.35: 1 icon appears to me when it is actually a 1.85: 1) and I cannot understand where the information comes from.

Can you share the code that you have, I have a feeling you're still using the font rather than using images if everything is black and white.

As for your aspect ratio, again, I'd have to see the code you're using to be able to figure out why it's not working for some movies.

Quote
I think this is at a stage where a lot of the most common mods - Dolby logos, ratings etc, should be rolled into a default view. Anyone new to MC who wants to use this new feature currently has to wade through a LOT of stuff in this thread. If a default view was given some of these options, and could then be user modified, we'd have some kind of expression template in place that we could experiment with. Right now, I really feel it's too much of a time investment to start from scratch.

I like this idea a lot.  They could include generic images that aren't going to step on any copyright toes but would but would be a good example of how things work.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on February 27, 2020, 02:03:53 am
In fact, as I said, I had remained at the indications of the first post for which I used fonts. Then I discovered, from this post of yours https://yabb.jriver.com/interact/index.php/topic,119385.msg847989.html#msg847989 that you have to use the images and I finally managed to do everything except the aspect ratio as it seems it is necessary to use MCUtils that I have downloaded, but I am not able to use; I'll try again as soon as possible.

This is what I currently use with fonts: <font face = "ToolTip01" size = "180" color = "# 9496a3"> If (Math (below (trunc (Replace ([Aspect Ratio],:, //) + .005, 2), 1.38)), M, If (Math (below (trunc (Replace ([Aspect Ratio],:, //) + .005, 2), 1.68)), N, If (Math (below (trunc (Replace ([Aspect Ratio],:, //) + .005, 2), 1.80)), O, If (Math (below (trunc (Replace ([Aspect Ratio],:, //) +. 005, 2), 1.87)), P, Q)))) <// font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on February 27, 2020, 11:07:31 am
You actually don't need MCUtils to determine Aspect Ratio, it's just the way that I do it.

That expression comes from Lepa and it uses the default [Aspect Ratio] field in MC and I am not super familiar with it. 

For the movies that are showing the incorrect value for aspect ratio, what is the value for the Aspect Ratio field for those movies?  I have a feeling it is blank.  All of my movies that have a blank value for Aspect Ratio show as 2.35 using Lepa's expression.  Unfortunately, I am not sure how MC is populating the Aspect Ratio field as it's a default MC field.  I would be curious to hear how Lepa deals with these movies, if he has the problem that is.

Using MCUtils doesn't have the above problem. If you do decide to move forward with MCUtils, I highly suggest getting in touch with MrC. His email can be found in the script documents, he'll get you up and running in no time.

EDIT: After a bit of fiddling, I was able to get most of my blank Aspect Ratio values filled in by removing the existing cover art and then adding it back in.  I still have a handful of files that this didn't work on, but doing this fixed about 99% of them (I have four movies that MC can't determine the AR on).  That may help if you have the same issue that I did.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on February 28, 2020, 01:46:23 am
In fact in films with wrong aspect ratio, they had the empty field in MC so I solved this problem :)

However, if I wanted to use images instead of fonts, what expression should I use instead of
Lepa?

Thank you
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on February 28, 2020, 08:38:04 am
You just need to replace the letter in the expression (that corresponds to an image glyph) with the corresponding image.  As an example, this part of the expression:

Code: [Select]
If (Math (below (trunc (Replace ([Aspect Ratio],:, //) + .005, 2), 1.38)), M
Is saying, after doing some fancy math, if the aspect ratio is less than 1.38 return the letter M.  The custom font has the letter M look like the the 1.33 glyph.  You can test this by going to my site https://moesrealm.com/MC/ clicking into the area where all the images are and typing the letter M (it has to be a capital letter, type a lowercase m and watch what happens).

To use images instead of the font, you replace M in your expression with <img src="tooltip:1.38">, making sure that you have an image called 1.38.png in your tooltip image folder (the images can be found on my site, if you haven't grabbed them already https://moesrealm.com/MC/mc-images/ Then do the same for all the other letters that correspond to glyphs

So your expression would end up looking something like this.

Code: [Select]
If (Math (below (trunc (Replace ([Aspect Ratio],:, //) + .005, 2), 1.38)), <img src="tooltip:1.38">, If (Math (below (trunc (Replace ([Aspect Ratio],:, //) + .005, 2), 1.68)), <img src="tooltip:1.66">, If (Math (below (trunc (Replace ([Aspect Ratio],:, //) + .005, 2), 1.80)), <img src="tooltip:1.78">, If (Math (below (trunc (Replace ([Aspect Ratio],:, //) +. 005, 2), 1.87)), <img src="tooltip:1.85">, <img src="tooltip:2.35">))))
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 28, 2020, 12:47:50 pm
For the movies that are showing the incorrect value for aspect ratio, what is the value for the Aspect Ratio field for those movies?  I have a feeling it is blank.  All of my movies that have a blank value for Aspect Ratio show as 2.35 using Lepa's expression.  Unfortunately, I am not sure how MC is populating the Aspect Ratio field as it's a default MC field.  I would be curious to hear how Lepa deals with these movies, if he has the problem that is.
Yes, aspect ratio determination is a real pain. MC gets it mostly right for ripped mkvs where there is no black bars. You can also try to calculate it from your videos width & height but if there are black bars it will also go wrong. I guess there is no scraper at the moment for the aspect ratio.

Lello: I'd say let's forget about the fonts at least for most of the times and use images instead. Moe has been generously hosting bunch of them collected by him and me and probably also others here.

Theater View building is nice in that way that we can make progress line by and you can also keep your original template, just push it down in priority list.

So lets start from top row what my template looks like
I'm using both MCRatings and MCUtils but you can get started with MCRatings only

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 28, 2020, 01:33:38 pm
Tools -> Options -> TheaterView -> ...Customize file info panel

I'm using prefix notation L: or S: to show me if that row is meant for large or small view

L: Name
first  line is the title which will be shown on top of TheaterView
nothing fancy there. It will show Movie name and year and information if it is already watched

L: Name + year + watched
Basically same as above but shown as first of the movie information set

S: Name + year + watched + rating
Showing these things in small view

L: mpaa+duration+genre+year+country
Shows these things. This one actually uses fonts for mpaa because MC's images doesn't support vertically centered images (it is always drawing them from top)

S: mpaa+duration+genre+country
Same info for small view. This uses images for mpaa...

etc..

I think that if you add that template included here, we can then start to tinker problems which will occur because you don't have some metadata or fonts or images. If you don't override your original movie template you can always use that one until you got this new one sorted just toggle the priority of the templates and the upper one is used.

---
I should mention also that there are some work in progresses here also. e.g I have used "Show only when viewing a file grouping" to hide some of those lines e.g. "L: separator" so I didn't have to delete it if i come back to that some day. One thing which is wip is those aspect ratios... I should start to use MCUtils for better hit ratio.

End results images also attached
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on February 28, 2020, 01:56:14 pm
Regarding aspect ratio and MCUtils, it's done using pscriptor which in turn is using mediainfo (https://mediaarea.net/en/MediaInfo). I am not sure how it calculates aspect ratio, I don't know if it takes into account black bars or not.  I have a feeling that it does not.

This is the command I run to find Aspect Ratio.  This command also returns the number of audio streams contained within the file.

pscriptor.pl getmediainfo -F "Number of Audio Streams",AR --params "General.AudioCount,Video.DisplayAspectRatio" -VV

From a quick look, I am not sure if my results are any better than yours.  I just didn't take the time to figure out the expression you used to turn the MC value into something a bit more usable for our needs, I am not sure I could have :)

It would be nice if one of the movie database sites, that has an API, listed the movies actual aspect ratio.  As far as I know, none of them do.  IMDB does, but I am not aware of a scraper for it.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 28, 2020, 04:11:31 pm
Yes, the media info result is probably the same as calculated from height and width.

Got a tip how to make more efficient calculation inside MC by using global variables instead of multiple math functions so I've edited my [AR-Calculated] field now as follows. [Aspect ratio] needs to have value for this calculation to get wanted results. [AR-calcluated] is needed if you want to convert [Aspect ratio] fields decimal values to standard values used in movie industry and to make image loading automation a little simpler

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)This will make one math calculation and one compare per file
and will output one of the values: Empty, 1.33, 1.66, 1.78, 1.85, 2.35 or 2.39

Then I have images in the MC's data/tooltip folder accordingly: so aspect-1.33.png, aspect-1.66.png etc.

On my Tech Icons row for theater view I then simply have:

<font size="150"><img src="tooltip:container-[File Type]">  If(IsEqual([Notes],Dolby Vision,8),<img src="tooltip:Definition-DolbyVision">,If(IsEqual([Notes],HDR,8),<img src="tooltip:definition-hdr">,<img src="tooltip:definition-[Definition]">))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>


...which will pick correct aspect ratio picture from the tooltip folder. Value "Empty" is just for my TODO view so I can see which movies doesn't have [Aspect Ration] field filled and (currently) needs to be inserted by hand
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on February 29, 2020, 01:37:54 am
To use images instead of the font, you replace M in your expression with <img src="tooltip:1.38">, making sure that you have an image called 1.38.png in your tooltip image folder (the images can be found on my site, if you haven't grabbed them already https://moesrealm.com/MC/mc-images/ Then do the same for all the other letters that correspond to glyphs

Perfect, I followed your instructions and now I get the images also for the aspect ratio. Thank you
P.S. as soon as I can I try the new template and the different method for the aspect ratio

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on February 29, 2020, 09:52:57 am
Is there any way to import Mediainfo data into the library fields, especially languages ​​and subtitles?

I managed to make the audio & subtitle line work (inserting the image of the national flags in the tooltip folder) only by manually entering the necessary data in the specific fields of the library
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 29, 2020, 10:17:17 am
Yes it is. I have created [Subtitles] [Audio Language] fields which I'll populate using Jmone's toolset.

It needs two rounds: one for subtitles and one for audio tracks

Parameters as in pic:
Subtitles, Language, Text
Audio Language, Language, Audio

I have also made view to manage these fields so that I don't try to process already handled items as they e.g. don't have subtitles etc
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on March 02, 2020, 03:03:35 am
In the end I did it but it was a bit complicated because the Swag of Tools program that I didn't know, crashed my PC several times. In the end I realized that I had to select a few files at a time to avoid crashing.

Thanks again
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 02, 2020, 09:24:12 am
I haven't got PC crash with Swag but have experienced that I should leave MC alone while going through files Swag of Tools or otherwise Swag of Tools is killed.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: dmillionz on March 13, 2020, 01:48:17 am
Could you post pictures of your progress? what does it look like? what have you done?

Flow should be something like this:
If you try to use my template inside the zip you should do steps 1-4 and result should be 5.
Next if you check edit template (second picture) and that search criteria is set to movie (third picture)
Last you should check (4th picture) that this imported movie template (which you just added from the clipboard) is highest movie template (remember pic3 search criteria)

You don't have my filmstudios font so those wont show up as icons but that shouldn't bother the rest of the things so let's not concentrate on that now. You of course you need to install ToolTip01 font to windows

I've been searching for hours trying to find the FilmStudios Font for TheaterView and can't find it anywhere. Where can I find this font to show the Studio Logos on my Movie details page?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 13, 2020, 07:18:26 am
I've been searching for hours trying to find the FilmStudios Font for TheaterView and can't find it anywhere. Where can I find this font to show the Studio Logos on my Movie details page?
User Moe used to serve these images. They seem to be offline now.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on March 13, 2020, 09:19:44 am
Images and font should be back up.  I inadvertently moved a folder into another folder, killing the site.  Had a little freakout but it's all good now. 

Images can be found here https://moesrealm.com/MC/mc-images/
Font can be found here https://moesrealm.com/MC/
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: dmillionz on March 13, 2020, 04:57:37 pm
User Moe used to serve these images. They seem to be offline now.

Moe got the links back up but I must be over looking the Font. I need the FilmStudios Font that references the FilmStudios Font in the TheaterView Template Code. I don't see that at the two links he provided. I have the other Font Moe provided installed and working properly. It shows all the correct icons. The Font that shows the Studio Icons in gray I can't find. That seems to be the only thing missing from my TheaterView setup.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 13, 2020, 05:07:59 pm
I think that you might be using some older template when there wasn't any images support in MC views.

This post below have template which I am using currently. It uses images for logos.
https://yabb.jriver.com/interact/index.php/topic,119385.msg860935.html#msg860935
Can also make versio without cast images...

If you insist using font it can be found attached here
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: dmillionz on March 13, 2020, 07:31:59 pm
I think that you might be using some older template when there wasn't any images support in MC views.

This post below have template which I am using currently. It uses images for logos.
https://yabb.jriver.com/interact/index.php/topic,119385.msg860935.html#msg860935
Can also make versio without cast images...

If you insist using font it can be found attached here

Big thanks. This is exactly what I was looking for. I modified the text to match the logos in the Font. Quite a few are missing though. I suppose they will not be added since you switched to the image format? I do like the font look and ability to change the color for my Theater View Style. If no expansion will be done, this will be good for now until I can figure out how to use the image versions.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 14, 2020, 02:59:23 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on March 14, 2020, 06:53:28 pm
Hi guys,
I've just published MCRatings v3.0 "contagion edition", with the following changes:
Release thread: https://yabb.jriver.com/interact/index.php/topic,124516.0.html

Links: Screenshots (https://github.com/zybexXL/MCRatings/wiki/Screenshots) - Quick Start (https://github.com/zybexXL/MCRatings/wiki#Quick-Start) - User Guide (https://github.com/zybexXL/MCRatings/wiki) - Source code (https://github.com/zybexXL/MCRatings)
Download: latest version (https://github.com/zybexXL/MCRatings/releases/latest)

(https://raw.githubusercontent.com/zybexXL/MCRatings/master/Screenshots/PosterTooltip.png)

(https://raw.githubusercontent.com/zybexXL/MCRatings/master/Screenshots/PosterBrowser2.png)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: dmillionz on March 14, 2020, 10:27:39 pm
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"
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"...

This is perfect. Thanks for the detailed explanation. My last question is for the Fields Notes, Channels, Production Companies etc, where is the data for these fields coming from? I don't see these Fields in MCRatings and they're not setup in the MC library? I think once I know this part, I can make it happen.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on March 15, 2020, 01:55:06 am
Hi guys,
I've just published MCRatings v3.0 "contagion edition"

Great in so many ways.
I'm now eagerly waiting for Moe, Lepa, and others to help us "expression noobs" to what we have to do to also have cast/crew thumbnails (and other things) on our Theater view.

Zybex also posted this on a separate thread here:
https://yabb.jriver.com/interact/index.php/topic,124516.0.html


Cheers,
//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 15, 2020, 02:47:58 am
This is perfect. Thanks for the detailed explanation. My last question is for the Fields Notes, Channels, Production Companies etc, where is the data for these fields coming from? I don't see these Fields in MCRatings and they're not setup in the MC library? I think once I know this part, I can make it happen.
Channels is MC stock field I think and it is populated when MC analyzes the video during import. Notes is also stock field which I have been using to as release info field. Already tinkered this a little and made individual [HDR] checkbox field to so it isn't necessary to compare text strings anymore. Production Companies seems to be populated by MCUtils TMDb script. If you are using just MCRatings you can use e.g. Studios instead.

E: got rid of [Notes] parsing and created [Dolby Vision] checkbox user field

So the end result with these icons (https://yabb.jriver.com/interact/index.php/topic,119385.msg861971.html#msg861971) looks something like this (flags are misplaced as MC is drawing images always on top the block...)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on March 15, 2020, 12:11:01 pm
Hi,
How do I extract the "+Atmos" or "+DTS:X" information populated by Swag of tools in the compression tag?

I would like to add that information in my Theater view and also know how to connect the "+Atmos" or "+DTS:X" information to the corresponding .png in the Tooltip folder.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 15, 2020, 12:20:34 pm
Hi,
How do I extract the "+Atmos" or "+DTS:X" information populated by Swag of tools in the compression tag?

I would like to add that information in my Theater view and also know how to connect the "+Atmos" or "+DTS:X" information to the corresponding .png in the Tooltip folder.
You could make new library field [HD Audio] which is calculated value from MC's compression field. That's easy to do using ListItem with separator +
Code: [Select]
ListItem([Compression], 1, +)Of course you don't have to create new field and just use that code anywhere you want to extract it but I think it is cleaner to create possible long expressions when you have done calculation already somewhere else and then you can just use human readable variable.

Code: [Select]
<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([HD Audio]),/  <img src="tooltip:audio-Replace([HD Audio],:,_)">,)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><//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on March 15, 2020, 01:13:48 pm
Great, that worked out just fine, the part that got HD Audio populated with Atmos or DTS:X.

Now the hard part (for me)
How to connect the "ListItem([Compression], 1, +)" to a logo in the Tooltip folder.

This is my code and I would like to have "Audio-Dolby Atmos" if it is Atmos in HD Audio and  "Audio-DTS X" if it is DTS:X in HD Audio.
Both pictures are in Tooltip and are in .png format.

This I would like have the pictures at the end (after the channels) of the code below:

Code: [Select]
<img src="tooltip:Studios-[Studios]" height="80"> <font face="ToolTip01" size="180" color="#9496a3">If(Math(below(trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.38)),M, If(Math(below(trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.68)),N,If(Math(below(trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.80)),O,If(Math(below(trunc(Replace([Aspect Ratio],:,//) + .005, 2),1.87)),P,Q))))<//font> <font face="ToolTip01" size="200" color="#9496a3">If(IsEqual([Width],1920,5),¥,If(IsEqual([Width],1360,5),¤,If(IsEqual([Width],888,5),£,If(IsEqual([FPS],25,2),¢,¡))))<//font> <font face="ToolTip01" size="170" color="#9496a3">If(IsEqual([File Type],mkv),î,If(IsEqual([File Type],ifo),W,If(IsEqual([File Type],bdmv),U,)))<//font> <font face="ToolTip01" size="150" color="#9496a3">If(IsEqual([Compression],div,8),ú,If(IsEqual([Compression],hevc,8),ü,If(IsEqual([Compression],h264,8),û,If(IsEqual([Compression],xvid,8),ă,If(IsEqual([Compression], vc-1,8),Ā,If(IsEqual([Compression],mpeg2,8),þ,If(IsEqual([Compression],mpeg1,8),ý,If(IsEqual([Compression],mpeg4),ÿ,))))))))<//font> <font face="ToolTip01" size="150" color="#9496a3">If(IsEqual([Compression],dts-hd ma,8),&,If(IsEqual([Compression],dts,8),#,If(IsEqual([Compression],ac3,8),z,If(IsEqual([Compression],pcm,8),/),If(IsEqual([Compression],mp3,8),*,If(IsEqual([Compression],flac,8),',If(IsEqual([Compression],aac,8),0,If(IsEqual([Compression],mpeg,8),z,If(IsEqual([Compression],vorbis,8),/,,If(IsEqual([Compression],truehd,8),x,If(IsEqual([Compression],opus,8),1,)))))))))))<//font> <font face="ToolTip01" size="165" color="#9496a3">If(IsEqual([Channels],1,2),=,If(IsEqual([Channels],2,2),>,If(IsEqual([Channels],3,2),],If(IsEqual([Channels],4,2),?,If(IsEqual([Channels],5,2),^,If(IsEqual([Channels],6,2),‐,If(IsEqual([Channels],7,2),_,‑)))))))<//font>

Update!
I Think I got it.....

Yup, I got the code string right but I can't get Swag of tools to extract DTS:X as it states in Swag of tools thread.
"- Update the "Compression" Tag with "+Atmos" or "+DTS:X" if the file contains it"

And I do think my test file contains a DTS:X track.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 15, 2020, 02:51:25 pm
Nice! If you like use fonts also for HD Audio, you can do something like this. Also using IfElse structure might or might not be a little easier to read depending on your taste.

Following code should be same as yours above but using IfElse and global variable for aspect ratio, also displays 2.39:1 aspect ratio correctly.
I think that I have one disc with DTS:X but as I don't have multichannel setup so haven't paid so much attention...

Code: [Select]
<img src="tooltip:Studios-[Studios]"/ height="80"> <font face="ToolTip01" size="180" color="#9496a3">Save(Math(Trunc(Replace([Aspect Ratio], :, // ) + .005, 2)), gAR)IfElse(Compare(Load(gAR), <, 1), , Compare(Load(gAR), <, 1.38), M, Compare(Load(gAR), <, 1.68), N,Compare(Load(gAR), <, 1.80), O,Compare(Load(gAR), <, 1.87), P,Compare(Load(gAR), <, 2.36), Q,Compare(Load(gAR), <, 2.40), R)<//font>/  <font face="ToolTip01" size="200" color="#9496a3">IfElse(IsEqual([Width],1920,5),¥,IsEqual([Width],1360,5),¤,IsEqual([Width],888,5),£,IsEqual([FPS],25,2),¢,1,¡)<//font>/  <font face="ToolTip01" size="170" color="#9496a3">IfElse(IsEqual([File Type],mkv),î,IsEqual([File Type],ifo),W,IsEqual([File Type],bdmv),U)<//font>/  <font face="ToolTip01" size="150" color="#9496a3">IfElse(IsEqual([Compression],div,8),ú,IsEqual([Compression],hevc,8),ü,IsEqual([Compression],h264,8),û,IsEqual([Compression],xvid,8),ă,IsEqual([Compression], vc-1,8),Ā,IsEqual([Compression],mpeg2,8),þ,IsEqual([Compression],mpeg1,8),ý,IsEqual([Compression],mpeg4),ÿ)<//font>/  <font face="ToolTip01" size="150" color="#9496a3">IfElse(IsEqual([Compression],dts-hd ma,8),&,IsEqual([Compression],dts,8),#,IsEqual([Compression],ac3,8),z,IsEqual([Compression],pcm,8),/),IsEqual([Compression],mp3,8),*,IsEqual([Compression],flac,8),',IsEqual([Compression],aac,8),0,IsEqual([Compression],mpeg,8),z,IsEqual([Compression],vorbis,8),/,,IsEqual([Compression],truehd,8),x,IsEqual([Compression],opus,8),1,)<//font>/  <font face="ToolTip01" size="165" color="#9496a3">IfElse(IsEqual([Channels],1,2),=,IsEqual([Channels],2,2),>,IsEqual([Channels],3,2),],IsEqual([Channels],4,2),?,IsEqual([Channels],5,2),^,IsEqual([Channels],6,2),‐,IsEqual([Channels],7,2),_,1,‑)IfElse(IsEqual(ListItem([Compression], 1, +),Atmos),/  !,IsEqual(ListItem([Compression], 1, +),DTS:X),/  $)<//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on March 15, 2020, 03:01:40 pm
Great, Your code works as intended.
Thank you for spring cleaning my code.  :)

I'm in the hands of smarter people then me so when I find a string that works, I usually stick with it.


Yup, I downloaded some more DTS:X sample tracks from the internet and from them I can extract DTS:X.
So there aren't that many DTS:X movies after all, i think.

Hey, you even got the DTS:X logo to work!!!

Again thanx!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on March 15, 2020, 03:29:54 pm
I'm also trying to have a .png for Atmos and DTS:X

This is the simple code that fetches the "Audio-Atmos.png" when Atmos is present in HD Audio, but the Audio-DTS X.png don't show up when DTS:X in present in HD Audio.
I might have something to do with the fact that the HD Audio for DTS:X is spelled with an ":"

Code: [Select]
<img src="tooltip:audio-[HD Audio]"height="70">,)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 15, 2020, 04:03:50 pm
I'm also trying to have a .png for Atmos and DTS:X

This is the simple code that fetches the "Audio-Atmos.png" when Atmos is present in HD Audio, but the Audio-DTS X.png don't show up when DTS:X in present in HD Audio.
I might have something to do with the fact that the HD Audio for DTS:X is spelled with an ":"

Code: [Select]
<img src="tooltip:audio-[HD Audio]"height="70">,)
You need to use e.g. Replace() function to take out colon as windows doesn't allow it to be used for filenames so replace ":" with "_" and filename should be "Audio-DTS_X.png"
Code: [Select]
<img src="tooltip:audio-Replace([HD Audio],:,_)"height="70">,)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on March 15, 2020, 04:06:51 pm
Sweet!
It worked.

Cheers,
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 16, 2020, 08:00:19 am
Thank you team for all of the hard work on this.  I've been able to leverage your coding and to create a good movie Tooltip for all of the movies that I have.

I would like to to do a Tooltip - Audio, could one of the team that's already worked on it post the code so that could start with a good foundation?  I've looked through this thread a couple of times but have not been able to find a Tooltip - Audio sample.

What a resourceful group JRiver has of it's users that has created huge added value for this solution.  I tip my hat to the team (Moe, Lepa, etc) for their work.  It's really impressive.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on March 16, 2020, 06:04:34 pm
I would like to to do a Tooltip - Audio, could one of the team that's already worked on it post the code so that could start with a good foundation?  I've looked through this thread a couple of times but have not been able to find a Tooltip - Audio sample.

Here's what I use for Tooltip - Audio. It's simple, not too flashy, but I don't have many fields that I use in my Audio so it fits my need.


Code: [Select]
If(IsEqual([Media Type],Audio,1), <font size="200" color="#f5f5f5"><b>[Artist]<//b><//font>
<font size="150" color="#1FB4FC"><b>[Name]<//b><//font>
<font size="120" color="#FFFF99"><b>[Album] /([Year]/)<//b><//font>
<b>[Duration]<//b>
<font color="#38F678>[Genre]<//font>

If(IsEqual([File Type],mp3,1),<img src="tooltip:AudioMP3_white" height="32"> [Bitrate] kbps,) If(IsEqual([File Type],flac,1), <img src="tooltip:AudioFlacTrans" height="32"> [Bitrate] kbps,)
____________________________________________________________________________________________________________________
If(!IsEmpty([Comment]),<font color="#E54D03">[Comment]<//font>,)

If(!IsEmpty([Description]),<font color="#38f5f6">[Description]<//font>,)

If(!IsEmpty([Lyrics]),<font color="#ddff99">[Lyrics]<//font>,)
____________________________________________________________________________________________________________________

,)


Hope that gets you started. Please share what you come up with. It may give me some inspiration to add more to what I have.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 17, 2020, 06:33:09 pm
I've starting working on it and have added some additional data that I use (Country) and some minor rearranging for personal preference.

Question, where do you the color pallet #'s. 

<font color="#898989">[Genre]<//font>

Where does the #898989 come from?  Looking for some documentation that I couldn't find.

Should have an update tomorrow of my sample.


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on March 17, 2020, 07:10:54 pm
https://htmlcolorcodes.com/

https://www.colorhexa.com/898989
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on March 17, 2020, 08:55:42 pm
Here is my current music tooltip

(http://moesrealm.com/img/MC/music-tooltip.png)

Here is the code I use to achieve it.

Code: [Select]
If(IsEqual([Media Type],Audio,1),<font size="200"><b>[Artist]<//b><//font><font size="150"><br>If(!IsEmpty([AMG Album Pick]),<img src="R:\Tooltip\AMG_Album_Pick.png" height="23">  ,)<i>[Album]<//i><//font><font size="150"><br>If(!IsEmpty([AMG Track Pick]),<img src="R:\Tooltip\tpick.png" height="23">  ,)[Name]<//font>
<img src="R:\Tooltip\Separator.png" size="570x30">
<font size="125" color="#80C0C0"><img src="R:\Tooltip\MC.png" height="22">  [rating ★] <font color="#5b5b5b">||<//font>  <b>Track [1 of X]<//b>  <font color="#5b5b5b">||<//font>  <b>size()  <font color="#5b5b5b">||<//font>  [Genre]  <font color="#5b5b5b">||<//font>   [Year]  <font color="#5b5b5b">||<//font>  [File type]       <//b><//font>If(!IsEmpty([Band Members]),<br><img src="R:\Tooltip\Band Members.png" size="570x30"><br>[Band Members],)If(!IsEmpty([Music Collections]),<br><br><img src="R:\Tooltip\Collections.png" size="570x30"><br>[Music_Collections],)If(!IsEmpty([AMG Rating]),<br><br><img src="R:\Tooltip\allmusic.png" height="20">  [AMG ★ Rating Large] <font size="115">  [AMG Author]<//font>,)If(!IsEmpty([AMG Review]),<br><br><font size="125">[AMG Review Clean]<//font>,)


<font size="85" color="#7c7c7c">[filename]<//font>

,)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 18, 2020, 08:09:34 am
https://htmlcolorcodes.com/

https://www.colorhexa.com/898989

Thank you so much!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 18, 2020, 10:26:55 am
Here is my effort.  My code was pretty much borrowed from all and it's certainly not the most efficient, but it's a start.

I have custom fields for Gender (Female) and added in Country also.

I've attached the file (I like lighter backgrounds) which doesn't appear to be the most popular and an image.

Thanks for all of your help!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on March 18, 2020, 11:11:59 am
Here is my effort.  My code was pretty much borrowed from all and it's certainly not the most efficient, but it's a start.

I have custom fields for Gender (Female) and added in Country also.

I've attached the file (I like lighter backgrounds) which doesn't appear to be the most popular and an image.

Thanks for all of your help!

Looks great!! Now I'm inspired!  8)

What's the easiest way to fill the "Total Tracks" field?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on March 18, 2020, 11:30:03 am
Looking good, thanks for sharing.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 18, 2020, 01:45:49 pm
Looks great!! Now I'm inspired!  8)

What's the easiest way to fill the "Total Tracks" field?

I created a new field called Total Track # and created it with a calculated filed with this expression:

ItemCount(albumkey/(/))

I then copied the Total Track # field to Total Tracks.  It's not perfect if you have multiple disks and especially if you have multiple copies of the same album (which I try not to have).   I only copied it for those albums that didn't have Total Tracks in them already.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on March 18, 2020, 04:38:40 pm
I created a new field called Total Track # and created it with a calculated filed with this expression:

ItemCount(albumkey/(/))

I then copied the Total Track # field to Total Tracks.  It's not perfect if you have multiple disks and especially if you have multiple copies of the same album (which I try not to have).   I only copied it for those albums that didn't have Total Tracks in them already.

Brilliant!!! I couldn't modify the Total Tracks field, so I just used my new field in my code. Thanks for the tip!!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Scobie on March 20, 2020, 01:56:13 am
Moe, forgive the basic question, how do you incorporate the Allmusic data into your tooltip? I can see you call it as a png file but what are you doing to access and store it?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on March 20, 2020, 10:03:20 am
I am using MCUtils to get the AMG data https://yabb.jriver.com/interact/index.php/topic,100449.0.html I believe that is what you're asking.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 20, 2020, 10:23:34 am
I spent some time with MCUtils yesterday and was challenged with the solution based on the following variable:

You must manually look up each album (I have thousands of Albums) on AMG or Discogs and manually input the AMG ID or Discogs ID into the command line to looking the specific data for that one album. That's actually not really feasible for me.

I truly appreciate all of the programming work that JMone did for the solution and it does work but there is a lot of work to do in order to update a large collection of audio data and the command line utility can be a challenge to work with album by album.

I would love to see a solution that would gather the AMG or Discogs ID into the JRiver DB (with maybe an option to select yes or no to update per the import process - Like Album Art Lookup and then go out and gather that data specifically from AMG or Discogs.  I wish I had the programming skills to do this project but I don't have the skill set required  :(

Please let me know if I'm not clearly defining the challenges that I faced in using this utility.




Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on March 20, 2020, 12:16:58 pm
Just for the record, MrC created MCUtils, not JMone.

MCUtulis can attempt to automatically fill in the AMG ID#. 

I believe the command is amg --search usematch,quotenames --inc rid

I highly recommend reaching out to MrC, his email is in the docs, and he can give you some pointers and help you get setup.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Scobie on March 20, 2020, 05:29:19 pm
Quote
I am using MCUtils to get the AMG data https://yabb.jriver.com/interact/index.php/topic,100449.0.html I believe that is what you're asking.

Yes exactly what I was looking for, thank you.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 21, 2020, 10:32:47 am
Just for the record, MrC created MCUtils, not JMone.

MCUtulis can attempt to automatically fill in the AMG ID#. 

I believe the command is amg --search usematch,quotenames --inc rid

I highly recommend reaching out to MrC, his email is in the docs, and he can give you some pointers and help you get setup.

Thanks, I will do.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 21, 2020, 11:21:29 am
I'm trying to get the actors pictures displayed properly and having some challenges.  I can clearly display their names (Actor field) and have looked at the various code to display the Actors pictures for my Movie - Tooltip but unable to get them to display.

I'm using MC Ratings 3.04 to get all of the images and they are in the directory f:\actors as .png files.

What is the code to get the actors displayed correctly (all of them or say 5 only)?

Thanks
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 21, 2020, 11:32:13 am
<img src="f:\actors\ListItem([Actor],0).png"> <img src="f:\actors\ListItem([Actor],1).png"> <img src="f:\actors\ListItem([Actor],2).png"> etc...

[Actor] must of course match with filename so if [Actor] = "Tim Roth; Harvey Keitel; Steve Buscemi" you'll need "Tim Roth.png", "Harvey Keitel.png" and "Steve Buscemi.png" images. If you got some imdb index for actor in the filename that needs to be told also in expression
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on March 22, 2020, 01:40:36 pm
Hi everyone,

I have a Different question: up to now, I use MC25. If I upgrade to MC25 (I already have the Licence), do I have to add all the special fields and tooltips again or will they be also "transformed" with the library?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 22, 2020, 02:59:06 pm
<img src="f:\actors\ListItem([Actor],0).png"> <img src="f:\actors\ListItem([Actor],1).png"> <img src="f:\actors\ListItem([Actor],2).png"> etc...

[Actor] must of course match with filename so if [Actor] = "Tim Roth; Harvey Keitel; Steve Buscemi" you'll need "Tim Roth.png", "Harvey Keitel.png" and "Steve Buscemi.png" images. If you got some imdb index for actor in the filename that needs to be told also in expression

Thanks Lepa, that worked great, I'm using the standard Actors field and had to change [Actor] to [Actors] but it all worked perfect!

Thanks everyone for your assistance.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on March 22, 2020, 04:15:20 pm
Hi everyone,

I have a Different question: up to now, I use MC25. If I upgrade to MC25 (I already have the Licence), do I have to add all the special fields and tooltips again or will they be also "transformed" with the library?

It will transfer over.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Scobie on March 22, 2020, 08:20:17 pm
Very impressed with the work done on this utility, well done and any many thanks to all involved.

Need a couple of pointers though. I have the AMG Review and Rating data coming in, but how do I pull in the Artist Bio?

The Tag has been created but can't see how to populate it.

Thanks
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on March 22, 2020, 09:32:19 pm
In your MCUtils config file did you add artistbio?

Amg::Option: include         = artistbio

Also, if you have questions regarding MCUtils, reach out to MrC, he'll get you all set up (email is in the docs)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Scobie on March 23, 2020, 01:13:31 am
yep got it thanks again.

Now have too much info in the tooltip window..is there a way to navigate it? The bio fills the window.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 23, 2020, 01:35:59 am
Now have too much info in the tooltip window..is there a way to navigate it? The bio fills the window.
No there isn't. You must choose what is enough. My approach for tooltip is to show mainly track specific things
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Scobie on March 23, 2020, 02:04:45 am
Yep fair enough.

And I think I'm correct in saying they only apply at the file level? I can't have one when I hover over an artist or an album...it is for tracks (files) only?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 23, 2020, 02:17:53 am
Yep fair enough.

And I think I'm correct in saying they only apply at the file level? I can't have one when I hover over an artist or an album...it is for tracks (files) only?
You are correct. It would be nice though to see grouped tooltip but that it could be a little hard to implement rules what show with different set of files. If group e.g. consist of audio and videos etc
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Scobie on March 23, 2020, 02:58:38 am
Shame, bringing in this AMG data is like eating chips, can't stop.

I'm always flicking between MC and AllMusic, so having them on a single pane of glass is brilliant.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Scobie on March 23, 2020, 03:20:19 am
Nice unintended side effect though, all metadata available and viewable in JRemote.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 23, 2020, 06:14:07 am
Shame, bringing in this AMG data is like eating chips, can't stop.
;D You've probably also already added links but if not here you can see instructions for creating links
https://yabb.jriver.com/interact/index.php?topic=83371.0;topicseen
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: thorsten on March 23, 2020, 01:10:08 pm
It will transfer over.
Ok, will try it, thanks!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Scobie on March 23, 2020, 05:55:59 pm
Quote
You've probably also already added links

Indeed, yet another MC rabbit hole I can't resist. Working from home is getting busier...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Mans on March 24, 2020, 08:55:11 am
Greatday to all,

Thanks to you all I've successfully implemented Actor Images within my Movies template.

I've got one general folder for the pictures as provided by MC ratings.
This scraping does works very nice.

Next step would be adding the actor's name and their role to the thumbnail.
MC ratings has this cool option, but I'm not able to figure out how to delimit the actors role from the [Actors] field, which is added as between [].

I've seen some you have done it in some way :-)

Could you please shine me a light which expression to use within the template and/or which expressions to be added to new tag fields ?

Another thanks !
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on March 24, 2020, 10:39:09 am
Mans, did you see this post https://yabb.jriver.com/interact/index.php/topic,124516.msg862272.html#msg862272
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Mans on March 24, 2020, 05:03:01 pm
Many thanks dear Moe,

Great post you've pointed out  :D
Zybex made a great piece of work.
The update of his MCR is massive and due some reason I most have missed it.

I'm trying to get it done but guessing I'm doing something essentially wrong during the process.
I've made a new reaction to this post.

Another thanks sir !
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 25, 2020, 09:41:29 am
Just for the record, MrC created MCUtils, not JMone.

MCUtulis can attempt to automatically fill in the AMG ID#. 

I believe the command is amg --search usematch,quotenames --inc rid

I highly recommend reaching out to MrC, his email is in the docs, and he can give you some pointers and help you get setup.

I just went to locate MrC through JRiver and he does not have an email defined and it appears that he has not been on in years.  See attached file.

I've got perl installed and and mcutil configured but getting some weird error messages.  Also all of the documentation that I've seen (I have the 3-15-2020 version (changes.txt file)) installed.

Is there potentially someone else for more data on MrC that you might be able to assist me on?  Trying to find the correct resources and people.

Thanks
 


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on March 25, 2020, 09:49:45 am
His email is found in the MCUtils download package.  I will send you a pm with his email.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 26, 2020, 11:20:59 am
His email is found in the MCUtils download package.  I will send you a pm with his email.

Thanks much, he was of great help and up and running better with AMG integration
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on March 29, 2020, 02:29:11 pm
Since it's cold and rainy out and we're pretty much in lock down around here, I finally decided to play around with this this afternoon.  I've had some success getting @moe's movie tooltip to work using the font, but am really more interested in getting the TheaterView Info Panel to work and it looks like I grabbed @lepa's newer version that's using images.  Is it possible to download all the images at once (perhaps in a zip file) or only 1 at a time?  Looking at @moe's site, I don't see any sort of download all feature and there are quite a few files to grab.  Thanks for all the work, guys!

Edit: I just downloaded a bunch of the image files and put the in Data\Tooltips and still don't see most of the icons.  So I must either be missing some custom fields or don't have something set correctly (it looks like the file names @lepa uses aren't on @moe's site).  I am seeing the MPAA rating icons and the separators, but that's about it.  I added a new row that uses the font and that works, so I clearly don't have the correct set of .png files and may be missing a few custom fields.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 30, 2020, 10:24:45 am
I guess we haven't formed any standards for filenames. I'm using prefix to indicate to which group image belongs and after that mostly the value of the tag the image is referring.
e.g.
<img src="tooltip:container-[File Type]">                 => "container-mkv.png"
<img src="tooltip:label-[Publisher]">                       => "label-Atco Records.png"
<img src="tooltip:studio-[Production Companies]">   => "studio-Warner Bros. Pictures.png"

Some other prefixes/field mappings I'm using

aspect-[AR-Calculated] = 1.33, 1.37, 1.66, 1.78, 1.85, 2.35, 2.39 (e.g. aspect-1.78.png)
audio-[Audio Codec]    = aac, truehd, opus etc (e.g audio-aac.png)
audio-[HD Audio]        = atmos, DTS:X (e.g. audio-DTS_X.png)
country-[Country]       = USA, England, English... etc (e.g country-English.png)
speakers-[Channels]   = 1,2,4,5,6,7,8 (e.g speakers-6.png)
definition-[Definition]  = 480p, 576p, 720p, 1080p, 4K (e.g definition-1080p.png)

etc
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on March 30, 2020, 10:56:47 am
I guess we haven't formed any standards for filenames. I'm using prefix to indicate to which group image belongs and after that mostly the value of the tag the image is referring.
e.g.
<img src="tooltip:container-[File Type]">                 => "container-mkv.png"
<img src="tooltip:label-[Publisher]">                       => "label-Atco Records.png"
<img src="tooltip:studio-[Production Companies]">   => "studio-Warner Bros. Pictures.png"

Some other prefixes/field mappings I'm using

aspect-[AR-Calculated] = 1.33, 1.37, 1.66, 1.78, 1.85, 2.35, 2.39 (e.g. aspect-1.78.png)
audio-[Audio Codec]    = aac, truehd, opus etc (e.g audio-aac.png)
audio-[HD Audio]        = atmos, DTS:X (e.g. audio-DTS_X.png)
country-[Country]       = USA, England, English... etc (e.g country-English.png)
speakers-[Channels]   = 1,2,4,5,6,7,8 (e.g speakers-6.png)
definition-[Definition]  = 480p, 576p, 720p, 1080p, 4K (e.g definition-1080p.png)

etc
Yeah, I looked at your script more closely later last evening and saw that you're doing that.  I guess the question is are there any plans / efforts to consolidate some of these scripts and sets of logo files so we have a standard we can all follow?  Right now, it's really tough to take only someone's script and make it work because it's relatively difficult to figure or find the matching set of image files.

It would be really cool if we can get to a point where we have a set of image files, a "library" of TheaterView templates and Tooltip templates, a list of custom fields that need to be added, and a list of metadata programs that are needed to gather all the data to make everything work.  I don't think we're actually all that far from that, and it would definitely help of JRiver is able to include some of this in the standard install.

Edit: I took a few minutes and renamed (well, copied) some of the files I downloaded to match your naming scheme and the images are now appearing.  There's a ton of potential here to give Theater View a nice facelift, so it will be interesting to see where this ends up going.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on April 04, 2020, 03:23:59 pm
Hi,
Could someone help me out to have country flags instead of the countries names for subtitles and audio language.

I have used Swag of tools to extract country names for subtitles and audio language and they are presented properly in Theater view.

My Library fields for these are: "Subtitles" and "Audio language"

I figure I need the countries flags in .png in a folder and then an expression pointing to these flags.


Thanks,
//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on April 04, 2020, 04:14:55 pm
Have you gotten the flag images yet?  If you haven't here is a good resource for small icons https://usefulshortcuts.com/skype-emoticons-and-shortcuts/Flags-of-the-World-in-Skypes.php

To display the flag it would be as easy as something like this

Code: [Select]
<img src="tooltip:[Subtitles]">
Then if the subtitle language is French, as long as you have an image called French.png in the default image folder C:\Program Files\J River\Media Center 26\Data\Tooltip it should display the flag.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on April 05, 2020, 01:17:56 am
Great and thank you!
When downloading country flags they are all named after their country and not their language so I manually did rename the 40 or so country names into language names that I could identify in my movies.

Your expression works fine (and one flag is showing) if there is only one language in either the "Subtitles" and/or the "Audio language"
When there are multiple languages the expression do not show any flags at all.

Example, the movie Jumanji have:
Subtitles: English; French; Spanish; Swedish
Audio Language: English; French; Spanish

How should the expression look like to be able to show country flags for all languages?

Thanx,

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 05, 2020, 06:59:19 am
Your expression works fine (and one flag is showing) if there is only one language in either the "Subtitles" and/or the "Audio language"
When there are multiple languages the expression do not show any flags at all.

Example, the movie Jumanji have:
Subtitles: English; French; Spanish; Swedish
Audio Language: English; French; Spanish

How should the expression look like to be able to show country flags for all languages?

If you want everything to be show you could use Replace() function to manipulate list (changes all ; to tooltip strings)
Code: [Select]
<img src="tooltip:country-Replace([Audio Language],; ,">/  <img src="tooltip:country-)">
Code: [Select]
<img src="tooltip:country-Replace([Subtitles],; ,">/  <img src="tooltip:country-)">
I'm currently just inefficiently checking if there significant language for me and only print those:
Code: [Select]
If(IsEqual([Audio Language],English,8),<img height="15" src="tooltip:country-UK">/  ,)If(IsEqual([Audio Language],Finnish,8),<img height="15" src="tooltip:country-Finland">/  ,)If(IsEqual([Audio Language],Danish,8),<img height="15" src="tooltip:country-Denmark">/  ,)If(IsEqual([Audio Language],Norwegian,8),<img height="15" src="tooltip:country-Norway">/  ,)If(IsEqual([Audio Language],Korean,8),<img height="15" src="tooltip:country-Korea">/  ,)If(IsEqual([Audio Language],Japanese,8),<img height="15" src="tooltip:country-Japan">/  ,)If(IsEqual([Audio Language],Chinese,8),<img height="15" src="tooltip:country-China">/  ,)If(IsEqual([Audio Language],French,8),<img height="15" src="tooltip:country-France">/  ,)If(IsEqual([Audio Language],Swedish,8),<img height="15" src="tooltip:country-Sweden">/  ,)
Code: [Select]
If(!IsEmpty([Subtitles]),<b>|/  SUBTITLES:  <//b>If(IsEqual([Subtitles],Finnish,8),<img height="15" src="tooltip:country-Finland">/  ,)If(IsEqual([Subtitles],English,8),<img height="15" src="tooltip:country-UK">,),)It's not optimal by all means but works for me for now

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on April 05, 2020, 12:43:23 pm
Thank you Lepa,
The code worked out just fine.
I had to rename United Kingdom to UK, other than that it worked.
I also downloaded two png icons one for audio language och one for subtitle instead of writing Subtitles and Language before the flags.
Se screenshot.

I have downloaded 260 country flags in png format if anyone is interested in using them.
They all have the prefix "Country-" to better conform to Lepas code.

Feel free to download the zip-file here:

https://www.dropbox.com/s/eclhyiflc0q0ckp/World%20Flags%20%28country-%29.zip?dl=0 (https://www.dropbox.com/s/eclhyiflc0q0ckp/World%20Flags%20%28country-%29.zip?dl=0)


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 05, 2020, 02:22:36 pm
Very nice arcspin and thanks for the countries  :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on April 05, 2020, 02:51:00 pm
Lepa, that replace function thing you did is very slick!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 05, 2020, 04:17:51 pm
Lepa, that replace function thing you did is very slick!
Thanks! At first was thinking far too complicated to solve arspin's question. Neat thing is that same approach can be used e.g. actors which I think you already noticed...

Code: (Will create 6 image templates for actors separated by one space ) [Select]
<img src="C:\Actor Images\Replace(ListLimit([Actors],6),; ,.png">/ <img src="C:\Actors Images\).png">It will shorten at least my expressions nicely and make them more easy to read
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: rasmusklumpp on April 08, 2020, 11:57:47 am
Hello outthere,
I have two expression questions.

In Theater View (Audio) I would like to display the Album Length. But I can't figure it out.
I have to say I am a really Idiot in Expression Language, the most Expressions I use are "borrowed" from Lepa and Moe......

And: I would like to display in Theater View The Actors who appear in more than 3 or x  Movies: Otherwise this List is endless.

Thanks for your Work. Great Forum.
Martin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 13, 2020, 02:54:15 am
Not easy to my knowledge. MC's database is not relational database so it's not easy to separate well known actors from nobodys.. I wondered this a while ago also... (https://yabb.jriver.com/interact/index.php/topic,58754.msg397415.html#msg397415)

For the album length I suppose you could do some calculating using MC variables so something like this would calculate album length:
Code: [Select]
[=Save(0, v_AlbumDuration[Album Artist (auto)][Album])1]=1 [=Save(Math([Duration,0] + Load(v_AlbumDuration[Album Artist (auto)][Album])), v_AlbumDuration[Album Artist (auto)][Album])1]=1
To load the value:
Code: [Select]
FormatDuration(Load(v_AlbumDuration[Album Artist (auto)][Album]))
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 13, 2020, 03:10:56 am
Come on now lepa, don't whip out the variables on the poor guy.  There's a much simpler way.

Just add the following as an expression to display in any Album view:
GroupSummary(Duration)

That will calculate the total album duration for you.


So you might have a sublevel in your Artists view that displays [Album].  Just replace that [Album] level with an Expression..

Expression to Group By:  [Album]
Expression to Display: [Album]  GroupSummary(Duration)

Easy.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 13, 2020, 03:56:58 am
Come on now lepa, don't whip out the variables on the poor guy.  There's a much simpler way.

Just add the following as an expression to display in any Album view:
GroupSummary(Duration)

That will calculate the total album duration for you.


So you might have a sublevel in your Artists view that displays [Album].  Just replace that [Album] level with an Expression..

Expression to Group By:  [Album]
Expression to Display: [Album]  GroupSummary(Duration)

Easy.
But for that to work I need to be in that sub level in order to GroupSummary(Duration) to give me desired value, don't I? Actually what I do is that I'm saving value to tags when finalizing my tags as I need the value in different situation like in small view in theaterviews playing now. Correct me if I'm wrong but GroupSummary would work when I'm browsing album's files (i.e. view has only files of that album) but not e.g. in that Playing Now List view.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 13, 2020, 04:45:19 am
Well, maybe I misunderstood his request, but he said he would like to display the album length.  Where else would you display an album length except looking at albums?

I guess you could want it after you already drilled down into an album, and were looking at the file list of tracks in that album.  At that point, no, GroupSummary wouldn't give you album duration, and you'd have to use variables.

But it seemed to me he was asking the simpler question...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 13, 2020, 04:52:28 am
But it seemed to me he was asking the simpler question...
Options are always good to have so simpler GroupSummary() is surely worth mentioning  :)

My scenario:
Theaterview is kind of limited in some place. In this case in illustrating groups like Albums (same applies to series etc)

I'm currently experimenting again to show grouped data in small theaterview view so that it remains (mostly) same for every track in album (dr, total tracks, catalog, duration etc). In other words for music it will show album specific data, not the selected track's data. So for me total time cannot change depending on context I'm browsing in and that small view is shown also in other places than just browsing album. That's why I used variables to save total duration into tag.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on April 13, 2020, 06:17:57 am
Well, maybe I misunderstood his request, but he said he would like to display the album length.  Where else would you display an album length except looking at albums?

I guess you could want it after you already drilled down into an album, and were looking at the file list of tracks in that album.  At that point, no, GroupSummary wouldn't give you album duration, and you'd have to use variables.

But it seemed to me he was asking the simpler question...
It wasn't obvious to me that he was only asking the simpler question.  My impression was that ANY time he displays info about a track, he would like to be able to display the length of the entire album that track is a part of.  If that's the case, then the GroupSummary option won't work.  Perhaps we could get the folks at JRiver to add some sort of AlbumInfo function that could return various info about the album that current items is tagged with.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: rasmusklumpp on April 13, 2020, 07:56:47 am
Hello Guys,
i think i have to clear the situation. The arrow shows the position where the album duration should be. (http://)                                                                                                 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: rasmusklumpp on April 13, 2020, 07:57:39 am
failed
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 13, 2020, 12:33:30 pm
Actually Matt is working on an extension to the expression language I proposed that will make things like this both possible and easy.  :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: rasmusklumpp on April 13, 2020, 02:56:23 pm
So. Next try to post a screenshot!
javascript:displayWindow('https://pix01.jriver.com/gI1@a09G')
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 13, 2020, 03:17:09 pm
Like wer said, there should be easy automatic solution if you are willing to wait a moment
ref: https://yabb.jriver.com/interact/index.php/topic,124543.msg864781.html#msg864781
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: rasmusklumpp on April 14, 2020, 12:25:29 am
Ok, thank you very much. ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 19, 2020, 05:05:00 am
There is now GroupSummaryQuery() expression which can sum duration per album etc but for me it's currently too slow and at least for now I'm sticking with global variables are loaded when view is refreshed so they'll slow down UI only when entering the view.

Meanwhile did tinker my TV Show tooltip a bit. It's still a bit rough on edges though

Code: [Select]
If(IsEqual([Media Sub Type],TV Show,1), <font size="140"><b>[Series] | [Name]<//b><//font>
<font size="110"><i>Season: [Season]  Episode: [Episode] <b>|<//b> [Duration]  <b>|<//b> [Date] <b>|<//b> ListLimit([Genre],1)  <b>|<//b> [Status] If(Compare([Rating],>,0),<b> | <//b><font color="ad900d">RatingStars()<//font><b> |<//b>,)<//i><//font>
  ______________________________________________________________________________________________________________

<font size="120" color="62a2ba"><b>starring<//b><//font>
If(!IsEmpty([Actors]),If(!IsEmpty([TMDb id]),<img src="tooltip:separator"><font size="800"><img src="D:\audio\Album Covers\Actors Series\Replace(ListLimit([Actors],6),; ,.png"><img src="tooltip:separator"><img src="D:\audio\Album Covers\Actors Series\).png"><//font>,<font size="140" color="ffffff">Replace(ListLimit([Actors],6),;,/,)<//font>),)

If(!IsEmpty([Description]),<font size="120" color="62a2ba"><b>summary<//b><//font>
<font color="ffffff">[Description]<//font>,)

If(!IsEmpty([Guest Stars]),<font size="120" color="62a2ba"><b>guests<//b><//font>
<font size="140" color="ffffff">Replace(ListLimit([Guest Stars],4),;,/,)<//font>
,)If(!IsEmpty([Director]),<font size="120" color="62a2ba"><b>director<//b><//font>
<font size="140" color="ffffff">Replace([Director],;,/,)<//font>
,)If(!IsEmpty([Screenwriter]),<font size="120" color="62a2ba"><b>screenwriter<//b><//font>
<font size="140" color="ffffff">Replace([Screenwriter],;,/,)<//font>
,)If(!IsEmpty([Creator]),<font size="120" color="62a2ba"><b>creator<//b><//font>
<font size="140" color="ffffff">Replace([Creator],;,/,)<//font>,)

<font size="180">If(!IsEmpty([Access Rating]),<img src="tooltip:rating-[Access Rating]">,)   <img src="tooltip:definition-[Definition]">/   <img src="tooltip:speakers-[Channels]">/   <img src="tooltip:audio-[Audio Codec]">If(Compare(Number([Critic Rating]),>,0),/   <img src="tooltip:web-tvdb">/ FormatNumber(Number([Critic Rating]),1),)If(Compare(Number([TMDb Rating]),>,0),/   <img src="tooltip:web-tmdb">/ FormatNumber(Number([TMDb Rating]),1),)<//font>

  ______________________________________________________________________________________________________________
[Filename],)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on April 19, 2020, 07:28:35 am
Looks good - I like it!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 19, 2020, 05:11:51 pm
I think I settle this now. If tmbd id is filled for me it means that there should also be actors images. If id is empty starring will show text only version.

As There is only so much space horizontally I created a little trick to show actor images. First two actors are now considered as a "main stars" and are shown always. Next four are then shown randomly from the rest of the actors. I could also make field which would contain "main stars" count so it could vary series by series. The Shuffle part of the template is a bit long due to MC's inconsistent list manipulation functions.

Code: [Select]
If(IsEqual([Media Sub Type],TV Show,1),/  <font size="170" color="ffffff"><b>[Series] | [Name]<//b><//font>
/  <font size="110"><i>Season: [Season]  Episode: [Episode] <b>|<//b> [Duration]  <b>|<//b> [Date] <b>|<//b> ListLimit([Genre],1)  <b>|<//b> [Status] If(Compare([Rating],>,0),<b> | <//b><font color="ad900d">RatingStars()<//font><b> |<//b>,)<//i><//font>

<font size="180">If(!IsEmpty([Access Rating]),<img src="tooltip:rating-[Access Rating]">,)   <img src="tooltip:definition-[Definition]">/   <img src="tooltip:speakers-[Channels]">/   <img src="tooltip:audio-[Audio Codec]">If(Compare(Number([Critic Rating]),>,0),/   <img src="tooltip:web-tvdb">/ FormatNumber(Number([Critic Rating]),1),)If(Compare(Number([TMDb Rating]),>,0),/   <img src="tooltip:web-tmdb">/ FormatNumber(Number([TMDb Rating]),1),)If(!IsEmpty([Production Companies]),/   <img src="tooltip:studio-ListItem([Production Companies],0)">,)<//font>
________________________________________________________________________________________________________________

If(!IsEmpty([Description]),<font size="120" color="62a2ba"><b>summary<//b><//font>
<font color="ffffff">[Description]<//font>,)

<font size="120" color="62a2ba"><b>starring<//b><//font>
If(!IsEmpty([Actors]),If(!IsEmpty([TMDb id]),<img src="tooltip:separator"><font size="800"><img src="D:\audio\Album Covers\Actors Series\Replace([Series],:,_)\Replace(ListLimit([Actors],2),;,.png"><img src="tooltip:separator"><img src="D:\audio\Album Covers\Actors Series\Replace([Series],:,_)\).png"><img src="tooltip:separator"><img src="D:\audio\Album Covers\Actors Series\Replace([Series],:,_)\Replace(Clean(ListLimit(ListShuffle(RemoveLeft([Actors], Math(Length(ListLimit([Actors],2)) + 2))),4)),;,.png"><img src="tooltip:separator"><img src="D:\audio\Album Covers\Actors Series\Replace([Series],:,_)\).png"><//font>,<font size="140" color="ffffff">Replace(ListLimit([Actors],6),;,/,)<//font>),)

If(!IsEmpty([Guest Stars]),<font size="120" color="62a2ba"><b>guests<//b><//font>
<font size="140" color="ffffff">Replace(ListLimit([Guest Stars],4),;,/,)<//font>
,)If(!IsEmpty([Director]),<font size="120" color="62a2ba"><b>director<//b><//font>
<font size="140" color="ffffff">Replace([Director],;,/,)<//font>
,)If(!IsEmpty([Screenwriter]),<font size="120" color="62a2ba"><b>screenwriter<//b><//font>
<font size="140" color="ffffff">Replace([Screenwriter],;,/,)<//font>
,)If(!IsEmpty([Creator]),<font size="120" color="62a2ba"><b>creator<//b><//font>
<font size="140" color="ffffff">Replace([Creator],;,/,)<//font>,)

________________________________________________________________________________________________________________
[Filename],)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 23, 2020, 03:13:32 pm
This thread has produced some really great and innovative work, and has provided a much-needed improvement to the appearance to Theater View.  Kudos especially to Lepa and Moe for leading the way on this.

I'd like to propose that we try and adopt some standards, to facilitate portability of these improvements.  Right now, for example there is considerable variance amongst file names and field names.  This makes it very difficult to move templates from one system to another.  This inhibits adoption by new users, and makes it less likely JRiver will incorporate any of this into the app.

For example, I downloaded one of the templates available on this thread the other day, and literally NOTHING worked in terms of images or fields.  All the fields names were custom, expected image names used by expressions did not match anything on Moe's site, and it didn't use the data populated by MCRatings.  It might have worked perfectly on the original user's system, but a new user would have had to change practically everything to get it to work.  So I think we should do something.  I mentioned this to Lepa, and he felt it was a conversation that should be had.

To get the conversation started, I'll propose some default standards I think would be helpful:

Custom Tooltip and Theater View Template Proposed Standards


Field Names: 
1. All Field Names referenced should be stock field names, or when new fields are introduced for extended metadata, those field names as used by MCRatings, when possible.  The app is actively developed, and is the easiest way for users to get started.  MCRatings uses stock field names, except for the new fields it adds for extended metadata.

2. If a custom field name only exists in MCutils, it should be added to MCRatings if possible, but if it is outside the scope of what MCRatings can do, then templates should use the field name from MCUtils.

File Locations:
1. All General Purpose tooltips, like format logos, should reside in the tooltip folder, so they can be accessed with tooltip: on every system.  Hard-coded paths outside the tooltip folder should not be used.

2. Large sets of non-general purpose images can be grouped in subfolders of the tooltip folder.  For example "Studios-" files could go in the tooltip\Studios directory.

3. Cast and Crew Images should go in the tooltip:\Images directory.  e.g. <img src="tooltip:Images\Humphrey Bogart">

File Names:
1. File Names should start with an appropriate prefix, to group files of similar use.

2. File Name Prefixes should match the Field Name they are used with followed by a dash, to facilitate ease of use in expressions. 
      For example: <img src="tooltip:studios-[Studios]">  (or <img src="tooltip:Studios\studios-[Studios]">  if using subdirectories)

3. The suffix on filenames (the part after the dash) should match the field contents it is used with.
      So a good well-named file would look like:  channels-6.png   and not speakers-51.png
      in order that it can be accessed with <img src="tooltip:channels-[channels]">

4. If you upload image files to Moe's site, make sure the filename fits the accepted standards.

Fonts:
1. If you specify font faces in your template, either use fonts that are included by default on Windows (and Mac?) or provide a link where the font can be downloaded.

2. Perhaps it is better that alternate font faces not be used, so that everything follows the font specified in MC preferences?  Size, bold, italic, underline, alpha, and color of course present no issue.

Images vs Fonts:
1. It is preferable to use individual image files rather than font characters to display special images like logos, for the following reasons:
    a.  Although the use of fonts for this is extremely clever and helps portability, it requires extensive expression language logic to implement and select the correct font character every time one is used.  By contrast, properly named images can be accessed very simply and directly from the expression language, now that the "tooltip:" extension is present.

    b.  Image files can be easily added to or edited by the end user to allow additional customization.  Fonts cannot, without obtaining and using special font editing software, and even then the process is considerably more labor intensive.

    c.  Expressions written using tooltip images are much more readable and easier to debug than expressions selecting individual font characters.



If I've left anything out of the above draft, or you think things need to be different, please chime in!

-Will
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on April 23, 2020, 04:12:24 pm
@wer - generally speaking, those rules are a great starting point and some standardization is something I totally agree with.  I spent a lot of time a few weeks ago using the samples in this thread as a starting point and then figuring out how to make everything actually work for many of the reasons you mention.

I'd really like to see some standards that don't require the use of external tools like MCRatings though, for those of us who just use what's included with JRiver.  I suppose I could consider using MCRatings (I'm looking into it now), but it's not clear how much work would be involved to use it on an existing library that's reasonably large.

I think a few of your examples contradict some of the rules though - File Name rule 2, seems to have the wrong path, for example.  Rather than:

<img src="studios-[Studios]">

Since file location rule 2 suggests that studio files should be in a subfolder named "studios", shouldn't it be:

<img src="tooltip:Studios\studios-[Studios]">
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 23, 2020, 04:23:53 pm
Regarding the path example, I wasn't necessarily expecting the subdirectories rule to be adopted so I didn't include it.  I can edit that  if it's confusing, but then people might ask other questions.

The use of MCRatings is not required.  Standardizing field names is.

MCratings is easy to use.  It mostly uses stock fields, but it introduces a few new fields to hold new types of metadata.  You can go without MCRatings and without the new fields, but then you will be missing that metadata. 

Anytime we collect expanded metadata there will be new fields, and thus new field names.  I've clarified that in the original post.

The point is we have two utils now, MCRatings and MCUtils.  Both can be modified and have things changed.  But we need to pick ONE standard.  Where the two tools conflict in nomenclature, to have a standard one must prevail.

I'm suggesting we pick MCRatings, as it will ease adoption.  MCUtils can still be used, but one should modify the field names to fit the standard. 

You can use neither, and then you will not have extended metadata, or things like actor images.  And it's the images that provide a lot of the facelift to Theater View.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on April 23, 2020, 05:02:05 pm
I just setup MCRatings and let it retrieve data for a few movies.  I had already added some of the fields it uses so the examples posted in this thread wouldn't give me errors.  The whole process really only took a few minutes.  Now I need to edit my templates to get support for the newly added data fully hooked up, but that shouldn't take too much work.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on April 23, 2020, 05:15:58 pm
Bonus points if you can come up with a template and a set of stock images (rating logos, for example) that we can include in Media Center by default, preferably both for Shows and Movies, but just one for Movies would be a good start.

We can probably expand the default metadata lookup a bit if required (more ratings, etc), either from data we don't currently pull in from TMDb, or maybe expand the metadata sources if possible.
Feel free to suggest metadata you consider "mandatory" for this (or just want to have), and I'll see what I can do.

For images, we can include images with a limited pool of options, so images for ratings for example would be fine, or for audio/video formats, maybe even studios? but people would be out.

This would go well with your standardization efforts if we can provide a bigger "baseline" in MC itself already. And many users not willing or capable of setting this up would be happy, too, I'm sure!

If we can make use of this in MC itself for the majority of users with no external tool requirements and no manual setup, we can also expand the layout system a bit in the process.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 23, 2020, 05:30:24 pm
Thanks Hendrik...

There's three things I would consider mandatory in my opinion, but only one part of that is metadata:

1. Extended metadata.  Just take a look at what MCRatings is pulling.  The most conspicuous thing is the ratings info from IMDB, Rotten Tomatoes, etc. Taglines too. I would also like to see the original film Aspect Ratio from IMDB.  The calculated AR stuff is for the birds, IMO.  Adding trivia, like IMDB has, would be nice.

2. Icons for all the various formats, logos, etc.  This is almost entirely derived from metadata MC already has, and the tooltip functionality was added to display it.  But including the actual icons with MC and making it easy to display in the app would go a long way.  Screenshots from this thread are full of this kind of iconography, from sound a file formats to studio logos.

3. Cast and Crew images.  This is the big one for me.  This totally transforms the look of your theater view screens.  MCRatings has this functionality integrated with ImageMagick so that the actor's real name and role name are superimposed on the image.  Awesome.  The only thing missing is age-appropriate photos.  Currently it will show you a 57 year old Jodie Foster in the metadata for Taxi Driver, and she was 13 when she made that movie.  I've suggested to Zybex more appropriate photos can be achieve by doing a google image search for "Jodie Foster 1976" (which is the year Taxi Driver was release, information MC and MCRatings already knows.  This would give you context-appropriate actor photos for every movie, and would be truly wonderful.

Those things, plus what you mentioned about improved layout tools (putting the image on the left instead of the right, text justification, etc) would give Theater View a much needed boost.

Edit: Re layout, being able to specify the height of an item would be helpful.  If I want to insert a 1-pixel high horizontal line as a separator, it takes up too much vertical space.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on April 23, 2020, 05:41:00 pm
I'm looking for something that largely works with no additional user interaction. We're not going to do people images out of the box, its just too much finnicky manual work to select all the images for every movie. I understand many of you like them quite a bit, and of course we're not going to take anything away from your external solutions for them - and if we can do something to make them easier, we can also try to do that, but its not currently realistic to add lookup and processing into MC itself.

So what I am looking for, specifically:
- Tell me specifically which metadata is missing, and if its available in one of the databases we can use (primarily TMDb, maybe we can expand that), I'll include it (new fields are fine too). Many databases like IMDB itself are not available, as they are very expensive to use commercially.
- A Theater View template that makes use of this data (and/or a tooltip template, although personally I would be more after a Theater View one)
- A collection of the images required for that template


So in short, I can do some work on this, but for the sake of time efficiency (my list of things to work on is longer then I care to count), let me do the actual work, and not the research - which many of you have already done anyway, and would just need to properly present it for me to use. :)

If the regulars in this thread can put something together for that purpose, that would be great, and benefit MC as a whole!

I realize that might be asking a lot, but many of you guys already created those templates and have the images required all collected, so maybe just some adjustment and it might already be ready to go. And you guys get full control of what information you want on there - otherwise I will likely build something on my own eventually, but me personally? I probably care about much less information then you guys do, and it wouldn't be half as fancy.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on April 23, 2020, 05:59:00 pm
Well done Wer on getting this standardisation process started. I haven't adopted any of this development yet, waiting for it to settle down and become more standard. But I have been watching carefully.

I can edit that  if it's confusing, ...

Yes please. Oh, it looks like you already have.  :D

Hendrik, great to hear you are happy to do more.

Everyone else, Hendrik indirectly referred to an issue that you need to consider in this standardisation, and use of MCRatings and MCUtils. That is, JRiver as a commercial organisation can't use commercial metadata sources in MC, with functionality built into the software. Hence Hendrik talks about using free databases. JRiver can't access the IMDB directly, as I understand it. That would lead to a lawsuit. However, it can access any IMDB metadata when it is stored on a free database. i.e. The "IMDB ID" is available from TMDB, which is a free service.

However, any user can access all the available metadata for free from commercial sites, when they offer it free, as it is for "personal use". Hence user utilities such as MCRatings and MCUtils can access that data. Hence any solution involving the collection of broader metadata must rely on such utilities.

Other than that, carry on. I look forward to prettier Theatre View displays.  8)

PS: I see Hendrik has clarified a bit further. This thread is a moving target!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on April 23, 2020, 06:10:37 pm
Everyone else, Hendrik indirectly referred to an issue that you need to consider in this standardisation, and use of MCRatings and MCUtils. That is, JRiver as a commercial organisation can't use commercial metadata sources in MC, with functionality built into the software. Hence Hendrik talks about using free databases. JRiver can't access the IMDB directly, as I understand it. That would lead to a lawsuit. However, it can access any IMDB metadata when it is stored on a free database. i.e. The "IMDB ID" is available from TMDB, which is a free service.

Thats an important point. Many of these sites are not free to use for commercial use. IMDB is a prime example of this, their API for full use in a commercial product is extremely expensive.
With every web service we use, we have to check for these things. Metadata doesn't come for free, at least not if you are a commercial piece of software. So we have to be very careful.

To that end, I've long wanted to make an extensible metadata framework, so that crafty users could provide additional metadata sources directly into MCs lookup functionality, without us having to deal with the possible consequences of "commercial use". But thats probably quite some ways away.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: JimH on April 23, 2020, 09:34:45 pm
To that end, I've long wanted to make an extensible metadata framework, so that crafty users could provide additional metadata sources directly into MCs lookup functionality, without us having to deal with the possible consequences of "commercial use". But thats probably quite some ways away.
I agree.  YADB could probably be harnessed.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on April 24, 2020, 01:34:23 am
Great idea Wer, standards are always a good idea.

I agree with pretty much everything you said, except:

Quote
3. Cast and Crew Images should go in the tooltip:\Images directory.  e.g. <img src="tooltip:Images\Humphrey Bogart">

I strongly disagree with this.  I have so many cast/crew images that it lags my system if I don't put them in a structure like

Actors
     A
     B
     C
     ...
     Y
     Z

That said, it would be so much better if actor/crew images were generated on the fly within MC directly, like how we get background images.


Quote
We're not going to do people images out of the box, its just too much finnicky manual work to select all the images for every movie

I don't understand this?  TMDB, a source you're already pulling metadata from, has actor/director/etc images.  It seems to me that it wouldn't take a lot of work to generate these images on the fly.  Plex does it.

None of the tools used in this thread use IMDB data directly.  Even if it was, scraping non-copyrighted data is legal https://towardsdatascience.com/web-scraping-is-now-legal-6bf0e5730a78

The VAST majority of the data we are getting comes from TMDB, a resource MC is already using.  There is some data that comes from OMDB (https://www.omdbapi.com/) (I believe).  Some images are also coming from fanart.tv


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on April 24, 2020, 01:45:04 am
I don't understand this?  TMDB, a source you're already pulling metadata from, has actor/director/etc images.  It seems to me that it wouldn't take a lot of work to generate these images on the fly.  Plex does it.

If there is a one-stop source of images without requiring manual selection and post-processing, we can consider doing that. All I see here is talk about manually selecting images and processing them with ImageMagick, which is probably too much.

None of the tools used in this thread use IMDB data directly.  Even if it was, scraping non-copyrighted data is legal https://towardsdatascience.com/web-scraping-is-now-legal-6bf0e5730a78
That doesn't mean its the right thing to do. Besides its far more annoying to keep updating a web scraper for every website change, rather then use an API.

----

Either way, lets break this down into small chunks, and lets start with missing metadata or metadata improvements. Thats going to benefit everyone no matter what!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 24, 2020, 02:00:53 am
The regular actor images are downloadable from TMDB/OMDB.  MCRatings does that automatically; it grabs the information from the actor field, and downloads the images that match the actor name.

MCRatings leverages ImageMagick to resize images, and to overlay text (actor name and role name) on the images.  MC already has the ability to resize images, and adding the text overlay not difficult, so it should present no challenge for MC to do that processing internally with routines it already has.

The images are downloaded and resized once, and it takes only a second because they are small.  The time of the Get Movie Info command would probably not be significantly increased.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 24, 2020, 02:12:15 am
On a side note, has anyone noticed a strange scrolling problem with these templates?

Here's what I see:

1. With default JRiver Templates, vertical scrolling (done by leaning on the down or up arrow) is smooth.  The selection bar smoothly zips up and down the screen, no issues.

2. With a template using ONLY fonts to draw iconography, scrolling is just as smooth.

3. Using a template that uses actual tooltip images, scrolling is not smooth.  Keystrokes seem to get swallowed up or ignored.  If you lean on the down arrow, the selection bar might go down 1 (or 0) rows, and stop, all while you are leaning on the key.  After a few seconds it may descend some more, or it might not move until you release the key, and then scroll to the bottom element.  It's a very nasty scrolling experience.  Video performance, the actual rendering of the scroll animation as elements move on the screen, stays smooth.  It just doesn't seem to register the repeating keystrokes.

  If you tap the down arrow individually instead of holding it down, it moves each time you tap it.  Video performance of scrolling remains smooth.  Hold the key down, and scrolling grinds to a halt.

I've duplicated this on 2 different machines, and with both keyboard and IR Remote.  This is kind of a deal-breaker for a remote, as tap-tap-tapping the button individually each time is a pain.

Scrolling performance when using tooltip images just seems to be bad.

Please confirm if others are seeing this too, but I bet so, since I see it on multiple machines with different video cards, drivers, and keyboards.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on April 24, 2020, 07:25:41 am
Please confirm if others are seeing this too, but I bet so, since I see it on multiple machines with different video cards, drivers, and keyboards.

Wer, I don't experience your issue. My tooltips scroll very smoothly. I have a nVidia GeForce GTX 970 video card.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on April 24, 2020, 07:45:19 am
My templates seem to scroll just fine as well.  I have a GTX 1070 card and recently upgraded my PC to an AMD 3900X CPU, so it's a fairly high end system (for now...).
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on April 24, 2020, 09:58:04 am
Quote
If there is a one-stop source of images without requiring manual selection and post-processing, we can consider doing that. All I see here is talk about manually selecting images and processing them with ImageMagick, which is probably too much.

I don't think anyone is manually selecting actor images.  Lepa may have very early on, but we've had automated image gathering since at least October.

Here is an example movie from the tmdb api showing actor image, actor name and character name

Code: [Select]
{
  "id": 680,
  "cast": [
    {
      "cast_id": 2,
      "character": "Vincent Vega",
      "credit_id": "52fe4269c3a36847f801ca99",
      "gender": 2,
      "id": 8891,
      "name": "John Travolta",
      "order": 0,
      "profile_path": "/JSt3skdZpGPJYJixCZqH599WdI.jpg"
    },
    {
      "cast_id": 3,
      "character": "Jules Winfield",
      "credit_id": "52fe4269c3a36847f801ca9d",
      "gender": 2,
      "id": 2231,
      "name": "Samuel L. Jackson",
      "order": 1,
      "profile_path": "/mXN4Gw9tZJVKrLJHde2IcUHmV3P.jpg"
    },
    {
      "cast_id": 8,
      "character": "Mia Wallace",
      "credit_id": "52fe4269c3a36847f801cab7",
      "gender": 1,
      "id": 139,
      "name": "Uma Thurman",
      "order": 2,
      "profile_path": "/xuxgPXyv6KjUHIM8cZaxx4ry25L.jpg"
    },

With my limited knowledge, it seems like TMDB would make it pretty easy to get images. 

If I am reading the imagamagick license (https://www.imagemagick.org/script/license.php) correctly, it's free to use for commercial products.  There are already at least two imagemagick "recipes" created to apply to images (one for rectangular images and one for round images).  This obviously doesn't include any other backend work needed to incorporate it with MC, but I think that would be fairly easy(?).

Quote
On a side note, has anyone noticed a strange scrolling problem with these templates?

I don't experience any issues with my scrolling either.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: jimm2 on April 24, 2020, 10:15:46 am
Scrolling performance when using tooltip images just seems to be bad.

Please confirm if others are seeing this too, but I bet so, since I see it on multiple machines with different video cards, drivers, and keyboards.

Yes, I experience the same scrolling issue when using tooltip images. I found that reducing the file size of the images can help speed up scrolling but it's not really a fix.   
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 24, 2020, 12:57:43 pm
Many discussions going on..
About Hendrik's request for baby steps:

EXPANDED METADATA

MEDIA PARSING:
I think that MC could do more analyzing of video file while importing. For example: parsing audio and subtitle track languages and also some compression info like audio/video codec for file or HDR/DV info
Currently I'm calculating or manually adding these to every file or using JMone's swag

my tags:
[Audio Language] = eng;ger;fre;etc (JMone Swag of tools)
[Subtitles] = eng;ger;fre;etc (JMone Swag of tools)
[Audio Codec] = aac;dolby digital;flac;etc (I determine this currently live from [Compression])
[Video Codec] = I currently don't have this field
[HDR] = Checkbox (Manual edit currently)
[Dolby Vision] = Checkbox (Manual edit currently)
[HD Audio] = Atmos, DTS:X  (calculated from [Compression] by searching Atmos or DTS:X)

My misc fields:
([Definition] = 4K, 1080p, 720p, 576p, 480p (calculated from width, yes width), I don't expect this to be stock field, just my preference instead of calculating it inside expressions everytime )
[Dynamic Range (album)] = I have calculated field which have average DR value for album, could this also be calculated during analyzing?
[Total Tracks] = total tracks of an album. MC I guess will fill this during ripping but it is not triggered from anywhere else

METADATA FROM INTERNET
Looked what MCRating is currently pulling and here are something I think stock MC could also pull
[TMDb Rating]
[IMDb Rating]
[Rotten Tomatoes]
[Metascore]
[Awards]
[Tag Line]
[Movie Series]
[Original Title]
[Studios] or is studios already saved?

These would be the baby steps for me to get stock MC some more illustrative(?) data. So just parsing file into more tags ("update library from tags" would also trigger parsing) and getting few more lines from TMDb(/OMDb). Some images could then be added into tooltip folder structure which could be used to update current default movie template.




SECOND PHASE
Second phase could be then actor images. As Moe demonstrated, it should be fairly easy. MC would have default ImageMagick script for adding overlays which could be overwritten by user script.


SOME OTHER STUFF
Image alignation: images are drawn aligned to top left which makes them cumbersome to use images with text at same rows. You can't use common image but need to create new images for every situation depending on font size. Maybe drawing images at center of "cell" would fix this issue?

Thumbnail/Cover position: Now Cover is always on right. It would be at leas a little variation if one could mirror the position from the image template option

Client/Server Image distribution: I think that currently no images are transferred between server and client. So if I have two living room MC and bedroom MC I need to copy manually all the images to get them shown in both environment.

List style data linking ability Moe can refresh your memories about this. I'm now too exhausted to write anything

Bigger change would be possibility to show grouped data. To see artist page, album page, series page, season page. I know this probably don't fit on current MC theaterview navigation but would be nice addition and food for thought in the future. Now if I want read e.g. Album review I need to go all the way to one item (track) view. Ideally track level would show only track related data.

probably forgot many things but this post is already too long for anyone to read it...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 24, 2020, 02:56:44 pm
An update on the scrolling problem.

Some people are seeing it, some are not.

For the people who are seeing it, it occurs on both Windows 7 and Windows 10, and with AMD, Nvidia, and Intel graphics, on graphics cards 2GB and 4GB of memory.  Regular theater view scrolling, not using these templates, has no problems with keyboard responsiveness.

I found the problem can be reproduced using the unmodified template Lepa posted at this link as movie-template.txt
https://yabb.jriver.com/interact/index.php/topic,119385.msg825419.html#msg825419

There's speculation it might be due to image size.  Some of the images on Moe's site are ridiculously over-large for iconography, with dimensions greater than 1920x1080.  I'll experiment and report back.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on April 24, 2020, 03:07:59 pm
Just a small note,
Everyone (as Lepa just wrote) who have a MC server and a MC client (I have a MC server PC in my movie room and a MC client PC in my bedroom) have to update the tooltip in both locations when adding icons, pictures and other stuff to the tooltip folder.
So to have cast/crew pictures in tooltip is not a good idea.

I have, as suggested by Moe, the pictures sorted in alphabetical folders and also stored on my Synology NAS so both the server and the client can fetch pictures from the same place.


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 24, 2020, 03:25:50 pm
An update on the scrolling problem.
There's speculation it might be due to image size.  Some of the images on Moe's site are ridiculously over-large for iconography, with dimensions greater than 1920x1080.  I'll experiment and report back.
I'll suspect that this is the case here. I have scaled my pictures down to size what is needed because IMO live scaling doesn't seem to be so good and also big files could slow the system down.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 24, 2020, 04:00:32 pm
I'll suspect that this is the case here. I have scaled my pictures down to size what is needed because IMO live scaling doesn't seem to be so good and also big files could slow the system down.

I can confirm that this is absolutely the case.  Resizing all the image files to a small size before launching MC corrects the problem 100%.

MC is getting bogged down and misses keystrokes when it's loading and resizing large images at display time, even if loading from an SSD.  MC is doing some automagic resizing, because absurdly large images get resized to appropriate small sizes, even if no formatting like that is in the img src tag.  I think this is good behavior on MC's part, in terms of the automagic resizing.  In terms of the missing keystrokes, well...

The thing is, MC is being asked to do too much with these images that we've been downloading from Moe's site.

Some of the images sizes are absolutely obscene. Some have dimensions of 2819x2729.  This is for a freaking icon, people.  Don't upload crap like that.

Some have equally stupid sizes that interfere with automatic resizing. For example, how about an icon that's 1661x50   That's ridiculous.  You can't resize it without making the vertical component disappear.  If you have logos that look like that, they're inappropriate. CROP them to a reasonable aspect ratio before uploading.

These are supposed to be icons. They should not be in 4k or HD resolution.  300x300 max.  They should have aspect ratios in the range of roughly 1:1 to 4:1.  A logo with a 33:1 aspect ratio is useless, except as a separator.

Sorry for the rant, but people need to be more careful with the images they submit.  Unless the repository is sanitized, everyone will need to clean them up for themselves.

If you want to try, an example imagemagick command would be:
magick convert -resize 300x300^> %1 %1

This will only resize images larger than 300x300 down to that size, preserving aspect ratio.  You won't like what it does to an image with a 33:1 aspect ratio.  You need to crop those first.

At least this mystery is cleared up.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 24, 2020, 04:44:35 pm
These are supposed to be icons. They should not be in 4k or HD resolution.  300x300 max.
And even then isn't it almost 15% of vertical resolution on 4K display  8)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on April 24, 2020, 04:51:54 pm
I've been meaning to introduce proper caching for the images used in tooltips/Theater View, that should resolve those performance problems, I reckon.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 24, 2020, 04:54:09 pm
And even then isn't it almost 15% of vertical resolution on 4K display  8)

Yeah no kidding.  I just picked a number (300) and ran a resize, and it solved the problem.  So small enough to fix the issue, not so small you can't see it.  Searching for the optimal size I leave as an exercise to the reader.  MC seems to resize everything anyway according to some inscrutable and undisclosed rule, so everything fits.  I made a 2-px high separator image, and it displayed that properly without making it too big, and it also shrank down 2500px images so they were small like icons.  It just seems to always do the right thing without being told.

Some of the images are too small too... There's a bunch of "country" files (flags) that are only 16x11.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 24, 2020, 04:58:13 pm
I've been meaning to introduce proper caching for the images used in tooltips/Theater View, that should resolve those performance problems, I reckon.

Maybe as a prophylactic measure if you think you need to, but honestly some of the image sizes in there were just stupid.  The software was being asked to do something unreasonable.  People should just be more careful with their maximum "icon" sizes.

Once all the images are a reasonable size, MC works fine.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 24, 2020, 05:04:11 pm
Yes, I've been aiming to something like 300p also as MC seems to handle that size fine even though most of the time that size is also overkill for the purpose of the image
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on April 24, 2020, 05:48:19 pm
I just shrank all the images down to sane sizes.

I did archive the big images, should anyone want them https://moesrealm.com/MC/images/Big/
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 24, 2020, 08:47:59 pm
I've been meaning to introduce proper caching for the images used in tooltips/Theater View, that should resolve those performance problems, I reckon.

On second thought, this is probably a good idea Hendrik.  I've found with more testing that the effect is actually cumulative.  So smaller images at first solves the problem, but then when you add in MORE small images it can come back.  It's a slippery slope with all those format icons and everything, you start to get a lot of small images.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 29, 2020, 01:40:09 am
I'd be interested to hear what others are planning to do with Studio icons in their tooltips & theater views.

Starting out, I thought I would do this just because I thought it looked nice, but I've discovered several things and am having second thoughts.

1. There are a kajilion "studios" if you include the minor ones, and the ones for which graphics are missing far outnumber the studio images on Moe's site now.  So there would be a lot of hunting to generate new PNGs.

2. The information on TMDb is often wrong. Sometimes the contributor listed as the studio some fly by night home video company that once released the movie as a cheap dvd and had nothing to do with actually making the picture.

3. Even when the studio information is vaguely accurate, it's inconsistent.  Somtimes it's entered as Columbia, or Columbia Pictures, or Columbia Pictures Corporation, or Columbia Pictures Corp.  Some studios have 5 or 6 variations. So you either have to standardize the fields or make multiple PNGs.

4. And on top of that sometimes there's no right answer. In the modern area multiple studios (and I'm talking about the majors) will all put their stamp on the picture. How do you decide between MGM and Columbia? Some movies have so many vanity cards at the start you wonder when the movie will actually begin. If you keep them all, the icons won't fit!

So it's a real hodgepodge, much worse than I expected.

What are you all doing with it?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on April 29, 2020, 06:28:57 am
I'd be interested to hear what others are planning to do with Studio icons in their tooltips & theater views.

Starting out, I thought I would do this just because I thought it looked nice, but I've discovered several things and am having second thoughts.

1. There are a kajilion "studios" if you include the minor ones, and the ones for which graphics are missing far outnumber the studio images on Moe's site now.  So there would be a lot of hunting to generate new PNGs.

2. The information on TMDb is often wrong. Sometimes the contributor listed as the studio some fly by night home video company that once released the movie as a cheap dvd and had nothing to do with actually making the picture.

3. Even when the studio information is vaguely accurate, it's inconsistent.  Somtimes it's entered as Columbia, or Columbia Pictures, or Columbia Pictures Corporation, or Columbia Pictures Corp.  Some studios have 5 or 6 variations. So you either have to standardize the fields or make multiple PNGs.

4. And on top of that sometimes there's no right answer. In the modern area multiple studios (and I'm talking about the majors) will all put their stamp on the picture. How do you decide between MGM and Columbia? Some movies have so many vanity cards at the start you wonder when the movie will actually begin. If you keep them all, the icons won't fit!

So it's a real hodgepodge, much worse than I expected.

What are you all doing with it?
For many of the reasons you cited, I've decided to not do anything with it.  The views already look really nice at this point, and that was my goal.  I haven't gotten around to adding the actor images either - I think I'm happy enough with just the list of actor names.

Partly due to the tools we have for editing the templates and no sort of a preview viewer, it's a surprising amount of work to get all the fields consistent (font size, colors, etc.), ensure that fields that don't have values don't chew up space, etc.

I've got a bunch of different views setup to filter my movies in various ways - I've got a "newly added" view, a "by genre" view, a "by series" view, and so on.  I use expressions for grouping so I can group my movies by series and control how they display (a movie that's part of a series gets a little folder icon prepended to the name so I know that when I select it, I'm going to drop down a level rather than go to the detail for a movie.  Unfortunately, since those expressions use one of the group functions, I can't declare a user defined field and reference that everywhere.  So when I decide to change the display expression, I have to go through and update it in a bunch of places.

Despite all of this, I'm really happy with the end result so far.  I still have some tweaking to do to get everything consistent, but it looks great so far and far better than the original stock views.

Also, I'm a software developer, not a UX expert, so I'm sure UX experts everywhere would be cringing if they saw what I've come up with so far.  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 29, 2020, 09:03:17 am
For me in studio logos in TheaterView are just visual thing. I just draw one or max first two and if I don't have the logo image and it is some of those I'm familiar with I just download the image from somewhere. I don't bother too much of those I haven't paid attention ever. So basically you could say that I just care those logos I remember from childhood movies. Maybe these are just those crappy VHS publisher logo I want to see  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on April 29, 2020, 11:57:23 am
Great question,
I think Studio logos is a great idea but not very conformative to my other items in Theater view.
As it is now, I only have one line with studios by name and nothing else and if I ever need more space in Theater view the studio name is the first thing to go.

Studio logos are to wild and unpredictable for me to be used in an orderly fashion but I love it anyway and a colorful small studio logo is a beauty to behold.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on April 29, 2020, 12:41:09 pm
Help wanted.

How do I get this Expression limited to only show maximum 3 producers?

Code: [Select]
<font color="#ffffff size="90""><i>Replace([Producer],;,  / // )
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 29, 2020, 12:54:11 pm
Look at the expression in the downloadable templates for Actor images.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 29, 2020, 03:10:07 pm
Help wanted.

How do I get this Expression limited to only show maximum 3 producers?

Code: [Select]
<font color="#ffffff size="90""><i>Replace([Producer],;,  / // )
https://wiki.jriver.com/index.php/List_Manipulation_Functions#ListLimit
[Producer] is your List
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on April 29, 2020, 04:20:38 pm
Thank you for the pointers,
Give a man a fish feed him for a day, teach a man to fish...
I'm throwing the fishing net all over the place and sometimes I catch a small fish ;o)

Ok, In an attempt to gain back some space in Theater view I have been experimenting with combining Director, Producer and Screenwriter in one single line.
With the limits of maximum 2 Directors, 2 Producers and 1 Screenwriter. To even more compress the information I have used icons for Director, Producer and Screenwriter instead of writing those out.

The code for Listlimit that I have manage to make is:
Code: [Select]
Listlimit([Director],2,0)
Not hard, but the separator between the names of the Directors are a ;
How can I have a / instead, that I have not yet figured out?

It is getting late over here and I have been working with this the entire evening.

What do you think of the "one line" approach?


Stay safe,

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 29, 2020, 04:47:17 pm
The code for Listlimit that I have manage to make is:
Code: [Select]
Listlimit([Director],2,0)
Not hard, but the separator between the names of the Directors are a ;
You can nest(?) expressions. So see what happen when you put your above expression inside Replace(source data, "replace what", "replace to") expression. You alse need to use escape character / if you plan to change ; to / so that MC understand that you want to print / and not to use it as escape character. So the inner expression will create string limited to 2 directors e.g "John Woo;John Ford" which is then used as a input for replace expression which will replace wanted characters from that "John Woo;John Ford" so end result which is printed to screen is  "John Woo / John Ford"

Spoiler: Replace(Listlimit([Director],2,0),;,/ // )
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 29, 2020, 09:50:50 pm
Since others have been posting screenshots, I thought I would show my own modest efforts. Nothing too fancy, but I have plans for some more interesting data using some new expression language extensions being developed.

Anyway here it is:
(https://yabb.jriver.com/interact/index.php?action=dlattach;topic=119385.0;attach=35159)

I'm not entirely happy with the two rows of icons, but space was getting tight! :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 30, 2020, 01:28:11 am
Looks really balanced and good. I like it a lot. Those greys in channel lines are big improvement. For me logos are also always double-edged sword. While they look nice it's hard to get in harmony with other elements.

Good work!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 30, 2020, 01:45:00 am
Thanks, Lepa.  I experimented a lot to get those lines, with both graphics and typography.  I ended up doing typography because until we get vertical spacing control for graphics, you can't get the spacing even like this.

To do it right with a font, you have to use a special called an em-dash. Not all fonts have it, and some fonts have it but leave small gaps between the characters, which mars the appearance of the line.  This line comes out perfect, but the length varies with the font size so that's a hassle.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 30, 2020, 02:00:31 am
I started to paint lines in my channel images to gray and see what it comes.

I don't remember Tom Skerritt to look so old during Alien though...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on April 30, 2020, 02:34:32 am
Yeah no kidding.  I've been pestering Zybex to augment the actor image download with a google image search including the year of the movie.  "Tom Skerritt 1979" give good results in google.  Maybe if enough people suggest this, he will take pity on us.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on May 01, 2020, 05:56:50 am
Hello and sorry to bother you on this over here rainy day,
I've been playing around with having icons instead of explanatory text labels in theater view.

To try and gain even more space in Theater view I would like to add one current expression code string after another current expression code string but when I try to add one expression code string after another expression code string the whole expression gets messed up.
Is there a way of making a hard coded stop so a new expression code string takes on regardless of the previous expression code string?
There are a lot of math going on in these two expressions and is there a sort of  <//math> code that would effectively separate one code string from another?

See screenshot where I try to visualize what I would like to accomplish.

So this is the expression that I would like start with:
Code: [Select]
<font face="ToolTip01" size="160" color="#9496a3">Save(Math(Trunc(Replace([Aspect Ratio], :, // ) + .005, 2)), gAR)IfElse(Compare(Load(gAR), <, 1), , Compare(Load(gAR), <, 1.38), M, Compare(Load(gAR), <, 1.68), N,Compare(Load(gAR), <, 1.80), O,Compare(Load(gAR), <, 1.87), P,Compare(Load(gAR), <, 2.36), Q,Compare(Load(gAR), <, 2.40), R)<//font>/  <font face="ToolTip01" size="160" color="#9496a3">IfElse(IsEqual([Width],1920,5),¥,IsEqual([Width],1360,5),¤,IsEqual([Width],888,5),£,IsEqual([FPS],25,2),¢,1,¡)<//font>/  <font face="ToolTip01" size="130" color="#9496a3">IfElse(IsEqual([File Type],mkv),î,IsEqual([File Type],ifo),W,IsEqual([File Type],bdmv),U)<//font>/  <font face="ToolTip01" size="110" color="#9496a3">IfElse(IsEqual([Compression],div,8),ú,IsEqual([Compression],hevc,8),ü,IsEqual([Compression],h264,8),û,IsEqual([Compression],xvid,8),ă,IsEqual([Compression], vc-1,8),Ā,IsEqual([Compression],mpeg2,8),þ,IsEqual([Compression],mpeg1,8),ý,IsEqual([Compression],mpeg4),ÿ)<//font>/  <font face="ToolTip01" size="110" color="#9496a3">IfElse(IsEqual([Compression],dts-hd ma,8),&,IsEqual([Compression],dts,8),#,IsEqual([Compression],ac3,8),z,IsEqual([Compression],pcm,8),/),IsEqual([Compression],mp3,8),*,IsEqual([Compression],flac,8),',IsEqual([Compression],aac,8),0,IsEqual([Compression],mpeg,8),z,IsEqual([Compression],vorbis,8),/,,IsEqual([Compression],truehd,8),x,IsEqual([Compression],opus,8),1,)<//font>/  <font face="ToolTip01" size="125" color="#9496a3">IfElse(IsEqual([Channels],1,2),=,IsEqual([Channels],2,2),>,IsEqual([Channels],3,2),],IsEqual([Channels],4,2),?,IsEqual([Channels],5,2),^,IsEqual([Channels],6,2),‐,IsEqual([Channels],7,2),_,1,‑)<font face="ToolTip01" size="60" color="#FFD700">IfElse(IsEqual(ListItem([Compression], 1, +),Atmos),/  !,IsEqual(ListItem([Compression], 1, +),DTS:X),/  $)<//font>

And after that this is the expression that I would like to continue with:
Code: [Select]
<img src="tooltip:Size-512">If(!IsEmpty([File Size]),IfElse(IsEqual([File Size],15,3),<font color="#990000">,IsEqual([File Size],40,3),<font color="#FDDB2E">,IsEqual([File Size],100,3),<font color="#008000">) Replace([file size],/ GB),)<//font><font color="#9496a3"> GB<//font>      <img src="tooltip:Bitrate-512">If(IsEqual([Width],1920,5),If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],16000,3),<font color="#990000">,IsEqual([Bitrate],40000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),) <//font>,If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],10000,3),<font color="#990000">,IsEqual([Bitrate],20000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),)<//font>)<font color="#9496a3">Mbit<//font>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 01, 2020, 07:00:29 am
I think that you just missed one closing of font tag and that's why you get crap when you combined those two.
(Added one <//font> to below code)
Code: [Select]
<font face="ToolTip01" size="160" color="#9496a3">Save(Math(Trunc(Replace([Aspect Ratio], :, // ) + .005, 2)), gAR)IfElse(Compare(Load(gAR), <, 1), , Compare(Load(gAR), <, 1.38), M, Compare(Load(gAR), <, 1.68), N,Compare(Load(gAR), <, 1.80), O,Compare(Load(gAR), <, 1.87), P,Compare(Load(gAR), <, 2.36), Q,Compare(Load(gAR), <, 2.40), R)<//font>/  <font face="ToolTip01" size="160" color="#9496a3">IfElse(IsEqual([Width],1920,5),¥,IsEqual([Width],1360,5),¤,IsEqual([Width],888,5),£,IsEqual([FPS],25,2),¢,1,¡)<//font>/  <font face="ToolTip01" size="130" color="#9496a3">IfElse(IsEqual([File Type],mkv),î,IsEqual([File Type],ifo),W,IsEqual([File Type],bdmv),U)<//font>/  <font face="ToolTip01" size="110" color="#9496a3">IfElse(IsEqual([Compression],div,8),ú,IsEqual([Compression],hevc,8),ü,IsEqual([Compression],h264,8),û,IsEqual([Compression],xvid,8),ă,IsEqual([Compression], vc-1,8),Ā,IsEqual([Compression],mpeg2,8),þ,IsEqual([Compression],mpeg1,8),ý,IsEqual([Compression],mpeg4),ÿ)<//font>/  <font face="ToolTip01" size="110" color="#9496a3">IfElse(IsEqual([Compression],dts-hd ma,8),&,IsEqual([Compression],dts,8),#,IsEqual([Compression],ac3,8),z,IsEqual([Compression],pcm,8),/),IsEqual([Compression],mp3,8),*,IsEqual([Compression],flac,8),',IsEqual([Compression],aac,8),0,IsEqual([Compression],mpeg,8),z,IsEqual([Compression],vorbis,8),/,,IsEqual([Compression],truehd,8),x,IsEqual([Compression],opus,8),1,)<//font>/  <font face="ToolTip01" size="125" color="#9496a3">IfElse(IsEqual([Channels],1,2),=,IsEqual([Channels],2,2),>,IsEqual([Channels],3,2),],IsEqual([Channels],4,2),?,IsEqual([Channels],5,2),^,IsEqual([Channels],6,2),‐,IsEqual([Channels],7,2),_,1,‑)<//font><font face="ToolTip01" size="60" color="#FFD700">IfElse(IsEqual(ListItem([Compression], 1, +),Atmos),/  !,IsEqual(ListItem([Compression], 1, +),DTS:X),/  $)<//font>
Code: [Select]
/  <img src="tooltip:Size-512">If(!IsEmpty([File Size]),IfElse(IsEqual([File Size],15,3),<font color="#990000">,IsEqual([File Size],40,3),<font color="#FDDB2E">,IsEqual([File Size],100,3),<font color="#008000">) Replace([file size],/ GB),)<//font><font color="#9496a3"> GB<//font>      <img src="tooltip:Bitrate-512">If(IsEqual([Width],1920,5),If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],16000,3),<font color="#990000">,IsEqual([Bitrate],40000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),) <//font>,If(!IsEmpty([Bitrate]),IfElse(IsEqual([Bitrate],10000,3),<font color="#990000">,IsEqual([Bitrate],20000,3),<font color="#FDDB2E">,IsEqual([Bitrate],100000,3),<font color="#008000">) math(round(math([bitrate] / 1000))),)<//font>)<font color="#9496a3">Mbit<//font>
These two babies should be joinable
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on May 01, 2020, 07:23:12 am
Alright, this works out just fine!

Thank you so much for helping me out with this one, it drove me crazy!

Have a great weekend!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 01, 2020, 12:39:08 pm
Is there a way of making a hard coded stop so a new expression code string takes on regardless of the previous expression code string?

No.  And please just say "expression" instead of "expression code string".  :)

MC's expression language has a lot of parentheses and brackets and commas, like many programming languages.  There's absolutely nothing you can do about it except to get your punctuation and syntax right.

I would suggest you download Notepad++ and use it to edit your expressions. This is an excellent text editor that also does syntax highlighting, so it will help you match up your closing paren with its opening paren, etc.  That sort of thing helps a lot.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on May 01, 2020, 01:45:01 pm
No.  And please just say "expression" instead of "expression code string".  :)

MC's expression language has a lot of parentheses and brackets and commas, like many programming language.  There's absolutely nothing you can do about it except to get your punctuation and syntax right.

I would suggest you download Notepad++ and use it to edit your expressions. This is an excellent text editor that also does syntax highlighting, so it will help you match up your closing paren with its opening paren, etc.  That sort of thing helps a lot.
I do wish that they used quotes more so that it would be possible to format expressions with newlines without messing up the output.

Agreed on the Notepad++ recommendation.  It's an extremely useful tool.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on May 01, 2020, 02:48:22 pm
After seeing so many cool layouts everyone has shared, I'm thinking I may need add actor photos. But in all honesty, how difficult is this to accomplish?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on May 01, 2020, 03:19:00 pm
Well, I downloaded Notepad++ and tried to read some how to guides, the first thing that they say is to choose default language.
What is the Language of JRiver?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 01, 2020, 03:28:48 pm
You don't need one.  There actually is a language plugin for NPP for the JRiver Expression language; you'd have to google for it.

But it's not necessary.  In NPP, go to Preferences->Highlighting and make sure Smart Highlighting is turned on, along with highlight matching tags.  It will highlight matching parenthesis and such things.

There's lots of good information on how to use NPP on their website, and through google.

Update: I found this with a forum search:
https://yabb.jriver.com/interact/index.php?topic=108016.0
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on May 01, 2020, 03:58:47 pm
You don't need one.  There actually is a language plugin for NPP for the JRiver Expression language; you'd have to google for it.

But it's not necessary.  In NPP, go to Preferences->Highlighting and make sure Smart Highlighting is turned on, along with highlight matching tags.  It will highlight matching parenthesis and such things.

There's lots of good information on how to use NPP on their website, and through google.

If someone knows offhand where you can download the MC Expression Language definition file for NPP, I'm sure they'll post, or you could try a forum search.
That plugin will probably need to be updated to add the new functions that Matt added recently.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 01, 2020, 04:04:04 pm
That plugin will probably need to be updated to add the new functions that Matt added recently.

Well yes and no.  It will still work, it just won't highlight the new expressions as being part of the language.

Inside the language file, there's just a list of all the Expressions and Fields it's supposed to recognize.  Any time a new expression or a new database field is added, you'd have to update the file.

That said, doing so is not hard.  It's just a lot of very simple drudge work.  Maybe I'll do it and upload it if I get a chance.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on May 01, 2020, 04:07:13 pm
Well yes and no.  It will still work, it just won't highlight the new expressions as being part of the language.

Inside the language file, there's just a list of all the Expressions and Fields it's supposed to recognize.  Any time a new expression or a new database field is added, you'd have to update the file.

That said, doing so is not hard.  It's just a lot of very simple drudge work.
Yeah, I wasn't suggesting it would no longer work, just that it would be missing support for the new stuff.  I'm a software developer and use Notepad++ ALL the time, so not a newbie :).
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 01, 2020, 04:10:50 pm
That's fine, others are new to it and might not understand.

If I get a chance I'll take a crack at updating it for everyone.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on May 01, 2020, 05:02:49 pm
Updating the Notepad++ JRiver language file has been on my To-Do list for years. If you don't do it Wer, maybe I will. Maybe.

It needs its own thread and maybe a Wiki article, so all users can find it.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 01, 2020, 05:11:30 pm
I'm actually working on it now.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on May 01, 2020, 06:02:19 pm
Excellent.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on May 06, 2020, 01:23:12 pm
I need help writing an expression that removes everything between and including [ and ]

Now that we have the awesome McRatings that can create actors images with name and character the Actors name tag looks something likes this:
Jay Baruchel [Hiccup  Horrendous Haddock III (voice)]
Gerard Butler [Stoick the Vast (voice)]
and so on.

My expression for displaying actors in small view looks like this:
Code: [Select]
<font size="70">Replace([Actors],;,  / // )
How should this expression be written to only show the actors name and not the [character name]

(I have tried a couple of things with ListClean expressions to no avail)

See attachment in small view with the current expression


Thanx, and take care,

//arscpin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 06, 2020, 02:14:07 pm
Trivial.

listitem(list, position, delimiter)

So in your case, listitem(field,0,[)

The trick is realizing a list is just a string.  You can feed it any string and any character as a delimiter even if that was not how the string was intended or constructed.

If you have a series of such strings, organized into a delimited list, just nest another listitem statement to select one where I listed field.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 06, 2020, 02:54:10 pm
Trivial.

listitem(list, position, delimiter)

So in your case, listitem(field,0,[)

The trick is realizing a list is just a string.  You can feed it any string and any character as a delimiter even if that was not how the string was intended or constructed.

If you have a series of such strings, organized into a delimited list, just nest another listitem statement to select one where I listed field.
It would work if there was only one item but actor list has multiple items e.g. "actor [as somebody];actor2 [as nobody]" and all the text between multiple [ and ] needs to be removed so at least I can't think anything else than regex studies to get this one tackled with current MC expression engine.

E: MCUtil's scriptor might have some templates for this kind of problem
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 06, 2020, 03:52:06 pm
I thought he wanted to do it for an individual actor.

If he doesn't want any role information in there at all, the easy way would be to simply UNcheck the option in MCRatings that's putting it there, and overwrite the field.

If he wants both, have MCR write actors to a separate field.

Intentionally putting all that info in and then trying to take it all out doesn't make sense to me.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 06, 2020, 04:31:51 pm
Dunno, Perhaps to have full presentation in large view and in small view only actor names to save some space.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 06, 2020, 04:42:40 pm
If both versions are desired, keeping them in two fields would be both easier and faster.

I wrote a regex that pulls the actors names from such a multi-part list:

([;]?\K[\w\s]+)(?=\s\[)   (Omit the "\K" if you want to keep the semicolons to insert into another list.

You can try getting this to work with MC's regex function.


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on May 06, 2020, 07:33:24 pm
After seeing so many cool layouts everyone has shared, I'm thinking I may need add actor photos. But in all honesty, how difficult is this to accomplish?

With MCRatings, it's very easy to accomplish this now. 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on May 06, 2020, 11:41:55 pm
Hello and thank you for responding,
Sorry for the late reply but nighttime arrived at home and I fell asleep ;o)

Yes lepa, you are correct.
In large view I have actors images created with MCRatings and in small view I have actors name in plain text and that text is shown like this = Sean Connery [James Bond]
And yes, to save space I would like to not having the actors role between the [and] shown in small view.
(See attachment in my last post to see how it looks right now in small view)

When using MCRatings the Actors fields are populated with actors name and role.
It is not like I have a choice, MCRatings writes the information to the Actors field and that information is needed there for running post processing scripts and creating actor images.
Using two fields might be a solution but I don't know how to do that because I don't know if JRiver allows to map the Actors field to a different field than Actors field during import?

Otherwise  I have to import movies several time, first import it in JRiver to get the basic metadata right, then import the actors and other fields again with MCRatings to be able to create actors images (and posters and other fields) and then again import with JRiver to be able to repopulate the actors field with actor names as the way JRiver wants. And every time I rerun MCRatings for that movie I would have to redo the import with JRiver all over again.


As I understand the situation now there is no easy way of having an expression that filters out the actors role between the [and] in the actors field and still showing the actors name.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 07, 2020, 12:17:42 am
It is not like I have a choice, MCRatings writes the information to the Actors field and that information is needed there for running post processing scripts and creating actor images.
To be clear, you do have a choice.  You can choose in MCR to deactivate the roles feature.  It is not "required" for post processing.  The actor name can be superimposed on the image regardless, without the roles. It is only required if you want the role on the image as well.  If you choose to have the role on the image, but there are times you don't want to see it in MC, that will cause you some extra work, as described earlier.

Quote
Otherwise  I have to import movies several time, first import it in JRiver to get the basic metadata right, then import the actors and other fields again with MCRatings to be able to create actors images (and posters and other fields) and then again import with JRiver to be able to repopulate the actors field with actor names as the way JRiver wants. And every time I rerun MCRatings for that movie I would have to redo the import with JRiver all over again.
That's nonsense. You don't have to do it several times.  If you want BOTH versions, with and without actor name, you import exactly twice: once with the MCR Actors field mapped to the MC Actors field, and once with the MCR Actors field mapped to the alternate field in MC.  One time you have the role option on, the next off.  A couple of clicks and bit of processing. Done.

Then you can either tell MCR to not overwrite the Actors field, or you can let it overwrite and leave it pointing at the MC field that matches the way you leave the roles option in MCR. Who cares about re-importing the Actors field over and over? Do you expect the cast of a movie to change?  Maybe someone suddenly realized Chris Pratt was in Driving Miss Daisy. :)

If you don't want do do any of those things, you can download MCUtils and use its pscriptor.pl module to run regex against fields in the library to make modifications.

After all this it's still not clear if you actually WANT the role name sometimes or just think you have no choice, as you said.

The tools are the tools. Sometimes if you want every little thing just exactly the way you want, you're going to have to do some work.  Something this thread abundantly demonstrates.  Just look at all the time people have invested just to get nice looking tooltips.  I wrote a ridiculous expression that automatically resizes fonts in my file info panel because MC doesn't have any way to size text to fit automatically.  That's life. :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on May 07, 2020, 02:52:04 am
Hi and thank you for your response,

Yes, I do want both actors name and actors role superimposed onto the actors image and presented in large view but I only want the actors name in plain text presented in small view.

Mind you that English is not my native language and sometimes the words I write don’t come out right or get lost while typing.

The reason I wrote that I wanted to be able to re-import actors is because, as I understand it, pictures of actors that are not found during the initial import with McRatings are being replaced by a generic placeholder picture (that generic placeholder have then superimposed both actors name and actors role). During the course of time there might be an actual picture of that actor that McRatings recognizes and when a re-import is being done McRatings will replaces the generic placeholder picture with an actual picture of the actor and then also do the actor name and actor role post production onto the same picture.

I’m already doing some work and I’m currently using JRiver, McRatings and Swag of Tools to get where I am right now regarding my theater view. I do also try to pull my weight on this forum the best way I can and this weekend I did some beta testing together with jmone before he posted an updated version of Swag of Tools.

I’m however not a coder. I have never written code in my entire life and I’m frankly struggling a lot to grasp the logic of code writing. I have other skills but coding is not one of them.

Therefore I’m grateful for your and others input in presenting solutions and expressions that can be used and I’m hoping that my requests and questions not only helps me but also can inspire others in trying to customize their theater view as well as I have been inspired by you and others on this forum.

Indeed that’s life and I hope you all stay safe,

//arcspin

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 07, 2020, 03:37:15 am
I wouldn't expect the images to be updated much, but it might happen eventually.

The good thing is that image download is independent of writing values to MC.

Use MCR to write the actor data to two fields, once each way, as I said. Then configure MCR not to overwrite the Actors filed anymore.

You can then use MCR to fetch mew images whenever you want, but data in MC will remain intact.  Actor data won't change, only new images might be added to replace generic images.

Keep in mind it's still not easy.  To get MCR to download new images, you must delete the old ones. There's no way for you to know which would be updated, so you'd have to delete them all.  Ask Zybex on his thread about the procedure.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on May 07, 2020, 03:48:31 am
Thanks, I will do some testing this weekend.

Regarding actors images this is what zybex wrote some time ago and is what I'm referring to.

""
Personally I like to update all data more often, perhaps once a month - TMDb is crowdsourced and has thousands of daily updates, not only to Ratings but to most of the other fields. Corrections to actor lists, updated trailers, better plot descriptions, etc. With actor images, it's also good to check once in a while to see if an Actor now has a profile picture - MCR replaces the placeholder with the new picture when available.""
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on May 07, 2020, 06:53:13 am
With MCRatings, it's very easy to accomplish this now.
Moe, you're right! The latest version of MCRatings made it fairly easy! The hardest part I had was getting MC to query file names, but that was solved by just setting the Actor Name only (not their role) and creating folders for each movie based off of the TMDb ID.

Here's my end results! I've been waiting to show these off!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 07, 2020, 09:03:20 am
Looking good! Even I can read the actor names from my tiny TV  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on May 07, 2020, 09:53:02 am
Otherwise  I have to import movies several time, first import it in JRiver to get the basic metadata right, then import the actors and other fields again with MCRatings to be able to create actors images (and posters and other fields) and then again import with JRiver to be able to repopulate the actors field with actor names as the way JRiver wants. And every time I rerun MCRatings for that movie I would have to redo the import with JRiver all over again.

This would all be so much easier if you'd use MCUtils, but I know that you are adverse to that.

That said, instead of importing and re-importing, do this. Import to JRiver, and then copy your actors field (and any other field that will be overwritten by MCRatings) to a new field.  Then run MCRatings.  This way MCRatings won't overwrite anything and you won't have to re-import anything
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on May 07, 2020, 10:57:06 am
This would all be so much easier if you'd use MCUtils, but I know that you are adverse to that.

That said, instead of importing and re-importing, do this. Import to JRiver, and then copy your actors field (and any other field that will be overwritten by MCRatings) to a new field.  Then run MCRatings.  This way MCRatings won't overwrite anything and you won't have to re-import anything

You can always tell MCRatings not to update the actor field on save. That's what I had to do for my actors field.

Is there a tutorial somewhere for MCUtils? If it's easier, I'd love to try it out but it seems clunky to me.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: MGD_King on May 07, 2020, 11:00:20 am
Looking good! Even I can read the actor names from my tiny TV  ;D
Thanks! 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on May 07, 2020, 12:18:53 pm
Great theater view and tooltip MGD_King!
It got me thinking and I will try out some new ideas, specially having actor images in toooltip. That looked nice!



I have create some resolution icons and if anyone is interested in using them they are in the attached zip-file.


//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe on May 07, 2020, 12:22:48 pm
Is there a tutorial somewhere for MCUtils? If it's easier, I'd love to try it out but it seems clunky to me.

There really isn't a cohesive tutorial that I am aware of for MCUtils.  It's definitely not easier than MCRatings, it's command line only.  That said, once it's setup you can run some simple codes (I have a little cheat sheet of stuff that I simply copy/paste in) and it does all the work for you. 

The easiest way to get up and running, if you're not familiar with this kind of stuff, is to contact MrC, his contact info is in the MCUtils docs.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on May 07, 2020, 12:42:00 pm
You can always tell MCRatings not to update the actor field on save. That's what I had to do for my actors field.

Hmmm, I've tried doing this but didn't get it to work.
How did you do that and not have MCR update the actor field (but all other fields) in MC and still create actor images?
Was it right click on actors field and then select revert?

Can't get it to work!?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 07, 2020, 12:50:13 pm
About MCUtils. Yes, now that my configuration is finished I just select files I want to be affected and run tmdb "command" and everything will be taken care of (or some other .bat which I have created for special updates (ratings only and such) ). I can understand though that configuring mcutils can feel a little scary at first if you are not familiar with ini files and such.

In short you extract the package to somewhere, install perl and ImageMagick and create configuration file config.txt in the $User\.mcutils folder. In config file you set your connection to MC parameters and every field you want change from default configuration. If you are satisfied with default settings you only need to set those connection parameters here. Then you can start running scripts.

That's the minimum short version.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 07, 2020, 01:50:50 pm
Hmmm, I've tried doing this but didn't get it to work.
How did you do that and not have MCR update the actor field (but all other fields) in MC and still create actor images?
Was it right click on actors field and then select revert?

Can't get it to work!?

This is exactly what I told you before.

Go into MCRatings.

Go into settings, and the Field Mapping tab.  Find the Actors field.

All the way to the RIGHT of the Actors field, there's a checkbox for Overwrite.  UNCHECK IT.

Now MCR will not overwrite your Actors field.  No other field is affected. And as I also told you before, it will still download Actor images.  As I said before, the downloading and the overwriting are NOT related.

I also told you that Actor images will not be re-downloaded, unless you delete the existing images first.  That fact has not changed.

Please try.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on May 07, 2020, 01:58:53 pm
Great theater view and tooltip MGD_King!
It got me thinking and I will try out some new ideas, specially having actor images in toooltip. That looked nice!



I have create some resolution icons and if anyone is interested in using them they are in the attached zip-file.


//arcspin
Those look pretty nice.  Thanks!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 07, 2020, 02:17:36 pm
([;]?\K[\w\s]+)(?=\s\[)   (Omit the "\K" if you want to keep the semicolons to insert into another list.
You can try getting this to work with MC's regex function.
Thanks wer,
Tried to do something with this as it might come handy in some other things.
Code: [Select]
Regex(Joe Actor [as Ben];Ben Actor [as Joe],/#([;]?[\w\s]+)(?=\s\[)#/,1)In http://regexe.com/ engine everything is catched but in MC I get only first one to be displayed so I guess I need to study regex little more at some point so I can understand better what I am doing. I somewhat get the above expression but don't really understand regex concept so well that I am able to fix this or whether MC even supports this kind of capturing. I tried ,2 but that didn't get me the second name but just an empty result

...and thanks arcspin for sharing the resolution icons.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 07, 2020, 02:46:06 pm
Regex is a dirty nasty business with lots of contextually overloaded operators, so it can be hard to understand.  I'll try to explain a bit.

([;]?\K[\w\s]+)(?=\s\[)

Anything grouped in parenthesis is called a "capture group" so this expression has two capture groups:
([;]?\K[\w\s]+)  and  (?=\s\[)

The second one is easier to understand, so let's do that one first. ?= is the indicator for a "positive lookahead".  In other words "you're looking for a string that must be followed by something".  In this case, the something is \s\[   Positive lookaheads constrain matching, but are not included in the capture results.

\ is a special character (as many are) in regex. It can mean quote as in take the next character literally, or it can mean the exact opposite, interpret the next character as special.

\s is the regex shorthand for a space
\[ means a literal [ character

Why was something so asinine adopted?  s in regex is just an s. You don't need to escape it. So if you DO escape it, it must mean something special, right? [ is a special character in regex. So if you escape it, you must mean to use it literally, obviously.  ::)  So 'tis clear as is the summer sun!

Therefore (?=\s\[) all together means "you're looking for a string that must be followed by a space and a ["

And so what about the first capture group:  ([;]?\K[\w\s]+)  ??

We read from left to right, so we're looking for a string that:
starts with an optional semicolon:    [;]?   [ ] means any character inside here, and the ? afterwards means optional.  (As you've seen, ? can have other meanings depending on context.  :o )

\K means drop this from the capture. It's used to make the match, but not included in the match. So we're using the optional ; to make the match, but not including it in the capture.

[\w\s] means any word character (alphanumeric), followed by whitespace.  The + means at least 1 but as many as available.

So this capture group means: find an arbitrarily long string of letter, numbers, and whitespace that is bounded on the left by an optional semicolon.  (The semicolon must be optional because the first element in an MC list doesn't have a leading semicolon!) All other elements do, and the semicolon tells you where name 2 starts after name 1 has ended.

So in total ([;]?\K[\w\s]+)(?=\s\[) means:
Find a string of letters, numbers, and whitespace, that is bounded on the left by a semicolon if one exists, and must be followed by a space and a [ character.

Think about it in simplest terms, and that is the description of an Actor name without the role information inside the string that MC uses as a list.

Yes, the regex syntax is absurd, but did that make sense?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 07, 2020, 03:19:21 pm
Yes, that made sense ;D Actually I interpreted it somewhat same way using some online editor (https://regexr.com/). So I can read regex a little with some cheat book help but am not that good at it so I could currently create too complicated things myself but your explanation helped to confirm what I already suspected and also helped to understand terminology better.

One question though. If these capture groups catches this kind of sequences many times from the source text are all these "captures" considered as one match or multiple matches? So in MC everything would be assigned to variable [R1]?
Joe Actor [as Ben];Ben Actor [as Joe] => Match is "Joe Actor;Ben Actor" or are there two matches "Joe Actor" and "Ben Actor" [R1] and [R2]

I tried with MC and using that "ignore from match" \K I got empty return value, losing it would give first item only
Regex(Joe Actor [as Ben];Ben Actor [as Joe],/#([;]?\K[\w\s]+)(?=\s\[)#/,1) Returns empty
Regex(Joe Actor [as Ben];Ben Actor [as Joe],/#([;]?[\w\s]+)(?=\s\[)#/,1) Returns "Joe Actor"

Anyway should really try to learn this stuff at some point as it would be useful also at work

Thanks for your explanation it really helped to get some understanding so it is easier to start learning
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 07, 2020, 04:02:34 pm
One question though. If these capture groups catches this kind of sequences many times from the source text are all these "captures" considered as one match or multiple matches? So in MC everything would be assigned to variable [R1]?

I don't know. You might have to charm Mr. C in to explaining.  All that R1..R9 stuff is made up on the part of MC.  A standard regex engine returns all matches, at least if they are non-overlapping. Overlapping matches is another den of iniquity for regex. Some regex implementations (like Microsoft's) allow you to specifically flag to return overlapping matches, where as other platforms require in-code iteration.  This particular situation with the Actors field does not involve overlapping matches, but I mention it for completeness so you won't be misled in the future. To understand an overlapping match, consider "give me all the strings of 3 digits, from the following input:
"123456"

Depending on how you code your regex, you would get one of two results: "123" or "456".  But the correct answer would be: "123" "234" "345" "456" because all those meet the definition. Those are overlapping matches, and accessing them is platform dependent.

Your first problem is that you're using run mode 1. In looking at the documentation of MC's Regex() function, it says all captures (at least up to 9) will be placed in variables R1..R9.  But it states flat out that only one capture will be returned if you use run mode 1-9.  So you should be using run mode -1, which produces no output, but leaves the captures in the variables. At least supposedly.

I tried using this Regex() function, and I was only getting incomplete results in R1, while the others were empty.  I haven't spent any time diagnosing it, so I'm not sure if there's something wrong with MC, or if there is some special syntax required, i.e. the regex itself must be changed to work properly with MC.

Later it gives an example to extract captures from R1, R2, R3.  But the example uses 3 capture groups.  So you might have to re-write a regex to make it compatible with getting multiple results in MC.  I haven't spent any time playing with this.

I think Brian (blgentry) has worked a lot with MC's Regex() function so he could probably explain.

If you get stuck with it, I could look at it more when I get some time.

-Will
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 07, 2020, 04:11:02 pm
Your first problem is that you're using run mode 1. In looking at the documentation of MC's Regex() function, it says all captures (at least up to 9) will be placed in variables R1..R9.  But it states flat out that only one capture will be returned if you use run mode 1-9.  So you should be using run mode -1, which produces no output, but leaves the captures in the variables. At least supposedly.
I think that mode 1 will display [R1] automatically but all the captures (1-9) should still be accessible using R-variables. -1 mode just don't display any capture without R-variables.

Anyway thanks for the explanations I think that I understand this regex vs MC regex now much better and can start digging a little deeper (also when time permits)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 09, 2020, 01:39:59 pm
new(ish) valign property gives some possibilities for multiline images... See if you can spot one  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds on May 09, 2020, 02:02:37 pm
new(ish) valign property gives some possibilities for multiline images... See if you can spot one  ;D
I'm assuming you mean the image on the far left of the first 2 lines of text.  Interesting that the new feature allows that to happen, but it looks pretty nice.  It's awesome to see the JRiver team putting so much effort into these new features and extensions to the expression language.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 09, 2020, 02:08:49 pm
I'm assuming you mean the image on the far left of the first 2 lines of text.  Interesting that the new feature allows that to happen, but it looks pretty nice.  It's awesome to see the JRiver team putting so much effort into these new features and extensions to the expression language.
Yeah, I splitted the image in half (not exactly half...) and set upper one to be aligned bottom and the lower one as top. I think that they aligned pretty nice. Removed "name" label afterwards as it looks no better without it
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 09, 2020, 03:50:05 pm
That's clever splitting the image in half.  Standard web site stuff but I wouldn't have thought to do it in theater view. Well done.

But the big question is Lepa, will your tooltips ever be FINISHED?  When do you just sit back and enjoy them?  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 10, 2020, 06:56:47 am
Currently sitting back...  8)
I don't actually use tooltips to anything, sometimes it's just speedier to test stuff there.
Mostly satisfied with my theaterview appearance now. Some things are just not possible with MC so there is only so much one can do
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on May 20, 2020, 06:07:44 pm
Going back to the question about regex on the [Actors] field...

I looked into this some.

MC will not return matches in this situation using a standard Regex syntax (MC now uses the Boost regex engine instead of Microsoft, but it's using only a quasi-Boost syntax).  This means your regex must be (almost) completely rewritten to work with the MC Regex() function.

This can be done, but it means you cannot test your work in an online Regex tester.   The syntax you have to use in MC, with multiple redundant explicit capture groups, will not work with a regular Regex engine.

But the big problem is that MC's Regex() function doesn't work well when the string is variable length, because you have to structure your regex to return the EXACT number of matches present.  An Actors field might have 3 elements, and it might have 9, or anything in between.  An MC expression that will return 3 matches will ONLY return 3 matches. An MC expression that returns 9 matches (the maximum) will return nothing at all if you use it against a list that has less than 9 elements.

This can be overcome with using If or IfCase expressions, but that is clunky and unmanageable.  I've asked Matt if Regex() could be improved...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 01, 2020, 12:44:34 pm
Hello,
Can someone help me out with an expression.

I would like to, in theater view, be able to see how old a movie is. For example Jaws is 45 years old and I would like that to show that right next to the release year: (45 YO)
I have the field "Date (Release)" populated with the release date and we know the current date.

What would the expression be to have it calculate how old, in years, a movie is and have that year counter add another year when it passes the release date. (Next year, June 18, Jaws would be 46 YO)




Best regards,

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 01, 2020, 01:56:47 pm
This doesn't handle leap years correctly, so you might get the anniversary a day off in some cases, but it's close enough:
Code: [Select]
Math(int((Now()-Field(Date /(Release/),0))/365.25)) YO
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 01, 2020, 02:02:37 pm
Thank you,
However the output is "0 YO" for every movie

Can it have something to do with the year/date format in Europe/Sweden?
yyyy-mm-dd
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 01, 2020, 02:44:25 pm
Do you get just a number when you put just this:
Field(Date /(Release/),0)

If not then that field is a Text field, it should be a date field.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 01, 2020, 02:49:11 pm
Yep, I get numbers.
For the movie Jaws I get 27563

I attach a screen shoot from my Library field as well.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 01, 2020, 02:51:49 pm
You can try with your local format - change the dd//MM/yyyy as needed:
Code: [Select]
Math(int((Now()-ConvertDate([Date (Release)], dd//MM//yyyy))/365.25)) YO
You can also try 365,25 instead of 365.25. It's working for me.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 01, 2020, 03:11:27 pm
Strange,
The different suggestions of writing the code does not work for me.

I will try out some more variants in the morning
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on June 01, 2020, 08:41:12 pm
I would like to, in theater view, be able to see how old a movie is. For example Jaws is 45 years old and I would like that to show that right next to the release year: (45 YO)
I have the field "Date (Release)" populated with the release date and we know the current date.

I was just going to suggest that you pull the year out of the Release Date and subtract that from the year extracted from Now, for which the following expression works fine.

Math(Formatdate(Now(), Year) - Formatdate([Date (release),0], Year)) YO

It outputs "45 YO".

But then I read this:

What would the expression be to have it calculate how old, in years, a movie is and have that year counter add another year when it passes the release date. (Next year, June 18, Jaws would be 46 YO)

So you do need to use something like Zybex's expression, but you need to use the raw format of the Release Date field. i.e. [Date (release),0]

Math(int((Now()-[Date (Release),0])/365.25)) YO

That works fine and again outputs "45 YO", or "44 YO" if you haven't hit the anniversary in the current year, yet. Or for jaws, "45 YO" and on or about June 18, "46 YO".

Of course, as above, it is approximate, as it only roughly takes into account leap years, using the 365.25 days per year average. If you want it more accurate, so that it switched when the anniversary date was hit, that would be a bit more work. It could be done with an If function though. i.e. If we haven't hit the anniversary date yet, subtract the years and take off one more year, otherwise just subtract the years.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 01, 2020, 10:32:24 pm
Thank you RoderickGI,
Your first suggestion do output 45 YO for the movie Jaws (and the corresponding year for other movies as well) but your second suggestion still only output 0 YO.

45 YO
Code: [Select]
Math(Formatdate(Now(), Year) - Formatdate([Date (release),0], Year)) YO
0 YO
Code: [Select]
Math(int((Now()-[Date (Release),0])/365.25)) YO

Strange!?!
 

I attach the code in a screenshot so I will be sure I haven't messed it up.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on June 02, 2020, 12:47:06 am
Are you sure you have values in the [Date (release)] field? Because I get an output of "0 YO" when the is no value in that field.

You could try the version;

Code: [Select]
Math(int(Math((Now()-0)/365.25))) YO
But the extra "Math()" in there shouldn't be required.

Also, I didn't put any validation around that, for example to test if there is a value in the [Date (release)] field. You might want to do that using an If() function. For example;

Code: [Select]
If(Compare([Date (release),0],>,0),Math(int((Now()-[Date (Release),0])/365.25)) YO,No Release Date)
That will output "xx YO" if there is a Release Date, and "No Release Date" if there isn't. If you want a blank output if there is no Release Date, just delete the words "No Release Date" in the expression.


BTW, I am just testing in an Expression Column. As you are placing the expression into the File Info Panel you probably should use the later version and take out the "No Release Date", unless you want to see that as a reminder. You could then set the field to "Hide when value is empty" and then the age wouldn't display. I tested all this and it works in the File Info Panel.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 02, 2020, 01:53:14 am
So you do need to use something like Zybex's expression, but you need to use the raw format of the Release Date field. i.e. [Date (release),0]

Math(int((Now()-[Date (Release),0])/365.25)) YO

That's exactly what I proposed on the first reply above (https://yabb.jriver.com/interact/index.php/topic,119385.msg869993.html#msg869993)  ;D

This doesn't handle leap years correctly, so you might get the anniversary a day off in some cases, but it's close enough:
Code: [Select]
Math(int((Now()-Field(Date /(Release/),0))/365.25)) YO

Both functions are the same, only I used the Field() equivalent. Strange that it's failing for arcspin.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 02, 2020, 02:25:05 am
Thanks for the feedback,

Yes, the Date (release) has values in the form of: yyyy-mm-dd

RoderickGIs first suggested expression does output “45 YO”, as per my previous post.

I will try out your suggested expressions tonight when I get back home from work.

Again thanks for trying to trouble shoot this YO-problem, it is of course not vital but a nice touch in regards of fine tuning my Theater view.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on June 02, 2020, 02:57:28 am
That's exactly what I proposed on the first reply

So you did. Sorry I missed that. You should have stuck to you guns, because the formatting in your later expression wasn't going to work.  ;)

Yes, strange it works for us. It will be a comma or bracket or something. I tested it a bit and found if the [Date (Release),0] was empty, or the expression evaluated to zero, it gave the "0 YO" output. But I could make it evaluate to a negative age by putting a future date in the Release Date field.


Yes, the Date (release) has values in the form of: yyyy-mm-dd

The format that the Release Date is displayed doesn't make any difference. It is stored as a number by MC, and always displayed formatted in the user interface. For the movie Jaws, released on June 18, 1975, MC stores the Date Released as "27563".

That is why the raw value must be used in the expression, as defined by the ",0" in this form; [Date (Release),0].


Arcspin, test by creating Expression Columns in a View, including one for [Date (Release),0], one for Now(), and the test expression. You will soon see what is going wrong. Once you get it working, delete the unwanted Expression Columns. That is much quicker and easier than testing in the File Info Panel.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 02, 2020, 03:04:42 am
Didn't really read anything  ;D ::) but just in case I still hit the spot: MC's Math() is crippled when it comes to calculating decimal numbers in comma-decimal countries (like Sweden is I'd guess). You have to do yet another Replace "," ==> "." for the numbers before using them in calculations.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 02, 2020, 03:14:43 am
So you did. Sorry I missed that. You should have stuck to you guns, because the formatting in your later expression wasn't going to work.  ;)

But the second one does work as well (I tested it), as long as you use your local-appropriate mask for dd/mm/yyyy :)
I think I'll put my money on Lepa's answer. Though I would expect the Now() and [Date,0] to output numbers using the appropriate regional settings, and Math() to use that as well? I think I read somewhere in the Wiki that Math() would use the regional setting.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 02, 2020, 04:21:28 am
Teaser: I'm building an Expression Language scratchpad:
https://yabb.jriver.com/interact/index.php/topic,124543.msg870064.html#msg870064
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 02, 2020, 10:19:52 am
Arcspin, test by creating Expression Columns in a View, including one for [Date (Release),0], one for Now(), and the test expression. You will soon see what is going wrong. Once you get it working, delete the unwanted Expression Columns. That is much quicker and easier than testing in the File Info Panel.

I did try to make some columns as shown in the attached screenshot.
What can I make of the result?

When I hover over the rows in the column "Now()," the values keep changing, I guess it is time adding up.!?




Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 02, 2020, 10:27:58 am
Arcspin, try:
Code: [Select]
Math(int((Left(Now(),5)-[Date (Release),0])/365.25)) YO
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 02, 2020, 10:37:02 am
Great, now we are talking ;o)

The year is of by one year.
JAWS is 45 years old but the expression shows 44 year.

It is not the same with all movies, only some movies.

See attached screenshot where I have made columns to show this, I have also included the Date (release) column


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 02, 2020, 10:41:25 am
No, JAWS will be 45 years old on June 20. It's still 44.
Add the [Date (release)] column next to that expression column to check the actual birthday.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 02, 2020, 10:52:17 am
Great, good catch!

Thank you all for coming together in solving this, this was truly an international effort in making Theater View even more awesome  ;) ;) ;)


Again, thanks!

//arcspin
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on June 02, 2020, 05:01:18 pm
But the second one does work as well (I tested it), as long as you use your local-appropriate mask for dd/mm/yyyy :)

Actually, the ConvertDate() function doesn't take a second parameter, so that would be ignored. Hence the expression "ConvertDate([Date (Release)], dd//MM//yyyy)" just outputs the floating point number for the [Date (Release)], which is normally formatted, and hence the full expression works. Basically, "ConvertDate([Date (Release)])" is the same as "[Date (Release), 0]". But okay, it worked.  8)

But look, trimming the decimals off the right end of Now() also works. There are so many ways to get a result. 

I'm a bit surprised that the Math(int(Now())) didn't take care of that... oh, it wasn't taking the Integer of Now(), just the full expression. Maybe if we had taken the Integer of Now() and the Realease Date as well, it would have worked. Basically, as long as there were no decimals in the maths. i.e.
Math(Int((Int(Now())-Int([Date (Release),0]))/365.25)) YO

That also works. Well, on my English system using decimal points rather than commas.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 02, 2020, 10:44:13 pm
Hi,
I tried the expression RoderickGI posted on my (swedish) system and the output is as shown in the screenshot.
Code: [Select]
Math(Int((Int(Now())-Int([Date (Release),0]))/365.25)) YO
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on June 02, 2020, 10:58:38 pm
When MC quotes the entire text of the expression that way, it indicates that it doesn't recognize it as an expression at all.

Post a screenshot of the expression editor for that column.

I copied/pasted the text from your post in to an expression column, and it worked perfectly.  If I change to the wrong radix, I get an incorrect result for the expression, but it still doesn't quote the expression as you're showing.

You could try deleting and recreating the column, pasting the expression from your post above.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 02, 2020, 11:22:38 pm
The expression seems right to me as shown in the screenshot.
The result is the same when I made a new column with the same expression.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on June 02, 2020, 11:29:45 pm
Yes it looks ok. I don't know why it's not recognizing it.

As an aside, it would be nice if you could resize your screenshots down 50% so they fit our screens better. Not everyone is using a 4K monitor.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on June 02, 2020, 11:38:13 pm
I think that is his column heading Wer. He names the column with the Expression for clarity.

That is very weird Arcspin. That result is just today's date, so it looks like the Integer of the Release Date is evaluating as zero.

I set up columns with the components of the full expression. try doing the same. Do they look like mine in the image?

The expressions are:
Math(Int(Now()))
Math(Int([Date (Release),0]))
Math(Int(Now())-Int([Date (Release),0]))
Math(int((Int(Now())-Int([Date (Release),0]))/365.25)) YO

If that still doesn't work, try without the decimal in days/year:
Math(int((Int(Now())-Int([Date (Release),0]))/365)) YO


Do you have a small monitor Wer? Those screenshots fit fine on my 2560x1600 screen!  ;D
... my very, very old 2560x1600 screen. Touch wood it keeps working for a few years more.
... yes, I'm overcompensating. Sigh.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 02, 2020, 11:45:22 pm
No, it does not look the same as in your screenshot.
See my screenshot.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 02, 2020, 11:51:45 pm
Ok I'm of for work.

Note:
Zybex most eminent expression do work perfect.

Code: [Select]
Math(int((Left(Now(),5)-[Date (Release),0])/365.25)) YO
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on June 03, 2020, 02:36:37 am
That's a bit crazy.

It must be because all the maths in Zybex's expression is done in Floating Point, which MC would use the decimal point for, and then it gets converted to an Integer.

Whereas in mine the Now and Release Date numbers are converted to Integers, but one of them must still be in Floating-Point form, and then the difference is divided by a Floating-Point number again (365.25 or 365), and the maths fails, just outputting the first number, which represents Now.


Never mind I guess, you have a working expression.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 03, 2020, 02:46:09 am
Yes, I'm a happy camper.  :)

This I think we do for you wizards to better understand the ins and outs of the expression language.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on June 03, 2020, 02:50:57 am
Do you have a small monitor Wer? Those screenshots fit fine on my 2560x1600 screen!  ;D
... my very, very old 2560x1600 screen. Touch wood it keeps working for a few years more.
... yes, I'm overcompensating. Sigh.

Yeah, I have a 30in 2560x1600 as well smart guy.  But for whatever reason I was looking at his post on a different machine with a 1920x1080 display, and they were showing too big.  But I obviously totally misread his screenshot.  Maybe the columns were off-screen, I don't know.  ::)

It's weird it's not evaluating correctly for him.  But I can muster only limited enthusiasm for chasing it if he has a different expression that works.  Matt might care, because obviously something is not evaluating correctly on his localized version, and that should be considered bad.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI on June 03, 2020, 03:52:51 pm
Yeah, I have a 30in 2560x1600 as well smart guy.

Snap! Mine is the Dell 30" 3008WFP. I would like a bigger 4K monitor some day, but this one is still just going so strong.  :D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on June 07, 2020, 09:19:08 pm
If both versions are desired, keeping them in two fields would be both easier and faster.

I wrote a regex that pulls the actors names from such a multi-part list:

([;]?\K[\w\s]+)(?=\s\[)   (Omit the "\K" if you want to keep the semicolons to insert into another list.

You can try getting this to work with MC's regex function.

Just to close the loop on some arcane knowledge...

About a month ago someone asked how to separate out actor names from the [Actors] field, when MCR writes it to include role names, as follows:
F. Murray Abraham [Antonio Salieri];Tom Hulce [Wolfgang Amadeus Mozart];Elizabeth Berridge [Constanze Mozart];Roy Dotrice [Leopold Mozart];Simon Callow [Emanuel Schikaneder];Christine Ebersole [Katerina Cavalieri];Jeffrey Jones [Emperor Joseph II];Barbara Bryne [Mrs. Weber]

It was desired to get rid of everything between the [ ] and just leave the actor's names. I posited it could be done with regular expression, and posted the above example, which is a perfectly valid working regex in the real world.

It turned out, the Regex() function in MC is unable to use that expression, and further examination revealed that the Regex() function in MC was deficient in several ways, that made it impossible to do what was requested.

So the Regex() function has now been enhanced with a new mode, -2, that allows this functionality. The Regex() function still uses a non-standard regular expression syntax, so here is the expression rewritten to run in MC:
Regex([Actors],/#([\w\s\.]+(?=\s\[))#/,-2)

For an MCR actors field as shown above, this will return:
F. Murray Abraham;Tom Hulce;Elizabeth Berridge;Roy Dotrice;Simon Callow;Christine Ebersole;Jeffrey Jones;Barbara Bryne

So there you go.  A month late, granted, but now it works.  ;)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin 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.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 07, 2020, 11:39:41 pm
Ahhh. I see.
I'll do that when I'm home again.
Thanks for the info.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer 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)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex 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...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex 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 :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex 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)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 08, 2020, 02:57:10 am
Yep, fixed above.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI 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 (https://www.ecma-international.org/ecma-262/)" 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!  ?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 08, 2020, 03:27:43 am
You're right - it's just a site issue. It does work though.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer 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...  ;)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer 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...
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: JimH 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: RoderickGI 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin 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?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on August 03, 2020, 10:24:43 am
Code: [Select]
<img src="tooltip:FormatNumber([FPS],0)_FPS-Grey">something like that?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: JimH on August 13, 2020, 04:56:20 pm
Split Using Math with Dates (https://yabb.jriver.com/interact/index.php/topic,126516.0.html)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Moe 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: marko 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on August 20, 2020, 08:30:00 am
Just wanted to thank Wer and Matt for the ifCase (https://yabb.jriver.com/interact/index.php/topic,124543.msg866100.html#msg866100) 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: marko on August 20, 2020, 09:41:48 am
Agreed... Also...
Just wanted to thank zybex and Matt for the ListGrep (https://wiki.jriver.com/index.php/List_Manipulation_Functions#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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: JimH on August 20, 2020, 12:57:13 pm
Matt's too busy with his vacation.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on August 20, 2020, 01:07:50 pm
That would explain it :)
Enjoy your vacation, Matt. What are you doing here reading this??
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa 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]
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin 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

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on August 21, 2020, 11:17:58 am
Cool, you already thought about that!

Works great.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: greynolds 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).
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin 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.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin 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.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 14, 2020, 04:15:30 pm
Thank You Lepa :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello 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?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa 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
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 16, 2020, 05:01:40 am
I extracted the definition files as indicated by you and I also created a Dolby Vision user field: selecting it, the icon appears while for HDR it still does not work.

I followed your directions for the photos of the actors, and by selecting Cast Images the photos of the actors appear but under the individual photos I do not see the actor and character name as in your case.

Ok, I'll wait for you to come back :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 19, 2020, 03:43:24 am
For hdr icon to show with my template you'll will also need setup [Definition] field as described previous page.

For actor images to have names/roles I suggest you'll navigate to ZRatings thread on Third Party sub forum. I'm not using it myself so you'll get better help there

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 19, 2020, 09:01:45 am
Thanks lepa, the hdr icon now works. Now I take a look at the thread on Zrating hoping to understand something, but I have doubts
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 19, 2020, 09:09:30 am
Given that you already got ZRatings to show actor images it should be relatively easy to run some ready made template to add cast and roles into the images. When you got the images I can help you to set path on this side accordingly if needed

Here is some info about writing text above images:
https://yabb.jriver.com/interact/index.php?action=post;quote=862272;topic=124516.0;last_msg=869901
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 19, 2020, 01:30:56 pm
Today I started from that post.

I downloaded the caption.bat and put it in c: \ script, I downloaded ImageMagick and finally I set Zratings as indicated. He downloaded the photos (in the folders I previously created Actors \ [Original Title] (Year) \) but in the films I had previously used as a test, the images were no longer visible. I tried cleaning up the folders and redoing the process in Zratings, but the images were still not showing.

So I tried a new film that I hadn't covered before, and this time the images were seen but the actor's name and role didn't.

I have looked at the caption.bat file and I don't seem to have read that ImageMagick is started (but I'm no expert).

Maybe something needs to be set in ImageMagick? How can I clean up everything downloaded from Zratings so I can start over?

And is it possible to tell Zratings to create \ original title (year) \ folders and put the images there?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 19, 2020, 02:51:48 pm
Hi Lello,

There are several things that need to match for Actor+Role pics to show up:
1. the Actor.png files need to be named with the corresponding Role (ie, "Actor Name [Role].png")
2. ImageMagick must be run with the correct args to imprint the name+role on the downloaded image
3. the [Actors] field also needs to contain matching names with roles, so that we can link from it to the full filename (ie, "Actor Name [Role]; Another Actor [Role2]; etc"
4. The Expression must be able to convert that [Actors] field into a list of Paths to where the exact filename is located (ie, the Expression must transform "Actor Name [Role]" into "C:\JRiver\Actors\Movie Title (2010)\Actor Name [Role]")

ZRatings helps with 1, 2, and 3. Here are the instructions:

- Magick.exe must be in your system's PATH so that it can be run from any folder. If unsure, just open a Command Prompt and type "magick" - you should get some info about Magick's usage. If you get an "invalid command or filename" then you need to figure out how to add Magick's folder to the PATH (google it). An alternative is to edit the ZRatings' Caption.bat and replace "magick" commands with "c:\program files\ImageMagick\magick.exe", WITH QUOTES (or whatever path leads to your copy of magick.exe)

ZRatings:
On Settings -> Posters:
- Enable "Save Actor/crew thumbnails to this folder", enter "c:\JRiver\Actors\$title ($year)" as the folder path (this creates subfolders as you wanted). You can chose a different folder, just keep the "$title ($year)" part to have it create the subfolders.
- select a Thumbnail size - Medium is OK.
- Enable the other 3 options there (save as PNG, use placeholder, run post-processing)
- Post processing command: "c:\scripts\caption.bat $image $name $role $type"

On Settings -> Misc Settings, enable the option "Add Role to actor names". This takes care of 3) above
if you want you can delete all your Actor PNG files, as they are likely misnamed or on the wrong folder. ZRatings will fetch them again. Or, just point ZRatings to a different/fresh output folder (you'll also have to tweak the Expression to point to the folder you use)

When ready (make sure "magick" works!), select the playlist/movies you want (in ZRatings) and do "Get Movie Info". ZRatings will update the movie's fields, including [Actors] - check if all is OK and then hit "Save to JRiver" (if IMDbID is not correct you may get wrong results!).
ZRatings also downloads the actor pics in background. If all is working you'll see the Actor files appearing on the c:\jriver\actors subfolders. ZRatings will have a spinner showing how many files it's still processing... after it's done, open a few PNG files to check if they look alright.

Add salt and pepper as desired.


This above takes care of 1/2/3. For 4, you'll need to tweak the expression to get it to point to the correct files. Not sure if the expressions above already cover that, so I'll leave you on your own for now. Good luck! :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 19, 2020, 04:34:02 pm
After you got 1-3 sorted I can help with 4

Expression probably needs to be changed to something like this but let's worry that when you got your images created. (It would be a bit cleaner expression if you were using MC's Data\Tooltip folder as a base folder e.g. Data\Tooltip\Actors\)

Code: [Select]
Save(C:////JRiver////Actors////Clean([Name],3) /([Year]/), v_ActorImagesPath)/
<font size="80" color="696b75"><b>STARRING:<//b><br><//font>If(Compare([Cast Images],=,1),<font size="450">Replace(ListMix(<img src="tooltip:tools-separator-60x352"><img src="[v_ActorImagesPath]////[L1].png">, 1, [Actors],1;2;3;4;5;6),;,/  )<//font><br>,<i>Replace(ListLimit([Actors],10),;,/,/ )<//i><br>)If(!IsEmpty([Direcor]),<br><font size="80" color="696b75"><b>DIRECTOR:<//b><//font>/  <font size="80" color="ffffff"><i>[Director]<//i><//font>,)If(!IsEmpty([Screenwriter]),<font size="80" color="696b75"><br><b>WRITER:  <//b><//font><font size="80" color="ffffff"><i>Replace([Screenwriter],;,/,)<//i><//font>,)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 20, 2020, 02:27:17 am
Intact thanks zybex for coming to my aid too.
I followed all the instructions, and now Zratings perfectly creates the folders and inserts the images. On JRiver now I see the photos of the actors (not all of them though, e.g. Jason Momoa is not seen) but I still don't see the name and role in these photos.
I tried to replace "magick" in the caption.bat file with the path to the executable, but the result doesn't change.
As for the expression, I left what I had

I attach a couple of screenshots
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 20, 2020, 03:19:14 am
From your screenshot, Magick seems to be on PATH, but for some reason it's still not stamping the images. I just tried on my Aquaman and I can see them all stamped, see screenshot below. Can you please share the ZRatings log file, it will have details on what is failing with Magick. You can find it on your TEMP folder - just open "%TEMP%\ZRatings" in Explorer.

Momoa missing: it seems you are missing actors which have multiple roles. These are named like this: "Jason Momoa [Arthur Curry, Aquaman]". Maybe Lepa's expression is truncating it at the comma, so it doesn't match the filename.

I just tested the expression and found something else - ListMix() function is broken in MC 27.0.21, it's not replacing field names within the ListMix template. I'll create a new post about it, hopefully it will be fixed for next release. It's possible that this bug is causing Jason to be missing, but I can't test it right now. Lepa, can you please check your expression on your MC/Zelda with "Actor [role1, role2]" ?

PS: the expression has a typo on one of the [Director] references, is says [Direcor] instead. This will cause Director to be missing.

PS2: If you want more than 5 actors, you can increase the max number in Settings->API->Max Number of Actors
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 20, 2020, 05:18:13 am
I am attaching the Zratings log file.

The expression I use is this:

Code: [Select]
<font size="80" color="696b75"><b>STARRING:<//b><br><//font>If(Compare([Cast Images],=,1),<font size="450">Replace(ListMix(<img src="tooltip:tools-separator-60x352"><img src="tooltip:Actors////Clean([Original Title],3) /([Year]/)////[L1]">, 1, [Actors],1;2;3;4;5;6),;,/  )<//font><br>,<i>Replace(ListLimit([Actors],10),;,/,/ )<//i><br>)If(!IsEmpty([Director]),<br><font size="80" color="696b75"><b>DIRECTOR:<//b><//font>/  <font size="80" color="ffffff"><i>[Director]<//i><//font>,)If(!IsEmpty([Screenwriter]),<font size="80" color="696b75"><br><b>WRITER:  <//b><//font><font size="80" color="ffffff"><i>Replace([Screenwriter],;,/,)<//i><//font>,)
I also fixed Director but the image still doesn't appear on JRiver as well as Writer's
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 20, 2020, 05:52:46 am
My Theaterview template only shows images for actors. Others are text only

Momoa missing: it seems you are missing actors which have multiple roles. These are named like this: "Jason Momoa [Arthur Curry, Aquaman]". Maybe Lepa's expression is truncating it at the comma, so it doesn't match the filename.
...
Lepa, can you please check your expression on your MC/Zelda with "Actor [role1, role2]" ?
I'll check later, above expression was just something for starters as I didn't know exactly what kind of folder/filename structure rulers there will be for lello. I can make some kind of generalized tv template for ZRatings actors images users when lello has everything figured out on ZRatings side.

@lello old expression uses tooltip folder as a base folder so it won't find any images if your actor images are not there. But as said try to get images working with magick first. After that let's concentrate where they are and how to show them in Theaterview
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 20, 2020, 06:35:00 am
Lello, check your "post processing command" setting.
I think you have "c:\scripts\caption.bat" there, but your actual folder is "c:\script" according to a post above.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 20, 2020, 08:58:30 am
That was the problem: the "s" !!! :-[ :-[ :-[

The expression is also right, as in Theater View I see photos and names / roles.


A couple of problems remain:
1) photos and names too small although in Zratings has selected Thumbnail Size "Large"
2) in Theater View the photos of the director and writer are missing (you probably need to make a change to the expression)

Code: [Select]
<font size="80" color="696b75"><b>STARRING:<//b><br><//font>If(Compare([Cast Images],=,1),<font size="450">Replace(ListMix(<img src="tooltip:tools-separator-60x352"><img src="tooltip:Actors////Clean([Original Title],3) /([Year]/)////[L1]">, 1, [Actors],1;2;3;4;5;6),;,/  )<//font><br>,<i>Replace(ListLimit([Actors],10),;,/,/ )<//i><br>)If(!IsEmpty([Director]),<br><font size="80" color="696b75"><b>DIRECTOR:<//b><//font>/  <font size="80" color="ffffff"><i>[Director]<//i><//font>,)If(!IsEmpty([Screenwriter]),<font size="80" color="696b75"><br><b>WRITER:  <//b><//font><font size="80" color="ffffff"><i>Replace([Screenwriter],;,/,)<//i><//font>,)

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 20, 2020, 09:37:31 am
MC renders the image at the same height as the current line of text. To override that you can specify the <img> "height" (or "width"):
Code: [Select]
<img src="path to file.png" height="400">It's best to use the actual image height there to prevent blurring.

For Director/Writer, check the expressions - the MC [Director] field is usually just the name, but the filename is actually "Person Name [Director].png". So the expression should contain something like "<img src="tooltip:Actors\[Name] ([Year])\[Director] \[Director\].png>"

PS1: I found another bug in recent MC - images with commas in the filename are not showing at all (like Jason Momoa). I'll report this bug as well.
In hindsight maybe choosing the comma as role-separator in ZRatings wasn't the best choice. I may need to change it.

PS2: One other recent change in MC - filenames on the Expressions must now have the extension; before it was assumed to be "png" and it would not work if we added ".png" on the Expression; now, it only works with the full filename including extension - this is because apparently it now supports JPG as well.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 20, 2020, 10:08:10 am
Ok, I managed to change the size of the photos.
As for the rest, I rely on lepa as I am absolutely not up to it.
 
P.S. I thought I read that donations were possible for Zratings but I don't see anything on the site: am I wrong?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 20, 2020, 10:43:39 am
Thanks :) There's a Donate button on the ZRatings app -> press the "?" button in bottom-right corner, or F1. I didn't put it on the site.

Regarding commas in the filenames (multiple roles): I'm discussing the issue with Matt, I'll post our findings soon.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 20, 2020, 01:39:03 pm
I'm still using 1080p desktop resolution because MC with it's own windowing doesn't scale automatically so well so images are probably looking small on 2160p

There is no room in my template design to show images for others than actors which I have tried to state couple of times already  ;)
You could make it show less actors and add other crew images to actors line of faces if you like.
 
PS2: One other recent change in MC - filenames on the Expressions must now have the extension; before it was assumed to be "png" and it would not work if we added ".png" on the Expression; now, it only works with the full filename including extension - this is because apparently it now supports JPG as well.
extension is not needed for PNG if one is using tooltip folder.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 21, 2020, 11:36:31 am
Thanks :) There's a Donate button on the ZRatings app -> press the "?" button in bottom-right corner, or F1. I didn't put it on the site.

Actually that button doesn't work, or at least I couldn't. Eventually, by chance, I discovered the link on page 7 of this thread.

One question: but does Zratings only work for movies and not for TV series?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 26, 2020, 08:34:36 am
Thanks Lello!
Yes, ZRatings currently is only for Movies. I don't use TVSeries on MC so I didn't yet feel the need to add that feature... but we never know :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 28, 2020, 01:01:53 pm
A strange thing happens. I have updated MC to version 27.0.26 and the images of the actors are no longer visible. Yet in the folder the photos are still there and the expression has not been changed. Fortunately I had a backup of 2 days before and it solved the problem. ? ?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 28, 2020, 02:41:59 pm
Looks like ListMix() is broken on 27.0.27.

Assuming you're on Windows, this seems to fix it on v26: replace the fwd-slashes in the paths by backslashes:
Code: [Select]
<font size="80" color="696b75"><b>STARRING:<//b><br><//font>If(Compare([Cast Images],=,1),<font size="450">Replace(ListMix(<img src="tooltip:tools-separator-60x352"><img src="tooltip:Actors\Clean([Original Title],3) /([Year]/)\[L1]">, 1, [Actors],1;2;3;4;5;6),;,/  )<//font><br>,<i>Replace(ListLimit([Actors],10),;,/,/ )<//i><br>)If(!IsEmpty([Director]),<br><font size="80" color="696b75"><b>DIRECTOR:<//b><//font>/  <font size="80" color="ffffff"><i>[Director]<//i><//font>,)If(!IsEmpty([Screenwriter]),<font size="80" color="696b75"><br><b>WRITER:  <//b><//font><font size="80" color="ffffff"><i>Replace([Screenwriter],;,/,)<//i><//font>,)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Matt on October 28, 2020, 02:54:31 pm
I'll try this in the next build:
Changed: Added the expression function ListMix2 that removes the escapement (so it will return with the ListMix expression).
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 28, 2020, 03:27:07 pm
I've posted some more issues on the beta thread, and an idea for [field,2].
Can you please explain a bit more the difference of ListMix2 vs ListMix?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 28, 2020, 03:53:16 pm
@lello
This is what I'm using currently for my large screen (L: Director + Actors + Writer ) and should work on windows & linux. Adjust height="150" to lower / higher for smalller / taller images.
Code: [Select]
Save(tooltip:Actors////////Clean([Original Title],3) /([Year]/)////////, v_ActorImagePath)/
<font size="80" color="696b75"><b>STARRING:<//b><br><//font>/
If(Compare([Cast Images],=,1),
Replace(ListMix(<img src="tooltip:tools-separator-60x352" height="150"><img src="[v_ActorImagePath][L1]" height="150">, 1, [Actors],1;2;3;4;5;6),;,/  )<br>,/
<i>Replace(ListLimit([Actors],10),;,/,/ )<//i><br>)/
If(!IsEmpty([Director]),<br><font size="80" color="696b75"><b>DIRECTOR:<//b><//font>/  <font size="80" color="ffffff"><i>[Director]<//i><//font>,)/
If(!IsEmpty([Screenwriter]),<font size="80" color="696b75"><br><b>WRITER:  <//b><//font><font size="80" color="ffffff"><i>Replace([Screenwriter],;,/,)<//i><//font>,)
It's basically the same as before but a bit more easier to maintenance

untested windows only (don't remember does back slash need escape?):
Code: [Select]
Save(tooltip:Actors\Clean([Original Title],3) /([Year]/)\, v_ActorImagePath)/
<font size="80" color="696b75"><b>STARRING:<//b><br><//font>/
If(Compare([Cast Images],=,1),
Replace(ListMix(<img src="tooltip:tools-separator-60x352" height="150"><img src="[v_ActorImagePath][L1]" height="150">, 1, [Actors],1;2;3;4;5;6),;,/  )<br>,/
<i>Replace(ListLimit([Actors],10),;,/,/ )<//i><br>)/
If(!IsEmpty([Director]),<br><font size="80" color="696b75"><b>DIRECTOR:<//b><//font>/  <font size="80" color="ffffff"><i>[Director]<//i><//font>,)/
If(!IsEmpty([Screenwriter]),<font size="80" color="696b75"><br><b>WRITER:  <//b><//font><font size="80" color="ffffff"><i>Replace([Screenwriter],;,/,)<//i><//font>,)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 28, 2020, 04:25:03 pm
Quote
don't remember does back slash need escape?
No.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on October 29, 2020, 03:12:26 am
@lello
This is what I'm using currently for my large screen (L: Director + Actors + Writer ) and should work on windows & linux. Adjust height="150" to lower / higher for smalller / taller images.

Thanks lepa, now everything works even with the V26, even the images are sorted better than before. ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 29, 2020, 04:08:46 pm
Been cleaning up a bit and thought I could try to make my movie template easily color themed if someone gets bored with current font colors. So created VARIABLES item where one can set some colors to different components using rgb values.
Colors in images just quick something random...  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on October 30, 2020, 07:30:02 am
Thanks Lello!
Yes, ZRatings currently is only for Movies. I don't use TVSeries on MC so I didn't yet feel the need to add that feature... but we never know :)

I use ZRatings for Movies and My Music Concerts which is defined a Music Video's under Media Sub Type.  I have to change 1000's of these fields (Music Video's / Concerts) under Media Sub Type to Movies and then back again to Music Video or Concert in order to gather the great data that IMDB, TMDM and OMDB have. 

Since all of these three services are supporting the Metadata that we need for Movies, Music Concerts/Video's and TV Shows, I would second the notion to add those in if it's not a big deal to create the modification.

Thanks for all of your hard work in making ZRatings a great product and a great value for our audio and visual enjoyment!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 30, 2020, 02:42:23 pm
mvandyke,
That's a simple change, I can do that. Can you please send me a couple of IMDB ID examples for your MusicVideo/Concerts for validation? Do you use both SubTypes, "Concert" and "Music Video"?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on October 30, 2020, 03:04:54 pm
I'd just suggest that since the same title might be reused by different shows, the default lookup type should remain "Movie" to avoid disrupting existing users.  There would just need to be an easy way to change the type for particular rows when necessary.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on October 30, 2020, 03:30:42 pm
If that's a concern I can add an option to enable Concerts/MusicVideo.
However, how would it disrupt existing users? You can always select a playlist that includes/excludes these videos, right?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on October 30, 2020, 05:27:17 pm
Some might, but some might just use the "recently imported" playlist, and that could have a mix. I frequently do that, because running something through MCR is part of the workflow of importing.

My point is that there will inevitably be conflicts between the names of Movies and the names of Music Videos, so there should be a way to avoid that.  The option you describe to enable/disable concerts/music-videos sounds like a good solution.

I think it's a more desirable behavior for a lookup to fail (return nothing) so that you could then try with a different media type, as opposed to the app thinking "I didn't get a match on Movie, so I'll automatically try searching other media types instead" because often a match fails because of a punctuation discrepancy or something trivial, and if a "wrong" result is returned (it matched on a music video when it should have matched on a movie) the failure wouldn't be apparent unless you manually reviewed all the matches.  Just my 2 cents.  If the app can control the type of search it does based on the Media Sub Type, that helps.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on October 30, 2020, 05:43:33 pm
mvandyke,
That's a simple change, I can do that. Can you please send me a couple of IMDB ID examples for your MusicVideo/Concerts for validation? Do you use both SubTypes, "Concert" and "Music Video"?
I currently only use one of  Media Subtypes for "Movies" that are Music related and is Music Video.  However I think that Concert might make more sense although many of them or music related and are more documentary based and not Live Concerts so lets stick with Music Video.

TV Series also makes sense to add as I have a couple of those and I know that others do too.

See attached file for a listing of files that have the requested IMDB and TMDB Id's
 

thanks so much.

Matt

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on October 30, 2020, 07:30:49 pm
ListMix() changed again in beta so my template probably won't find any images anymore after next releases. Also compatibility with MC26 could have be broken. Let's see when thing settle down a bit
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on November 01, 2020, 01:25:40 pm
If that's a concern I can add an option to enable Concerts/MusicVideo.
However, how would it disrupt existing users? You can always select a playlist that includes/excludes these videos, right?

Yes, that would correct.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on November 02, 2020, 04:51:04 pm
Poor man's Series -> Season -> Episode descriptions using dummy series+seasons files & linking. Just an experiment. Wishing there would be native support for this kind of views/navigation and also more configurable linking
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on November 02, 2020, 06:38:18 pm
Wow great job on those - they look great!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on November 02, 2020, 08:11:27 pm
How did you get the word Farscape to appear like that, lepa?  Font or image?  If image, how did you get it to be so big?  MC likes to fit the height to text height.

I've never experimented with that so I'm curious.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on November 03, 2020, 01:07:23 am
Nothing fancy there. It is an image and image size is still inside the limits of MC View Item size and there is not font characters in the same item.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on November 03, 2020, 02:14:19 am
Ok I see. And that one looks like just a test, as you're not using an expression for the name.

So I'm guessing that's just a png with the letters on a transparent background then.

It's a cool idea, and it does look very nice, but I question whether it would be worth it to me to try and find images like that for all my titles... And even if I did find nice looking title text images for all the movies and shows, probably a lot of them would be on black or white backgrounds or worse, so then I'd also have to edit many of those files to delete the background and make it look clean.

Hmm... A lot of work, it could turn out to be...

Looks really spiffy though.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on November 03, 2020, 02:34:47 am
I could of course use <img src="tooltip:banner-[Series]" but yeah, banner is hand made. Could of course make check that if there is no banner to series then show font title.

Currently this is a lot manual work and not worth of one man's solo work unless it's a hobby. Basically you'll need dummy season library items 1-x (same dummies can be used for all the series) to make current linking system work. For every series you'd need to import farscape.series and farscape_s1.season etc dummies. So it would be 10 min job per series without hand made banner.

For movies I don't use banners as the movie cover usually have that same text already.

Hopefully Theaterview will get some love e.g for linking and there are also other little things where some new MC configuration options would help to create more creative views
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on November 08, 2020, 09:38:40 am
@mvandyke,
I just published ZRatings v3.2.2, which adds a new setting "MC File Filter". It takes any valid MC Filter expression, you can test it on MC's search/filter box. For your needs, you can go into Settings->Misc Settings tab and set the filter to:
[Media Sub Type]=Movie,Concert,[Music Video]
The default is just "Movie" so that it doesn't disrupt existing users, as per Wer's concern.

Note that while you can now set it up to load any media type, ZRatings it still only designed to support Movies which have an IMDB+TMDb entry. So if you enable TVSeries, for instance, they will show up in ZRatings but it will most likely not find any match. You can manually enter an IMDB ID for it, and it will probably load some info but it's unlikely to work well.

PS: Thanks for the donation :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on November 09, 2020, 05:41:44 pm
Thanks so much Zybex.  Appreciate your support and all of the great work that you're doing.  Just coming back from a long trip but will look at the new update in more depth in the morning.

Thanks again and keep up the great work!!!!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on November 11, 2020, 10:52:31 am
The new media sub type works great and saves me a ton of time.  Thanks again!
Title: Re: Creare descrizioni comandi personalizzate/schermate Di visualizzazione utilizzando Dolby ecc. Lo
Post by: lello on November 12, 2020, 02:39:46 am
just published ZRatings v3.2.2,

I tried to download the update, but now I get a message saying it can't find JRiver !!

I removed the .exe file and reinstalled again, but I always get the same message!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on November 12, 2020, 05:14:00 am
Hi Lello,
Please try restarting MC, including shutting down the tray icon/media server. Alternatively try restarting your PC.

I had the same issue after uninstalling MC26, it wouldn't find MC27 anymore due to some registry entries being removed by the uninstaller. Reinstalling MC27 fixes it.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on November 12, 2020, 07:26:45 am
Solved! Thank a lots
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: timwtheov on December 02, 2020, 03:48:22 pm
I've been working on my own tooltips and Theater View prettiness but had a (possibly dumb) question about the tooltip.tff files someone (Moe? lepa?) shared on here: where do those go when they're installed, i.e., when I open the tff file and click "Install," where are all those logos going? They don't seem to be in the "Fonts" folder in Windows, or at least I don't see any there.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on December 02, 2020, 05:20:30 pm
It's .ttf (not .tff) for TrueTypeFont, by the way.

When you right click on a font file and click Install, Windows will install it in the Fonts directory, which by default is c:\windows\fonts

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: timwtheov on December 02, 2020, 05:44:04 pm
Thanks for the correction: just too hasty in my typing.

I thought that's where they might go, but I didn't see any of the images in there (like "Dolby" or "Bluray," et al.). Maybe they don't show up when one scans through the folder? Or maybe I'm thinking of them wrongly (likely)?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on December 02, 2020, 06:06:49 pm
Don't look for the pictures. Look for the name of the font. Browse to the folder in windows explorer, or look at a directory listing from a command prompt.

If you successfully installed it, it's there.  Look harder.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: timwtheov on December 02, 2020, 06:29:27 pm
Yes, I figured I was thinking of it wrongly, as I was indeed looking for the pictures. I just found it: it was under the file name of the ttf. Duh! I guess I was thinking the individual fonts/pics would be parsed out. Don't know why I thought that (well, maybe because of the "install" part), but I did.

Thanks again!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on December 03, 2020, 06:15:36 am
IMHO you should forget about using logo-font and use images instead. It is so much easier to read the expressions when you can actually see from filename what it is supposed to do. Font can be convenient and maybe faster(?) but most of the it is just easier to use images. Also it is easier to experiment with images

If(!IsEmpty([TMDb Rating]),<img src="tooltip:tmdb-logo"> [TMDb Rating],)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: timwtheov on December 03, 2020, 07:25:08 am
lepa, would you mind parsing this bit of the expression, or pointing me to where on the wiki or Interact it resides?

<img src="tooltip.tmdb-logo">

I saw this in some of the expressions in this thread but couldn't seem to find anything about <img src=> on the html part of the Expression wiki. Is this a pointer for some folder where the images are stored?

Thanks for any help on this!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on December 03, 2020, 07:49:44 am
src means "source" i'd guess. So <img src="filepath"> tell where image to be displayed is found. It can be absolute file location or you can use prefix "tooltip:" which is alias for MC's installation's subfolder "Data\Tooltip". if one is using "tooltip:" prefix then you don't need use filetype for png files

<img src="tooltip:TMDb logo">
aka e.g
<img src="c:\Program Files\Media Center 27\Data\Tooltip\TMDb logo.png">

You can also create subfoldes under Tooltip folder so:
<img src="tooltip:Logos\TMDb logo">
aka e.g.
<img src="c:\Program Files\Media Center 27\Data\Tooltip\Logos\TMDb logo.png">

other properties for img are at least
valign="bottom", "middle" or "top"
height=""
width=""

Also: MC caches images for better performance so if you replace image on disk which has been already used by MC (cached) you need to restart MC so the cache will be refreshed and image changes to new one
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: timwtheov on December 03, 2020, 07:56:55 am
Got it. Thanks so much!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: timwtheov on December 03, 2020, 07:58:18 am
Actually, one last question: is there a good site where you all get most of these images or do you just go to IMDb, say, if you want that logo?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on December 03, 2020, 08:00:47 am
Actually, one last question: is there a good site where you all get most of these images or do you just go to IMDb, say, if you want that logo?
I can zip some of my general logos etc. when I got better time. Generally have just been doing search on internet. Also reminder that these are logos mainly so image size doesn't need to be big (performance issues)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: timwtheov on December 03, 2020, 08:12:17 am
Yes, that would be great. Thanks!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: timwtheov on December 04, 2020, 10:52:21 pm
Thanks so much, lepa! Really appreciate it!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on December 05, 2020, 03:09:28 am
Hi all,
Here are some more icons that I have created and collected.
They are all in this thread but I repost them for convenience.

Have a great weekend.

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: timwtheov on December 05, 2020, 02:49:45 pm
Thanks for these, too, arcspin!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on December 12, 2020, 10:56:03 am
I'm trying to get an expression to display the words STAR RATING and then a MC.png and the actual star ratings if there is a rating > 0

This is what I put together and I can't get it working.  The output keeps displaying the image even if there are no stars - any help would be appreciated

If([Rating]>0,Song Rating <img src="F:\JRiver Data\Images\AV\MC.png" height="35"><font color="#f69838">RatingStars(),)

Thanks
Matt
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: wer on December 12, 2020, 12:30:35 pm
Because [Rating]>0 isn't valid comparison syntax in the MC Expression Language.

You need to use Math(), IsEqual(), or Compare().   Look them up.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on December 13, 2020, 01:16:09 pm
Because [Rating]>0 isn't valid comparison syntax in the MC Expression Language.

You need to use Math(), IsEqual(), or Compare().   Look them up.

Thanks I used IsEqual and got it work.  For others that may be interested:

if(isequal([rating],1, 6),<font Color="284C2B">  |  Song Rating  <//b> <img src="F:\JRiver Data\Images\AV\MC.png" height="35"><//font>  <font color="#f69838"> RatingStars(),)<//font>

Thanks
!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on December 17, 2020, 11:24:00 am
I'm having another challenge in theater view trying to have those albums that are AMG Album Picks displayed when I pick an artist. The first image shows the expression that I created in the Theater under Audio and Albums.

 I can get it all to work (2nd upload)  but only when I pick an AMG Album Pick, it displays additional characters up on the screen when it opens up the album (third image).  Albums that are not AMG Album selections work just fine once I select the album.

I've been working on it for a couple of hours and had to call "uncle" as I'm a dangerous coder and not sure of exactly why this is happening .
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on December 17, 2020, 02:37:39 pm
So you want show all the album for artist in question and mark some of them as amg album pick?

If so then enter to group by text box: [Album]

So MC will group albums. Now that you have your grouping sorted, use the lower box to set how you want to display your grouped items
That is where you use that expression which will show amg image

Created a little example like in images:
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on December 17, 2020, 03:11:42 pm
I tried what you recommend and it did the same thing.  The only thing that I thought might be different as the path "F:\JRiver Data\Images\AV"

So, I copied the amg album pick file to the tooltip directory and removed the .png in the expression and it worked.  Not sure why....  Maybe a bug or a feature??

If(!IsEmpty([AMG Album Pick, 1]),  •  <img src="F:\JRiver Data\Images\AV\AMG_Album_Pick.png" height="18">, )

Thanks so much for your help Lepa.  Seeing your Theater View audio gave me some additional thoughts.  Would you mind sharing yours so that I can get a feel for what changes I might make.   Thanks again!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on December 18, 2020, 12:19:18 am
@lello
This is what I'm using currently for my large screen (L: Director + Actors + Writer ) and should work on windows & linux. Adjust height="150" to lower / higher for smalller / taller images.
Code: [Select]
Save(tooltip:Actors////////Clean([Original Title],3) /([Year]/)////////, v_ActorImagePath)/
<font size="80" color="696b75"><b>STARRING:<//b><br><//font>/
If(Compare([Cast Images],=,1),
Replace(ListMix(<img src="tooltip:tools-separator-60x352" height="150"><img src="[v_ActorImagePath][L1]" height="150">, 1, [Actors],1;2;3;4;5;6),;,/  )<br>,/
<i>Replace(ListLimit([Actors],10),;,/,/ )<//i><br>)/
If(!IsEmpty([Director]),<br><font size="80" color="696b75"><b>DIRECTOR:<//b><//font>/  <font size="80" color="ffffff"><i>[Director]<//i><//font>,)/
If(!IsEmpty([Screenwriter]),<font size="80" color="696b75"><br><b>WRITER:  <//b><//font><font size="80" color="ffffff"><i>Replace([Screenwriter],;,/,)<//i><//font>,)
It's basically the same as before but a bit more easier to maintenance

I wanted to update to v43, and once again the photos of the actors disappeared: I went back to v27 :(
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on December 18, 2020, 03:37:31 am
ListMix function was changed somewhere between those build as I said earlier here. Don't have time to look at it now but you could try to change ListMix to ListMix2
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on December 18, 2020, 06:27:16 am
It looks that is the Theater view of Movies.  Could you share the Theater View for Audio?  I think I got my Theater View for Movies pretty well complete.

It appears to me that you're using mostly expressions for your audio view and not fields specifically.  I'm guessing you're following close to the same format as your earlier Movie theater view with S: & L: fields that contain expressions for each section of the "build" is that correct?

Thanks for all of your help!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on December 19, 2020, 07:44:22 am
edit....
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: struct on January 02, 2021, 05:32:45 pm
Hi all,
Here are some more icons that I have created and collected.
They are all in this thread but I repost them for convenience.

Have a great weekend.

Hi,

Thanks for collating these images.  I have also borrowed the images from https://moesrealm.com/MC/mc-images/

I can't find the "container-xxx.png" files that are referenced in Lepa's templates.  I assume these are the .mkv, .mp4 types.

Does anyone have a copy?

Thanks
Craig
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on January 03, 2021, 11:09:36 am
I found them and have them attached for you.  Good Luck on your project 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: struct on January 04, 2021, 01:30:37 am
cheers!!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 04, 2021, 09:32:31 am
Question - is there a way to have Tooltips adjust the background color and main font color to reflect the skin that you are using?

Many times I like to use a "white bright" with black lettering and then other times I would like a dark skin with white lettering.

Thanks
Matt
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on March 06, 2021, 04:34:35 am
You could make global variable at the start of the tooltip which where you'd save color. Then use that variable in your tooltip to set color for fonts. Still manual switch but you only need to change color in one place.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: mvandyke on March 06, 2021, 06:51:42 am
You could make global variable at the start of the tooltip which where you'd save color. Then use that variable in your tooltip to set color for fonts. Still manual switch but you only need to change color in one place.

OK, that makes sense but still it still would be a manual process (a quick edit of the Tooltip Audio file - which I've done a million times)? Would be nice is there were a global variable for the color of the skin text fonts and then the color of the background  and we could incoporate that into the script.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on April 15, 2021, 03:22:30 am
[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)


Excuse me lepa, is it possible to obtain the real aspect ratio in this field?
I'll explain. If I insert a Blu Ray with the classic black bands, in the aspect-ratio tag it appears 16: 9 and in calcualated aspect ratio 1:78 but in reality it is a 2:35.
Considering that I need that tag to activate a zone, how can I change it automatically without having to manually intervene every time?
Thank you
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on April 15, 2021, 02:35:05 pm
Excuse me lepa, is it possible to obtain the real aspect ratio in this field?
I'll explain. If I insert a Blu Ray with the classic black bands, in the aspect-ratio tag it appears 16: 9 and in calcualated aspect ratio 1:78 but in reality it is a 2:35.
Considering that I need that tag to activate a zone, how can I change it automatically without having to manually intervene every time?

You cannot. Blu-rays are always 16:9, the standard mandates it, thus they have black bars to make it 16:9 if needed. You would have to actually analyze the image to try to detect the black bars, but thats at least not something MC can do.
Of course you could manually change the tag to match the correct image aspect ratio.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 15, 2021, 05:20:18 pm
Excuse me lepa, is it possible to obtain the real aspect ratio in this field?
I'll explain. If I insert a Blu Ray with the classic black bands, in the aspect-ratio tag it appears 16: 9 and in calcualated aspect ratio 1:78 but in reality it is a 2:35.
Considering that I need that tag to activate a zone, how can I change it automatically without having to manually intervene every time?
Thank you
You could try to convince jmone to add ffmpeg cropdetection (https://stackoverflow.com/questions/17265381/ffmpeg-get-value-from-cropdetect) to SoT (https://yabb.jriver.com/interact/index.php/topic,106802.0.html) which could then write detected aspect ratio to the tag and which can then be cleaned to nearest standard aspect ratio value by using calculated field.

E: or convince Hendrik to add such thing to MC itself   ;)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 12, 2021, 01:12:19 pm
cannot post images here anymore. Is this thread full?  8)

"Your attachment has failed security checks and cannot be uploaded. Please consult the forum administrator."
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on May 12, 2021, 01:40:07 pm
JMone has been trying to add CropDetect but it has some challenges. Discussion on SoT thread:
https://yabb.jriver.com/interact/index.php/topic,106802.msg896651.html#msg896651
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 15, 2021, 08:33:15 am
Created new WIP screen inspired by new imdb look. Two lower pics from current View with two pages of information
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on May 17, 2021, 03:00:24 am
These look great Lepa :)
Can you please share the code, or is it spread over too many fields?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 17, 2021, 08:35:13 am
Special fields (or stock populated outside MC) used:

ACTOR IMAGES
[Original Title] # Stock # Populated by MCUtils / ZRatings
[Cast Images] # User # Manual 1/0. Uses different folder to get images when set to 1 (0 default tmdb images, 1 character images are available)

GENERAL
[MPAA Rating] # Stock # Populated by MCUtils / ZRatings

[IMDb Votes] # User # Populated by ZRatings
[Popularity] # User # Populated by MCUtils / ZRatings

[Rotten Tomatoes] # User # Populated by MCUtils / ZRatings
[IMDB Rating] # User # Populated by MCUtils / ZRatings
[TMDB Rating] # User # Populated by MCUtils / ZRatings
[Version] User # String e.g. "Director's Cut"
[Genre] # User # Populated by MCUtils / ZRatings
[Country] # Stock # Populated by MCUtils / ZRatings
[Watched] # User # Calculated
Code: [Select]
If(IsRange([Bookmark Percent], 0-9)/
    ,If(Compare([Number Plays],>,0),☑,)/
    ,If(IsRange([Bookmark Percent], 10-89),[Bookmark Percent]%,☑)/
)

[Description] # Stock # Populated by MCUtils / ZRatings
[Director] # Stock # Populated by MCUtils / ZRatings
[Screenwriter] # Stock # Populated by MCUtils / ZRatings
[Actors] # Stock # Populated by MCUtils / ZRatings

TECH
[HDR Format RAW] # User # Populated by SoT

[HDR Format] # User # Calculated
Code: [Select]
ListClean(If(IsEqual([HDR Format RAW],no-hdr10),HDR,If(IsEqual([HDR Format RAW], Dolby Vision,8),DV;,)If(IsEqual([HDR Format RAW], HDR10+/ ,7),HDR10+;,)If(IsEqual([HDR Format RAW], HDR10/ ,7),HDR10;,)If(IsEqual([HDR Format RAW],no-hdr10,8),HDR;,)If(IsEqual([HDR Format RAW],hdr10,7),HDR10,)),3)
[Dolby Vision] # User # Calculated
Code: [Select]
ListContains([HDR Format],DV)
[AR-Calculated # User # Calculated
Code: [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 Tracks RAW] # User # Populated by SoT

[HD Audio] # User # Calculated
Code: [Select]
If(IsEqual([Audio Tracks RAW],MLP,8),Atmos,)If(IsEqual([Audio Tracks RAW],DTS XLL X,8),DTS:X,)
[Studios] # Stock # Populated by MCUtils / ZRatings
[Publisher] # Stock # Populated by MCUtils / ZRatings

[Audio Codec] # User # Calculated
Code: [Select]
IfCase([Compression],8,dts-hd,dts-hd,eac3,dolby digital,pcm,pcm,mp3,mp3,vorbis,vorbis,aac,aac,dts,dts,ac3,dolby digital,truehd,truehd,opus,opus,flac,flac,mp2,mpeg)
[Definition] # User # Calculated
Code: [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)
[HDR] # User # Calculated
Code: [Select]
If(!IsEmpty([HDR Format]),1,0)
LINKS
[Movie Series] # User # Populated by MCUtils / ZRatings

[LINK_Genre_Movie]
Code: [Select]
If(IsEqual([Media Sub Type], Movie),Movies at Genre Replace(ListSort(ListLimit([Genre],2)),;,/ /// ),)
[LINK_Director]
Code: [Select]
If(IsEqual([Media Sub Type], Movie),Directed By ListItem([Director],0),)
[LINK_IMDb_Rating]
Code: [Select]
Movies Rated Math(Int([IMDb Rating])) in IMDb
[LINK_Year_Movie]
Code: [Select]
If(IsEqual([Media Sub Type],Movie),Movies Released in FormatDate([Date,0],year),)
Don't know if i missed or forgot something as this is manual work to share

E: SOT conf:

Code: [Select]
Audio Track Count RAW;Audio Language;Audio Tracks RAW;Extras;Subtitles;Video Codec;HDR Format RAW;Aspect Ratio
Code: [Select]
ID;Language;Format;Title;Language;Format;HDR format;Display aspect ratio
Code: [Select]
Audio;Audio;Audio;Audio;Text;Video;Video;Video
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on May 17, 2021, 09:28:53 am
Thanks - that's a bit more work than applying a theme, but the results speak for themselves.
I was curious on how you got 2 lines of text next to a picture - now I see you just split the image in 2 (upper/lower halfs)! Good solution :)

I'm not sure if MC uses a browser control and just converts the output to HTML (like Zelda), or if it uses a custom rendering control... if it is HTML, it would be awesome if Matt added a tag to just output raw HTML, like:
   <html>/#raw html code, but still resolving [fields] and functions()#/<//html>  - this way we could use Div/Span/Table, etc  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 17, 2021, 09:57:38 am
Yes, I think that Hendrik had worries that rendering would be too slow if they utilized more html in theater view screens.

Actually if one ditches TECH ICONS and LINKS then rest of the WIP screen is mostly MC/ZRatings "stock" fields so that one doesn't need any other user customization to be usable. Also if one doesn't have those Tech Icons fields or images then it is just going to be empty row but shouldn't break anything visually.

All the images need to be extracted to tooltip folder keeping the folder structure
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on May 17, 2021, 05:45:00 pm
There is no browser involved with Theater View rendering, its all custom formatting. Browsers are way too slow for such a purpose. No HTML for you, unfortunately.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on May 24, 2021, 12:57:10 pm
I added this WIP template and downloaded the various folders in tooltip, but I am missing several things than before. First of all the images of the actors, although the Actors folder is still in its place, but then also the various logos aspecgt ratio, studios, definition and also watched / no watched: maybe I have to change something in the template to make sure that the folder is pointed right?

Furthermore, there is no longer the value of the TMDB evaluation: the logo appears, but the vote does not.

There are others.

Thanks for your help

P.S. what are the "stock" fields
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 24, 2021, 01:24:33 pm
Stock field means field that comes with MC and is not user created

To debug what is wrong with images you should install zybex's Zelda tool. It will show you raw text output where you can see where does MC try to load e.g actor images. I can help then when I see more clearly what is your situation. Probably you'll need to change value for [v_ActorImageFilePath] which is set under "PATH VARIABLES" in the "File Info Panel"

Save(src="tooltip:Actors////////Clean([Original Title],3) /([Year]/)////////[L1]", v_ActorImageFilePath)Save(src="D://////audio//////Album Covers//////Actors//////[L1].png", v_ActorImageFilePath2)

I don't know your actor folder or file naming so can't comment how it should be set for you
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on May 25, 2021, 07:04:19 am
Currently the photos of the actors are in C: \ Program Files \ J River \ Media Center 27 \ Data \ Tooltip \ Actors and with the previous template everything works.

I tried, after having changed in info panel D: with C: to put the photos also in C: audio \ album covers \ Actors but it doesn't work.

I downloaded Zelda (thanks zibex :)) what should I do now to show you my situation?

P.S. I solved the TMDB problem by creating the TMDB Score field instead of TMDB Rating
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 25, 2021, 11:30:39 am
So like this?
C:\Program Files\J River\Media Center 27\Data\Tooltip\Actors\Charlie Chaplin.png
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on May 25, 2021, 02:22:27 pm
No, C:\Program Files\J River\Media Center 27\Data\Tooltip\Actors\Original Title (Year)\Charlie Chaplin.png
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 25, 2021, 02:54:48 pm
copy this to PATH VARIABLES
Code: [Select]
Save(src="tooltip:Actors////////Clean([Original Title],3) /([Year]/)////////[L1]", v_CastImageLoc)
and this to L: Director + Actors + Writer
Code: [Select]
<font [v_HEADER_SIZE] [v_HEADER_COLOR]>STARRING<br><//font>/
Replace(Replace(ListMix2(<img src="tooltip:Misc////////Separator////////60x60" width="10"><img [v_CastImageLoc] valign="middle" width="120">, 1, Replace([Actors],/[,{),1;2;3;4;5;6),{,/[),;,/  )
If(!IsEmpty([Director]),<br><font [v_HEADER_SIZE] [v_HEADER_COLOR]>DIRECTORIf(Compare(ListCount([Director],;),>,1),S,)<//font><br><font [v_TEXT_COLOR]><i>/  Replace([Director],;,/,/ )<//i><//font>,)/
If(!IsEmpty([Screenwriter]),<font [v_HEADER_SIZE] [v_HEADER_COLOR]><br>WRITERIf(Compare(ListCount([Screenwriter],;),>,1),S,)<br><//font><font [v_TEXT_COLOR]><i>/  Replace([Screenwriter],;,/,/ )<//i><//font>,)

and it might work. If not then copy both of those to Zelda and check from text output panel is the image path correct
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on May 26, 2021, 10:09:38 am
Perfect, now the photos of the actors can be seen. I also fixed the technical icon line by creating the various subfolders in Tooltip, and added a line for audio language and subtitles.

It doesn't work well watched / no watched as I always get the eye icon as if everything is watched. I'm doing more tests tonight.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 28, 2021, 06:37:15 am
Expression just check if [Watched] is not empty and if [watched] has some value then eye-icon is shown. So check your [Watched] field value(s) for movies
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on May 29, 2021, 01:14:22 am
My fault, there was a small error in the expression in the Watched field.

@zybex I have several films for which I cannot get the photos of the actors: is it my problem or do I not get them because they are not there?
Thank you
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on May 29, 2021, 04:30:08 am
It's usually because TMDb doesn't have a profile pic for the actor/cast member.

On ZRatings, after doing "get info", you can click on the Poster cell to open the Poster Browser. There, click on the Oscar icon (top right) to view the thumbnails of cast, directly from TMDb source. It will have placeholders for missing thumbnails.

You can also right-click on a movie on ZRatings and select Open->TMDb Page (or press CTRL+U) to open the movie page on TMDb. On the movie page you can select Overview->Cast&Crew to check which thumbnails are missing... and you can also contribute by uploading the missing ones!
 
There's an option in ZRatings' settings to enable "use placeholder for missing thumbnails". There's a way to change the default gray avatar image too, by changing the images on %localappdata%\zratings folder, so you can have all of them be John Malkovich  ;D

Riders of Justice: awesome movie!  8)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on May 30, 2021, 10:20:04 am
Actually, by clicking on the oscar icon, all the images of the actors appear exactly like the image you posted, but ZRatings doesn't download them to my pc: is there a way to do it manually?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on May 30, 2021, 11:40:04 am
ZRatings downloads them to a folder defined in Settings, if you enable it. However, they won't magically show up in TheaterView or Toolpips, you have to adjust your View code to point to the correct folder.

This is different for posters - MC natively supports a Movie Poster, so ZRatings can just push it to the database. For Actors pics however, there's no native support, so ZRatings just downloads the pictures to a folder you specify, and then you need to have the Theater View code (or tooltip) pointing to that image (based on the [Actors] field values). Lepa's code already does all that, you probably just need to adjust it to your Actor folder location.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on May 30, 2021, 12:03:04 pm
Yes, of course, and I must also check that the folder with the photos of the actors has exactly the same name in the "original name" tag.

If, for example, the original name says "Mission: Impossible" I have to remove the colon because the folder does not accept that character.

What I wanted to tell you, is that for some movies the process of downloading photos to the actors folder does not work.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on May 30, 2021, 12:14:35 pm
Can you give me an example of such a movie? Is the folder not created at all? It's normal for it to be renamed to remove invalid chars. You can also configure ZRatings to name the folder after the IMDBID instead of movie name.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on May 31, 2021, 05:48:40 am
The whole Mission Impossible series for example: the photos on Zratings are there but it doesn't create the folder for me.
I mean can I have the folder named directly with the original name of the film? How do you do?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on May 31, 2021, 07:37:28 am
Hi Lello,
That's actually a bug on ZRatings. There are some chars that cannot be used on file/dir names, such as the colon and back/fwd slash. So if the movie has these in the name, ZRatings will fail to create the folder.

I'll add a fix to automatically rename these folders to valid ones - however, this makes it harder to then write an expression in MC that points to the matching folder (no easy way around that).

You have 2 options:

1. Change the "save actor thumbnails to this folder" option in ZRatings to "c:\your\own\folder\Actors\$imdb" - this will create a folder using the IMDBid of the movie instead of the Title. Not pretty, but always works... you then need to use [IMDB id] on the MC expression to match it.

2. Wait for an updated MCRatings ZRatings. It will automatically take care of invalid folder names, but then you have to complicate the MC Expression a bit so that it also changes the [Name] in the same way.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on May 31, 2021, 09:07:18 am
Another option is to have ZRatings write the Actors to the movie folder itself, by setting the option to "$moviedir\Actors"
In this case, you would need to adjust the MC expression to "[filename (path)]\Actors\".

Advantages: simpler, and actor pics are now next to the movie
Disadvantages: the NAS/Disk will wakeup when you're browsing to show the pictures (but it may do that already for you anyway)


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on May 31, 2021, 11:31:14 am
You have 2 options:

1. Change the "save actor thumbnails to this folder" option in ZRatings to "c:\your\own\folder\Actors\$imdb" - this will create a folder using the IMDBid of the movie instead of the Title. Not pretty, but always works... you then need to use [IMDB id] on the MC expression to match it.


While waiting for a ZRatings update,  ;D I tried option 1.

The folder is created, and now I have the IMDB code instead of the name. There is therefore the annoyance of having to manually intervene to rename the folder, but for the moment that's okay.

Thank you
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on May 31, 2021, 12:01:13 pm
Why rename the folder? You still won't be able to set it to "Mission: Impossible", so the actors still won't show up in MC.
You should just leave it and change the path in Lepa's code to use [IMDb ID] instead of "[Name] (Year)" for the actors. Or use Method 3 :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on May 31, 2021, 12:48:18 pm
If you change your actor images folder in ZRatings to
Code: [Select]
C:\Program Files\J River\Media Center 27\Data\Tooltip\Actors\$imdbthen just change path folder variable in MC to something like this and MC should search the actor images from movies imdb id folder.
Code: [Select]
Save(src="tooltip:Actors////////[IMDb ID]////////[L1]", v_CastImageLoc)
https://yabb.jriver.com/interact/index.php/topic,119385.msg898878.html#msg898878
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 01, 2021, 08:27:25 am
Why rename the folder?

Because by replacing [Name] (Year) with [IMDb ID], a folder named with the IMDb code is created.

If I make this change,
Code: [Select]
Save(src="tooltip:Actors////////[IMDb ID]////////[L1]", v_CastImageLoc)I don't clearly see the photos I downloaded earlier.

While waiting for updates, I continue to use option 1
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 01, 2021, 08:48:14 am
True, you would need to rename every existing folder to follow the same pattern.
But again, "Mission: Impossible" won't work without an expression change.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 01, 2021, 11:53:27 am
But again, "Mission: Impossible" won't work without an expression change.
It will if/when you'll fix ZRatings  ;) (at least if the fix is the same as MC's clean function does.....)

Code: [Select]
Clean([Original Title],3)https://wiki.jriver.com/index.php/String_Manipulation_Functions#Clean
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 01, 2021, 11:57:51 am
That's a good idea Lepa, I'll make it compatible. Thanks!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 01, 2021, 12:05:42 pm
I'ill contact your supervisor about your great customer service   8)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 01, 2021, 12:39:58 pm
You keep saying things like that and people keep thinking I work for JRiver. Maybe I should ask for a Christmas bonus or something  ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 02, 2021, 10:45:52 am

Momoa missing: it seems you are missing actors which have multiple roles. These are named like this: "Jason Momoa [Arthur Curry, Aquaman]". Maybe Lepa's expression is truncating it at the comma, so it doesn't match the filename.

There is always the problem of actors with double roles still unresolved.

For example, I can't upload a single photo from the entire X-Men series as they all have dual roles
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 02, 2021, 11:57:44 am
Upload? There's no upload going on, unless you're contributing to TMDb.

Dual roles are working fine, though note that some XMen movie titles also have a colon. You need to debug and provide more info about your problem:
- does the actor picture get downloaded? What's the filename?
- does it get stamped by Magick? What's the filename then?
- does it show on Explorer but not visible in MC?
- what's the content of the [Actors] field?
- what expression are you using to show the actors?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 03, 2021, 12:51:01 am
Sorry, I expressed myself wrong, I meant upload photos to MC from the actors folder.
For other questions, some photos from the htpc during the day.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 03, 2021, 09:14:31 am
This is the expression for visualizing the actors

Code: [Select]
Save(src="tooltip:Actors////////Clean([Original Title],3) /([Year]/)////////[L1]", v_CastImageLoc)
and this is the folder with the photos of the actors

[img width= height= alt=Actors" border="0]https://i.ibb.co/rZ5SGwn/Actors.png[/img] (https://ibb.co/rZ5SGwn)

[img width= height= alt=Actors" border="0]https://i.ibb.co/gWXwsLc/Actors.png[/img] (https://ibb.co/gWXwsLc)

How do you debug?

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 03, 2021, 10:36:24 am
How do you debug?
Playing around in Zelda.

I figured out the problem: it's MC cutting part of the Actor value because it thinks it's a Field name due to the square brackets:
[Director]             = "Bryan Singer"
[Director,0]           = "Bryan Singer"; mode 0 is mostly for Date fields, to return the raw numeric value
[Director, something]  = "Bryan Singer" - the "something" is correctly ignored

Now, when MC deals with unknown fields, it outputs the field name but wrongly truncates the second part:
[unknownField]         = "[unknownField]"
[unknownField, label]  = "[unknownField]" - the ", label" is lost!

ZRatings writes these multi-role actors as "Actor Name [Role1, Role2]". So when processing these strings, MC thinks that that part within brackets is a field and tries to resolve it... but since there's no field called "Role1", it just outputs [Role1] and ignores the rest:
Hugh Jackman [Logan, Wolverine]      = "Hugh Jackman [Logan]"

This is something that JRiver can easily(?) fix. In retrospect, the square bracket was a bad choice for the Actor roles, I'm open to suggestions to change it.
As a workaround, the expression can be changed to rename the Actors so that it doesn't trigger this issue - you can see the result in the screenshots below.

Problematic expression:
Code: [Select]
Listmix2(<img src=[v_CastImageLoc]>,0,[actors])
Fixed - replaces [ with {, applies ListMix, then replaces back the { to [
Code: [Select]
replace(Listmix2(<img src=[v_CastImageLoc]>,0,replace([actors],/[,{)),{,/[)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 03, 2021, 12:06:21 pm
But that problematic expression you say, I don't seem to have it.
I only have
Code: [Select]
Save (src = "tooltip: Actors //////// Clean ([Original Title], 3) / ([Year] /) //////// [L1]", v_CastImageLoc)and not
Code: [Select]
Save (src = "tooltip: Actors //////// Clean ([Original Title], 3) / ([Year] /) //////// [L1]", v_CastImageLoc) / Listmix2 (<img src = [v_CastImageLoc]>, 0, [actors])
Should I add your correct expression to the one I currently have?

P.S. I'm getting a headache ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 03, 2021, 12:24:28 pm
My code is just an example. The View code is spread out across several files and fields, and there's a Listmix() somewhere in there.

Lepa can take it from here. I'll ask Matt to fix this issue in MC too.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 03, 2021, 12:26:10 pm
@lello
Updated https://yabb.jriver.com/interact/index.php/topic,119385.msg898878.html#msg898878 for you ("L: Director + Actors + Writer" script edited)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 03, 2021, 01:00:54 pm
Thanks lepa, very kind. I'll try it tomorrow
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: JimH on June 03, 2021, 01:01:56 pm
Is there anything we could do to support this work better?  We appreciate what you've done so far.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 03, 2021, 01:23:15 pm
Hi Jim,
It would be nice to be able to create Theater View Themes that could be installed by users as a single package, similar to MC Themes. All files, code, etc, would reside in a single subfolder, and the user could then just switch themes at will. However, this is not trivial at all as there are so many moving pieces, and currently the Actor pics are an outside thing. It would be a major feature, but perhaps its a nice thing for the roadmap.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 04, 2021, 03:18:37 am
@lello
Updated https://yabb.jriver.com/interact/index.php/topic,119385.msg898878.html#msg898878 for you ("L: Director + Actors + Writer" script edited)

I made the change, and now you can also see the photos of the actors with double roles.

Thank you
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Outlaw Audio on June 04, 2021, 11:52:13 am
Hi Jim,
It would be nice to be able to create Theater View Themes that could be installed by users as a single package, similar to MC Themes. All files, code, etc, would reside in a single subfolder, and the user could then just switch themes at will. However, this is not trivial at all as there are so many moving pieces, and currently the Actor pics are an outside thing. It would be a major feature, but perhaps its a nice thing for the roadmap.

+1, I'll second that
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 05, 2021, 07:36:40 am
The issue with MC truncating unknown fields is resolved in MC beta 28.0.20. "Hugh Jackman [Logan, Wolverine]" is no longer truncated.

Thanks Matt!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 06, 2021, 04:13:17 am
Hi Jim,
It would be nice to be able to create Theater View Themes that could be installed by users as a single package, similar to MC Themes. All files, code, etc, would reside in a single subfolder, and the user could then just switch themes at will. However, this is not trivial at all as there are so many moving pieces, and currently the Actor pics are an outside thing. It would be a major feature, but perhaps its a nice thing for the roadmap.

+1
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 18, 2021, 01:15:09 pm
Made some aspect ratio icons. Similar than before but currently without text description
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 18, 2021, 01:54:20 pm
Nice and clean icons!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 19, 2021, 10:58:42 am
I added the 2.20 and 2.00 icons provided by arcspin (thanks again), but standardly with the files with AR-calculated 2.00, it loads me the 2.20 icon.

I reset, checked icons, restarted MC etc. but always upload that icon.

This is my situation, where am I wrong?

[img width= height= alt=AR-calculated" border="0]https://i.ibb.co/pLm9Hdf/AR-calculated.png[/img] (https://ibb.co/pLm9Hdf)
[img width= height= alt=field-variables" border="0]https://i.ibb.co/dKD5Mq1/field-variables.png[/img] (https://ibb.co/dKD5Mq1)
[img width= height= alt=TAG" border="0]https://i.ibb.co/09WJ0q8/TAG.png[/img] (https://ibb.co/09WJ0q8)

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 19, 2021, 01:08:25 pm
That "field variables" is not used and it can be deleted. it is just made there if one doesn't want to create actual fields he can use variables instead of fields.

aspect ratio is shown in "L: TECH ICONS". Did you change arcspin png image names to correspond filenames used in the expression? I'm using ...Tooltip\AspectRatio\1.78.png etc naming scheme so if you havent changed the expression your naming should follow that naming scheme or you can change the expression. You could export your Movie WIP template using that manage button so it would be easier to se what's going on
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 19, 2021, 02:44:17 pm
Yes, I have renamed the arcspin icon files, so much so that the 2.20 icon is regularly loaded.
Tomorrow I check in "L: TECH ICONS" (now I'm not close to the htpc) and if I don't solve it, I'll turn you my WIP film template.

Thank you
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 20, 2021, 04:53:32 am
edit
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 20, 2021, 08:26:34 am
Everything seems to be correct if your [AR-Calculated] field is populated correctly in MC. At least in your earlier screenshot it seems to be filling up correctly. Could check that your AR-Calculated corresponds those aspect ratio image filenames? image names at least seems to be as expected in your picture.

I also cleaned up your template a little bit as it had all kind of my old/test stuff which is not relevant for you. I can share it for you later if you like.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 20, 2021, 09:25:15 am
Lello, are your AR images in \Tooltip\AspectRatio\ or \Tooltip\Video\AspectRatio\ ?
The location needs to match the expression.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 20, 2021, 10:53:02 am
Moved oscar statue to the ratings row and cleaned up the obsolete stuff. Also hid L: Stars row (don't know if you wanted to have same actor info twice? you can still activate it by changing Show: to "Show only in Large View") and fixed audio/subtitle languages row (only subtitle languages relevant to me is shown. You can change it to your preferred languages)

jmone also made some automatic field creation to SoT but I haven't adapted to that at least for now but if you decide to use SoT's automatically created field you need to change [AR-Calculated] to [Aspect Ratio (Crop)]

Awards must be in tooltip/Award folder (folder included in zip file)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 21, 2021, 12:38:34 am
I found out what my problem was, but it was so stupid that I am ashamed to say it (the years are starting to be felt :()

Thanks lepa for the new template, I think I'll try it out after finally installing the new v28.

I haven't tried the latest version of SOT yet but if I do, I will change the field as you indicated.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 21, 2021, 12:43:37 am
P.S. wouldn't this discussion be better to fix it in the discussion of the latest v28? You are doing a great job, and you deserve more exposure
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 21, 2021, 11:35:49 am
I finally installed MC28 and then updated the Tooltip folder.
I uploaded the new template and everything is perfect, except for the audio and subtitles section.
I understood that I had to create a new tooltip / language folder in which to put the icons of the various countries, renaming them from "country-english" to "english" but it only works for the audio language but not the subtitles and honestly I did not understand if I have to create another folder
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 21, 2021, 11:46:38 am
Tooltip/Language/English.png

etc.

Subtitles only show english and finnish subtitles as they are only ones relevant for me but I can help to edit it for your convenience. Probably not practical to list all of them as there can be so many of them that one row isn't enough.

E: someone may have nicer flags but these have suited me fine

E2: Played a little with oscar trophy. On the image it is not anything ready and I'm not sure what i would like to do with. Also tried to show as many oscar icons as won but there are some titanics which have too much of them to be shown here
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 21, 2021, 12:33:08 pm
Ok, I understand what I need to change. I try to do it myself :)

The indication of the number of Oscars won is interesting
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 22, 2021, 09:25:40 am
I tried to edit with the languages ​​placed in your Language folder
Code: [Select]
If(Or(Compare(Length([Audio Language]),>,0),Compare(Length([Subtitles]),>,0)),<font [v_HEADER_SIZE] [v_HEADER_COLOR]>LANGUAGES<//font><br>/  <font [v_HEADER2_COLOR]>AUDIO  Replace(ListMix(<img src="tooltip:Language////[L1]" height="20" valign="middle">, 1, [Audio Language]),;,/  )   SUBTITLES  <//font>If(IsEqual([Subtitles],Italian,8),<img src="tooltip:Language//Italian" height="20" valign="middle">,)If(IsEqual([Subtitles],English,8),/  <img src="tooltip:Language//English" height="20" valign="middle">,),)If(IsEqual([Subtitles],German,8),/  <img src="tooltip:Language//German" height="20" valign="middle">,)If(IsEqual([Subtitles],Chinese,8),/  <img src="tooltip:Language//Chinese" height="20" valign="middle">,)If(IsEqual([Subtitles],Danish,8),/  <img src="tooltip:Language//Danish" height="20" valign="middle">,)If(IsEqual([Subtitles],Finnish,8),/  <img src="tooltip:Language//Finnish" height="20" valign="middle">,)If(IsEqual([Subtitles],French,8),/  <img src="tooltip:Language//French" height="20" valign="middle">,)If(IsEqual([Subtitles],Japanese,8),/  <img src="tooltip:Language//Japanese" height="20" valign="middle">,)If(IsEqual([Subtitles],Korean,8),/  <img src="tooltip:Language//Korean" height="20" valign="middle">,)If(IsEqual([Subtitles],Norwegian,8),/  <img src="tooltip:Language//Norwegian" height="20" valign="middle">,)If(IsEqual([Subtitles],Spanish,8),/  <img src="tooltip:Language//Spanish" height="20" valign="middle">,)If(IsEqual([Subtitles],Swedish,8),/  <img src="tooltip:Language//Swedish" height="20" valign="middle">,)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 22, 2021, 11:54:28 am
Updated your template:
"L: Audio & Subtitles" have v_SubtitleLanguages variable where you can choose the the subtitle languages (semicolon separated list) you want to show from [Subtitles] field. You of course then need flag image for those languages in the tooltip/Language folder
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 23, 2021, 12:27:30 pm
Thanks lepa, as soon as I can I try.

@zybex I have a problem with Zrating. I tried to change the folder where to save the photos of the actors in the settings after updating from MC27 to MC28, but it tells me that I cannot access to make changes: how is it possible?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 23, 2021, 01:22:38 pm
It's likely to be the folder permissions. The default permissions on 'C:\Program Files' prevent normal users/apps from writing files there. So if you're trying to use 'C:\Program Files\J River\Media Center 28\Data\Tooltip', you need to do one of these:
- run ZRatings as Administrator so that it can write to that folder
- change the folder Security permissions to give Write/Full access to your user account

This folder location for Tooltip data is actually a bad choice from JRiver's part, these files should have been in %LocalAppData% instead.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Outlaw Audio on June 23, 2021, 06:06:35 pm
This folder location for Tooltip data is actually a bad choice from JRiver's part, these files should have been in %LocalAppData% instead.

Having used JRiver for awhile in a networked environment, I think a better choice would be to make the "tooltip" directory a totally custom location so that specific graphics items can be shared by the server and all the clients from a networked location rather than sharing a directory local only to a single machine.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on June 24, 2021, 02:45:29 am
This folder location for Tooltip data is actually a bad choice from JRiver's part, these files should have been in %LocalAppData% instead.
Agreed. MC server should serve tooltip data to clients on need bases/at one go just like it does for other art. Client would then cache data to its own LocalAppData.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 24, 2021, 04:54:40 am
Hi all,
I see the screenshot from lepa a few post up and I notice that there two lines of information after each rating icon.

Could some provide the expression (and if needed and explanation if it involves a lot of steps) to how that is done.
First a row with the rating description and then:
An Icon that spans two rows and directly after that icon information on two rows.
The visuals are very nice and the information densely packaged but still readable.


Happy midsummer,

//arcspin

 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 24, 2021, 05:26:52 am
To achieve that, Lepa cleverly split each image into a top and a bottom part; so there are actually 2 images per icon. Then he builds each line using each part of the image as needed.
To align the horizontal position of the top/bottom images, he makes sure each string of text has the same number of chars on 1st and 2nd lines, adding transparent text (invisible).
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 24, 2021, 05:31:41 am
Wow, that is a clever  solution.
Thinking out of the box for sure  ;o)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 24, 2021, 08:38:36 am
- run ZRatings as Administrator so that it can write to that folder

He tells me he can't find JRiver

- change the folder Security permissions to give Write/Full access to your user account

Permissions changed, but still not giving me access
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 24, 2021, 08:46:42 am
What is the exact error message you're getting, and where? Is it when you're saving Settings?
Can you copy a file into the folder you selected without Windows asking you for confirmation/permission?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 24, 2021, 11:07:36 am
These are the messages that appear as soon as I click on Save and when I start Zratings as an administrator.

In that folder I can normally make any changes
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 24, 2021, 11:35:33 am
Try opening a command-prompt (cmd) as Administrator and run this command to reset permissions:
Code: [Select]
icacls "C:\Program Files\J River\Media Center 28\Data\Tooltip" /T /grant everyone:(OI)(CI)M
If it completes with no error ZRatings should now work.

Regarding running ZRatings as Administrator - apparently it only works if MC is also started as Administrator. I'll add a workaround for that in a future version.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on June 24, 2021, 11:28:12 pm
Have you "lello" tried to have ZRatings in a folder directly under C: to avoid any permission conflicts?
I also have my actor / crew thumbnails on my NAS and not under C:/Program files to have some sort of redundancy if a hard drive crashes.



Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 25, 2021, 12:56:44 pm
Try opening a command-prompt (cmd) as Administrator and run this command to reset permissions:
Code: [Select]
icacls "C:\Program Files\J River\Media Center 28\Data\Tooltip" /T /grant everyone:(OI)(CI)M

Worked perfectly, Zratings updated.

I have a little request to make.

When I run Zratings, it saves me the photos of the actors in a sub-folder actors / title of the film in Italian (year). For this to work, I have to change the folder name from "film in Italian" to "original title".

It's a little annoyance, but is there a way for Zratings to create the folder directly with the original title?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on June 25, 2021, 01:34:45 pm
Just change the path to
Code: [Select]
C:\Program Files\J River\Media Center 28\Data\Tooltip\Actors\$originaltitleor
Code: [Select]
C:\Program Files\J River\Media Center 28\Data\Tooltip\Actors\$originaltitle ($year)
If you right-click on the path, it shows you a list of all possible $tags. Note that the Expression that you then use in your Tooltip/Theater view needs to match this path, or else it won't find the images.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on June 25, 2021, 02:42:55 pm
Ah ok, I had tried with $original title instead
$originaltitle: understood why it didn't work!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 07, 2021, 04:22:54 am
One thing I've never been able to do is get the ATMOS logo to appear.

I double-checked the Audio Codec folder and the logo is present, the Compression field has the Atmos encoding, I started SoT after updating the library from the Tags but the Audio Codec field continues to be populated with Dolby Digital or Dolby Truehd: what should I check again ?

Another thing, always about Atoms. I have a TV series with the various languages all in Atmos, but while watching the film the various languages are indicated as simple ac3 5.1 despite the fact that the Atmos encodings for all languages are correctly reported in Mediainfo: what should I check?

Thanks
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 07, 2021, 08:13:56 am
I get audio codecs from SoT to MC field [Audio Tracks RAW]
I then use it in calculated field [HD Audio] to display Atmos or DTS:X
calculation rule for [HD Audio]:
Code: [Select]
If(IsEqual([Audio Tracks RAW],MLP,8),Atmos,)If(IsEqual([Audio Tracks RAW],DTS XLL X,8),DTS:X,)
[HD Audio] field is used to select icon for Atmos / DTS:X

My SoT config was decribed here. I think it is still up to date probably
https://yabb.jriver.com/interact/index.php/topic,119385.msg898426.html#msg898426

Anyway this was copied from SoT right now. This is how I use it for my templates. You may or may not have something different  :)

Audio Track Count RAW;Audio Language;Audio Tracks RAW;Extras;Subtitles;Video Codec;HDR Format RAW;Aspect Ratio;Codec Id

ID;Language;Format;Title;Language;Format;HDR format;Display aspect ratio;Codec ID

Audio;Audio;Audio;Audio;Text;Video;Video;Video;Video
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 07, 2021, 08:55:41 am
I am attaching images of the HD Audio and Audio Codec fields that seem to me to be correctly populated.

The image file is located in C:\Program Files\J River\Media Center 28\Data\Tooltip\Audio\Codec

and this is the expression in TECH ICONS:
Code: [Select]
Save(height="40", v_TECH_ICON_HEIGHT)/

<br><img src="tooltip:Container//[File Type]" [v_TECH_ICON_HEIGHT]>/

If(IsEqual([Dolby Vision],1,2),
/     <img src="tooltip:Video//Definition//DolbyVision" [v_TECH_ICON_HEIGHT]>,
)/

/     <img src="tooltip:Video//Definition//[Definition]If(IsEqual([HDR],1,2),-hdr,)" [v_TECH_ICON_HEIGHT]>/
If(!IsEqual([AR-calculated],empty),
/     <img src="tooltip:Video//AspectRatio//[AR-calculated]" [v_TECH_ICON_HEIGHT]>,
)/
/     <img src="tooltip:Audio//Channels//[Channels]" [v_TECH_ICON_HEIGHT]>/
/     <img src="tooltip:Audio//Codec//[Audio Codec]" [v_TECH_ICON_HEIGHT]>/
If(!IsEmpty([HD Audio]),
/     <img src="tooltip:Audio//Codec//Replace([HD Audio],:,_)" [v_TECH_ICON_HEIGHT]>,
)/
If(!IsEmpty([Studios]),
/     Replace(ListMix2(<img src="tooltip:Studios////[L1]" [v_TECH_ICON_HEIGHT]>, 1, [Studios], 1;2),;,/ / / / / ),
)/
If(!IsEmpty([Publisher]),
/     <img src="tooltip:Publisher//publisher-ListItem([Publisher],0)" [v_TECH_ICON_HEIGHT]>,
)

Where am I wrong?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 07, 2021, 09:43:30 am
Can't spot any error right now. You could use clean in place of replace but shouldn't matter for atmos. I get atmos image with below code when file is under: Data\Tooltip\Audio\Codec\Atmos.png

Code: [Select]
Save(height="40", v_TECH_ICON_HEIGHT)/

<br><img src="tooltip:Container//[File Type]" [v_TECH_ICON_HEIGHT]>/

If(IsEqual([Dolby Vision],1,2),
/     <img src="tooltip:Video//Definition//DolbyVision" [v_TECH_ICON_HEIGHT]>,
)/

/     <img src="tooltip:Video//Definition//[Definition]If(IsEqual([HDR],1,2),-hdr,)" [v_TECH_ICON_HEIGHT]>/
If(!IsEqual([AR-calculated],empty),
/     <img src="tooltip:Video//AspectRatio//[AR-calculated]" [v_TECH_ICON_HEIGHT]>,
)/
/     <img src="tooltip:Audio//Channels//[Channels]" [v_TECH_ICON_HEIGHT]>/
/     <img src="tooltip:Audio//Codec//[Audio Codec]" [v_TECH_ICON_HEIGHT]>/
If(!IsEmpty([HD Audio]),
/     <img src="tooltip:Audio//Codec//Clean([HD Audio],3)" [v_TECH_ICON_HEIGHT]>,
)/
If(!IsEmpty([Studios]),
/     Replace(ListMix2(<img src="tooltip:Studios////[L1]" [v_TECH_ICON_HEIGHT]>, 1, [Studios], 1;2),;,/ / / / / ),
)/
If(!IsEmpty([Publisher]),
/     <img src="tooltip:Publisher//publisher-ListItem([Publisher],0)" [v_TECH_ICON_HEIGHT]>,
)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 07, 2021, 10:22:39 am
Resolved! The logo file had a space between Atmos and .png

The logos folder I had simply downloaded and moved under Data \ tooltip without paying attention to the details.

A curiosity: is this format not considered Atmos?

Code: [Select]
Audio # 3
ID: 4
Format: E-AC-3 JOC
Format / Info: Enhanced AC-3 with Joint Object Coding
Commercial name: Dolby Digital Plus with Dolby Atmos
Codec ID: A_EAC3
Duration: 54 min 30 s
Bit rate mode: Constant
Bit rate: 768 kb / s
Channel (s): 6 channels
Channel layout: L R C LFE Ls Rs
Sampling rate: 48.0 kHz

The HD Audio field remains blank
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 07, 2021, 11:43:08 am
Don't know if it is just named that way as a compatibility track inside actual atmos track. I don't know if EAC3 can hold atmos location data. I'm on 2 channel stereo  :P
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on September 07, 2021, 12:30:25 pm
Apparently it's a thing:
https://developerkb.dolby.com/support/solutions/articles/16000067758-what-is-dolby-digital-plus-joc-joint-object-coding-
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on September 07, 2021, 01:14:18 pm
Thats how you would find Atmos on Netflix, or in rare cases also on Blu-ray.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 07, 2021, 03:30:34 pm
So, dear lepa, you have to change the codes so that the Atmos logo appears in these cases too ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on September 10, 2021, 02:12:01 am
I use this expression to show how long the runtime of movie is: Size()

That expression will show the length like this: 1 hours 45 minutes

Is there an expression that will show the run time like this: 1h 45m
(I'm trying to get back some much needed space in my theater view)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on September 10, 2021, 02:42:04 am
I use this:
Code: [Select]
FormatDate(Math(([Duration,0]+30)/86400),H"h" mm"m")
The 30 added seconds is to round it up to the closest minute.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on September 10, 2021, 02:51:59 am
Man, you are fast and it works perfectly!

Have a great weekend!!!

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 19, 2021, 09:50:38 am
There are a couple of things that I have never given much importance to in the past and that I would like to fix now.

# 1: In the second line, the logo with the MPAA rating should appear before the length of the movie, year etc. but to me it appears only with the classic Movie template and not with the Movie Wip or others.

# 2: Following the instructions in a previous post, I managed to create the banner with the title of the film. However, I would like that if the banner is present, the title of the film is hidden otherwise you have 2 titles and the thing is annoying: is it possible?

Thank you  :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 19, 2021, 12:12:27 pm
#1 maybe you could attach your template here. It's hard to say blindly whats wrong. Probably Content Rating path or files doesn't match

#2 It's possible. With current system I think easiest to do this is semi-manual. Create new field like [HasLogoBanner] and set its value to 1 when you got the banner. Then you can branch out in the display row expression and choose to show banner or text depending on HasLogoBanner value.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 19, 2021, 01:07:23 pm
Thanks.

Now I'm leaving. Upon my return, mid-next week, I will attach the template.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 22, 2021, 03:51:02 am
My WIP template
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 22, 2021, 05:33:39 am
Then you can branch out in the display row expression and choose to show banner or text depending on HasLogoBanner value.

I don't think I can create / edit an expression :'( :'(
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 22, 2021, 10:58:26 am
Movie logos is set by default to be searched from:
tooltip\Movie Logos\Original Title (year)\logo.png
didn't want to spend too much time on this as I'm not gonna use it myself (as that same banner is usually seen on cover image anyway) so variable names and folders are not so thought. Banner size can be changed by modifying height but if bigger it eats quite lot of space from other elements. Banner show / not show is controlled by user created library field LogoExist field which I happened to still have so tested with that...


Cleaned up audio / sub languages. Languages are searched from tooltip\Language folder. Also attached example set of language images (can be replaced with your own images as long as image path remains the same).  Italian;English;German;Chinese;Danish;Finnish;French;Japanese;Korean;Norwegian;Spanish;Swedish are output as per your request earlier.

Added also new award image to ratings row

This is not the template I'm currently using but seem to be kind of mixture of many generations of my stuff so I'm not so keen to support it as such because it takes a lot of time
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 23, 2021, 03:57:05 am
@lello
btw your updated template is inside tooltip.7z. Images are also needed for example for the mpaa icons, if you don't have them already... the -grey postfix ones..
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 23, 2021, 04:57:52 am
Thanks lepa, now the banner and mpaa logo are displayed correctly.  :)

Unfortunately, however, the photos of the actors have disappeared.

In the PATH VARIABLES field there is now this expression
Code: [Select]
Save (tooltip: Actors // Clean ([Original Title], 3) / ([Year] /), v_CastImageLoc) Save (tooltip: Movie Logos // Clean ([Original Title] , 3) / ([Year] /) // logo, v_MovieLogo)
while in the WIP template I used before there was
Code: [Select]
Save (src = "tooltip: Actors //////// Clean ([Original Title], 3) / ([Year] /) //////// [L1] ", v_CastImageLoc)
I tried to make some changes, but it didn't get any good :(
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 23, 2021, 07:33:49 am
Did you use the template as it is or modded it yourself?

For me it is working the same as in the template you attached. See the picture first part from your older expression lower set of pictures are the cleaned up version (requires mc28 though with ListMix fix)

You should install zybex's Zelda if you already haven't as it is much more easier to debug expressions with it as you can see eg the filepaths for the images.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 23, 2021, 12:28:16 pm
Fixed updating from v55 to v66.  ;D

Thanks lepa
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 05, 2022, 09:47:12 am
Been toying today with some simplistic views for movies (because I don't want to go out to plough all the snow out of the way... )
Don't particularly like the icons here but at least for now they are still there. Scrolling down will reveal more things like extra audio info and other links and extras.

Anyway here's the main screen.

E: smaller icons seem to work better. maybe they could be mono color also
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on February 06, 2022, 05:18:27 am
Interesting, I personally prefer the first solution
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on April 04, 2022, 01:07:37 pm
Played a little with IsPlaying() to create info template which shows only for audio file and only when it is playing. Kind of substitute for normal track info. It only shows clean basic data when entered or song changes. More information like lyrics and stuff can be seen if I scroll view down. If that song is not playing then normal theater view album template is used which shows more stuff on "front page" also.
Rule:
Code: [Select]
([=IsPlaying()]=[1] [Media Type]=[Audio])
Attached some examples of "track info" template with and without album art
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on July 07, 2022, 01:33:40 am
Quick question,
I want to show a @ sign in the Theater view expression to display when the movie is in ATMOS or DTS:X.
I can show the full name Atmos or DTS:X simply by adding [HD AUDIO, 1] to the expression, but as characters are limited in Theater view I would like to replace the full name with an @ sign.

and a bonus request regarding Definition.
The [Definition, 1] field are as follow: 480p, 576p, 720p, 1080p, 2160p

Is it possible to have those translated in the Theater view expression to display this instead:
IF 480p or 576p show SD
IF 720p show HD
IF 1080p show FHD
IF 2160p show UHD


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on July 07, 2022, 02:56:56 am
Both easily done with ifcase()

- sent from my computer, but I'm lazy today
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on July 07, 2022, 05:25:26 am
Thanks zybex,
I got it to work quite nicely with the Definitions.

Code: [Select]
<b><font color="#ffd500" "size="70">[IMDb Rating, 1]<//b> <b><font color="#0f55ff" "size="70">IfCase([Definition, 1], 2, 480p, SD)<//font><font color="#0f55ff" "size="70">IfCase([Definition, 1], 2, 576p, SD)<//font><font color="#0fffb9" "size="70">IfCase([Definition, 1], 2, 720p, HD)<//font><font color="#ffb90f" "size="70">IfCase([Definition, 1], 2, 1080p, FHD)<//font><font color="#ff0f55" "size="70">IfCase([Definition, 1], 2, 2160p, UHD)<//b><//font> <font color="C0C0C0" "size="70">[Year, 1]<//font> <b><font color="#ffd500" "size="70">FormatDate(Math(([Duration,0]+30)/86400),H"h" mm"m")<//font> <font color="#ffb90f" "size="30">[HD AUDIO, 1]<//b><br><b><font color="ffffff" "size="60">[Name, 1]<//b><//font>
However I didn't get the Atmos to @ to work.
I do not know the correct mode value, I've tried a few but didn't get it to work.

Code: [Select]
IfCase([HD Audio, 1], 1, Atmos, @, DTS:X, X
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on July 07, 2022, 06:39:12 am
Try mode 8:
IfCase([HD Audio], 8, Atmos, @, DTS:X, X)


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on July 07, 2022, 07:29:50 am
Congratulations on getting to a working expression by yourself! That's the important thing here, so please take the following as "constructive criticism"  :)

Your first expression as a couple three some many a couple of issues. Some are specific to MC, others are XML formatting which MC mostly ignores. I wish Chrome was as forgiving of bad XML formatting as MC :-X
Here's a list:

- mismatched closing tags. Note that when you use <​font><​b>, you need to close them in reverse order - <​/b><​/font>
- extra double-quotes on "size="70"
- missing # in some color codes
- cascaded <​font size=...> tags. Note that when you have <​font size=70>text<​font size=70>more text<​/font><​/font> , "text" will be printed at 70% size, and "more text" will be printed at 70% x 70% = 49% size. The "size" is always relative to what the current size was previously. Perhaps that's what you want, but if not you need to have just one size=70 (and close it at the end), or you need to close the first <​font> before opening another one.
- no need to keep opening and closing <​b> if you want everything Bolded - just open once at the top and close at the end.
- <​br> should have a closing slash <​br/>
- using ifcase() mode 2 (numeric) to compare alphanumeric strings (480p is not a number). You should use mode 1 or 8


This page formats the expression as a human-readable thing - note all the red/yellow X marks for problems:
https://jsonformatter.org/xml-formatter/5cef64

This is the fixed expression (I'm not sure if you really wanted the size=70%*70% thing):
https://jsonformatter.org/xml-formatter/368c03

Pasted here in case the link dies (fix double-slashes before using!):
Code: [Select]
<b>
   <font size="70">
      <font color="#ffd500">[IMDb Rating]</font>
      <font color="#0f55ff">IfCase([Definition], 8, 480p, SD, 576p, SD)</font>
      <font color="#0fffb9">IfCase([Definition], 8, 720p, HD)</font>
      <font color="#ffb90f">IfCase([Definition], 8, 1080p, FHD)</font>
      <font color="#ff0f55">IfCase([Definition], 8, 2160p, UHD)</font>
      <font color="#C0C0C0">[Year]</font>
      <font color="#ffd500">FormatDate(Math(([Duration,0]+30)/86400),H"h" mm"m")</font>
   </font>
   <font color="#ffb90f" size="30">IfCase([HD Audio], 8, Atmos, @, DTS:X, X)</font>
   <br/>
   <font color="#ffffff" size="60">[Name]</font>
</b>

Single line (with double-slashes):
Code: [Select]
<b><font size="70"><font color="#ffd500">[IMDb Rating]<//font>  <font color="#0f55ff">IfCase([Definition], 8, 480p, SD, 576p, SD)<//font><font color="#0fffb9">IfCase([Definition], 8, 720p, HD)<//font><font color="#ffb90f">IfCase([Definition], 8, 1080p, FHD)<//font><font color="#ff0f55">IfCase([Definition], 8, 2160p, UHD)<//font>  <font color="#C0C0C0">[Year]<//font>  <font color="#ffd500">FormatDate(Math(([Duration,0]+30)/86400),H"h" mm"m")<//font><//font>  <font color="#ffb90f" size="30">IfCase([HD Audio], 8, Atmos, @, DTS:X, X)<//font><br//><font color="#ffffff" size="60">[Name]<//font><//b>
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on July 07, 2022, 08:11:38 am
Wow, this is great and thank you for your time.
I appreciate it.

I will keep this information and go over my other formatting as well, as I'm sure I have made several XML mistakes in the past.  ;D


Thanks again and have a great summer!
Over here it's raining and I got caught up in watching the latest Dr Strange movie.

I had to modify your code as well ;o)

I had to change this
Code: [Select]
</font></b> to this
Code: [Select]
<//font><//b>
and change the "8" to "1" when doing the Definition.


Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on July 07, 2022, 08:21:22 am
Ah, indeed, I removed the double slashing for the XML formatting site. Fixed the single-line above.
ifcase mode 8 (contains) should work just as well as 1 (equals).

A great summer to you as well, raining or not :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: arcspin on July 07, 2022, 08:27:22 am
You are correct, the "8" did work.
Just tested again
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 10, 2022, 12:58:22 pm
I have some mkv in Dolby Vision and while the OSD detects it correctly, reporting the words "System Dolby Vision", the DV logo does not appear: what could it depend on?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 14, 2022, 01:49:00 pm
Pretty hard to say without more information. You could paste your movie template here as eg txt file for investigation
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on September 15, 2022, 02:16:50 am
Certainly. I am attaching the Movie Template, the mediainfo of 2 films and the OSD which shows the DV
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on September 15, 2022, 12:15:25 pm
Don't know about Bond that what field should be read there to consider it as DV.
maybe Matrix coefficients                      : BT.2020 non-constant but do not know...

My fields for handling HDR
[HDR Format (MediaInfo)] <== base field SoT / MCUtils writes MediaInfo's "Video.HDR format" field to this
[HDR Format] <== calculated from above base field which ouputs all HDR types as string
Code: [Select]
ListClean(
ListClean(
If(IsEqual([HDR Format (MediaInfo)], Dolby Vision,8),Dolby Vision;,)/
If(IsEqual([HDR Format (MediaInfo)], HDR10+/ ,8),HDR10+;,)/
If(IsEqual([HDR Format (MediaInfo)], HDR10/ ,8),HDR10;,)/
If(IsEqual([HDR Format (MediaInfo)],no-hdr10,8),HDR;,)/
,3)/
,1)

Following are calculated from above [HDR Format]
[HDR] <== calculated field 1/0 if there is hdr/hdr10
Code: [Select]
ListContains([HDR Format],HDR)[HDR10+] <== calculated field 1/0 if there is hdr10+
Code: [Select]
ListContains([HDR Format],HDR10+)[Dolby Vision] <== calculated field 1/0 if there is dolby vision
Code: [Select]
If(ListContains([HDR Format],Dolby Vision),1,)
Not sure/don't remember if your fields differ much from that system.

Could you post your HDR Format/HDR Format (mediainfo) field values for the Dune if you got those fields. I think it should work but i don't have any discs with separate DV layer (two Video sections in mediainfo) so can't verify it
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: ndgame on November 18, 2022, 10:00:33 am
Sorry for the stupid question, but I have been reading through this post because I am wanting to customize my view as well.  However being new to JRiver I have no clew where all these scripts are being inputed at lol.

Is there any document that goes over where and how to do this stuff?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on November 18, 2022, 11:14:10 am
There is no one stop documentation but info is gathered from the various wikis, feature thread and experimenting.

I think that in the first post there is a link how to import theaterview screen some one might have posted here. Also there is mentioned in the THEATER VIEW MOVIE TEMPLATES part the path where to find the theaterview tiles.

It isn't plug and play though to use those templates as to get it working right you need to have same fields with data as the template in question is using.

There also isn't any standard for field names but different people might have preferred different naming conventions. I think that I have tried to open the fields (name, usage, where to get the data) what I'm using at some point of this thread.

To get started you could see does this thread have something you like and the we could start to try to replicate that in your system. I can try to help you get going then when time permits..  :)
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Hendrik on November 18, 2022, 02:43:39 pm
We are also looking into updating the default templates with some ideas from here, and maybe extending some data gathering to accomodate that. And while we may not go all out crazy like some people here did, it should at least give a bit nicer default experience.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Purecut on January 30, 2023, 12:05:54 pm
Special fields (or stock populated outside MC) used:

ACTOR IMAGES
[Original Title] # Stock # Populated by MCUtils / ZRatings
[Cast Images] # User # Manual 1/0. Uses different folder to get images when set to 1 (0 default tmdb images, 1 character images are available)

GENERAL
[MPAA Rating] # Stock # Populated by MCUtils / ZRatings

[IMDb Votes] # User # Populated by ZRatings
[Popularity] # User # Populated by MCUtils / ZRatings

[Rotten Tomatoes] # User # Populated by MCUtils / ZRatings
[IMDB Rating] # User # Populated by MCUtils / ZRatings
[TMDB Rating] # User # Populated by MCUtils / ZRatings
[Version] User # String e.g. "Director's Cut"
[Genre] # User # Populated by MCUtils / ZRatings
[Country] # Stock # Populated by MCUtils / ZRatings
[Watched] # User # Calculated
Code: [Select]
If(IsRange([Bookmark Percent], 0-9)/
    ,If(Compare([Number Plays],>,0),☑,)/
    ,If(IsRange([Bookmark Percent], 10-89),[Bookmark Percent]%,☑)/
)

[Description] # Stock # Populated by MCUtils / ZRatings
[Director] # Stock # Populated by MCUtils / ZRatings
[Screenwriter] # Stock # Populated by MCUtils / ZRatings
[Actors] # Stock # Populated by MCUtils / ZRatings

TECH
[HDR Format RAW] # User # Populated by SoT

[HDR Format] # User # Calculated
Code: [Select]
ListClean(If(IsEqual([HDR Format RAW],no-hdr10),HDR,If(IsEqual([HDR Format RAW], Dolby Vision,8),DV;,)If(IsEqual([HDR Format RAW], HDR10+/ ,7),HDR10+;,)If(IsEqual([HDR Format RAW], HDR10/ ,7),HDR10;,)If(IsEqual([HDR Format RAW],no-hdr10,8),HDR;,)If(IsEqual([HDR Format RAW],hdr10,7),HDR10,)),3)
[Dolby Vision] # User # Calculated
Code: [Select]
ListContains([HDR Format],DV)
[AR-Calculated # User # Calculated
Code: [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 Tracks RAW] # User # Populated by SoT

[HD Audio] # User # Calculated
Code: [Select]
If(IsEqual([Audio Tracks RAW],MLP,8),Atmos,)If(IsEqual([Audio Tracks RAW],DTS XLL X,8),DTS:X,)
[Studios] # Stock # Populated by MCUtils / ZRatings
[Publisher] # Stock # Populated by MCUtils / ZRatings

[Audio Codec] # User # Calculated
Code: [Select]
IfCase([Compression],8,dts-hd,dts-hd,eac3,dolby digital,pcm,pcm,mp3,mp3,vorbis,vorbis,aac,aac,dts,dts,ac3,dolby digital,truehd,truehd,opus,opus,flac,flac,mp2,mpeg)
[Definition] # User # Calculated
Code: [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)
[HDR] # User # Calculated
Code: [Select]
If(!IsEmpty([HDR Format]),1,0)
LINKS
[Movie Series] # User # Populated by MCUtils / ZRatings

[LINK_Genre_Movie]
Code: [Select]
If(IsEqual([Media Sub Type], Movie),Movies at Genre Replace(ListSort(ListLimit([Genre],2)),;,/ /// ),)
[LINK_Director]
Code: [Select]
If(IsEqual([Media Sub Type], Movie),Directed By ListItem([Director],0),)
[LINK_IMDb_Rating]
Code: [Select]
Movies Rated Math(Int([IMDb Rating])) in IMDb
[LINK_Year_Movie]
Code: [Select]
If(IsEqual([Media Sub Type],Movie),Movies Released in FormatDate([Date,0],year),)
Don't know if i missed or forgot something as this is manual work to share

E: SOT conf:

Code: [Select]
Audio Track Count RAW;Audio Language;Audio Tracks RAW;Extras;Subtitles;Video Codec;HDR Format RAW;Aspect Ratio
Code: [Select]
ID;Language;Format;Title;Language;Format;HDR format;Display aspect ratio
Code: [Select]
Audio;Audio;Audio;Audio;Text;Video;Video;Video

You are writing here that you calculated the the Dolby Vision/ HDR from the [HDR Format RAW], That works and gives for Dolby Vision and HRD the value 0 or 1 back and you input this into the fields via calculating.
1. Is it possible to change the 1,0 through yes, no and the next is there a possibility to select a checkbox for yes or no. Do MC handels checkboxes for the Tag-Window?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on January 31, 2023, 05:50:27 am
https://wiki.jriver.com/index.php/Library_Fields
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Purecut on January 31, 2023, 06:13:28 am
Thanks, I know that there can be used a "Checkbox" in the fields section, but this is only for the input. When I leave the field I see 1 or 0 as value. I'm asking if it is possible to see a marked checkbox instead of a 0 or 1. In normal a 0 or 1 will be used for changing the status of a checkbox. In this case the checkbox will be used for the input and the display is 0 or 1.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: EnglishTiger on January 31, 2023, 09:28:55 am
Thanks, I know that there can be used a "Checkbox" in the fields section, but this is only for the input. When I leave the field I see 1 or 0 as value. I'm asking if it is possible to see a marked checkbox instead of a 0 or 1. In normal a 0 or 1 will be used for changing the status of a checkbox. In this case the checkbox will be used for the input and the display is 0 or 1.

In Tools >> Options >> Library & Folders >> Manage Library Fields setting the Edit Type for that field/tag to Check will display a checkbox for that field which will be empty when the field contains 0 and ticked when it's 1
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on January 31, 2023, 09:40:03 am
Checkboxes are shown in Views but not in the tag editor panel. Not sure if that's a bug or a feature.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: PPMPPM on February 14, 2023, 04:22:44 am
Great post. In past few days I worked with Custom Theater View with some success. I choose to use Actors [Role] option in ZRating to use in Actors thumbnails creation. But now view by Actors in Theatere view don't link Movies by Actor but each role is another position in main view (not grouped by Actor). I try to use Calculated Field to manage it but it return single value not a list. So only first or second or another (wchich I choose) will be displayed. Is there any way to make it work, like it work before?

I can make list of Actors (without role) by sentence
ListMix(Extract[2,[L1],/ [),1,[Actors],1;2;3;4;5;6)

or single Actor
Extract[2,[Actors,1],/ [)
Extract[2,[Actors,2],/ [)
... 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 14, 2023, 05:52:05 am
You might need to tell MC that constructed expression result is a list
Code: [Select]
ListMix(Extract(2,[L1],/ [),,ListLimit([Actors],6))&datatype=[List]And use that expression as a category in your view instead of [Actor]
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: PPMPPM on February 14, 2023, 11:37:59 am
Thanks. So simple.
It works :) But it takes some time for initial calculations with large database.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 14, 2023, 11:49:53 am
I have actually handled this by using two actor fields: one with role names and other without
[Actors]
[Actors (alt)]
Then I don't at least doesn't need any parsing inside the field.

You can also affect speed with filtering order. Not sure if there is anything you can do in this case but in general if you can filter the group of affected files to smaller amount before doing anything time consuming it can speed up the process significantly I think
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: PPMPPM on February 15, 2023, 03:24:35 am
Another great suggestion. But in my workflow it need another step. ZRating collect Actors with Role (ant other movie metadata). Then SoT (to collect metadata of files). And I'll need another one to copy formatted data from [Actors] to [Actors without Role] field - via formatted copy fields. Is there automated way to do this when movie data is collected or in ZRating?

I hope that new version of JRiver (.60) will collect proper aspect ratio of files. Then I'll pass using SoT.

Thanks anyway for help.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: zybex on February 15, 2023, 03:45:41 am
ZStats can do that:
https://yabb.jriver.com/interact/index.php/topic,131845.0.html

You can enable just the [RunBefore] section with "RunExpressions=1", and put in something like:
setField(Actors, ListMix(Extract(2,[L1],/ [),1,[Actors],1;2;3;4;5;6))

You can run ZStats manually when needed, or with a windows scheduled task.

Also, note that you can have ZRatings write the actor names to [Actors] and the Roles to a separate field like [ActorRoles]. It's in Settings->Field Mapping.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 15, 2023, 03:54:18 am
I hope that new version of JRiver (.60) will collect proper aspect ratio of files. Then I'll pass using SoT.
Yes, there will be native MC crop analysis . Though not yet published and not yet finalized I think that SoT mediainfo part can retire for most of the users at least.

Also, note that you can have ZRatings write the actor names to [Actors] and the Roles to a separate field like [ActorRoles]. It's in Settings->Field Mapping.
ZStats is great and deserves this little advertisement. In this particular case I think that quoted solution is the better one though as it only require one manual step from user and database is in sync right away
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: PPMPPM on February 16, 2023, 04:01:17 am
Thanks all. I managed it. For every movie I make catalog ($movie ($year)) in ZRating (with cast&crew thumbnail creation with role), and write in JRiver Actor field only name (without Role). There is no need to change code for this in JRiver.

Sorry for too many questions but I can't make work another one.

I want to use Links to Actors like one suggested by lepa - for example for director
field: LINK_Director - expression: If(IsEqual([Media Sub Type], Movie),Directed By ListItem([Director],0),)
and display via LINK_Director field

If I create for specified Actor:
field: LINK_Actor1 - expression: If(IsEqual([Media Sub Type], Movie),Movies with ListItem([Actor],0),)
it display movies with this actor but with only situation when this actor is listed first in another movies. For example Tom Hanks play in 20 movies in my collection, but when is listed as second actor (with Field LINK_Actor2), this expression shows only 4 (because in my movies he is listed second 4 times). Is there any solution for search in all fields? I hope someone will understand my poor english :)

Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 16, 2023, 07:01:20 am
Good to hear that you got your actors sorted  8)

Links unfortunately are limited currently like that. Also as series scrape mix guests and regulars to same actor fields so first entry might be some guest nobody. There has been some movement on this front so fingers crossed that in future one can use individual item in the list as link source.
This is of course possible with Spotlight already but its UI is pretty hard coded AFAIK so it doesn't always integrate that well.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: PPMPPM on February 16, 2023, 08:31:50 am
Thanks. Another, I think related, problem is actors sorting.

Now in my database are around 4000 actors. Listing it all in theater view is not practical - scrolling from A to Z takes half a minute :) Unfortunatelly "Search engine" not work at Actor level but only in movie level. So I try to filter by first letter. Its simple - I get alphabet view. But in next level when I sort by Actor it's not sorted by only actors started by "A" but with all actors in movies narrowed by first step. So there are actors with selected first letters but with many others around :) Its a partial solution, because list is shorter, but not ideal.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: Matt on February 16, 2023, 10:47:21 am
The list of actors is sorted by default, but you can promote an actor up or down the list by right-clicking.  We could make a "Move to Top" right-click option if it would help?  Thanks.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: PPMPPM on February 16, 2023, 03:19:50 pm
After few hours of working with sample templates from this topic i created my own.
Not very original but with all information I need.

Without Zelda it cannot be easily done. But some programming skills and patience in testing is needed :)
Thanks all for help. Great program for playing and organizing all my multimedia.
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on February 16, 2023, 04:08:15 pm
Good work and thanks for sharing :)
I've been finalizing my own post for new templates for movies and series now that MC's new video analysis is released. There is no object audio or cropping analysis yet but it is coming
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: JimH on February 16, 2023, 04:46:56 pm
lepa,
Thanks again!  I've split your post to a new thread and will lock this one soon.

https://yabb.jriver.com/interact/index.php/topic,135179.msg936142.html#msg936142
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: jespermart on May 19, 2023, 06:25:27 am
After few hours of working with sample templates from this topic i created my own.
Not very original but with all information I need.

Without Zelda it cannot be easily done. But some programming skills and patience in testing is needed :)
Thanks all for help. Great program for playing and organizing all my multimedia.
Is it possible you could post your template.txt ?
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: PPMPPM on May 31, 2023, 04:09:07 am
It's possible, but without many other work to do by yourself it's useless.

I made some changes in templates from this thread to work in my specific system.
You must learn to use ZRating (for collect metadata from OMDB and TMDB), Zelda (for a lot easier script editing), edit Custom Fields (I use a lot of new one), and manage how to automatically prepare photos of actors with text. You also need a lot of graphic assets in proper directories.

Making tutorial for all of this is difficult and take a lot of time. I don't have it.
But all information needed for it is on this thread :) 
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lepa on July 15, 2023, 05:39:21 am
Released new NoPoster template with poster option  ;D
https://yabb.jriver.com/interact/index.php/topic,135179.msg946024.html#msg946024
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: JimH on July 21, 2023, 08:56:11 am
Just to point out that this thread has passed 100,000 views now!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: tzr916 on July 27, 2023, 12:48:58 pm
Oh, maybe it's time this gets rolled into MC32  ;D for us regular folk who can't begin to understand expressions or coding. Imagine Tools > Options > Theater View > click the box to enable Custom Tooltips!
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: jmone on July 28, 2023, 08:33:43 pm
I agree 👍
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: lello on July 30, 2023, 11:39:07 am
Me too ;D
Title: Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
Post by: JimH on August 10, 2023, 02:44:24 am
Closing this now.  A newer thread is here:
https://yabb.jriver.com/interact/index.php/topic,135179.0.html