INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 4 [5] 6 7 8 9 ... 18   Go Down

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

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #200 on: September 08, 2019, 05:50:37 pm »

Kind of like this one Moe, I may have to "borrow" some tidbits  ;D
  • I like the Album review, but not a fan of lyrics.
  • 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 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 like the use of the Total Tracks field both at the top and in the track number field
  • Like the use of the double bars to separate fields (||)
  • Did you pull the Band Members data from the Discogs Artist ID tag?
  • Kinda thinking I like the color cyan for the track, duration, genre, date and media type line
  • Love your allmmusic logo.  Where did you find it?
  • Care to share how you did the Allmusic star rating instead of numbers?
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #201 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



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>

Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #202 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 :)
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #203 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? 
Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #204 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?
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #205 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.
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #206 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.
Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #207 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?
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #208 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 which has a pretty clean and simple band member section.  They also deal with former members pretty well.  Of course, I don't think they have an API and I'd never even heard of this place before. 
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #209 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.



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
Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #210 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
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #211 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.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #212 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..
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #213 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.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #214 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
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #215 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.
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #216 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).



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.
Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #217 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??
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #218 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.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #219 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.
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #220 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>


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



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...
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #221 on: September 15, 2019, 08:04:32 pm »



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.
Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #222 on: September 16, 2019, 12:41:40 am »

+1

But I suspect the placement is controlled by the skin
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #223 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.



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>
Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #224 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]?
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #225 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"
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #226 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]?
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #227 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.
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #228 on: September 17, 2019, 09:04:30 pm »

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

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #229 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 :)
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #230 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.
Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #231 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.
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #232 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 explains the problem way better than I could.
Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #233 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 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]),)
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #234 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 :)
Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #235 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?
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #236 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 .*\[(.*)\]
Logged

thorsten

  • World Citizen
  • ***
  • Posts: 196
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #237 on: September 21, 2019, 01:17:43 pm »

You crazy crazy boys  ;D ;D ;D




(Keep doing this!)
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #238 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
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #239 on: October 03, 2019, 01:22:31 pm »



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.

 
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #240 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  :)
Logged

MGD_King

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 548
  • It's not easy being me, but it sure is fun!
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #241 on: October 03, 2019, 02:33:16 pm »



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.
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 391
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #242 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!
Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

MGD_King

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 548
  • It's not easy being me, but it sure is fun!
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #243 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
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #244 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.
Logged

Absinthe

  • Guest
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #245 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?
Logged

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #246 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 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.
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 391
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #247 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
Logged
Hardware: Intel Core i5-8600K 16GB RAM, ASUS GeForce RTX 2080 8GB DUAL OC
Software: Windows 10 Home 64-bit, version 2004, JRiver MC 29, MadVr 0.92.17 (Beta 113), NVIDIA driver 457.09
Projector: JVC DLA-I X5500 (RS420, X570R) -
Screen: DNP Supernova 08-85
Processor: Anthem AVM 70
Power amp: XTZ A2-400 for Front & Center - XTZ A2-300 for Surround & Height channels
Speakers: Arendal 1723 S Monitor for Front & Center, Linn Unik for Front Height, Rear Height, Surround & Surround back. Elipson Planet M for Top Middle.
Sub: Arendal 1723 1S

Moe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 718
  • Hi
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #248 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>)),)
Logged

arcspin

  • Galactic Citizen
  • ****
  • Posts: 391
Re: Create Custom Tooltips/TheaterView Screens Using Dolby etc. Logos
« Reply #249 on: October 05, 2019, 02:45:00 pm »

YOU ARE THE MAN!
This works just perfect.

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