Jump to content

Recommended Posts

Posted

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.

  • Like 3
Posted

We should already be doing this.

Happy2Play
Posted (edited)

@@Luke here is an example of the issue.

 

Series level Oxide would prefer seeing poster instead of thumb.

57831f1e9f5a8_details1.jpg

 

Season Level no image

57831f381af7a_details.jpg

 

Version 3.1.6035.19375

Edited by Happy2Play
  • Like 1
aspdend
Posted (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 by aspdend
Posted
If I inspect the page and change "/Thumb?" below to "/Primary?" it displays the Poster  :D
<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  :P

Posted (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 by Oxide
Posted (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:

578543e8af302_Before.jpg

 

After:

578543f9475a1_After.jpg

 

On the Show page the "Blank" Images are beyond my pay grade  :blink:

578544a9eb621_ShowMain.jpg

 

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 by Oxide

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...