Oxide 139 Posted July 11, 2016 Share Posted July 11, 2016 If there is no season poster would it be possible to display the show poster, currently either a blank image or the show thumb is displayed and it's not that nice visually. Sorry if this has been asked before, did a quick search and found nothing. 3 Link to comment Share on other sites More sharing options...
Luke 37273 Posted July 11, 2016 Share Posted July 11, 2016 We should already be doing this. Link to comment Share on other sites More sharing options...
Happy2Play 8361 Posted July 11, 2016 Share Posted July 11, 2016 (edited) @@Luke here is an example of the issue. Series level Oxide would prefer seeing poster instead of thumb. Season Level no image Version 3.1.6035.19375 Edited July 11, 2016 by Happy2Play 1 Link to comment Share on other sites More sharing options...
aspdend 174 Posted July 11, 2016 Share Posted July 11, 2016 (edited) We should already be doing this. Unless there is a setting not checked on my setup, it definitely doesn't do this for me - I get a blank 'frame' for seasons with no poster in the EHS and the next season view of the particular show. Edited July 11, 2016 by aspdend Link to comment Share on other sites More sharing options...
Oxide 139 Posted July 12, 2016 Author Share Posted July 12, 2016 If I inspect the page and change "/Thumb?" below to "/Primary?" it displays the Poster <div class="cardImage lazy" style="background-image: url("http://*****:8096/Items/5473fd52ba607d1ebb65e8fbae453a41/Images/Thumb?maxWidth=375&enableImageEnhancers=true&tag=b332f83bdde8d6df53724e454bebeae8&quality=90");" data-src=""></div> Does anyone know where this line is generated in the code, I would like to play Link to comment Share on other sites More sharing options...
Oxide 139 Posted July 12, 2016 Author Share Posted July 12, 2016 (edited) So I found where to change it in librarybrowser.js, but it only works if there is a thumb for the Show, otherwise it does not change anything. For those of you interested change line 2120 from: type: "Thumb", to type: "Primary", Clear your browser cache after you make the change. You will probably also have to reapply it if you do an update. I haven't noticed seen any side effects. Now to find out where we can replace the blank images with the Show poster... Edited July 12, 2016 by Oxide Link to comment Share on other sites More sharing options...
Oxide 139 Posted July 12, 2016 Author Share Posted July 12, 2016 (edited) I can change the "Blank" Season poster in Season view, Change from line 3237 in librarybrowser.js Replace url = "css/images/items/detail/video.png"; shape = 'square'; with url = ApiClient.getScaledImageUrl(item.ParentId, { type: "Primary", maxHeight: imageHeight, tag: item.ImageTags.Primary }); detectRatio = true; Result Before: After: On the Show page the "Blank" Images are beyond my pay grade I know its to do with this code from line 2140 } else if (item.MediaType == "Video" || item.Type == "Season" || item.Type == "Series") { if (item.Name && showTitle) { icon = 'videocam'; } cssClass += " defaultBackground"; I think I somehow have to add this to it, but I have no idea Any advise is welcome url = ApiClient.getScaledImageUrl(item.ParentId, { type: "Primary", maxHeight: imageHeight, tag: item.ImageTags.Primary }); detectRatio = true; Edited July 12, 2016 by Oxide 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