30.01.2020

Segoe Ui Symbol 5.9

64

I decided to take on the task of creating a full Theater View caption alternative for those that do not want to spend hours on this them self, pulling out their hair in frustration along the way. I hope that more of you will have use of this. I'm sure that there are ways to make this code simpler, or more compact. Suggestions of improvement are allways welcome. This caption ratings require you to have build 50 or above for it to work correctly. IF you still have problems with the rating stars not being presented correctly, please report it here: I've created caption for the following Media: Movie - Icons for watched and not fully watched, Name tag and differentiate between completely seen or not with white gray text colors (relies on Number Plays and bookmark position above or under 90% watched).

Critics Rating shown with 5 star/half star range in green. TV Show - Icons for watched and not fully watched, gray Season and Episode tags, Name tag that differentiate between completely seen or not with white gray text colors (relies on Number Plays and bookmark position above or under 90% watched).

Critics Rating shown with 5 star/half star range in green. Music Video - Simple Name tag with Rating converted to green stars. Trailer - Icons for watched and not fully watched, Name tag and differentiating between seen or not with white gray text colors (only relies on Number Plays. Not bookmarks). Audio - Name by Artist with Rating converted to green stars Other - Other Media Types and Sub Types like Other, Karaoke and Short simply uses the normal Name tag.

Images have been left out, because it's currently disabled for some reason. To take advantage of media like Music Videos and Trailers, you'll probably need to create some views to make it viewable. There are ways to automatically download trailers to MC. Take a look here if you're interested: Example pictures added as attachments below. Prerequisites Create a custom library field: Option - Library & folders - Manage Library Fields - Add New Field - Call it 'Critic Rating Stars' - Click the 'Calculated Data' radio button - Copy the code below, and paste it into the Expression field Custom 'Critic Rating Stars' expression. Code: if(!isempty(Web Media Info), Name, IfElse(IsEqual(Media Sub Type, Movie), IfElse(!isempty(Number Plays), if(Math(!formatnumber(Bookmark) above(formatnumber(Bookmark) / Duration,0, 900)), √,!

))Name Critic Rating Stars, IsEqual(Media Sub Type, Music Video), Name / IfElse((isequal(rating,1,2),★, isequal(rating,2,2),★★, isequal(rating,3,2),★★★, isequal(rating,4,2),★★★★, isequal(rating,5,2),★★★★★), IsEqual(Media Sub Type, TV Show), If(!isempty(Number Plays), if(Math(!formatnumber(Bookmark) above(formatnumber(Bookmark) / Duration,0, 900)), √ SSeasonEPadNumber(Episode, 2) Name Critic Rating Stars,! SSeasonEPadNumber(Episode, 2) Name Critic Rating Stars), SSeasonEPadNumber(Episode, 2) Name Critic Rating Stars), IsEqual(Media Sub Type, Trailer), If(!isempty(Number plays), √ Name, Name), IsEqual(Media Type, Audio),Name by Artist ifelse(isequal(rating,1,2),★, isequal(rating,2,2),★★, isequal(rating,3,2),★★★,isequal(rating,4,2),★★★★,isequal(rating,5,2),★★★★★),Name, 1, Name)) Comment: This caption will change the caption for: Movies, TV Shows, Trailers, Music Videos and Audio. It will add Watched/Not Watched icons and text color changes, Season/Episode text and ratings based on Critic Rating and Rating. It leaves out web media from the caption, only applying the Name tag. How the Ratings system currently work 0.0-2.9 ☆ 3.0-3.9 ★ 4.0-4.9 ★☆ 5.0-5.9 ★★ 6.0-6.4 ★★☆ 6.5-6.9 ★★★ 7.0-7.4 ★★★☆ 7.5-8.0 ★★★★ 8.0-8.9 ★★★★☆ 9.0-10 ★★★★★ Empty stars should be read as half stars. Thanks to MrC for all the help! And thanks to Rick,ca, MrC, Xtacbyme, bartman and others for great examples and ideas.

My first question is regarding graphical representation of ratings using text stars. I've seen examples such as this one: Name ifelse(isequal(rating,1,2),★, isequal(rating,2,2),★★, isequal(rating,3,2),★★★, isequal(rating,4,2),★★★★,isequal(rating,5,2),★★★★★) The problem is that the stars disappear the moment I copy and paste them into the caption field or textpad/notepad. Does this have something with the font being used perhaps?

