INTERACT FORUM

Windows => JRiver Media Center 32 for Windows => Topic started by: lepa on February 16, 2023, 04:18:35 pm

Title: Custom Tooltips/TheaterView Screens
Post by: lepa on February 16, 2023, 04:18:35 pm
Split from the Original Thread (https://yabb.jriver.com/interact/index.php/topic,119385.0.html)

Here you can find custom TheaterView (& Tootips) screens using MC's video analysis fields as a base and extending that with data scraped with MCUtils (https://yabb.jriver.com/interact/index.php/topic,100449.0.html) and ZRatings (https://yabb.jriver.com/interact/index.php/topic,125575.0.html) (Thanks guys for these tools!)

Please read Original Thread (https://yabb.jriver.com/interact/index.php/topic,119385.0.html) for some basic information how to do these. Some of the info there might be outdated though but core stuff still stands

This thread is not intended for my monologues so feel free to share your own stuff here also. Would be cool if you do!

Movie Templates:
NoPoster (100%) template to v1.3 (https://yabb.jriver.com/interact/index.php/topic,135179.msg946024.html#msg946024)
Movie (Actor: Names) v1.2.0 (https://yabb.jriver.com/interact/index.php/topic,135179.msg940349.html#msg940349)
Moe's Movie Template (https://yabb.jriver.com/interact/index.php/topic,119385.msg838983.html#msg838983)

Series Templates:
Series (no image) Template (https://yabb.jriver.com/interact/index.php/topic,135179.msg936146.html#msg936146)

Others Stuff:
FanArt "integration" using MCUtils (Thanks Moe for the heads up of the new MCUtils goodie) (https://yabb.jriver.com/interact/index.php/topic,135179.msg939558.html#msg939558)


EDITS:
14.7.2023 Added link to fanart.tv post
14.7.2023 Updated NoPoster template to v1.3
12.7.2023 Restructure first post to generalize it a bit so the maintenance will be easier
23.4.2023 tooltip images 1.3.0: added dot.png separator
19.2.2023 tooltip images 1.2.1: forgot to add video codec images
19.2.2023 Updated to 1.2: Fixed hopefully aspect ratio icon to handle new format + anamorphic (MC 30.64)
17.2.2023 Updated to 1.1: added Recommendations (from MCUtils), Atmos/DTS:X support for logos (MC 30.64), aspect ratio logo support (MC 30.64). Updated tooltip images (atmos images)




OLD STUFF BELOW.... Trying to re-structure this a bit after the thread was splitted

Movies (No Cover) v1.2

My new screen templates (template.txt and tooltip images attached) to accompany MC's new native video analysis. Lots of clean ups and re structuring has been done after the previous one. Next gonna update the ones with actor images and cover art when time permits

Everything in the template should work fine out of box (if you do the Video Analysis) but you'll get something extra by using the following fields

Created for Zoom level 80%

Configuration:
Change your preferred main and secondary language in the CONFIGURATIONS section in the file info template (see the image). It will change the flag to indicate if there are subtitles or audio in your native language. If not, secondary language subtitles are checked and flag for that is checked. Defaults to Finnish and English. "Hack" font is used when fixed size font is needed

MCUtils / ZRatings needed:
[Tag Line]
[IMDb Description (short)]
[TMDb Rating]
[IMDb Rating]
[Rotten Tomatoes]
[Awards]
[Watched]
[Movie Series]
[Recommendations]

User filled fields:
[Distributor]
[Publisher]

Calculated LINK fields:
[LINK_Extras_Movie]
Code: [Select]
If([NoExtras],,If(Or(IsEqual([Media Sub Type],Extras),IsEqual([Media Sub Type],Movie)),EXTRAS for [Name] /(FormatDate([Date,0],year)/),))[LINK_Year_Movie]
Code: [Select]
If(IsEqual([Media Sub Type],Movie),Movies released in 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)),;,/ /// ),)[LINK_Star]
Code: [Select]
Movies starring ListLimit([Actors],1)[LINK_IMDb_Rating]
Code: [Select]
Movies rated Math(Int([IMDb Rating])) in IMDb
Title: Re: Custom Tooltips/TheaterView Screens
Post by: JimH on February 16, 2023, 04:48:10 pm
Reserving this for links.

ZRatings:  https://yabb.jriver.com/interact/index.php?topic=125575.0

MCUtils:  https://yabb.jriver.com/interact/index.php?topic=100449.0

SOT (Swag of Tools):  https://yabb.jriver.com/interact/index.php/topic,106802.0.html

Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on February 16, 2023, 04:53:26 pm
Series (no image)

Created for Zoom level 80%

As with movies everything should work out of box but following things gives little extra

Configure:
Change languages to your liking in the file info templates configuration part
Save(Finnish, v_PRIMARY_LANG)/
Save(English, v_SECONDARY_LANG)

Calculated:
[Watched] - Not sure if this is stock or user created...

MCUtils:
[TMDb Rating] (If not exist it tries to use MC's [Critic Rating])
[Certifications] (Tries stock field [access rating] first)
[Guest Stars]
[Creator]
[Director]

LINKS:
[SeriesSeason]
Code: [Select]
[Series]  |  Season [Season]
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on February 22, 2023, 03:02:53 pm
Movie theme #2 updated for MC30
Cover image and critic ratings, similar movies and audio tracks listed. Will later attach template for those who might be interested to construct this
Title: Re: Custom Tooltips/TheaterView Screens
Post by: arcspin on February 26, 2023, 02:46:53 am
Wow,
The similar movies section looks really nice.
Looking forward to implement that into my Theater View.


Title: Re: Custom Tooltips/TheaterView Screens
Post by: Moe on April 08, 2023, 04:06:09 pm
Just wanted to give a heads up that McUtils has been updated, it can now get images from Fanart.tv (http://www.Fanart.tv).  This allows you to get Logos (my favorite), banners, posters, backgrounds and more.  Works for both TV and movies.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: arcspin on April 09, 2023, 02:16:01 am
Thank you Moe for this update.
I will for sure look into this.
Any tips how to get this up and running?

Lepa, any eta for a template how to set up similar movies?


Best regards,
arcspin
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Moe on April 09, 2023, 04:56:16 pm
It's a pretty simple config for this.  So, you set up your config which is basically saying where you want the files saved and what name you want them saved as.  Then running the command to get the image that you want.

As an example, here is a part of my config file
Code: [Select]
#Use this path for testing
        #download_location => '$DESKTOP/mcutils_data/fanart_images',

#Use this path for production
download_location => '[FanartPath]',


            movies => {

                # default max number of movie category images
                max_images => 1,

                categories => {
                    hdmovieclearart => {
                        # overrides default max_images above for this category
# max_images => 3,
                        # overrides the name of this image download name to "movie_hdca"
                    name       => 'clearart',
                    },
                    hdmovielogo     => {
name       => 'logo',
},
                    movieart        => {
name       => 'fanart',
},
                    moviebackground => {
name       => 'landscape',
},
moviebanner     => {
name       => 'banner',
},
                    movielogo       => {
name       => 'logo2',
},
                    movieposter     => {
name       => 'poster',
},
                    moviethumb      => { },
name       => 'thumb',
                },
            },
            tv => {
                # default max number of tv category images
                max_images => 1,

                categories => {
                    seasonthumb     => { },
                    hdtvlogo        => {
name       => 'logo',
},

That [FanartPath] field up above is a custom field the I created that saves the images into the correct folder for my setup.  It has this value:

Code: [Select]
regex([Filename (path)], /#(^[^\\]+?\\[^\\]+?\\)#/,-1,0)[R1]
Mine is more complicated than necessary, MrC simplified things after I had made that.  You can now tell the script where you want things stored for movies and TV separately, my custom field works for both movies and TV.

After your config is setup then you just run commands like these

Code: [Select]
pscriptor fanarttv --image hdtvlogo --type tv -VV
pscriptor fanarttv --image hdmovielogo --type movie -VV
pscriptor fanarttv --image movieposter --type movie -VV

Something new with this script you can substitute the type with "fromsubtype"  which will use the Media Sub Type to determine if your file is a movie or TV show.  This allows you to select both movie and TV shows at the same time and then you can run something like this

Code: [Select]
pscriptor fanarttv --image moviebanner --image tvbanner:3 -FF type fromsubtype
Which will pull down however many moviebanners you've set in your config for any movie files selected and pull down 3 tvbanners for any TV shows selected.



Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on April 22, 2023, 09:02:50 am
Movie (Actor: Names) v1.2.0

- Created for zoom level 80%
- "Hack" font is used when fixed size font is needed

Configuration:
v_PRIMARY_LANG
  - Set primary sub language

v_SECONDARY_LANG
  - Set secondary sub language

v_USE_RECOMMENDATIONS_IMAGES
  - Use images for recommendations

v_RECOMMENDATIONS_IMAGES_ZSTATS
  - Recommendation data created with zstats
v_THUMBS
  - Use poster thumbnails ([Imagepath]-thumb.jpg)
v_RECOMMENDATIONS_SCRAPE_EXPIRY
  - How often (days) to query recommendations posters:
v_ACTOR_IMAGE_PATH
  - path to actor images
  field [Cast Images]: 1 / 0, cast images / generic actor images

fields used to show Recommendations:
[Recommendations]
 - scraped with MCUtils from TMDb
 - List of all recommendations for movie in question
 - format: "movie name [1999-12-17]"

[zsRecommendations]
 - calculated only every v_RECOMMENDATIONS_SCRAPE_EXPIRY days for snappier page open or when doing ZStats run
 - List of poster image paths for movies in your library to be shown. Only recommendations from your library is shown

[RecScrapedDate]
 - calculated when entering movie screen
 - date zsRecommendations was last constructed so the fieldquery is not done everytime when entering screen

[NameYear]
 - calculated field to collect poster image paths and ratings of the recommended movies
 - rule: [Name] /[FormatDate([date (release),0],yyyy-MM-dd)/]__[image file]__[IMDb Rating]__[TMDb Rating]


Other fields, image pack etc... see first post

E:
02.05.2023 V1.2.0 Changed NameYear calculation rule to support imdb and tmdb rating fields. updated zstats ini for offline calculation (https://yabb.jriver.com/interact/index.php/topic,135179.msg940970.html#msg940970)
02.05.2023 Added NameYear description
23.04.2023 v1.1 Added borders for recommendations posters. tooltip images 1.3 (first post) needed (Misc/Separator/dot.png)
23.04.2023 Added some documentation and Zstats ini file
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on April 23, 2023, 04:36:50 am
updated with some more documentation for recommendations system and template 2 to version 1.1: borders for posters.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on May 02, 2023, 10:07:19 am
Next stop: Adding ratings to similar/recommended movies. Todo: Replacing hard coded values with actual ratings
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on May 02, 2023, 12:00:26 pm
done  ;D
Movie (Actor_ Names) template updated to v1.2.0 which adds ratings for recommended posters
https://yabb.jriver.com/interact/index.php/topic,135179.msg940349.html#msg940349
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Moe on May 02, 2023, 12:26:53 pm
Quote
Movie (Actor_ Names) template updated to v1.2.0 which adds ratings for recommended posters
https://yabb.jriver.com/interact/index.php/topic,135179.msg940349.html#msg940349

I'm so out of the loop, I barely understand anything you've done in that linked thread  :-[.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on May 02, 2023, 12:31:58 pm
I barely understand that expression mess myself  ;D
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Moe on May 02, 2023, 01:04:17 pm
It's more the Configuration V_XXXXX stuff, I have no idea what is going on there.

Also, what do you mean by "Replacing hard coded values with actual ratings".  How does zStats come into play?

Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on May 02, 2023, 01:39:20 pm
Also, what do you mean by "Replacing hard coded values with actual ratings".
First proto was just using hard coded rating values to visualize the thingy. Now it fetches ratings from the library at the same time it fetches the poster paths



I'm using fieldquery() to get all movies from my library which are recommended for the movie to be shown and this threesome is saved to zsRecommendations field. As this is very slow operation I can use zstats to do this calculation in the background or off hours for every movie.
Alternatively it can be calculated per movie when entering the movie screen. It takes 1-2 seconds for movie in my library. Smaller libraries are quicker of course. So configure variables are e.g. for those choices.

I use invisible CONFIGURATION expression at the start of the screen so all the options are quick to be found.
e.g. if I want to use zstats to get me the recommendations fields list(posterpath__imdb rating__tmdb rating) I can set v_RECOMMENDATIONS_IMAGES_ZSTATS to 1

Other current options

Show subtitles tech icons flag. If primary is not found then show secondary
Code: [Select]
Save(Finnish, v_PRIMARY_LANG)/
Save(English, v_SECONDARY_LANG)/
Set 1 to show posters instead of textual recommendations
Code: [Select]
Save(1, v_USE_RECOMMENDATIONS_IMAGES)/Set 1 to not calculate posterpaths and ratings live. (zstats runs will update the data)
Code: [Select]
Save(0, v_RECOMMENDATIONS_IMAGES_ZSTATS)/Set 1 to use thumbnail posters for (if big images seems to slow it down). you need to have [image file]-thumb.jpg images for this so default is 0 so basic [image file] value is used
Code: [Select]
Save(0, v_THUMBS)/do FieldQuery() only every 30 days so the time consuming calculation is not done every time you enter the movie screen so there is no delay in x days
Code: [Select]
Save(30, v_RECOMMENDATIONS_SCRAPE_EXPIRY)/
Use normal actor images from tmdb or cast images for specific movie
Code: [Select]
If([Cast Images,0],
    Save(E://.MC Images//Movies//Clean([Original Title] /([Year]/))//Cast//, v_ACTOR_IMAGE_PATH),
    Save(E://.MC Images//Actors//, v_ACTOR_IMAGE_PATH)
)

Does that clear it?

I also use invisible varible definitions to create color schemes so i can change text colors and sizes etc from one place and only once
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Moe on May 02, 2023, 02:40:07 pm
It helps a little.

To be clear, my lack of understanding is due to my ignorance and not your explanations. 

I wasn't familiar with the fieldquery() function, I've never seen CONFIGURATION stuff before and I definitely have some reading to do about zstats.  As, I said, I am quite out of the loop ;D
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on May 02, 2023, 03:00:53 pm
I've never seen CONFIGURATION stuff before
That is just something I invented to help my maintenance as actor folders etc might be different for different user. so it is easier to save path to variable and create one place all these variables are set

ZStats is great to do time consuming calculations in the background or beforehand
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on June 12, 2023, 05:00:44 pm
Spend some time with music playing now screens (screen filtered audio + isplaying())
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on June 13, 2023, 08:18:37 am
@Lepa. I have a question related to your view. When you add the similar artist on that info panel, you have the image and belllow you have their names included. Can you share the expression or how you did to add their names bellow? I have something similar on my info for artist but i struggle to add their names bellow the image related to the specific artist.
Thanks.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on June 13, 2023, 12:42:57 pm
I map image path and artist name to a list (__ as separator). Of course you could parse artist from created image path later also but i find this more convenient. It is using IsMissing() so local folder for images is preferred so there won't be any hickups
Code: [Select]
Save(E:\.MC Images\Music\Artists\Square\, v_Square)/
Save(ListLimit(ListShuffle(ListClean(ListMix(If(IsMissing([v_Square][L1].jpg),,[v_Square][L1].jpg__[L1]),8,[AMG Artist SimilarTo]),3)),5), v_similar)

Then I parse v_similar map with listmix() to display images and second listmix() to ouput artist names using mono font on second row
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on June 15, 2023, 09:41:31 am
@Lepa. I'm trying to understand your expression but I don't think to understand everything there. Can you explain to mere human being :). So far I try to follow your steps with my fields but nothing.
That code is on a field or smartlist? What v_square mean?
Hopefully you will give me a hand with this.
Thanks
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on June 15, 2023, 11:03:44 am
v_square is just variable where i save file path for my square formatted artist images.
Path is assigned to it in the first line. I use is so actual expression where it is used is easier to read and also changing path is easier as it is separated from the longish expression.

Second Line is where I collect all the artist images which are similar to artist selected. Result i.e. artist image paths is saved to variable v_similar again so it is easier to user later when outputting images to screen

Code: [Select]
ListMix(If(IsMissing([v_Square][L1].jpg),,[v_Square][L1].jpg__[L1]),8,[AMG Artist SimilarTo]Parse through [AMG Artist SimilarTo] list and try to find artist image for every list item. If image is found then get filename for it and add artist name after it as sub list using __ as sub list separator. So this should return you something like
Code: [Select]
E:\.MC Images\Music\Artists\Square\The Beatles.jpg__The Beatles;E:\.MC Images\Music\Artists\Square\Bob Dylan.jpg__Bob Dylan
For the result I do ListClean to remove any empty items from the list and then ListLimit to 5 and save the end result to v_similar variable which now holds 0-5 Artist image path__Artist items

Then you can use v_similar in the next ListMix to output actual images to screen:
Code: [Select]
ListMix(<img src"ListITem([L1],0,__)">,8,[v_similar])and under it you can print artist names yet another list mix. Repeat x there to help you align the text. You can dim it later or use space instead of x when you got your alignment right. I would also do v_imagewidth variable (- length of artist name) to easily change number there and then see the result and change the value again....and again....again
Code: [Select]
Save(30, v_imagewidth)/
ListMix(ListITem([L1],1,__)Repeat(x,Math([v_imagewidth] - Length([L1]))),8,[v_similar])

As said you need to use mono font so you can at least theoritically ;D  align text with images and also image width should be static. (that's why I'm using square images)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on June 15, 2023, 12:24:50 pm
@Lepa. If you can have some time to talk and help me on this, I am looking at this and still try to figure out to where I have to start. Thank you for explanation but you lost me somewhere on the line... :)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on June 15, 2023, 01:27:34 pm
If you could share what you have it is I guess easier to follow when you are doing your own thing. So if you have e.g part where you print out images. Or if you don't have that then if you share the path for your artist images we can start working on those. Also if you don't have zelda, you should get it.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on June 16, 2023, 12:00:26 pm
I can share my expression where I have the results like this
Artist Related
(https://i.gyazo.com/29205ed07841db80a2d3afbad709fc6a.png)
Album Similar
(https://i.gyazo.com/fa3dd242aa65f0d8be20a6d0176ef52e.png)
Artist Related
Code: [Select]
trim( if(isempty([amg artist similar]),,ifelse(if(isempty(ListLimit([amg artist similar], 1,  0)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1,  0), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1,  1)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1,  1), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1,  2)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1,  2), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1,  3)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1,  3), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1,  4)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1,  4), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1,  5)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1,  5), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1,  6)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1,  6), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1,  7)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1,  7), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1,  8)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1,  8), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1,  9)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1,  9), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 10)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 10), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 11)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 11), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 12)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 12), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 13)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 13), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 14)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 14), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 15)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 15), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 16)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 16), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 17)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 17), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 18)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 18), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 19)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 19), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 20)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 20), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 21)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 21), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 22)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 22), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 23)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 23), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 24)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 24), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 25)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 25), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 26)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 26), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 27)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 27), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 29)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 29), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 30)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 30), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 31)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 31), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 32)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 32), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 33)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 33), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 34)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 34), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 35)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 35), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 36)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 36), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 37)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 37), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 38)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 38), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 39)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 39), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 40)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 40), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 41)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 41), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 42)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 42), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 43)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 43), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 44)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 44), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 45)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 45), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 46)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 46), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 47)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 47), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 48)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 48), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 49)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 49), \, / -/ ), ?, _).jpg"size="160x160">))ifelse(if(isempty(ListLimit([amg artist similar], 1, 50)),,<img src="C:\Jiver\Artwork\Similar\replace(replace(ListLimit([amg artist similar], 1, 50), \, / -/ ), ?, _).jpg"size="160x160">))))&datatype=[list]Album Similar
Code: [Select]
trim(
if(isempty([amg album similar]),,<font face="segoe mdl2 assets"> <font face="ropa sans italic"valign="bottom">Grid View<//font>
<font color="9a9a9a"size="80"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <//font>
ifelse(if(isempty(ListLimit([amg album similar],1,0)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,0),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,1)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,1),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,2)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,2),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,3)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,3),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,4)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,4),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,5)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,5),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,6)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,6),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,7)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,7),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,8)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,8),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,9)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,9),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,10)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,10),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,11)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,11),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,12)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,12),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,13)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,13),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,14)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,14),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,15)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,15),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,16)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,16),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,17)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,17),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,18)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,18),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,19)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,19),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,20)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,20),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,21)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,21),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,22)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,22),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,23)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,23),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,24)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,24),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,25)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,25),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,26)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,26),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,27)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,27),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,28)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,28),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,29)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,29),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,30)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,30),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,31)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,31),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,32)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,32),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,33)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,33),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,34)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,34),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,35)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,35),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,36)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,36),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,37)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,37),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,38)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,38),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,39)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,39),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,40)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,40),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,41)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,40),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,41)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,41),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,42)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,42),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,43)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,43),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,44)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,44),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,45)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,45),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,46)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,46),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,47)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,47),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,48)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,48),0, {), \, / -/ ), ?, _).jpg"size="160x160">)if(isempty(ListLimit([amg album similar],1,50)),,<img src="C:\Jiver\Artwork\Albums\replace(replace(listitem(ListLimit([amg album similar],1,50),0, {), \, / -/ ), ?, _).jpg"size="160x160">)
)
))&datatype=[string]
And my artwork folder path is this:
For Artists - C:\Jiver\Artwork\Artists
For Albums - C:\Jiver\Artwork\Albums
All my artwork are squares and the size are 1000x1000.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on June 16, 2023, 12:42:54 pm
Funny to realize how differently people will solve the same puzzles  :) I would however suggest to change your artist expression a little. To me at least to make it more simple also. Lets see...

