MediaContainer rating color

I stumbled across the following code in the Netflix plugin (which I cannot run)



<br />
    MediaContainer.ratingColor = "FFEE3725"<br />




This suggests it is (or was) possible to modify the colour used when displaying the rating (i.e. the stars). Since it looks like it should affect all MediaContainers, does anyone know if it's possible to modify the rating colour of individual MediaContainers? I want to change the colour (maybe to red) if the rating is the one which the user has previously specified. Otherwise, the yellow/gold colour would indicate the default rating. Is this possible in a v2 plugin?

Instead of setting the color globally, you can set it on each individual MediaContainer:



dir = MediaContainer(viewGroup='InfoList', title2=sender.itemTitle, ratingColor='FF00FF00')


I don't know if it also works in the v2 framework (I only tested it with a v1 plugin just now).
The first 2 digits are for transparency btw.


I just gave that a go and found that it made no difference. Has some of this stuff been dropped in v2 or do you know if the plugin framework for it not yet complete? The other day I found that disabling view modes doesn't work as expected/documented (http://forums.plexapp.com/index.php/topic/23414-disabling-view-modes/).

The rating colour is used for “community” ratings - user-specified ratings should always use the yellow/gold colour in order to provide consistency throughout the interface (so the user doesn’t need to guess at whether a particular colour means user- or community-provided). There’s no way to modify the colour of the stars for user ratings.



Out of interest, what about the disabled view modes feature isn’t working?



Ok, so I would ideally like to display the "community" and "user-specified" ratings differently. I don't mind if the "user-specified" are yellow/gold for UI consistency within plex. However, how can I change the colour of "community" ratings. Using the code example above with a V2 plugin doesn't seem to affect it. Is there a different property of the MediaContainer (instead of userRating) that I should be using to use a consistent "community" rating colour scheme.

Regarding the view modes, a more details can be found at this posting: http://forums.plexapp.com/index.php/topic/23414-disabling-view-modes/ . But to summarize:
[list]
[*]I'd like to disable (for a particular MediaContainer) all view modes except List and InfoList
[*]I've added a ViewGroup to the plugin which contains the viewMode List and InfoList
[*]When I specify this in the MediaContainer constructor, nothing really happens
[/list]

The only way we've found to get something working was to use the disabledViewModes property of the MediaContainer. This doesn't remove these options from the UI, it just means that if they select one of the disabled ones, it reverts to List. This is not that bad, however, i'd much rather it defaulted to InfoList.

Any suggestions?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.