Or do I need to use some kind of code for the stars to be presented the right way? This is what I have so far. This obviously needs to be woven into one single line of code, but I've kept it separate for now to reduce complexity. See the attached screen-shots for an idea of how it will look. Movies Name is gray when it's watched. I need to add a check for the% watched here instead of Number Plays, to be sure the whole thing is actually watched. Work in progress.

There's added ratings that depends on the Automatic Scraper tags 'Critic Rating'. It's the rating from themoviedb. Empty star means half star rating. I've weighted the rating such that the lowest numbers are grouped in bigger chunks, and once you reach a level that is normally seen as an 'decent' movie (rating 7+), the granularity is increased.

This means that you can find decent movies down to 3 star ratings, but anything below will probably be bad. Code: If(IsEqual(Media Sub Type, Movie), If(IsEqual(Number Plays, ),Name,Name ),Name ) ifelse(isrange(Critic Rating,0.0-2.9),☆, isrange(Critic Rating,3.0-4.9),★, isrange(Critic Rating,5.0-5.9),★☆, isrange(Critic Rating,6.0-6.9),★★, isrange(Critic Rating,7.0-7.4),★★☆,isrange(Critic Rating,7.5-7.9),★★★,isrange(Critic Rating,8.0-8.4),★★★☆,isrange(Critic Rating,8.5-8.9),★★★★,isrange(Critic Rating,9.0-9.4),★★★★☆,isrange(Critic Rating,9.5-10),★★★★★ ) TV Shows Series uses the same Watched/Not watched indicator with gray items if they are watched. It uses the same rating system, with Critic ratings from tvdb. It presents Season and Episode numbers before the name of the Episode.

Code: If(IsEqual(Media Sub Type, TV Show), If(IsEqual(Number Plays, ), SSeasonEEpisode - Name, SSeasonEEpisode - Name ), SSeasonEEpisode - Name ) ifelse(isrange(Critic Rating,0.0-2.9),☆, isrange(Critic Rating,3.0-4.9),★, isrange(Critic Rating,5.0-5.9),★☆, isrange(Critic Rating,6.0-6.9),★★, isrange(Critic Rating,7.0-7.4),★★☆,isrange(Critic Rating,7.5-7.9),★★★,isrange(Critic Rating,8.0-8.4),★★★☆,isrange(Critic Rating,8.5-8.9),★★★★,isrange(Critic Rating,9.0-9.4),★★★★☆,isrange(Critic Rating,9.5-10),★★★★★ ) Audio Music is presented with Name and Artist. The artist tag is especially useful when browsing various artist albums. It also shows the Rating field. Code: Name by Artist ifelse(isequal(rating,1,2),★, isequal(rating,2,2),★★, isequal(rating,3,2),★★★,isequal(rating,4,2),★★★★,isequal(rating,5,2),★★★★★ ) This almost makes my head hurt, even though this is pretty straight forward for a geek. There are several additions needed though. Especially images is something that I'm missing.

I do not have much photos, and I have none in MC. So, please throw in your suggestions for images and other stuff! Other Media Sub types that need more than the Name tag have to be considered.

Attached is a few images of how those examples can look. I noticed that. It works well on my computer at work. But i only get rectangles instead of stars in the caption field in MC. Before I updated to the latest build, it was just empty spaces instead. This is the same for both my server and client at home.

My home server shows the correct characters after a updating to the latest build, but my client (library server client) is still acting strange, and only shows rectangles. Copying those back from MC caption options gives me this: ★★★☆ What's wrong with my client? Could it still be a problem with fonts in MC? My first question is regarding graphical representation of ratings using text stars. I've seen examples such as this one: Name ifelse(isequal(rating,1,2),★, isequal(rating,2,2),★★, isequal(rating,3,2),★★★, isequal(rating,4,2),★★★★,isequal(rating,5,2),★★★★★) The problem is that the stars disappear the moment I copy and paste them into the caption field or textpad/notepad. Does this have something with the font being used perhaps? Or do I need to use some kind of code for the stars to be presented the right way?