To achieve same thing you now have we shall use listmix(). Source for the function is [amg artist similar] and mode 8 to not unescape after everything. Listmix() will loop every entry in [amg artist similar] and [L1] is the placeholder for listitem currently being handled in first section of the listmix(). So ListMix([L1],8,[amg artist similar]) would print the every item in the [amg artist similar] as we print [L1] in the first section there. But back to puzzle..

So this should do the same as the one you posted.
Code: [Select]
Replace(ListMix(<img src="C:\Jiver\Artwork\Similar\[L1].jpg" size="160x160">,8,[amg artist similar]),;,)
Explanation: It will go through every item in the [amg artist similar] and outputs every time
Code: [Select]
<img src="C:\Jiver\Artwork\Similar\[L1].jpg" size="160x160">L1 being [amg artist similar item] currently in the loop. Replace will just remove list separator chars i.e ; as we only want to see images


One extra thing you could do is to verify that you actually have the image for artist in question. So you could first check the file and and it to output only if file exist.
Code: [Select]
If(IsMissing(C:\Jiver\Artwork\Similar\[L1].jpg),,<img src="C:\Jiver\Artwork\Similar\[L1].jpg" size="160x160">)
When added this to listmix() it would look like this:
Code: [Select]
Replace(ListMix(If(IsMissing(C:\Jiver\Artwork\Similar\[L1].jpg),,<img src="C:\Jiver\Artwork\Similar\[L1].jpg" size="160x160">),8,[amg artist similar]),;,)
If you don't do the check then aligning text later on will be very hard.

Still following?

E: Doesn't take care if artist have characters which are not filename friendly that can be sorted out though
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on June 16, 2023, 09:35:52 pm
Im doing what you told me there and my result is this
(https://i.gyazo.com/cbec8c22ff35a46f451e799a6416b81f.png)
Is the same result like my expression but simpler than mine. I never use listmix() so I have to spend more time to experiment with this function. As you can see none of my print image don't have any names underneath. Do I do something wrong?!
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on June 17, 2023, 03:15:35 am
You did everything right :) It was just first step to output images as it is essential to understand what listmix() does. So now it takes every artist one by one [L1] from the list and wraps every item under <img>. In principle you can now add another listmix() in the next row to ouput the names, just this time output the item as it is so ouput just [L1] instead of wrapping it under <img>

