@@ -179,15 +179,12 @@ def onAction(self, action):
179179 self .prev ()
180180
181181 elif action .getId () in MOVE_SET :
182- if util .aSet .backgroundArtPerItem and self .lastFocusID == self .RELATED_LIST_ID :
182+ if util .addonSettings .backgroundArtPerItem and self .lastFocusID == self .RELATED_LIST_ID :
183183 mli = self .relatedListControl .getSelectedItem ()
184184 if mli :
185185 self .setProperty (
186- 'background' , mli .dataSource .art .asTranscodedImageURL (
187- self .width , self .height ,
188- blur = util .aSet .backgroundArtBlurAmount ,
189- opacity = util .aSet .backgroundArtOpacityAmount ,
190- background = colors .noAlpha .Background )
186+ 'background' , util .backgroundFromArt (mli .dataSource .art , width = self .width ,
187+ height = self .height )
191188 )
192189
193190 if controlID == self .EPISODE_LIST_ID :
@@ -638,9 +635,7 @@ def updateProperties(self):
638635
639636 self .setProperty (
640637 'background' ,
641- (self .show_ or self .season .show ()).art .asTranscodedImageURL (
642- self .width , self .height , blur = util .aSet .backgroundArtBlurAmount ,
643- opacity = util .aSet .backgroundArtOpacityAmount , background = colors .noAlpha .Background )
638+ util .backgroundFromArt ((self .show_ or self .season .show ()).art , width = self .width , height = self .height )
644639 )
645640 self .setProperty ('season.thumb' , self .season .thumb .asTranscodedImageURL (* self .POSTER_DIM ))
646641 self .setProperty ('show.title' , showTitle )
@@ -664,9 +659,7 @@ def updateItems(self, item=None):
664659
665660 def setItemInfo (self , video , mli ):
666661 # video.reload(checkFiles=1)
667- mli .setProperty ('background' , video .art .asTranscodedImageURL (
668- self .width , self .height , blur = util .aSet .backgroundArtBlurAmount ,
669- opacity = util .aSet .backgroundArtOpacityAmount , background = colors .noAlpha .Background ))
662+ mli .setProperty ('background' , util .backgroundFromArt (video .art , width = self .width , height = self .height ))
670663 mli .setProperty ('title' , video .title )
671664 mli .setProperty ('show.title' , video .grandparentTitle or (self .show_ .title if self .show_ else '' ))
672665 mli .setProperty ('duration' , util .durationToText (video .duration .asInt ()))
0 commit comments