Code: If(IsEqual(Media Sub Type, Movie),If(!isempty(Number Plays),if(Compare(Math(Bookmark / 1000 / Duration,0), , 0.90) isempty(Bookmark),Name, Name ),Name ) ifelse(isrange(Critic Rating,0.0-2.9),☆, isrange(Critic Rating,3.0-4.9),★, isrange(Critic Rating,5.0-5.9),★☆, isrange(Critic Rating,6.0-6.9),★★, isrange(Critic Rating,7.0-7.4),★★☆,isrange(Critic Rating,7.5-7.9),★★★,isrange(Critic Rating,8.0-8.4),★★★☆,isrange(Critic Rating,8.5-8.9),★★★★,isrange(Critic Rating,9.0-9.4),★★★★☆,isrange(Critic Rating,9.5-10),★★★★★),Name). Suggestion: Make a user expression field called Critic Rating Stars, which is: ifelse( isrange(Critic Rating,0.0-2.9),☆, isrange(Critic Rating,3.0-4.9),★, isrange(Critic Rating,5.0-5.9),★☆, isrange(Critic Rating,6.0-6.9),★★, isrange(Critic Rating,7.0-7.4),★★☆, isrange(Critic Rating,7.5-7.9),★★★, isrange(Critic Rating,8.0-8.4),★★★☆, isrange(Critic Rating,8.5-8.9),★★★★, isrange(Critic Rating,9.0-9.4),★★★★☆, isrange(Critic Rating,9.5-10),★★★★★ ) and use Critic Rating Stars in your expressions above. Then, you can more easily change the stars, or the expression, and your other expressions will gain this update automatically.

So to get display for 'DTS 5.1' and 'FLAC Stereo' I have the following 3 custom fields. Code: If(IsEqual(Media Sub Type, Movie),If(!isempty(Number Plays),If(!isempty(Bookmark),If(Compare(Math(Bookmark / 1000 / Duration,0), , 0.90),Name,Name ),Name ),Name )Critic Rating Stars,Name ) The only problem now is that the length of the bookmark does not matter at all.

Everything with a bookmark and a number in Number Plays will be marked as 'Not finished watching'. I'm not sure if my test video clip duration has anything to do with this? The files on this PC is very small. Mostly from 5-30 seconds. Will have to try it on another PC later on.Edit. Looks like it's working like it's supposed to on larger files.

Ok, I see where the error was. Here's a slight different version w/out Compare and the extra If. Also, Name is pulled outside the inner If's so that it is not duplicated in the expression so much.

If this were the only expression, the final Name could also be reduced: If(IsEqual(Media Sub Type, Movie), IfElse(!isempty(Number plays), if(Math(!formatnumber(Bookmark) above(formatnumber(Bookmark) / Duration,0, 900)), ))NameCritic Rating Stars, Name ). I do not get it. What's wrong with my MC installation?? I can't get any caption in Theater View, no matter what I do.

I think I'm on to something with TV Show and Movies now. But I'm not certain what people find the most appealing.