The whole thing is then like this. Note that it does two ismissing() file checks so it isn't optimal but to just to keep this simpler
Code: [Select]
Replace(ListMix(If(IsMissing(C:\Jiver\Artwork\Similar\[L1].jpg),,<img src="C:\Jiver\Artwork\Similar\[L1].jpg" size="150x150">),8,[amg artist similar]),;,)
Replace(ListClean(ListMix(If(IsMissing(C:\Jiver\Artwork\Similar\[L1].jpg),,<font face="courier" size="92">If(Compare(Length([L1],>,23)),Mid([L1],0,20).../ / ,[L1]Repeat(/ ,Math(25-Length([L1]))))<//font>),8,[amg artist similar]),3),;,)

Also note that your image has width of 150 pixels so your font needs to be small so you can squeeze the name for that length. Also you need mono font to be able align the text with all the images. ....with this font size artist name cannot be over 25 chars or the align will yet again be broken. Artist name cropping untested...

E: oops messed up with copy paste of expressions
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 05, 2023, 05:26:04 am
Is there an "easy" way to get all of this put together?  With Kodi everything is just kind of there but here it seems like a lot of work to get it together.  I read these posts (which I greatly appreciate) but it all seems to assume that I know where to start (which I don't).  Is there a guide somewhere or just a template that I can copy?

Edit - I have the theme installed but it is missing all of the artwork.

I have everything checked and updated in ZRatings but how does JRiver know where to find the actors and posters?  Also how do I get all of the logos?

Note I am using MC31, is that my issue?

(https://i.postimg.cc/QxDLxL5N/Screenshot-2023-07-05-062539.png) (https://postimg.cc/CdcrmQm9)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 06, 2023, 09:19:29 am
Unfortunately it isn't a one click process.
Older mega thread also describes the steps a bit https://yabb.jriver.com/interact/index.php/topic,119385.0.html.

As it isn't one click process it is kind of hard to write any one guide fits for all type instructions. It is also time consuming without real knowledge if it is even useful to anybody or if there is an audience at all. In my template examples I use invisible rows to configure the paths, fonts and colours as much as I can so it could be adjusted more easily for different tastes.

I suggest to ask for help here if you are stuck. Maybe paste your current file info panel setup and paths where your images are. At least for me it is most of times quicker to try to help like that than trying to write some subjective documentation what i have done
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 07, 2023, 05:32:00 am
Unfortunately it isn't a one click process.
Older mega thread also describes the steps a bit https://yabb.jriver.com/interact/index.php/topic,119385.0.html.

As it isn't one click process it is kind of hard to write any one guide fits for all type instructions. It is also time consuming without real knowledge if it is even useful to anybody or if there is an audience at all. In my template examples I use invisible rows to configure the paths, fonts and colours as much as I can so it could be adjusted more easily for different tastes.

I suggest to ask for help here if you are stuck. Maybe paste your current file info panel setup and paths where your images are. At least for me it is most of times quicker to try to help like that than trying to write some subjective documentation what i have done

Here is exactly what I did (I am actually starting over and I will document the steps here), any help is appreciated.

1. Downloaded both Movies (no cover).txt and Tooltip Images v1.3.0.zip from the first post.
2. Select all and copied Movies (no cover).txt to the clipboard.
3. JRiver Theaterview Customize File Info Panel, manage templates, add template from clipboard, manage move template to top, change primary language to English.
4. JRiver Theaterview, theme, install theme from zip file, selected and installed Tooltip Images v1.3.0.zip.

All of the logos appear to be installed here - C:\Program Files\J River\Media Center 31\Skins\Theater View\Themes\Tooltip images v1.3.0 - Edit for others who read the folders with the logos in them need to be installed here - C:\Program Files\J River\Media Center 31\Data\Tooltip

Edit for others reading this, see reply #36 for how to add the version field and reply #40 for what you can do with it.  You right click on the file in JRiver and choose tag, then scroll to advanced, version, and you can fill things out there if you want to add them.

Actors are here - C:\Users\dishn\Documents\Actors and posters are here - C:\Users\dishn\Documents\Posters (from ZRatings) but I see no way to point to them?

Info panel is attached, please let me know if you see any issues and how to fix.  Thank you very much.

Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 07, 2023, 05:40:33 am
All of the logos appear to be installed here - C:\Program Files\J River\Media Center 31\Skins\Theater View\Themes\Tooltip images v1.3.0
Logo images should be inside "C:\Program Files\J River\Media Center 31\Data\Tooltip\" directory.

I think my released "no cover template" doesn't include actor photos. I can add those to next version if you like. New version will also designed to be used using 100% windows scaling Current version should look best at 80% scaling. There is also some changes how to show similar movies in the next version so maybe you should not concentrate on that right now if it doesn't work for you right now
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 07, 2023, 06:03:34 am
Logo images should be inside "C:\Program Files\J River\Media Center 31\Data\Tooltip\" directory.

I think my released "no cover template" doesn't include actor photos. I can add those to next version if you like. New version will also designed to be used using 100% windows scaling Current version should look best at 80% scaling. There is also some changes how to show similar movies in the next version so maybe you should not concentrate on that right now if it doesn't work for you right now

Ah that did it thanks.  I still have an issue next to the title though, it says version?  I would love actor photos if you do it.

Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 07, 2023, 06:14:03 am
Ah that did it thanks.  I still have an issue next to the title though, it says version?  I would love actor photos if you do it.
Right, I use custom field version to separate different versions of same movie (director's cut etc). That way I don't pollute name fields with all the version data. My guess is that you don't have field called version and MC then just outputs it as a text. Easiest way would be just add that field to your database even if you don't personally use it. It should be  then hidden when empty I think

BTW I'm glad that you were almost able to follow the instructions. I'll add note about image folders if there wasn't any yet. As some things are already so obvious for me I have surely missed some base tips.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 07, 2023, 06:18:22 am
Right, I use custom field version to separate different versions of same movie (director's cut etc). That way I don't pollute name fields with all the version data. My guess is that you don't have field called version and MC then just outputs it as a text. Easiest way would be just add that field to your database even if you don't personally use it. It should be  then hidden when empty I think

BTW I'm glad that you were almost able to follow the instructions. I'll add note about image folders if there wasn't any yet. As some things are already so obvious for me I have surely missed some base tips.

Lol sorry but how do I do that?

As far as instructions everything was clear once I read through it except the zip file seems to have automatically put the logos in the wrong spot.  Other than that it was much less intimidating than it appears.  Really appreciate your work here and you sharing it.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 07, 2023, 06:25:15 am
Options -> library & folders -> manage library fields -> Add new field

Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 07, 2023, 06:28:30 am
Options -> library & folders -> manage library fields -> Add new field

That did it thank you!!!
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 07, 2023, 06:34:45 am
Nice! So now that you have the field. If you like you could insert there eg that Theatrical Cut or Extended etc... or just leave it empty

Started to look at the actors. version 1.3 coming up nicely. Unfortunately there is some field changes which were necessary for example making similar movies to be more easy to maintain and prevent duplicates to show up if there were multiple versions of same movie

EDIT: Oh and published v1.2 doesn't yet support similar movies poster images but just outputs names
Title: Re: Custom Tooltips/TheaterView Screens
Post by: JimH on July 07, 2023, 07:23:12 am
Here is exactly what I did (I am actually starting over and I will document the steps here)...
Thanks for helping document this.  I'd like to help make any changes that would make this easier in MC.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 07, 2023, 07:33:11 am
Nice! So now that you have the field. If you like you could insert there eg that Theatrical Cut or Extended etc... or just leave it empty

Started to look at the actors. version 1.3 coming up nicely. Unfortunately there is some field changes which were necessary for example making similar movies to be more easy to maintain and prevent duplicates to show up if there were multiple versions of same movie

EDIT: Oh and published v1.2 doesn't yet support similar movies poster images but just outputs names

You have no idea how perfect this is.  Not only for obvious things like Superman II Theatrical vs Donner but I have a ton of 35mm scans that I can now distinguish from their Blu Ray / UHD counterparts.  It will take a little time to organize but in the end be well worth it.

(https://i.postimg.cc/VNqkMFtC/Screenshot-2023-07-07-073139.png) (https://postimages.org/)

(https://i.postimg.cc/bYLbfh34/Screenshot-2023-07-07-075911.png) (https://postimg.cc/s1Q15tFJ)upload image for site (https://postimages.org/)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 07, 2023, 07:38:08 am
Thanks for helping document this.  I'd like to help make any changes that would make this easier in MC.

This is the icing on the cake, everything is amazing now.  Hopefully some more MadVR / AVS people find there way over here because this is exactly what everyone has been wanting and with a nicer interface like this along with the recent updates there is no reason left to cling to other clunky solutions.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 07, 2023, 03:49:47 pm
@FenceMan What font is that? Looks quite cool for inforows. I could make it default one for those parts
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 07, 2023, 04:07:59 pm
@FenceMan What font is that? Looks quite cool for inforows. I could make it default one for those parts

https://www.fontspace.com/category/theater

Ineptic

Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 07, 2023, 04:14:05 pm
Thanks, I'll experiment with it and see if I can put it to use
Title: Re: Custom Tooltips/TheaterView Screens
Post by: jmone on July 07, 2023, 04:44:05 pm
Thanks for helping document this.  I'd like to help make any changes that would make this easier in MC.

Add it to core MC?  It does look good.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 07, 2023, 07:04:24 pm
Thanks, I'll experiment with it and see if I can put it to use

I actually told you the wrong one its this one -

https://www.1001fonts.com/theater-fonts.html

"Theater"

I played with a few before settling on that but that is the one in my recent pictures.  If you see the Blade in the Dark picture above when I had issues that is Ineptic.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 08, 2023, 11:16:01 am
Yes, I noticed that it wasn't the same as in your screenshots. Still a little on fence with the font for headers. Not sure if it is too eye catching and after while becomes too (maybe military) stylish and all I can think of is watching Rambo yet again  ;D

Cast images can now also have role names or the text names can be configured to be hidden if one's images have burnt in texts. Also added option poster to show poster in "no poster theme"  ::)

V1.3 Configurable items now include
Code: [Select]
Save(Finnish, v_PRIMARY_LANG)/
Save(English, v_SECONDARY_LANG)/
Save(1, v_USE_RECOMMENDATIONS_IMAGES)/
Save(0, v_RECOMMENDATIONS_IMAGES_ZSTATS)/
Save(30, v_RECOMMENDATIONS_SCRAPE_EXPIRY)/
Save(E://.MC Images//Actors//, V_ACTOR_IMAGE_PATH)/
Save(1, v_SHOW_TEXT_ROLES)/
Save(1, v_SHOW_TEXT_ACTORS)/
Save(1, v_SHOW_POSTER)/
Save(1, v_SHOW_ACTOR_MODULE)/
Save(1, v_SHOW_RECOMMENDATIONS_MODULE)/
Save(1, v_SHOW_ADDIT_AUDIO_MODULE)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 08, 2023, 11:38:14 am
Yes, I noticed that it wasn't the same as in your screenshots. Still a little on fence with the font for headers. Not sure if it is too eye catching and after while becomes too (maybe military) stylish and all I can think of is watching Rambo yet again  ;D

Cast images can now also have role names or the text names can be configured to be hidden if one's images have burnt in texts. Also added option poster to show poster in "no poster theme"  ::)

V1.3 Configurable items now include
Code: [Select]
Save(Finnish, v_PRIMARY_LANG)/
Save(English, v_SECONDARY_LANG)/
Save(1, v_USE_RECOMMENDATIONS_IMAGES)/
Save(0, v_RECOMMENDATIONS_IMAGES_ZSTATS)/
Save(30, v_RECOMMENDATIONS_SCRAPE_EXPIRY)/
Save(E://.MC Images//Actors//, V_ACTOR_IMAGE_PATH)/
Save(1, v_SHOW_TEXT_ROLES)/
Save(1, v_SHOW_TEXT_ACTORS)/
Save(1, v_SHOW_POSTER)/
Save(1, v_SHOW_ACTOR_MODULE)/
Save(1, v_SHOW_RECOMMENDATIONS_MODULE)/
Save(1, v_SHOW_ADDIT_AUDIO_MODULE)

I think that looks amazing.

You have not posted 1.3 yet correct?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 08, 2023, 11:58:46 am
Correct. What is done is done. like: main front, actor images and recommendations images. Aligning everything with MC is really time consuming when dealing with changing lengths of eg descriptions but I think I got it mostly right and don't see any more movies which breaks the layout ie Movie name is too up or actor row is cropped or not visible at all. Links are unchanged. I would like create couple of more sections still but haven't figured out how to make nice video+audio+subs details section which would fit this theme also maybe section for other crew members and awards/critic ratings. I may publish what I have though if I don't get inspiration to do those in following days. Kind of need break already.

BTW. If your file naming is consistent you could scrape version data from there and save some manual filling time
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 08, 2023, 12:04:38 pm
Correct. What is done is done. like: main front, actor images and recommendations images. Aligning everything with MC is really time consuming when dealing with changing lengths of eg descriptions but I think I got it mostly right and don't see any more movies which breaks the layout ie Movie name is too up or actor row is cropped or not visible at all. Links are unchanged. I would like create couple of more sections still but haven't figured out how to make nice video+audio+subs details section which would fit this theme also maybe section for other crew members and awards/critic ratings. I may publish what I have though if I don't get inspiration to do those in following days. Kind of need break already.

BTW. If your file naming is consistent you could scrape version data from there and save some manual filling time

I struggle with file naming, ripped my whole collection basically with whatever makemkv named them and now 700+ are what they are.

Any program to rename them correctly based on JRiver knowing what they are?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 08, 2023, 12:40:20 pm
You're standing on it  ;D

MC got very powerful tool Rename, Move, & Copy files (RMC). I ran everything through even though MC doesn't care about how clean the filename is as it is database driven program. Still I like to have my files in order. For example for Movies my I use move template which creates files like: //server//Movies/T/Terminator 2_ Judgement Day [Skynet Edition] [4K].mkv

But this is a little off topic here. Anyway there are probably topics here about RMC tool or you can start new for specifics. But in short you can use MC database fields to form folders/filenames you desire

Beware though as it is a powerful tool, so take time to learn and experiment and look at the preview before doing anything that could backfire  ;D

WIKI: https://wiki.jriver.com/index.php/Rename,_Move,_and_Copy_Files
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 09, 2023, 12:26:34 pm
WIP.... Updated small screen up to date with large theme. Had to loose tag line at least for now as predicting coordinates is challenging enough with these components as I like to keep components at the same place  when browsing the movies. Changes to icon row also possible. Haven't eg discovered a good  image for watched
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 09, 2023, 01:54:25 pm
Looks awesome.  I got my file naming all worked out can't wait for 1.3.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 10, 2023, 12:39:45 pm
User fields "needed" for Movies Template: NoPoster V1.3
Should mostly work without these but you'll will miss some fancy things if field doesn't exist. Most of the fields have been required already with earlier versions so no all are new to this v1.3.
(wiki about fields (https://wiki.jriver.com/index.php/Library_Fields))

You can create all below fields with MCUtils using xml file included. Backup your database first and use it ON YOUR OWN RISK! Using -T test switch should only simulate changes so remove it when ready run for real.
Code: (example with test switch on) [Select]
.\pscriptor.pl CreateMCFields --filename D:\audio\MCUtils\new_fields.xml -VVT

Also attached .txt with MCWS API web calls to create fields

USER FIELDS:

Manually populated fields:
FIELD NAMEDESCRIPTION
Version | string, holds movie version info like Director's Cut etc.
Audio Title (external) | list, hold audio track title info when analyze can't determine title or it doesn't exist e.g. when DVD/BD structure. If valued, is used instead of Audio Title field


Populated by MCUtils / ZRatings (ZRating doesn't support Recommendations field from TMDb AFAIK):
FIELD NAMEDESCRIPTION
Actors (alt) | string, holds "Actor name [Role]". Used to show actor image, actor name and role name. (MCUtils or ZRatings)
IMDb Id | string, IMDb id (MCUtils or ZRatings)
IMDb Rating | string, IMDb rating from OMDb (ZRatings)
IMDb Votes | string, IMDb irating from OMDb (ZRatings)
IMDb Description (short) | string, Short plot from OMDb (ZRatings)
Rotten Tomatoes | string, Rotten Tomatoes rating from OMDb (ZRatings)
Awards | string, Awards from OMDb (ZRatings)
TMDb Id | string, TMDb Id (MCUtils or ZRatings)
TMDb Rating | string, TMDb Rating (MCUtils or ZRatings)
TMDb Popularity | string, TMDb Popularity (MCUtils or ZRatings)
Recommendations (raw) | list, Recommendations list*  (MCUtils)
Code: (* Recomendations formula for the MCUtils configuration file:) [Select]
recommendations  => [ 'Recommendations (raw)',            'tmdb', {
        format => { formatname => 'fmt_recommendations', formatcode => sub {
            my $p = shift;
            return sprintf "%s__%s__%s", $p->{'name'}, $p->{'date'}, $p->{'id'};
        }},
    }],


Special Fields for recommendations usage populated by template itself:
FIELD NAMEDESCRIPTION
zsRecommendations | string, (Script will handle following: list of lists: "image path__imdb rating__tmdb rating". Populated when entering big screen or offline with ZStats)
RecScrapedDate | date, date when zsRecommendation was last updated. Used to adjust how often zsRecommendation calculations is done

Calculated fields:
(Now I know it is a plenty of fields and I could hide all the calculated fields using variables but then I would need to maintain two templates: one for my own usage where i have the fields created and one here using variables and it is too much maintenance hassle for me....)

Name: Field names below
Edit Type: Cannot be edited
Calculated Data: Rule after field name here

FIELD NAMECALCULATION RULE
DefinitionIfElse(
    Compare([Width],>,1920),
        4K,
    Or(Compare([Width],>,1360),Compare([Height],>,1040)),
        1080p,
    Or(Compare([Width],>,1024),Compare([Height],>,576)),
        720p,
    Compare(Left([FPS],2),=,25),
        576p,
    1,
        480p
)
Video Format (pretty)If([HDR Format,0],
    ListMix([Definition]IfCase([L1],8, DolbyVision, -Dolby Vision, HDR10+, -HDR10+, HDR10, -HDR10),8,Replace([HDR Format],/,,;)),
    [Definition]
)
Aspect Ratio (pretty)IfCase(Replace([Aspect Ratio],/,,.), 3,
    0.30, unknown,
    0.9, portrait,
    1.17, 1.00,
    1.35, 1.33,
    1.5, 1.37,
    1.72, 1.66,
    1.82, 1.78,
    1.93, 1.85,
    2.1, 2.00,
    2.28, 2.20,
    2.37, 2.35,
    2.47, 2.39,
    2.6, 2.55,
    2.71, 2.65,
    2.99, 2.76,
    20, wide
)
Video Codec (pretty)IfCase([Video Codec],8,
    HEVC, HEVC,
    H264, AVC,
    VC-1,VC-1,
    MPEG4 Simple Profile, MPEG4,
    MPEG4 Advanced Simple Profile, XVID,
    MSMPEG4V3, DIV3,
    MPEG-2,MPEG2,
    MPEG-1,MPEG1
)
Recommendations (pretty)ListMix(ListItem([L1],0,__) /(Left(ListItem([L1],1,__),4)/),,[Recommendations (raw)])
Recommendations (id)ListMix(ListItem([L1],2,__),,[Recommendations (raw)])
RecMatcherNumber([TMDb Id])__[image file]__Decimal([IMDb Rating])__Decimal(FormatNumber([TMDb Rating],1))


Calculated LINK fields:
FIELD NAMECALCULATION RULE
LINK_Extras_MovieIf([NoExtras],,If(Or(IsEqual([Media Sub Type],Extras),IsEqual([Media Sub Type],Movie)),EXTRAS for [Name] /(FormatDate([Date,0],year)/),))
LINK_Year_MovieIf(IsEqual([Media Sub Type],Movie),Movies released in FormatDate([Date,0],year),)
LINK_DirectorIf(IsEqual([Media Sub Type], Movie),Directed by ListItem([Director],0),)
LINK_Genre_MovieIf(IsEqual([Media Sub Type], Movie),Movies at genre Replace(ListSort(ListLimit([Genre],2)),;,/ /// ),)
LINK_StarMovies starring ListLimit([Actors],1)
LINK_IMDb_RatingMovies rated Math(Int([IMDb Rating])) in IMDb
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 13, 2023, 06:02:46 pm
Movies Template: NoPoster 100% MC Scaling (1920x1080 [OS 100%] or 3840x2160 [OS 200%]) V1.3.4

I've spent quite much time for tinkering this and now doesn't have any ideas or motivation to work on this further right now so I decided it is time to share and maybe it is helpful for some other. Lots of new stuff and refactoring done so probably there are things that don't work for you or looks different than for me... Creating fields and configuring may seem like a big job but i'd say that documenting these are actually much bigger job than setting this up.

Template is designed for 100% theaterview scaling, 3840x2160 (200% Windows OS scaling) / 1920x1080 (100 OS scaling) resolution and "show more values at a time in the file info panel" enabled. Changing the values to some other will break the layout a bit or completely






Configuration descriptions:
  By default all the special sections are disabled (value 0, change value to 1 to enable it) as they require those yser fields you might not have created. Edit configuration value only when customizing

VARIABLEDEFAULT VALUEDESCRIPTION
v_PRIMARY_LANGFinnishPrimary language. Shows flag
v_SECONDARY_LANGEnglishSecondary language. Shows this flag if no primary
v_MONO_FONTface="Hack"Mono font to be used. without mono font things break
v_USE_RECOMMENDATIONS_IMAGES1Show movie recommendations images
v_RECOMMENDATIONS_IMAGES_ZSTATS0Recommendations from offline ZStats, no realtime calc
v_RECOMMENDATIONS_SCRAPE_EXPIRY30How often real time calc (slowish operation) is done again
v_ACTOR_IMAGE_PATHe://.MC Images//Actors//Path to your actor images
V_TOOLTIP_PATHd://audio//MC31//Data//Tooltip//Path to your MC tooltip folder
v_LOGO_FILEPATHe://.MC Images//Movies//Replace([Name],:,/ ) /([Year]/) /[[imdb id]/]//Logos//logo.pngMovie logo path, feature not really aligned and not working status
v_ACTOR_ALT_ROLES1when set 1, actors (alt) is used: field format "actor name [role name]" file format: "actor name". when set 0, actors is used: field format "actor name [role name]" file format: "actor name [role name]".
v_SHOW_TEXT_ROLES0Show role names using text
v_SHOW_TEXT_ACTORS0Show actor names using text
v_SHOW_POSTER0Show movie poster
v_LOGO0Show movie logo. Not working status as not aligned
v_SHOW_ACTOR_MODULE0Show Actor images module
v_SHOW_RECOMMENDATIONS_MODULE0Show Recommendations module
v_SHOW_VIDEO_DETAILS_MODULE0Show Video Details module
v_SHOW_RATINGS_MODULE0Show Ratings module
v_DEBUG_ON0Show debug information


EDITS:
2023-07-30 v1.3.4 removed some tstuff used when testing which broke path configuration (3)
2023-07-29 v1.3.3 More details on video details and more debugging fields (7)
2023-07-19 v1.3.2 Compatibility fixes with different environments (6)
2023-07-15 v1.3.1 small fixes / optimizations under the hood
2023-07-14 Added font information
2023-07-14 Initial instructions
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 13, 2023, 06:03:33 pm
NoPoster (100%) V1.3 screenshots
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 13, 2023, 06:44:36 pm
Not sure where to put the actors folder?

C:\Program Files\J River\Media Center 31\Data\Tooltip\.MC Images\Actors

Is that not it?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 13, 2023, 06:46:36 pm
If your actors images are in that folder then replace my default path with yours in the configuration. See your ZRatings (or MCUtils) settings to see where it does save the images if unsure

my actor images are located at "e:\.MC Images\Actors\" so in my configuration it is:
Save(e://.MC Images//Actors//, V_ACTOR_IMAGE_PATH)/

i use / (another / to escape...) notation so it will also work in linux but in windows tou can use \

So you don't have to use same dir as i am hence the configuration option  :P
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 14, 2023, 05:38:06 am
If your actors images are in that folder then replace my default path with yours in the configuration. See your ZRatings (or MCUtils) settings to see where it does save the images if unsure

my actor images are located at "e:\.MC Images\Actors\" so in my configuration it is:
Save(e://.MC Images//Actors//, V_ACTOR_IMAGE_PATH)/

i use / (another / to escape...) notation so it will also work in linux but in windows tou can use \

So you don't have to use same dir as i am hence the configuration option  :P

Still not working.

If my Actors folder is - C:\Program Files\J River\Media Center 31\Data\Tooltip\.MC Images\Actors

Then the line should be Save(C:\Program Files\J River\Media Center 31\Data\Tooltip\.MC Images\Actors\, V_ACTOR_IMAGE_PATH)\ ??

Also if I want to show the posters how do I set the path to that?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 14, 2023, 05:58:26 am
Path looks good. How is your actor filenames? Expression looks at forename surname.png e.g. Sylvester Stallone.png
So with your path settings Sly's image disk location should be "C:\Program Files\J River\Media Center 31\Data\Tooltip\.MC Images\Actors\Sylvester Stallone.png". If you have also rolename in the filename then I need to do some changes.

Poster for movie in question doesn't need any path setting as it using [image file] field to get the poste file. It should be enough if you just configure v_SHOW_POSTER to value 1

Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 14, 2023, 06:04:53 am
Path looks good. How is your actor filenames? Expression looks at forename surname.png e.g. Sylvester Stallone.png
So with your path settings Sly's image disk location should be "C:\Program Files\J River\Media Center 31\Data\Tooltip\.MC Images\Actors\Sylvester Stallone.png". If you have also rolename in the filename then I need to do some changes.

Poster for movie in question doesn't need any path setting as it using [image file] field to get the poste file. It should be enough if you just configure v_SHOW_POSTER to value 1

That is how my actors are named.  Also posters show as blank when I set to 1.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 14, 2023, 06:09:59 am
Just to make sure that v1.3 is moved top of the template list so it gets activated for movies and MC is not actually using the older one.

Also do you get MAIN CAST header text or is that also missing in addition to actual photos?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 14, 2023, 06:11:49 am
Just to make sure that v1.3 is moved top of the templates so it gets activated for movies and MC is not actually using the older one
Yes
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 14, 2023, 06:12:40 am
Also do you get MAIN CAST header text or is that also missing in addition to actual photos?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 14, 2023, 09:26:37 am
Also do you get MAIN CAST header text or is that also missing in addition to actual photos?

I kind of gave up on actors but I did customize one of your scripts to look exactly how I want.  I really appreciate your work on this and really wish it was easier to integrate.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 14, 2023, 10:54:54 am
Too bad you didn't get it working as I tried real hard to make it as easy as possible to integrate for other systems than mine. Cool though that alternative route was success for you and you are satisfied. Your mods looks good although Carlito look a bit weird nowdays in the poster  ;)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 16, 2023, 02:10:28 am
Thank you lepa for your work.

This time however, it will be the difficulty of the language, it will be that I can't understand many technical terms, but it will be mainly due to my age  ;D, this time I have difficulty creating the new template.

First of all I would like to ask you one thing: how do I create new fields in the library using Zratings and the xml file you attached? On Zratings I can't find the possibility to upload an xml file :'(
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 16, 2023, 04:26:18 am
xml is for MCUtils. Zratings creates fields when you map them in the zratings field settings so most probably you already have those. So you are perhaps only missing those generic fields below. Also you don't need anything related to recommendations as recommendations is only supported by MCUtils. You could try to ask zybex to add it also to ZRatings.

Setup looks more intimidating than it really is because I tried to document it so thoroughly. If you know how to create a field in MC creating next fields is basically one by one copy-paste job for few minutes after you have created one. You could post images about your ZRatings field mappings so I can see if you have different names than me.

I tried also to make MCWS calls to create fields. So if you have MC web service (needed with remotes) online you could use web browser to create missing fields. web service returns failure i think if field already exist. You cannot just click below lines as there are spaces in the address but you need to copy paste whole row. also port needs to match with your port (i think 52199 is default in MC)


Generic user populated fields

Generic calculated fields to show icons

Generic link fields

ZRatings (zratings have already created these if you have these in the field mappings there)

MCUtils: needed for role names and recommendations module. If you dont't have MCUtils these are not needed
Title: Re: Custom Tooltips/TheaterView Screens
Post by: JimH on July 16, 2023, 05:57:39 am
If you know how to create a field in MC It is basically one by one copy-paste job for few minutes after you have created one. You could post images about your ZRatings field mappings so I can see if you have different names than me.
I'm not sure what you mean, but you can copy and paste a tag to many files.  Select a file to copy from, do the usual ctrl-c.  Then select the files you want to copy to and do ctrl-shift-v and then select which tags to copy to the files.

lepa,
You deserve a medal for your work and your very patient support.  Thank you!
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 16, 2023, 06:08:15 am
I'm not sure what you mean, but you can copy and paste a tag to many files.  Select a file to copy from, do the usual ctrl-c.  Then select the files you want to copy to and do ctrl-shift-v and then select which tags to copy to the files.
I'm talking about creating a new field in MC and with copy-paste I mean copy-pasting field name (and expression for calculated field) from my post into MC's "add new field UI"  :)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 16, 2023, 12:09:59 pm
I manually created all the fields not present, and I managed to get a little something.
The main things I can't see are the images of the actors, the logos and the poster.
Of course I changed the path to the folders where the images of the actors and logos are located in the configuration, but obviously I'm doing something wrong.
In show poster I changed from 0 to 1 to enable it.

Another strange thing is the description that appears in small mode for all movies while in large only for some.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 16, 2023, 01:15:53 pm
Nice going!
Let's tackle the rest one by one
So I assume that you have:
1. installed the fonts (theater is narrow font so it is kind of required to get lines right and hack or some other mono too)
2. You have the created fields

Could you paste the configuration part of the template here? or whole template with your edits is fine too. also if you can take small and large screenshots so i can see what's missing

Let's start with logos:
Are logo images inside MC's tooltip folder with sub folders? see example pic.


Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 16, 2023, 01:29:50 pm
Actually, I only installed hack because I read it in the configuration: do I have to install theater as well?

I have all folders in C:\Program Files\J River\Media Center 31\Data\Tooltip....

Now I'm not in front of the htpc, tomorrow I'll attach the modified template.

Thank you lepa
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 16, 2023, 01:33:32 pm
Theater font is for visuals and alignment but everything should still show up without it. just that layout may be broken. So I recommend you to install it. Already find something which may cause your description problems...

Thanks for testing this! Means a lot to me as I have invested quite much time to make this transferable to other  :)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 16, 2023, 02:51:26 pm
I really think we should all thank you for the time you are dedicating to making this excellent player more and more enjoyable as well as the time needed to make it understood by those who are not very practical (or advanced in years  ;D ).

I remembered one thing: in some cases the icons of Rotten Tomatoes and others are "broken".
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 17, 2023, 03:05:24 am
I am attaching screenshots of Aquaman which is a BD UHD and of Bohemian which is a mkv.

This is after downloading the Theater fonts as well
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 17, 2023, 03:08:54 am
This is the modified template instead
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 17, 2023, 03:16:11 am
Thanks! I'll look at it briefly before lunch
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 17, 2023, 03:18:40 am
Okay, those images will help. Strange ones... I'll get back to you. Description I think I already fixed (fix not yet released)

I think that at least you are missing tooltip\Misc\Separator\ images? They should be in the zip file
https://yabb.jriver.com/interact/index.php?action=dlattach;topic=135179.0;attach=48101

Script uses e.g. tooltip\Misc\Separator\1x1-transparent.png to make room for different images / text. And since your critic rating texts doesn't have any room but is like IMDb RATINGTMDb RATING etc the image between them is missing

Yeah, looking at the pictures I'd say that first fix would be downloading attached new image pack keeping the subfolders. Make backup of your old logo images if you like to them more. I think new ones are prettier though. I still have the old ones too as a backup if they are wanted back

1. Download new logo pack and extract it to tooltip folder (backup old ones before hand if you like)
(2.) change path C:\Program Files\J River\Media Center 31\Data\Tooltip\Audio ==> C:\Program Files\J River\Media Center 31\Data\Tooltip\
(3.)  change path C:\Program Files\J River\Media Center 31\Data\Tooltip\Actors ==> C:\Program Files\J River\Media Center 31\Data\Tooltip\Actors\

Wonder if those path settings was also FenceMan's reason not to get actor images....

2 and 3 already handled in the attached test template.
Description hopefully fixed in your system, added new configuration parameter v_ACTOR_ALT_ROLES which when activated assumes that Actors (alt) field include the role names. if disabled then Actors field should include role names like you @lello did (attached test template config set to work with your system already).

anyway test template attached and with that if you do step 1. I THINK that it should solve lots of issues


If these issues are fixed then next mystery is why there is no poster image. Rotten tomatoes issue is probably because aquaman has more than 9 plays so it takes one character more than anticipated and that moves row a bit further. I thought that I handled this already but I guess not...
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 17, 2023, 07:04:24 am
I tried this and still no actors.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 17, 2023, 07:52:21 am
I confirm, unfortunately the actors are still not seen.

On the other hand, several things have improved, as you can see
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 17, 2023, 09:52:46 am
Could you try this for me and report the image paths what are shown (poster & cast) You should not see images but file location for the image. Remember to put this template on top so it gets to be used. This is deliberately broken so I can see the paths.

EDIT forgot to config for your system... Now it should be configured
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 17, 2023, 10:15:54 am
Attached
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 17, 2023, 10:19:58 am
Attached
Ah BD structure doesn't have image path..... no wonder it doesn't find the poster.... I'll try to fix that.
Could also post Main Cast part so I can see that too?

I think I can try to make description more error resistant, I can fix the rotten tomatoes icon and the poster. So I guess this Main Cast is the last hurdle then
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 17, 2023, 10:41:25 am
But it also happens with mkvs.

Could I have done something wrong when creating the fields? See attached
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 17, 2023, 10:50:51 am
Ok, that pic helps. So all file types are affected. I have all my posters on external folder away form movie files on fast SSD as otherwise MC hangs all the time if server is offline. But I can sort the posters now for you. Actors side I think we have reversed fields so my Actors field have only actor names and Actors (alt) have also the role names. You seem to have this the other way around. That I already hopefully sorted out with new configuration parameter v_ACTOR_ALT_ROLES. So you can keep your fields, just configure that parameter to 0.

If you could post the main cast part still. It should also now print out the file paths instead of images
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 17, 2023, 11:24:57 am
The parameter of v_ACTOR_ALT_ROLES is already set to zero (if I understand correctly).

I am attaching the image of the main part of the cast, but there is no image or path
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 17, 2023, 11:34:01 am
Okay that means that parsing fails completely. can show me example actor image path?
Like mine is e.g.
"E:\.MC Images\Actors\Sylvester Stallone.png"
so where is your sly? you have png images? and not jpg?

Posters by the way should be fixed in next test version
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 17, 2023, 11:43:31 am
Now I'm no longer in front of the htpc, but the actor photos are located in C:\Program Files\J River\Media Center 31\Data\Tooltip\Actors\ Original movie title (year)\actor name.png as requested from ZRatings
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 17, 2023, 11:50:26 am
Okay so that breaks it, thanks alot  ;D I don't expect the movie folder... as my images doesn't have burned in actor roles so I only save one pic per actor and not per movie.

I can fix that now also! Or actually you can fix it yourself in the configuration (who was so smart and invented this configuration thingy  ;D):
Save(C:\Program Files\J River\Media Center 31\Data\Tooltip\Actors\[Original Title] /([year]/)\, V_ACTOR_IMAGE_PATH)/

Thank you for testing.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 17, 2023, 12:47:10 pm
I was really convinced that that was the solution so, taken by impatience, I went back to the HT room, but unfortunately it didn't work. I also removed that small space in Save( C:\Program Files, but there was nothing to do  :'(

I have tried different file types
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 17, 2023, 01:07:32 pm
darn. I'll do another test version to debug this if you are still willing to test. no rush though but when you (and I) have time. I'll in the meantime fix the rotten tomatoes and description so after that everything else than this should work and next test version should give me a hint what's wrong here. I'm thinking that it might be related to me trying to keep linux compatibility with retarded windows paths..

This test template should show what's going on with the actors. Posters fix I think is included

Save( C:\Program Files, but there was nothing to do  :'(
this was my bad so no space needed

E: Description and rotten tomatoes hopefully now fixed (not released yet)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 04:00:19 am
Attached latest test template using lello's config. rotten tomatoes, poster, description hopefully now more robust and working. Main Cast should show image location where it tries to find the actor image, so that mystery will also hopefully be fixed after this test
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 18, 2023, 04:50:14 am
Good job lepa! ;D

Only the photos of the actors are missing, and your work is complete
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 04:58:10 am
hmm.. i was hoping some more printouts for main cast at the bottom of the main cast row to see the whole filenames also. Is this result with the latest test template?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 05:04:22 am
this one tries still a little harder to print out the image file paths
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 18, 2023, 05:45:56 am
this one tries still a little harder to print out the image file paths

See attached, it says it can't find Robert Downey Jr png when it is clearly there?

Save(C:\Program Files\J River\Media Center 31\Data\Tooltip\Actors\, V_ACTOR_IMAGE_PATH)/
Save(C:\Program Files\J River\Media Center 31\Data\Tooltip\, V_TOOLTIP_PATH)/
Save(e://.MC Images//Movies//Replace([Name],:,/ ) /([Year]/) /[[imdb id]/]//Logos//logo.png, v_LOGO_FILEPATH)/
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 18, 2023, 05:50:55 am
Also I still have issues with alignment but other than that and the actors it looks great.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 05:56:35 am
Also I still have issues with alignment but other than that and the actors it looks great.
wow what is that ;D BTW as you have tmdb rating as zero, is it desired or some field difference with us? I'm using TMDb Rating but try to fall back to MC's critic rating
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 18, 2023, 06:02:45 am
Now you see the image paths

Along the way I read the year but not the title of the film
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 06:12:51 am
Barely  ;D But i see the problem. Your original title is different than mine. what is your field name for original title I assume in ZRatings? If you could check from zratings the same things as attached pictures. You don't have to change it like I have but I need to know how these are set for you so we can write correct path in the confguration. So that original title field and then the path for actors.

@FenceMan
current test version shouldn't show the image as i changes the img property to amg so i can see what is tried  :P
You can either find and replace from test template "amg src" ==> "img src" or try this template which doesn't have any testing on. Your pictures looks like it should work if that replace is done. if not then i'm lost what's going on (attached also my current template with fixes and no testing modifications. I feel that this should work for you...)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: FenceMan on July 18, 2023, 06:28:54 am
Barely  ;D But i see the problem. Your original title is different than mine. what is your field name for original title I assume in ZRatings? If you could check from zratings the same things as attached pictures. You don't have to change it like I have but I need to know how these are set for you so we can write correct path in the confguration. So that original title field and then the path for actors.

@FenceMan
current test version shouldn't show the image as i changes the img property to amg so i can see what is tried  :P
You can either find and replace from test template "amg src" ==> "img src" or try this template which doesn't have any testing on. Your pictures looks like it should work if that replace is done. if not then i'm lost what's going on (attached also my current template with fixes and no testing modifications. I feel that this should work for you...)

Actors are just blank with this.  I'm sorry this isn't working and I really appreciate your efforts.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 06:33:11 am
Also I still have issues with alignment but other than that and the actors it looks great.
You do have (preferably) Hack or some other monotype font configured? zeros doesn't look Hack anyway. Courier e.g doesn't break lines but horizontal aligment will still be off with the headers.


EDIT:
If you could still as last test to replace Main Cast expression with this to show isMissing function result
Code: [Select]
If([v_SHOW_ACTOR_MODULE,0],

    Save(ListMix(If(IsMissing([v_ACTOR_IMAGE_PATH]ListItem([L1],0,=).png),missing: [v_ACTOR_IMAGE_PATH]ListItem([L1],0,=).png,Replace([v_ACTOR_IMAGE_PATH],//,////)ListItem([L1],0,=).png__ListItem([L1],0,=)__RemoveRight(ListItem([L1],1,=),1)),8, Replace(Replace(Replace(ListLimit(If([v_ACTOR_ALT_ROLES,0],[Actors (alt)],[Actors]),8),//,\),/ /(,_-),/ /[,=)), v_ActorImages)/
[v_ActorImages]

    <font face="Segoe UI" [v_LSIZE_HEADER] [v_COLOR_BODY_LARGE] alpha="50">MAIN CAST<//font><br>/

    Repeat(<img src="tooltip:Misc//Separator//1x1-transparent" size="30x1"><img src="tooltip:Misc//Separator//dot" valign="bottom" size="190x2">,ListCount([v_ActorImages]))<br>/
    Replace(ListMix(<img src="tooltip:Misc//Separator//1x1-transparent" size="30x1"><img src="tooltip:Misc//Separator//dot" size="2x280"><img src="ListItem([L1],0,__)" size="186x280"><img src="tooltip:Misc//Separator//dot" size="2x280">,8,[v_ActorImages]),;,)<br>/
    Repeat(<img src="tooltip:Misc//Separator//1x1-transparent" size="30x1"><img src="tooltip:Misc//Separator//dot" valign="top" size="190x2">,ListCount([v_ActorImages]))/

    If([v_SHOW_TEXT_ACTORS,0],
        <font [v_MONO_FONT] size="55" valign="top"><br>/
            Replace(ListMix(<img src="tooltip:Misc//Separator//1x1-transparent" size="30x1">ListItem([L1],1,__)Repeat(/ ,Math(20 - Length(ListItem([L1],1,__)))),8,[v_ActorImages]),;,)/
        <//font>,
    )/
    If([v_SHOW_TEXT_ROLES,0],
        <font [v_MONO_FONT] color="#9295af" size="55" valign="top"><br>/
            Repeat(<img src="tooltip:Misc//Separator//1x1-transparent" size="30x1">as                  ,ListCount([v_ActorImages]))/
            <br>/
            Save(ListMix(ListItem(ListItem([L1],2,__),0,_-),8,[v_ActorImages]), v_Roles)/
            Replace(Replace(ListMix(<img src="tooltip:Misc//Separator//1x1-transparent" size="30x1">If(Compare(Length([L1]),>,20),Mid([L1],0,Find(Left([L1],20),/ ,,-1))Repeat(/ ,Math(20 - Find(Left([L1],20),/ ,,-1))),[L1]Repeat(/ ,Math(20 - Length([L1])))),8,[v_Roles]),;,),\,//)/
            <br>/
            Replace(ListMix(<img src="tooltip:Misc//Separator//1x1-transparent" size="30x1">If(Compare(Length([L1]),>,20),If(Compare(Length(Mid([L1],Math(Find(Left([L1],20),/ ,,-1) + 1),-1)),>,20),Mid([L1],Math(Find(Left([L1],20),/ ,,-1) + 1),18)..,Mid([L1],Math(Find(Left([L1],20),/ ,,-1) + 1),-1))Repeat(/ ,Math(20 - Length(Mid([L1],Find(Left([L1],20),/ ,,-1),-1)) + 1)),Repeat(/ ,20)),8,[v_Roles]),;,)/
        <//font>,
    )/

,)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 18, 2023, 09:16:34 am
Barely  ;D But i see the problem. Your original title is different than mine. what is your field name for original title I assume in ZRatings? If you could check from zratings the same things as attached pictures. You don't have to change it like I have but I need to know how these are set for you so we can write correct path in the confguration. So that original title field and then the path for actors.


Attached
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 09:20:49 am
How does "Save actor/crew thumbnails to this folder" value continue. You can copy paste it as text. And could you please also give one real life example actor with full path and filename. Also check that you do have values in the original title field in the MC
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 18, 2023, 09:33:08 am
And could you please also give one real life example actor with full path and filename.
C:\Program Files\J River\Media Center 31\Data\Tooltip\Actors\Bohemian Rhapsody (2018)
Rami Malek [Freddie Mercury].png

How does "Save actor/crew thumbnails to this folder" value continue. You can copy paste it as text
C:\Program Files\J River\Media Center 31\Data\Tooltip\Actors\$originaltitle ($Year)

Attached the tag
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 09:35:36 am
all right so there is a role name also in the filename. hopefully that is the last missing piece  :D
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 11:17:05 am
Having column in the filename seems to be harder than expected as listmix doesn't like too much of brackets and expressions will become more and more longer and complex because of that. I may have to draw line somewhere how many different naming conventions other than mine I can support
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 12:01:13 pm
Can you lello replace your main cast expression with this. If this doesn't give positive results I need to give up for now and go out and have fun in the summer  :D
Code: [Select]
Replace(Replace(ListLimit(If([v_ACTOR_ALT_ROLES,0],Replace([Actors (alt)],/ /[,=),[Actors (alt)]),8),//,\),/ /(,_-))

Save(C:\Program Files\J River\Media Center 31\Data\Tooltip\Actors\[Original Title] /([Year]/)\, V_ACTOR_IMAGE_PATH)/
Save(1, v_ACTOR_ALT_ROLES)/
Save(1, v_SHOW_ACTOR_MODULE)/
[v_ACTOR_IMAGE_PATH]/

If([v_SHOW_ACTOR_MODULE,0],

    If(IsEqual(Right([v_ACTOR_IMAGE_PATH],3),A-Z),
        Save(Left(ListItem([L1],0,=),1), v_SubFolder)/
        Save(RemoveRight([v_ACTOR_IMAGE_PATH],3), v_ACTOR_IMAGE_PATH),
    )/
   
    Save(ListMix(If(IsMissing(Replace([v_ACTOR_IMAGE_PATH],//,////)If([v_ACTOR_ALT_ROLES,0],ListItem([L1],0,=),Replace([L1],=,/ /[)).png),MISSING FILE: Replace([v_ACTOR_IMAGE_PATH],//,////)If([v_ACTOR_ALT_ROLES,0],ListItem([L1],0,=),Replace([L1],=,/ /[)).png,Replace([v_ACTOR_IMAGE_PATH],//,////)If([v_ACTOR_ALT_ROLES,0],ListItem([L1],0,=),Replace([L1],=,/ /[)).png__ListItem(Replace([L1],/ /[,=),0,=)__RemoveRight(ListItem([L1],1,=),1)),8, Replace(Replace(Replace(ListLimit(If([v_ACTOR_ALT_ROLES,0],[Actors (alt)],[Actors]),8),//,\),/ /(,_-),/ /[,=)), v_ActorImages)
,)
[v_ActorImages]

ListMix(<img src="ListItem([L1],0,__)" size="60x90">,8,[v_ActorImages])

Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 12:11:48 pm
Save(0, v_ACTOR_ALT_ROLES)/ for you. fixed earlier post. Äh wait a minute. it is still wrong for you...

E: Now it should be right. Like said this is becoming really complicated...
E2: it still might be wrong... later..
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 18, 2023, 12:21:20 pm
Attached
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 12:26:37 pm
hmm.. that image filename looks actually right  :) Can you confirm that image name is also in disk that way? did it print any images in the bottom of main cast?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 18, 2023, 01:04:20 pm
No images in the bottom of main cast.

After your second change, the role no longer appears.
I am attaching a screenshot of the actors folder
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 01:54:32 pm
Yep, thanks again for tests. At least there wasn't "is missing" text in your debug pic so that gives me promise that it will work. I already tested it using exactly same folder and file structure that you got and got images showing. I'll clean this up and publish version with these fixes and then hope for the best (for you  ;D mine is working just fine  8) ) and take a summer break of this.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 18, 2023, 02:10:07 pm
Even if it doesn't work, take a summer break because you deserve it  ;D
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 03:37:54 pm
Thanks, one more new feature: DEBUG_ON. if configured on will show variable data on bottom of the view. lello edition soon to be published. Hopefully it works for you. at least i can get the pictures when using config like yours
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 03:51:46 pm
Here is it. Fingers crossed. Configured for you, lello. You'd better review the config though... debug is set on. set it to 0 in configuration to disable it.
Save(0, v_ACTOR_ALT_ROLES) now means that [actors] is in format "Actor name [role name]" AND file name for image is in that same format
Save(1, v_ACTOR_ALT_ROLES) means like my config is that [actors (alt)] is list of "Actor name [role name]" but filename is just actor name
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 18, 2023, 04:39:10 pm
Ok thanks, I'll try tomorrow :)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 18, 2023, 04:45:35 pm
could you post me the picture of your field Actors? I might well have created it wrong
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 04:56:53 pm
we have different systems there, I have tried to adjust to your habits in the script
My actors have only actor names not role names
My actors (alt) have both actor name and role name.

I think your actors is like my actors (alt).

Then there is that filename difference. I use only actor name and only save same actor once and not per movie as anyway there is no role images available so I think it is kind of waste to save same actor image several times (even like this i've got about 50 000 images).

There's no right or wrong but of course it would help if everyone had the same system. Anyway I have tried to make it so that both systems work
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 18, 2023, 05:08:30 pm
Updated to v1.3.2 https://yabb.jriver.com/interact/index.php/topic,135179.msg946024.html#msg946024
Thank you for all testing help on your envs and hopefully something works. I'm off!
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 19, 2023, 03:19:00 am
Tried this morning, and finally you see the photos of the actors!  ;D
Thank you lepa!

Now there are a couple of small issues, but we'll talk about them when you return from vacation. In the meantime, I'll try to fix it
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 29, 2023, 02:02:43 pm
Nice!
Updated to  v1.3.3 (https://yabb.jriver.com/interact/index.php/topic,135179.msg946024.html#msg946024). Mainly just showing more debugging data as pictures show to help problem solving. Also added some info on video details section.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 30, 2023, 04:37:30 am
Welcome back lepa!

I just tried the new v1.3.3, and these are the results.

As for the vlello.edition, I wanted to point out that in some cases the subtitles are not shown, even though the field is regularly populated.

Also, is it possible to reduce the size of the actor photos and increase the description lines? 2 are a bit few.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 30, 2023, 06:30:17 am
Please don't use lello edition anymore as there has been lot's of fixes after that but download the newest one (attached newest here with your path settings i hope lello.txt) and I can't keep up what version is tested.
 
There should be max 3 lines of description. I dont know how you get that font in the description there as I force to to segoe ui (should come windows by default). Maybe your template is some old version. Do you have the font? What is your base font for Theaterview (options-->theaterview-->select font)?

Is your screen 2160p? theaterview zoom set to 100%?

debug images shows you that your path to images isn't right in your the configuration. Also please expand the item in MC to show the whole debug data. image is now missing most of the data.

I edited and attached configuration here for you with your path settings (by memory so might not be correct)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 30, 2023, 11:37:45 am
I'm using the new v1.3.3 and now there are 3 lines of description, but sometimes, like this movie, it's not enough: can it be increased?

Having a 21:9 format screen, I set a custom resolution of 3840x1640 but even going back to 2160p, nothing changes for me. By 100% zoom do you mean Theater view>appearance>size? I set it to 70 but returning it to 100 I only get a very large and annoying font.

Thanks for the configuration changes. I corrected the address for the photos, copying it exactly from the previous template, but the photos of the actors are not visible

I'm attaching some screenshots hoping I did the debug ones right
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 30, 2023, 12:42:25 pm
Argh! I had hard coded path override copied from Zelda testing. That's why actor images are still tried from e: drive....

to show complete contents of the element (like the debug) you need to enter it by pressing right arrow

Your other issues are because of extra wide screen. In TheaterView my means to draw elements to desired coordinates are very limited (I think I have kind of already stretched the limits of the engine quite a bit). I have to predict every element position by the length/size of elements drawn earlier (upper) (e.g length of the description so that lower elements are in their expected space i.e. director & actors are visible when you enter the screen and also are not too high in the screen for aesthetics reasons). In practice that means that I'd need to test & try calculate every image and every text drawn for every resolution some might use. That would be very time consuming and as I don't have such monitor I can't even test and try it. Don't know if some kind multiplier could be implemented. Right now I'm not too keen to spend time on that as it is very very cumbersome to do with current tools

I have 16/9 3840x2160 TV so my calculations (element locations) are based on that (and 100% scaling) and it looks good on that resolution. I can understand that it won't look right on your extra wide screen.

Generic v1.3.4 released here (https://yabb.jriver.com/interact/index.php/topic,135179.msg946024.html#msg946024) to fix the actorimage path. lello adjusted paths attached here. So now images should again show up.

EDIT: It doesn't look too bad on 3840x1640 with 100% to me, would have to calculate and remove some empty row above the poster though.
EDIT2: Also do you have show more values at a time... (see pic) enabled in the theaterview options?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on July 31, 2023, 04:19:53 am
Very good!!  ;D

Now you can also see the subtitles.

The only 2 little problems are the photos of the actors that are too big (the resolution of the photos is very low and it is noticeable on a large screen), and the description field which, as I said, can sometimes be insufficient.

Thank you lepa
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 31, 2023, 05:20:52 am
Now the debugging part really show nicely and troubleshooting should be much more easier though your problems are almost solved already  8)

The Good news:
Title: Re: Custom Tooltips/TheaterView Screens
Post by: jespermart on July 31, 2023, 08:33:39 am
Now the debugging part really show nicely and troubleshooting should be much more easier though your problems are almost solved already  8)

The Good news:
  • As you use all image actors meaning that also names and roles are images I can easily make setup where the image size is adjustable when only image is used. When using font the positioning is too cumbersome to support different sizes.
  • You can also configure ZRatings to fetch bigger images. Mine is set to large so there is not much pixelation
  • You can alter description font size and cutoff size (I have set it to max 440 chars) as well than other font sizes inside SMALL and LARGE VARIABLES sections and in Description section. Beware though that positioning of director/actor text row could go off if you do. Happy tinkering  :D

Is it possible to make the template work in 1080p desktop resolution
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on July 31, 2023, 09:30:03 am
I'm using 200% Windows OS scaling so it should be exactly the same than 1920x1080 100%

EDIT: Might do re-positioning with 150% or some other smaller scaling at some point as this 200% is actually done by accident. 150% currently shows more but it isn't too bad, only ratings could be re-centered, 175 shows images cut
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on August 09, 2023, 12:27:43 am
Happy tinkering  :D

Yesterday I had time to try to make some modifications based on my needs, limited however by my lack of knowledge on the subject.

I was able to expand the description field with satisfaction and to reduce the photos of the actors. However, I didn't like the result of the photos because the frames around them are not perfectly aligned so I went back to the original setting.

So I wanted to create the link to the film series,
Code: [Select]
If(IsEqual([Media Sub Type], Movie),Movies at Series Replace(ListSort(ListLimit([Series],2)),;,/ /// ),)
and I liked the result only that when the Series field is empty, the link refers me to all the films: how can I modify the expression so that when the Series field is empty the link doesn't work or does a message with the title "no series" appear?

The Actors link in my case obviously doesn't work because the field also includes the role: is it possible to change it so that it only reads the name of the actor?

Thank you lepa
Title: Re: Custom Tooltips/TheaterView Screens
Post by: TheShoe on August 10, 2023, 12:27:26 pm
QQ before I jump down the rabbit hole and spend what I expect is a lot of time (anyone have time to donate?):

Is the initial post updated with various edits/tweaks in this thread such that I don't need to apply changes after the initial installation/customization?

Or do I have to install the various bits from the first post, then pour through multiple pages applying various fixes, etc?

thanks!
Title: Re: Custom Tooltips/TheaterView Screens
Post by: DigiBert on August 15, 2023, 04:42:51 am
@lepa can you share the code to display the video details?
Love that presentation.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on August 15, 2023, 05:56:18 am
Everything is shared. Start navigating from first post  :)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: DigiBert on August 15, 2023, 04:14:07 pm
Everything is shared. Start navigating from first post  :)

Sorry, great explanation. I got your theme up, looks great. Thanks for the detailed explanations.

It was @lello's nice theme that brings even more details in the video, audio, sub titles.
Is it possible to share that code too (with detail on the special fields).

My collection is focused on Music Blu-Rays / DVD's (ISO's most of the time because I want to keep the menus).
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on August 16, 2023, 01:12:15 am
I don't think it's nice to offend lepa considering the excellent work he's doing for us, among other things for free.

And then he's right, you have to start reading the post from the beginning to understand how everything works: there's the template, it says how to create the fields and the software you need. Then you can ask specific questions

If I was able to do it as a retired employee, I think anyone can do it

Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on August 16, 2023, 10:41:45 am
I don't see anything offending so all good  :)

@DigiBert
I believe everything shared in this thread comes probably from me. (Would welcome also others to share their stuff here!) So if something is not showing like in my pictures then something is different in your setup than mine. There are base rules for resolutions and scaling.

@lello
As I have more or less parameterized every element size now on my local template I could try to slowly create sizes more suitable for that wide view (no promises though). For that I would need precise settings for resolution and Windows OS scaling. I believe your used resolution was 3840x1640. Are you using 100% Windows OS scaling or what?

I'm aiming to use only 100% MC scaling as MC's scaling doesn't scale custom images at all so text and images will be out of sync if MC scale is changed

Upcoming changes:
 - parameterized every drawn element size so they can be changed from one place
 - updated cast images (not published yet) to only show images without borders if font based names are not used. So the image sizing is easier for those kind of actor images
 - new standard sized critic rating text and video details audio codec images to make aligning easier
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on August 16, 2023, 11:37:32 am
I don't see anything offending so all good  :)


I apologize to DigiBert if I interpreted his tone as ironic (we Italians use ironic tones a lot ;D); obviously I was wrong.

The scaling in the Windows display settings, I set it to 225 because leaving it at 100% the characters are really very small.

I tried 200% and the MC situation improves but I'm starting to have a slight difficulty reading the characters.

P.S. I use the custom resolution 3840x1640

Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on August 16, 2023, 12:31:46 pm
The scaling in the Windows display settings, I set it to 225 because leaving it at 100% the characters are really very small.

I tried 200% and the MC situation improves but I'm starting to have a slight difficulty reading the characters.

P.S. I use the custom resolution 3840x1640
Ok, that much scaling explains why everything is so large in your theaterview as there is quite small amount of vertical place. I need to think if I can figure out doing some template scaling logic to enlatge/shrinken some parts at one go and without breaking the theme look. I'll experiment with 3840x1640, OS 225%, MC 100% when i got some free time

EDIT: templates internal scaling value of 0.8 got me something like this for small screen 3840x1640 OS 225% MC 100%. Is this font still readable for you? Some compromises needed to make e.g. ending time is only shown in that inforow. Alos description char counter needs some work. In the Big screen the font can be bigger of course but adjusting sizes there is gonna be much bigger task than this
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Drybonz on August 16, 2023, 02:06:21 pm
The title mentions tooltips, but most of the screenshots I'm looking at look like they are for TheatreView.  I'd really like to get the Tvdb/Imdb/RT ratings on the tooltips in standard view.  Has anyone done one like this?  (The coding stuff to make these is mostly beyond me).  Thanks for the help.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on August 16, 2023, 02:25:45 pm
Older thread have some tooltipping also (see first post for link). Anyone hasn't posted here about those yet. Mine is currently something like this but haven't done anything there for ages as it is quite useless info for me.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lello on August 17, 2023, 12:28:04 am
Is this font still readable for you?

On my screen it reads perfectly
Title: Re: Custom Tooltips/TheaterView Screens
Post by: DigiBert on August 17, 2023, 06:58:07 am
I apologize to DigiBert if I interpreted his tone as ironic (we Italians use ironic tones a lot ;D); obviously I was wrong.


No problem, you made me look again at the code and explanations. I did not see the video details in @lepa's code, it showed in your example.

I've got this activated now ;-)

The code does not see the difference in 1080i and 1080p so I make this editable for now and change it in 1080i where needed.

Still some little bugs in my version, will look into that furthe before questions.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on August 17, 2023, 08:03:38 am
Still some little bugs in my version, will look into that furthe before questions.
This thing comes with tail light guarantee  ;D
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on August 17, 2023, 11:22:56 am
First part of the large screen with internal scaling factor for 3840x1640-225%-100%. I'm done for today.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: altahomwtheatre on August 21, 2023, 06:18:00 pm
I would like to send my thanks to all those who have contributed to this thread.  In particular to lepa, moe, and zybex.  Much of the work you have done should be incorporated directly into next version of MC.  The zratings app is amazing.  Thank you.

While I was never able to get the "No Poster" template to work properly for me, I did steal almost entirely from it to make my own template.  It is simplified (no actor pictures) but a huge improvement over the default.

To anyone new that is thinking about trying this I spent about a day to get it working.  Most of the time was reading through all the posts (both threads).  I would suggest following the steps in the first thread.  That will get your setup correct with all required Db fields and icons.  It helped me get comfortable with steps required as I had no idea of these capabilities.  My next step was to make a copy of the MC default Movie template.  From the copy I started modifying each section by taking bits from the templates posted by lepa.

Title: Re: Custom Tooltips/TheaterView Screens
Post by: Mans on December 02, 2023, 08:39:47 am
Greatday all of you,
Hoping someone could have a look at the following code.
Thisone was shared years ago with me, sorry can't remember the kind person who assisted me at the time  8)

The code is ment to display all alternative albums by the selected artist (Theater View).
I've been struggling with this code forever; for many artists one single album isn't lined up even the cover art is within the accessed folder.

I'm 100% sure it's my bad and I'm doing something wrong witch creates a conflict in order to keep one album cover missed each time calling the feature.

Thanks in advance for any hint or clue to look at :-)

Code: [Select]
<font size="80" color="#9496a3">if(isequal(ListCount(RemoveLeft(Load(vAlbumsByArtist[Album Artist (auto)]),Math(Find(Load(vAlbumsByArtist[Album Artist (auto)]),;)+2))),1),,Math((ListCount(RemoveLeft(Load(vAlbumsByArtist[Album Artist (auto)]),Math(Find(Load(vAlbumsByArtist[Album Artist (auto)]),;)+2))))-1)) if(isequal(ListCount(RemoveLeft(Load(vAlbumsByArtist[Album Artist (auto)]),Math(Find(Load(vAlbumsByArtist[Album Artist (auto)]),;)+2))),1),,if(isequal(ListCount(RemoveLeft(Load(vAlbumsByArtist[Album Artist (auto)]),Math(Find(Load(vAlbumsByArtist[Album Artist (auto)]),;)+2))),2),other album by [Album Artist (auto)]:,other albums by [Album Artist (auto)]:))
<img src="C:\JRiver Cover Art\Albums\[Album Artist (auto)] - Replace(Clean(ListClean(Replace(RemoveLeft(Load(vAlbumsByArtist[Album Artist (auto)]);,Math(Find(Load(vAlbumsByArtist[Album Artist (auto)]),;)+2));,[Album];,),1),3),;,.jpg" width="45" height="45">/ <img src="C:\JRiver Cover Art\Albums\[Album Artist (auto)] -/ ).jpg" width="45" height="45"><//font>
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 04, 2023, 09:52:43 am
Here's the original post and discussion, maybe Lepa wants to tackle it again :)
https://yabb.jriver.com/interact/index.php/topic,124820.msg866640.html#msg866640

Doesn't Spotlight provide most of the info you want here?

... or try something like this (assuming the other parts of the code provided by Lepa are in place):
Code: [Select]
save(listsort(listclean(listclean(listclean(replace(;Load(vAlbumsByArtist[Album Artist (auto)]);, [Album];,,1), 1), 3), 4)), _albums)/
<font size="80" color="#9496a3">ifcase(ListCount([_albums]), 6, 2, ListCount([_albums]) other albums by, 1, 1 other album by, 0, No other albums by) [Album Artist (auto)]/
if([_albums], :
replace(listmix(/#<img src="C:\JRiver Cover Art\Albums\[Album Artist (auto)] - [L1].jpg" width="45" height="45">#/, 0, [_albums]),;,/ ),)<//font>
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Mans on December 04, 2023, 01:48:29 pm
Many thanks dear Zybex,

Thanks Lepa for the initial work done :-)
Much appreciated, getting closer with Zybex help here :-)

Something I've just noticing which was also causing a problem,
When album titles using ":" or "_", the art isn't shown only the jpg number and the height and width requirements.
Since they did show up as normal cover art, only not within the list of alternative albums i couldn't find the clue.
Anyway I noticed it now and find&replace correct it all at once :-)

One thing is off; The count of alternative albums is one too high, actually two.
Showing the exact number of alternative albums in total +1.
This instead of -1 as one is already displayed/selected.
Now it comes back as p.e. 10 albums as alternative, where only 9 albums exists, but since one is already selected it should say 8 alternative numbers.
Guessing the counting code is somewhere doing +1 instead of -1,

Much appreciated for your help and wishing you a great day,

Mans.

Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 04, 2023, 02:14:18 pm
There's no math there, it's just counting the different names. It's more likely there are duplicate/similar names in the list that don't have a corresponding image in the folder. This will print the album names together with the poster (if there's a poster):

Code: [Select]
save(listsort(listclean(listclean(listclean(replace(;Load(vAlbumsByArtist[Album Artist (auto)]);, [Album];,,1), 1), 3), 4)), _albums)/
listmix(/#save(replace([_albums], [L1], _), _albums)#/, 0, :;\;//;?;*;>;<;";|)/
<font size="80" color="#9496a3">ifcase(ListCount([_albums]), 6, 2, ListCount([_albums]) other albums by, 1, 1 other album by, 0, No other albums by) [Album Artist (auto)]/
if([_albums], :
replace(listmix(/#[N]: "[L1]"
<img src="C:\JRiver Cover Art\Albums\[Album Artist (auto)] - [L1].jpg" width="45" height="45">#/, 0, [_albums]),;,char(13)),)<//font>

It also replaces all forbidden chars in the Album name with an underscore - the Album poster filename should follow the same convention.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Mans on December 04, 2023, 02:51:08 pm
Thanks Zybex,

Very helpfull :-)
The chars are now all cleaned up, thanks.

Only the number of alternative albums is still one to high.
As you mentioned it displays the number of all albums per artist.
But since this code is used to sum all "alternative" albums to this artist, it should mention -1.

And the print command shows them all, eachtime one too much as it includes the already selected one.

Thanks again Zybex, appreciated !
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 04, 2023, 03:14:17 pm
The code already removes the current Album from the list, so it should not count or show it.
I modified the code again to print the album list it's seeing. Please try it and paste a screenshot of the names.

Code: [Select]
save(listsort(listclean(listclean(listclean(replace(;Load(vAlbumsByArtist[Album Artist (auto)]);, [Album];,,1), 1), 3), 4)), _albums)/
listmix(/#save(replace([_albums], [L1], _), _albums)#/, 0, :;\;//;?;*;>;<;";|)/
<font size="80" color="#9496a3">ifcase(ListCount([_albums]), 6, 2, ListCount([_albums]) other albums by, 1, 1 other album by, 0, No other albums by) [Album Artist (auto)]/
if([_albums], :

current album:
"[Album]"
Other albums:
replace(listmix(/#"[L1]"#/, 0, [_albums]),;,char(13)),)

replace(listmix(/#[N]: "[L1]"
<img src="C:\JRiver Cover Art\Albums\[Album Artist (auto)] - [L1].jpg" width="45" height="45">#/, 0, [_albums]),;,char(13)),)<//font>
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 04, 2023, 03:31:52 pm
The problem could be caused by extra spaces in the list items. Here's a version that ignores spaces:

Code: [Select]
save(listsort(listclean(listclean(replace(;listclean(trim(Load(vAlbumsByArtist[Album Artist (auto)])), 1);,;trim([Album]);,;,1), 3), 4)), _albums)/
listmix(/#save(replace([_albums], [L1], _), _albums)#/, 0, :;\;//;?;*;>;<;";|)/
<font size="80" color="#9496a3">ifcase(ListCount([_albums]), 6, 2, ListCount([_albums]) other albums by, 1, 1 other album by, 0, No other albums by) [Album Artist (auto)]/
if([_albums], :
replace(listmix(/#<img src="C:\JRiver Cover Art\Albums\[Album Artist (auto)] - [L1].jpg" width="45" height="45">#/, 0, [_albums]),;,/ / ),)<//font>
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Mans on December 07, 2023, 11:16:40 am
Much appreciated Zybex,

Cool, all album art is now into place and displayed as should :-)

The only remaining thing, the title informing about the number of alternative albums is still one to high;
It mentions the exact number of albums per selected artist, without the minus 1 due to one already selected/displayed.
I'll give this one myself a go during the weekend, maybe I'll figure it out this time :-)

Thanks again for the nice help, have a great day,

Mans.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Mans on December 09, 2023, 08:25:32 am
Another thanks for your kind help Zybex and Lepa,

I was also able to correct the albumcount, in order to substract the already shown album :-)
Now the number of 'alternative albums' is displayed correctly,
Was much more simple as I tought initially :-)
Code: [Select]
save(listsort(listclean(listclean(replace(;listclean(trim(Load(vAlbumsByArtist[Album Artist (auto)])), 1);,;trim([Album]);,;,1), 3), 4)), _albums)/
listmix(/#save(replace([_albums], [L1], _), _albums)#/, 0, :;\;//;?;*;>;<;";|)/
<font size="80" color="#9496a3">ifcase(Math(ListCount([_albums])-1), 6, 2, Math(ListCount([_albums])-1) other albums by, 1, 1 other album by, 0, No other albums by) [Album Artist (auto)]/
if([_albums], :
replace(listmix(/#<img src="C:\JRiver Cover Art\Albums\[Album Artist (auto)] - [L1].jpg" width="45" height="45">#/, 0, [_albums]),;,/ / ),)<//font>
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Mans on December 10, 2023, 06:37:30 am
Hi Zybex,
One more request :-)

Code: [Select]
if([_albums],
replace(listmix(/#<img src="C:\JRiver Cover Art\Albums\[Album Artist (auto)] - [L1].jpg" width="45" height="45">#/, 0, [_albums]),;,/ / ),)<//font>

With the following code, I'm noticing, when having more as 8 alternative albums, the spacing isn't always well.
Due to max space for 8 covert art's per line, the 9th album then jumps to the next line and causing a not-so-clean alignment vs the previous line.

Could the replace(Listmix) also be limited to pe 8 results per line ?
Should I enter multiple parts of code per line ? 1-8 and 9-17, etc

Thanks again :-)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 10, 2023, 12:23:07 pm
Try this to break in groups of 8 (up to 80 results supported, just change the '10' in the repeat() function if you need more):

Code: [Select]
if([_albums], :
replace(listmix(/#<img src="C:\JRiver Cover Art\Albums\[Album Artist (auto)] - [L1].jpg" width="45" height="45">if([L2],char(10),/ / )#/, 2, [_albums],repeat(;;;;;;;1,10)),;,),)<//font>

Or, you can just remove the spacing between the images:
Code: [Select]
if([_albums],
replace(listmix(/#<img src="C:\JRiver Cover Art\Albums\[Album Artist (auto)] - [L1].jpg" width="45" height="45">#/, 0, [_albums]),;,),)<//font>

Quote
I was also able to correct the albumcount, in order to substract the already shown album :-)
cool :) But really, this should not be needed with this code. I asked you for a screenshot to see why it was not working - likely the other code that populates the vAlbumsByArtist variable is doing something unexpected. Anyway, no need to worry if you got it working.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Mans on December 10, 2023, 03:19:50 pm
Many thanks Zybex !
Perfect, job completed :-)

Attached a screenshot with the printed cover art and the album count above it.
Sorry I've missed the request to post a screenshot.

FYI I've got 3 albums into the Arcade Fire folder, MC has them shown correctly.
Once I select one of them, the number of 2 alternative albums should be mentioned, here's 3 (the total albums).

With the Math adaption the count is corrected.

Thanks again for the kind help !

Mans.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 10, 2023, 04:31:28 pm
"ArcadeFireID" - this is the extra item in the list, likely added by the expression you have somewhere else that sets the vAlbumsByArtist variable.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on December 14, 2023, 01:05:03 pm
I am trying to recreate this expression to my needs and I have encounted an error on my expression. I can't figure out where is the error.
Code: [Select]
Replace(ListMix(If(IsMissing(C:\Jiver\Artwork\artists\[L1].jpg),,<img src="C:\Jiver\Artwork\artists\[L1].jpg" size="115x115">),1,[amg artist similar],1;2;3;4;5),;,)
Replace(ListClean(ListMix(If(IsMissing(C:\Jiver\Artwork\artists\[L1].jpg),,<font face="courier" size="92">If(Compare(Length([L1],>,23)),Mid([L1],0,20).../ / ,[L1]Repeat(/ ,Math(25-Length([L1]))))<//font>),1,[amg artist similar],1,2,3,4,5),3),;,)
It show my image file but when comes to text it is an syntax error.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 14, 2023, 01:09:57 pm
C:\Jiver ?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on December 14, 2023, 01:13:51 pm
No, that is my location name.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 14, 2023, 01:16:15 pm
Your second Listmix has "1,2,3,4,5" instead of "1;2;3;4;5" :)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on December 14, 2023, 01:20:34 pm
That is change from , to ;. But the syntax is still there. Now is x5 times.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 14, 2023, 01:22:29 pm
You have a misplaced parenthesis in Length(). Fixed here:

Code: [Select]
Replace(ListClean(ListMix(If(IsMissing(C:\Jiver\Artwork\artists\[L1].jpg),,<font face="courier" size="92">If(Compare(Length([L1]),>,23),Mid([L1],0,20).../ / ,[L1]Repeat(/ ,Math(25-Length([L1]))))<//font>),1,[amg artist similar],1;2;3;4;5),3),;,)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on December 14, 2023, 01:23:29 pm
I think the error is somewhere on this part of expression
(https://i.gyazo.com/e65434195dcaed83336f41b750cc63a9.png)
I will try to breakdown every part of this expression to see where lies that error.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 14, 2023, 03:18:41 pm
Did you see the fix in the post above?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on December 14, 2023, 04:01:34 pm
Yes. I have seen the issue... Thx
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on December 15, 2023, 05:05:34 pm
If you like you could make it a little more clever by:
1. checking all similar artists at one go
2. shuffling the returned list of available artists (so it is not always the first five if there are more hits)
3. limiting to 5 artists and use that list (v_similar) to render images and names.

Code: [Select]
Save(E:\.MC Images\Music\Artists\Square,v_image path)/

Save(ListLimit(ListShuffle(ListClean(ListMix(If(IsMissing([v_image path]\Clean([L1],3).jpg),,[L1]),,[amg artist similar]),3)),5),v_similar)/

If(IsEmpty([v_similar]),,
    Replace(ListMix(<img src="[v_image path]\Clean([L1],3).jpg" size="115x115">,,[v_similar]),;,)/
    <br>/
    <font face="courier" size="92">Replace(ListMix(If(Compare(Length([L1]),>,23),Mid([L1],0,20).../ / ,[L1]Repeat(/ ,Math(25 - Length([L1])))),,[v_similar]),;,)<//font>
)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on December 16, 2023, 10:18:07 pm
Hey Lepa. That is a one expression or multiple ones? Im trying to figure out the meaning of it. I barely used the save function on my work.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on December 17, 2023, 03:54:06 am
It outputs maximum of five artist images and on second row the artist names like your previous script.
You can loose the save rows and just use the saved text in the script latter. IMO It is just easier to read and construct big things using the variables when you don't have so long rows.

saves my image path to variable v_image_path. "/" in the end means that linefeed is not inserted. yet another thing to make script more readable as code can be done in multiple lines without linefeeds in the rendering
Code: [Select]
Save(E:\.MC Images\Music\Artists\Square, v_image path)/
Every artist from [amg artist similar] which has image in your saved v_image path is parsed to list, that list is shuffled and limited to 5 items and saved to v_similar. So v_similar is now dynamic field containing shuffled and limited list of artists for which you have image in your system
Code: [Select]
Save(ListLimit(ListShuffle(ListClean(ListMix(If(IsMissing([v_image path]\Clean([L1],3).jpg),,[L1]),,[amg artist similar]),3)),5),v_similar)/
Code: [Select]
If(IsEmpty([v_similar]),,    use variable v_similar to print images row
Code: [Select]
    Replace(ListMix(<img src="[v_image path]\Clean([L1],3).jpg" size="115x115">,,[v_similar]),;,)/    linefeed
Code: [Select]
    <br>/    use v_similar to print artist names
Code: [Select]
    <font face="courier" size="92">Replace(ListMix(If(Compare(Length([L1]),>,23),Mid([L1],0,20).../ / ,[L1]Repeat(/ ,Math(25 - Length([L1])))),,[v_similar]),;,)<//font>
)


Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 17, 2023, 05:14:39 am
IMO It is just easier to read and construct big things using the variables when you don't have so long rows.

It's also good for performance, as you only do the v_similar calculation once and then use the result in 2 places. Without the Save you would need to run the same calculation twice, doubling the execution time.

There's no need to initialize v_similar as the value is replaced on the next line.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on December 17, 2023, 05:29:41 am
There's no need to initialize v_similar as the value is replaced on the next line.
That's right. It was leftover from other try
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on December 17, 2023, 11:02:59 am
Thx for the description. When I have the time I will try to replicate yours and see what happends.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on December 20, 2023, 10:37:31 am
@Lepa
I have done those steps, but in the end I have this
(https://i.gyazo.com/1a011d25d8139946e7d05fe3def06272.png)
I made them two fields v_image path, and v_similar. On your v_image path you have a different path so I did change with mine.
Code: [Select]
Save(C:\Jiver\Artwork\Artists\square, v_image path)/Im not sure if the square are from your path or needed to be there. My exact path for image are:
Code: [Select]
C:\Jiver\Artwork\Artists\Artist Name.jpg and then I have the file name.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on December 20, 2023, 12:55:47 pm
Square is just my folder for square images. I have also folder for wide images.
e.g. "E:\.MC Images\Music\Artists\Square\ABBA.jpg" & "E:\.MC Images\Music\Artists\Wide\ABBA.jpg"

You don't have to save and use variable [v_image path] if you don't want. Just replace it with your path. I just find it easier to modify path when is saved out of the business logic and the actual script is also more clean and thus easier to maintain.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 20, 2023, 03:40:14 pm
Quote
I made them two fields v_image path, and v_similar. On your v_image path you have a different path so I did change with mine.
Just to be clear - you must NOT create fields in MC with these names, they are temporary variables. If you did, you need to delete them.

I just noticed the line numbers in your Zelda screenshot - Zelda is giving you an error because you did not add the Save() lines, you're just testing the 3rd line of code. That won't work without the Save() calls first, you need to paste all the code there (and also in MC when you use the code there)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on December 21, 2023, 04:07:40 pm
I manage to do this:
(https://i.gyazo.com/e6503259db7c29602e64aa6bb755d728.png)
The only issue now, is to adjust the text to be in the same line with image.
The initial expression had to be change to a better suitable font and the size for it.
Code: [Select]
Save(C:\Jiver\Artwork\Artists, v_image path)/
Save(ListLimit(ListShuffle(ListClean(ListMix(If(IsMissing([v_image path]\Clean([L1],3).jpg),,[L1]),,[amg artist similar]),3)),5),v_similar)/
If(IsEmpty([v_similar]),,Replace(ListMix(<img src="[v_image path]\Clean([L1],3).jpg" size="115x115">,,[v_similar]),;,)/

<br>/
<font face="sudo ui medium"size="95">/ Replace(ListMix(If(Compare(Length([L1]),>,22),Mid([L1],0,25).../ / ,[L1]Repeat(/ ,Math(25 - Length([L1])))),,[v_similar]),;,)<//font>
)))))
I will try to play with the length() and maybe to adjust properly.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: zybex on December 21, 2023, 04:22:40 pm
Nice!  :)

For the spacing, just increase the two "25" numbers to add/remove spaces. You can also adjust the image sizes (115x115)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on December 21, 2023, 04:44:56 pm
The problem with adjusting the size it will not fit the number I want in the tooltip. I did try that and it offset to 4 or less.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on December 22, 2023, 01:05:04 am
"sudo ui medium" probably isn't mono font. try to use plain "sudo medium" font and then play with font size and/or spacing
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on January 20, 2024, 10:57:03 am
Just to note that alignments of the views are currently broken in MC32 due to internal hard coded font size changes. Also because of image rendering changes which removes spacing between objects (this is a good thing)
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on January 20, 2024, 11:31:29 am
I yet not installed the new version, but that doesn't sound great. Can you share some screen shot of this?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on January 20, 2024, 11:46:07 am
Font is now 20% bigger. It only affects painfully (meaning re-calculating things) if one has relied on that constant when positioning items. Just need to wait till the dust settles and then try to adapt. Time will tell what kind of possibilities changes will enable.

Also you can set scaling 20% smaller and it makes font smaller but of course scaling also affects other elements
Title: Re: Custom Tooltips/TheaterView Screens
Post by: JimH on January 20, 2024, 12:20:06 pm
lepa,
Don't worry about it.  We'll make sure your work is preserved.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on January 20, 2024, 12:52:59 pm
53. NEW: Added support for "pt" and "px" size definitions in inline string <font> parameters
I suppose this is the reason why fonts size are changes? No other thing I see in the new build. Jim can this be elaborate a bit to understand the reason you made the changes?

Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on January 20, 2024, 01:23:36 pm
lepa,
Don't worry about it.  We'll make sure your work is preserved.
Thanks. Not worrying though, just proactive note here that adjustment is needed but it is better handled later when TheaterView changes are known and stabilized :) Looking forward
Title: Re: Custom Tooltips/TheaterView Screens
Post by: JimH on February 03, 2024, 03:32:33 am
A lot of the work from this thread has been incorporated in this new feature:

Active Theater View Templates (https://yabb.jriver.com/interact/index.php/topic,138052.msg957413.html#msg957413)

It involves a data change that could affect custom work done.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on February 16, 2024, 11:45:03 pm
Did you break the "valign" on font properties with version 32? I see this is not working anymore. Checking on the older version has no problem with valign properties in fonts.
Another thing is on some of my tooltips are ok, some are not.
(https://i.gyazo.com/c9efc38a0ca6e3411cbb070afe469a28.png)
(https://i.gyazo.com/ba38b143f89a6fc55361d0bb55a25e3e.png)
I have checked these two tooltip to see what is the difference and I don't see anything odd about them.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on February 17, 2024, 05:05:01 am
Vertical align itself still works. If you mean that there is no padding then what you see is probably related to this:
"54. Changed: Empty text tokens no longer contribute vertical height when rendering text, resulting in a more consistent vertical spacing."

Change is good for me so now there is no automatic padding between the components (which is very big one if font was very big in earlier row etc) but i can add it myself by using transparent image (1x1-transparent.png) for whatever size

Code: [Select]

### Don't have all your fields so created variables for example
Save(1, v_Track Pick)/
Save(71, v_Track Popularity)/
Save(4, v_Track Ranking)/
Save(5, v_Track Rating)/
Save(06-Jan-2024, v_Track Rating Date)/
Save(1, v_Track Play Count)/
Save(6 Times, v_Track Play Counter)/
Save(23-Jan-2024, v_Track Play Date)/
Save(1, v_Track Skip Count)/
Save(1 Time, v_Track Skip Counter)/
Save(28-Aug-2023, v_Track Skip Date)/
Save(69512481, v_Track Play Score)/



Save(20, v_LabelMaxLen)/
Save(20, v_ValueMaxLen)/
Save(color="#111111", v_FontColor)/
Save(bgcolor="#CECDEB", v_FontLabelBGColor)/
Save(bgcolor="#FFAED7", v_FontValueBGColor)/
Save(color="#17B4FF", v_FontColumnTitle)
Save(<img src="tooltip:MISC//Separator//1x1-transparent" size="4x4">, v_Padding)/

<font face="Hack" [v_FontColumnTitle]>/
    <b>[v_Padding]TRACK                [v_Padding]STATS<//b><br>/
   
    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Pick/
        Repeat(/ , Math([v_LabelMaxLen] - 10))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [v_Track Pick]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Pick])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Popularity/
        Repeat(/ , Math([v_LabelMaxLen] - 16))/
    <//font>[v_Padding]/
    <font  [v_FontColor] [v_FontValueBGColor]>/
        / [v_Track Popularity]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Popularity])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor] color="#000000">/
        / Track Ranking/
        Repeat(/ , Math([v_LabelMaxLen] - 13))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor] color="#000000">/
        / [v_Track Ranking]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Ranking])))/
    <//font><br>[v_Padding]<br>/


    <font [v_FontColor] [v_FontLabelBGColor] color="#000000">/
        / Track Rating/
        Repeat(/ , Math([v_LabelMaxLen] - 12))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor] color="#000000">/
        / [v_Track Rating]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Rating])))/
    <//font><br>[v_Padding]<br>/


    <font [v_FontColor] [v_FontLabelBGColor] color="#000000">/
        / Track Rating Date/
        Repeat(/ , Math([v_LabelMaxLen] - 17))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor] color="#000000">/
        / [v_Track Rating Date]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Rating Date])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor] color="#000000">/
        / Track Play Count/
        Repeat(/ , Math([v_LabelMaxLen] - 16))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor] color="#000000">/
        / [v_Track Play Count]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Play Count])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor] color="#000000">/
        / Track Play Counter/
        Repeat(/ , Math([v_LabelMaxLen] - 18))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor] color="#000000">/
        / [v_Track Play Counter]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Play Counter])))/
    <//font><br>[v_Padding]<br>/


    <font [v_FontColor] [v_FontLabelBGColor] color="#000000">/
        / Track Play Date/
        Repeat(/ , Math([v_LabelMaxLen] - 15))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor] color="#000000">/
        / [v_Track Play Date]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Play Date])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor] color="#111111">/
        / Track Skip Count/
        Repeat(/ , Math([v_LabelMaxLen] - 16))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [v_Track Skip Count]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Skip Count])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor] color="#000000">/
        / Track Skip Counter/
        Repeat(/ , Math([v_LabelMaxLen] - 18))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor] color="#000000">/
        / [v_Track Skip Counter]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Skip Counter])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor] color="#000000">/
        / Track Skip Date/
        Repeat(/ , Math([v_LabelMaxLen] - 15))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor] color="#000000">/
        / [v_Track Skip Date]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Skip Date])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor] color="#000000">/
        / Track Play Score/
        Repeat(/ , Math([v_LabelMaxLen] - 16))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor] color="#000000">/
        / [v_Track Play Score]Repeat(/ ,Math([v_ValueMaxLen] - Length([v_Track Play Score])))/
    <//font>/
<//font>
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on February 20, 2024, 12:37:49 pm
@Lepa. I'm trying to understand your last example on your post. I understand you don't have my fields and you have to do variables. But what I don't understand is you have something which I didn't see till now.
Code: [Select]
Save(20, v_LabelMaxLen)/
Save(20, v_ValueMaxLen)/
Save(color="#111111", v_FontColor)/
Save(bgcolor="#CECDEB", v_FontLabelBGColor)/
Save(bgcolor="#FFAED7", v_FontValueBGColor)/
Save(color="#17B4FF", v_FontColumnTitle)
Save(<img src="tooltip:MISC//Separator//1x1-transparent" size="4x4">, v_Padding)/
Those are part of language expression or yours? Or those are saved for later use in the expression? I think some information has to be updated in html properties to match the new changes. I didn't find anywhere to understand what has be changed.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on February 20, 2024, 01:48:37 pm
those are just helper variables which are used in the actual expression. This way you don't need find these values in the actual expression and change the values in the multiple places. Just edit variables font color and every font color in the expression gets the same color. Or if you want to change label bg color, just change value for v_FontLabelBGColor and every label bg color will use that color. So not necessary when you are creating expression but I find them helpful when trying things like changing colors and sizes

This now uses same fields than you did have. you need to have image "tooltip:MISC//Separator//1x1-transparent" which sets the padding. Could be that placeholder also respects the size ("4x4") so if image is not found MC still reserves that space
Code: [Select]
Save(20, v_LabelMaxLen)/
Save(20, v_ValueMaxLen)/
Save(color="#111111", v_FontColor)/
Save(bgcolor="#CECDEB", v_FontLabelBGColor)/
Save(bgcolor="#FFAED7", v_FontValueBGColor)/
Save(color="#17B4FF", v_FontColumnTitle)
Save(<img src="tooltip:MISC//Separator//1x1-transparent" size="4x4">, v_Padding)/

<font face="Hack" [v_FontColumnTitle]>/
    <b>[v_Padding]TRACK                [v_Padding]STATS<//b><br>/
   
    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Pick/
        Repeat(/ , Math([v_LabelMaxLen] - 10))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [Track Pick]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Pick])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Popularity/
        Repeat(/ , Math([v_LabelMaxLen] - 16))/
    <//font>[v_Padding]/
    <font  [v_FontColor] [v_FontValueBGColor]>/
        / [Track Popularity]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Popularity])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Ranking/
        Repeat(/ , Math([v_LabelMaxLen] - 13))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]">/
        / [Track Ranking]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Ranking])))/
    <//font><br>[v_Padding]<br>/


    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Rating/
        Repeat(/ , Math([v_LabelMaxLen] - 12))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [Track Rating]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Rating])))/
    <//font><br>[v_Padding]<br>/


    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Rating Date/
        Repeat(/ , Math([v_LabelMaxLen] - 17))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [Track Rating Date]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Rating Date])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Play Count/
        Repeat(/ , Math([v_LabelMaxLen] - 16))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [Track Play Count]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Play Count])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Play Counter/
        Repeat(/ , Math([v_LabelMaxLen] - 18))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [Track Play Counter]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Play Counter])))/
    <//font><br>[v_Padding]<br>/


    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Play Date/
        Repeat(/ , Math([v_LabelMaxLen] - 15))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [Track Play Date]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Play Date])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Skip Count/
        Repeat(/ , Math([v_LabelMaxLen] - 16))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [Track Skip Count]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Skip Count])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Skip Counter/
        Repeat(/ , Math([v_LabelMaxLen] - 18))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [Track Skip Counter]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Skip Counter])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Skip Date/
        Repeat(/ , Math([v_LabelMaxLen] - 15))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [Track Skip Date]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Skip Date])))/
    <//font><br>[v_Padding]<br>/

    <font [v_FontColor] [v_FontLabelBGColor]>/
        / Track Play Score/
        Repeat(/ , Math([v_LabelMaxLen] - 16))/
    <//font>[v_Padding]/
    <font [v_FontColor] [v_FontValueBGColor]>/
        / [Track Play Score]Repeat(/ ,Math([v_ValueMaxLen] - Length([Track Play Score])))/
    <//font>/
