cochize1 40 Posted November 22, 2020 Share Posted November 22, 2020 Is there a way to add IMDB rating (with the star) to be visiible right at the main screen next to date preferably right on the main screen? So that with newly added content user can see it's rating without going into details of the movie or series. Link to comment Share on other sites More sharing options...
Happy2Play 8281 Posted November 22, 2020 Share Posted November 22, 2020 This was removed from card hover a long time ago. Pretty sure the cardbuilder.js would have to be reworked. Link to comment Share on other sites More sharing options...
cochize1 40 Posted November 22, 2020 Author Share Posted November 22, 2020 didn't even know it was ever there, thanks anyway, I won't be playing with any coplex coding:) Link to comment Share on other sites More sharing options...
Happy2Play 8281 Posted November 22, 2020 Share Posted November 22, 2020 @chef could you provide a method to add this indicator back to card? Link to comment Share on other sites More sharing options...
chef 3745 Posted November 23, 2020 Share Posted November 23, 2020 I think so. I'll take a look. It would have to be added back on each update. Link to comment Share on other sites More sharing options...
cochize1 40 Posted November 23, 2020 Author Share Posted November 23, 2020 30 minutes ago, chef said: I think so. I'll take a look. It would have to be added back on each update. I would appreciate it if you could help and of course noted, redo it with every update. Link to comment Share on other sites More sharing options...
chef 3745 Posted November 24, 2020 Share Posted November 24, 2020 So, I've looked into this a bit, and I'm not sure it is as easy as just adding code to the 'cardbuilder.js' file. The API request for the item object data originates outside the scope of the card builder module. This means that the item object passed to the card builder would need to have the proper '&field=' request for the IMDB rating data (where ever it originates from). At the moment, that part of the data object is not present in the library object request. Example: It's not present in this data... It is however, in a subsequent request for the media item when the 'details page' is rendered... It would seem, that we would have to trace the request function for libraries back to the source, and add the '&field=' to the initial request for item data, in order to then have it available to customize the cardbuilder.js and show the icon and rating. I'm about 99% sure there is no easy way editing emby's modules directly... But... not all hope is lost We could create our own javascript which could inject the html using an 'IntersectionObserver', or 'MutationObserver'... or both... I've done this before, I inject my own javascript into Emby all the time. Like this: Link to comment Share on other sites More sharing options...
cochize1 40 Posted November 24, 2020 Author Share Posted November 24, 2020 seems far beyond my paygrade to be able to coprehand that but if you could share at least how you managed to add UpTime and Drive Storage to that dashboard I would appreciate it. And any other examples on what you have injected javascripts to your code? Thanks in advance Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now