I'll give you a few examples here. Perhaps some of you have some suggestions for improvement. I've added the appropriate picture attachments for the examples. All examples relay on this Critic Raiting Stars library field with the following expression (it's been adjusted a bit more to show more grannular differences in the 7-9 range). Code: If(IsEqual(Media Sub Type, Movie), IfElse(!isempty(Number plays), if(Math(!formatnumber(Bookmark) above(formatnumber(Bookmark) / Duration,0, 900)), ))Name Critic Rating Stars, Name)This was the first one I created. With 3 different text colors to separate between watched, not watched as well as not finished watching. I do not think it looks that great with the third color for the 'not finished watching' items.

I like the icon approach beneath better. Code: If(IsEqual(Media Sub Type, Movie), IfElse(!isempty(Number plays), if(Math(!formatnumber(Bookmark) above(formatnumber(Bookmark) / Duration,0, 900)), √,! ))Name Critic Rating Stars, Name)This gives you a √ and! To indicate watched, and not fully watched, as well as a gray text if it's completely watched. You might say it's a bit redundant with √ as well as gray text to mark things as watched, but I like it Visual indicators often beats beats text. I think the stars could very well be the same green color as the √ character.

But this is highly subjective anyway. No way we all will agree on one single color. Code: If(IsEqual(Media Sub Type, TV Show), SSeasonEPadNumber(Episode, 2) IfElse(!isempty(Number plays), if(Math(!formatnumber(Bookmark) above(formatnumber(Bookmark) / Duration,0, 900)), √,! )) Name Critic Rating Stars, Name)Using the same system as above, but graying out the Season and Episode text, so it's not so in-your-face. I've also created some Audio and Music video code. Once I get this image caption to work, I'll try to make it all work together in one single piece. Should not be that difficult.

To convert your sequence If statements, which all test Media Sub Type, into an IfElse chain, you take the current form: if(test,true,false) and convert it to: ifelse( test,true, 1, false ) When you have additional conditions, they turn into: ifelse( test 1,true, test 2,true. 1, false ) So, here's your result from the two examples: IfElse( IsEqual(Media Sub Type, Movie), IfElse(!isempty(# plays), if(Math(!formatnumber(Bookmark) above(formatnumber(Bookmark) / Duration,0, 900)), ))Name Critic Rating Stars, IsEqual(Media Sub Type, Music Video), Name / ifelse((isequal(rating,1,2),★, isequal(rating,2,2),★★, isequal(rating,3,2),★★★, isequal(rating,4,2),★★★★, isequal(rating,5,2),★★★★★), 1, Name ) Note that I've marked the various tests in red. I noticed that.

It works well on my computer at work. But i only get rectangles instead of stars in the caption field in MC. Before I updated to the latest build, it was just empty spaces instead. This is the same for both my server and client at home. My home server shows the correct characters after a updating to the latest build, but my client (library server client) is still acting strange, and only shows rectangles. Copying those back from MC caption options gives me this: ★★★☆ What's wrong with my client? Could it still be a problem with fonts in MC?

Segoe Ui Symbol 5.9 For Sale

Going to have to steal some of this for my captions. Only thing I don't think will work for me is the critic rating, but I love what you have going there. The big issue around critic data is that there doesn't seem to be any consistency in the rating scheme of the various sites that have for that data. I am really partial to rotten tomatoes ratings that have both critic and audience data, and they are expressed from 0-100%. Other sites do 1-10 and others do 1-5. Currently I seem to have a mix of% for movies (example '84% Critic, 61% Audience'), and numeric ratings for TV shows.

I'm sure there is a way to rework the logic for that, but I really don't care about having the critic rating in the caption since it shows up in the description area. Going to have to steal some of this for my captions. Only thing I don't think will work for me is the critic rating, but I love what you have going there. The big issue around critic data is that there doesn't seem to be any consistency in the rating scheme of the various sites that have for that data. I am really partial to rotten tomatoes ratings that have both critic and audience data, and they are expressed from 0-100%. Other sites do 1-10 and others do 1-5.

Currently I seem to have a mix of% for movies (example '84% Critic, 61% Audience'), and numeric ratings for TV shows. I'm sure there is a way to rework the logic for that, but I really don't care about having the critic rating in the caption since it shows up in the description area. That's a problem. Personally I only use theMovieDB as a source. But on a short time, I will be looking at ways to incorporate other meta scraper sources like Personal Video Database.

Segoe

That will probably make it easier to get other critic ratings as well. I know I can do manual lookups from MC to get torren tomatoes rating, but anyting but automatic is a no-go in my book. And this code is created mainly as an option for those that use defualts in MC. Other things have to be adapted to their setup. In any case, it would probably not be that difficult to change the caption to adapt to a rottentomato rating. You can play with that Critic Rating Star code. Testing that Web Media Info is not empty might be sufficient to indicate Netflix: if(!isempty(Web Media Info), NETFLIX Name, Name) Edit: Here it is added to MrHaugen's expression above: if(!isempty(Web Media Info), Name, IfElse(IsEqual(Media Sub Type, Movie), IfElse(!isempty(Number Plays), if(Math(!formatnumber(Bookmark) above(formatnumber(Bookmark) / Duration,0, 900)), √,!

))Name Critic Rating Stars, IsEqual(Media Sub Type, Music Video), Name / IfElse((isequal(rating,1,2),★, isequal(rating,2,2),★★, isequal(rating,3,2),★★★, isequal(rating,4,2),★★★★, isequal(rating,5,2),★★★★★), IsEqual(Media Sub Type, TV Show), If(!isempty(Number Plays), if(Math(!formatnumber(Bookmark) above(formatnumber(Bookmark) / Duration,0, 900)), √ SSeasonEPadNumber(Episode, 2) Name Critic Rating Stars,! SSeasonEPadNumber(Episode, 2) Name Critic Rating Stars), SSeasonEPadNumber(Episode, 2) Name Critic Rating Stars), IsEqual(Media Sub Type, Trailer), If(!isempty(Number plays), √ Name, Name), IsEqual(Media Type, Audio),Name by Artist ifelse(isequal(rating,1,2),★, isequal(rating,2,2),★★, isequal(rating,3,2),★★★,isequal(rating,4,2),★★★★,isequal(rating,5,2),★★★★★),Name, 1, Name) ) Tested briefly only in Netflix, and not the other modes.