<//font>
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on February 21, 2024, 08:15:06 am
On version 31 when using https://wiki.jriver.com/index.php/Expression_Language#HTML_Font_Properties (https://wiki.jriver.com/index.php/Expression_Language#HTML_Font_Properties) (some features are missing there), one of them is that when using valign"value" it doesn't take in consideration the vertical alignment of the font in version 32.
(https://i.gyazo.com/d07e7fb1d4067e231de6ebf16c14ef7a.png)
Below is my expression:
Code: [Select]
If(isempty([number plays]),<font face="ubuntu mono"size="90"valign="bottom">--<//font>,<font face="ubuntu mono"size="90"valign="bottom">PadNumber([number plays],2)<//font>
<font face="ubuntu mono"size="90"valign="bottom">fixcase(FormatDate([Last Played, 0],yyyy-MM-%d hh:mm, %A),1)<//font>
)
Code: [Select]
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on February 21, 2024, 09:49:54 am
It isn't supported everywhere for sure. I was thinking in context of tooltip and theaterview screen where it should be available. I have used it in the player top panel and there it seems to be working. not sure about other places in the standard view. at least thumbnail text seems to not supports valign
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on February 21, 2024, 10:38:44 am
it is actually supported also with thumbnail text. It just that because there is no empty vertical space anymore with font the middle,top and bottom are almost the same thing. This can be verified by using bigger font and then do valings with smaller size fonts
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Hendrik on February 21, 2024, 12:01:04 pm
If there is a fixed-size UI element it gets drawn into, it needs to be passed the full size externally so it actually knows where top and bottom is. If this is not the case, then it'll just make the line the size of the biggest element, and thus alignment makes no difference.
We can potentially look into fixing such cases, if you document where exactly these occur. Although depending on how the UI is made in that part, there is not necessarily a guarantee.
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on February 21, 2024, 12:15:04 pm
This change has have benefits to me. I can use e.g 1xX pixel image to set the height if I need some spacing but now there isn't forced spacing anymore which suits me
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on February 21, 2024, 12:55:46 pm
Then why in version 31 is working but not in 32 in standard view?
(https://i.gyazo.com/e7fc0b733daecde7e22834fdfc05ad2e.png)
Code: [Select]
<font face="ubuntu mono"valign="bottom">bottom<//font>/ <font face="ubuntu mono"valign="medium">medium<//font>/ <font face="ubuntu mono"valign="top">top<//font>
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on February 21, 2024, 01:37:03 pm
New tighter spacing allows us to slice images more and it is possible to build something like this (quick demo). Hint... 3 text rows beside 1 (actually 4) image
Title: Re: Custom Tooltips/TheaterView Screens
Post by: SkGe on February 25, 2024, 03:55:21 am
@Lepa. How did you manage to have those text on the right side of image? Can you share that?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on March 03, 2024, 02:38:57 pm
@Lepa. How did you manage to have those text on the right side of image? Can you share that?
Sliced album art image to three different images. Before this tightening change only two images tower was possible

Moving on...
Worked a little with my Series templates. Shows progress using delimiter bar between header data and description. bar is gray if there is no progress and completely blue when completed and something between while ongoing
Title: Re: Custom Tooltips/TheaterView Screens
Post by: Smack on March 05, 2024, 07:51:56 am
Hello guys,

i got the newest JRiver (V32) installed. Now i want to change the theater view screen but i have no clue how to do that. Is there a tutorial how to change the screen?
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on March 15, 2024, 07:59:23 am
There are some instructions in the first post but it isn't just simple mouse click most of the times and at least my public templates are broken currently as MC's theater view changes are is still under development so I don't want to spend my time fixing my stuff many times
Title: Re: Custom Tooltips/TheaterView Screens
Post by: lepa on March 15, 2024, 08:04:25 am
Thanks for the help. I added that into a new blank expression and nothing shows up. Tried adding to an existing expression like the 'header' and still got nothing.
Ah, haven't used MC's stock poster fetching for ages as it can only save poster next to file so you probably need something like this:
<img src="[Filename (path)]Filename(,0).jpg"  height="200">
Title: Re: Custom Tooltips/TheaterView Screens
Post by: datdude on March 15, 2024, 10:43:47 am
That did it, thanks!
Title: Re: Custom Tooltips/TheaterView Screens
Post by: antenna on April 28, 2024, 07:49:09 pm
Example:  C:\Users\jimh\AppData\Roaming\J River\Media Center 32\Library\Backup

You may also want to back up on your own before upgrading.  If you don't want your templates to be overwritten, then after you restore, manually edit the version in your current templates file (with a text file editor) to be Version="100.0" or some high number.  The templates file path is "C:\Users\USERNAME\AppData\Roaming\J River\Media Center 32\Library\theater view file info templates.xml" in Windows for a local library.  For a library server client, this has to be done on the server.  Note that if you do any editing of the templates in the MC dialog, it will revert to the current version when saved.


Yeah, this is not a success-oriented approach for the long term.

Unless, of course, JR is now taking Apple's approach of dictating to users.

The new templates are interesting to me in some scenarios.

But mostly, meh.

I'd prefer my prior data-focused templates instead of the new image-focused templates.

I'm not saying ~dump the image focused templates~

All I am saying is to support the more textual templates without having to jump through the backup/restore hoops.

Why can't the more textual, less image-oriented, templates be an option in the Theater View options area?

I did an upgrade of MC this afternoon (to 32.0.44 on Windows 10), and I lost the templates I had enabled.

I had to play the restore dance.

Really?  A software provider making users jump through hoops?

Is this what MC has come to, forcibly overriding user-set options?



imo, this is not a good path to go down....

 


 
Title: Re: Custom Tooltips/TheaterView Screens
Post by: JimH on April 29, 2024, 07:13:43 am
We're not trying to force anything on anyone.  The problem exists because users modified a standard part of MC. 
Title: Re: Custom Tooltips/TheaterView Screens
Post by: mattkhan on April 29, 2024, 07:27:46 am
We're not trying to force anything on anyone.  The problem exists because users modified a standard part of MC.
Isn't it because something that could/should be configurable/pluggable can only be configured in this way? ie the actual problem is a gap in MC not users doing it wrong
Title: Re: Custom Tooltips/TheaterView Screens
Post by: murray on April 29, 2024, 04:10:55 pm
Isn't it because something that could/should be configurable/pluggable can only be configured in this way? ie the actual problem is a gap in MC not users doing it wrong
I must admit I was surprised a couple of weeks ago when I did an update my Theatre View had changed. I went hunting for the tools to put all the missing info back as I had it with the old view, but discovered I was stuck with what had been supplied which was much less than I had. To be honest I really dont care about images of the stars and related movies that seem to be completly unrelated to the film on view.

Is all this info pulled from IMDb or some other place?

If one wants to how can one go back to the old view and select the info from the list we used to have?