@@ -75,7 +75,7 @@ Channel.prototype.init = function (init_obj, channel_index) {
7575 var span1 = document . createElement ( "span" ) ;
7676 span1 . classList . add ( "chicon" , "pl-1" , "order-3" ) ;
7777 var img = document . createElement ( "img" ) ;
78- img . src = this . getImageSrc ( self . image ) ;
78+ img . src = getImageSrc ( self . image ) ;
7979 span1 . appendChild ( img ) ;
8080 newTextbox . appendChild ( span1 ) ;
8181 var span = document . createElement ( "span" ) ;
@@ -237,7 +237,9 @@ Channel.prototype.channelSelected = function () {
237237 $ ( "#notification" ) . removeClass ( ) ;
238238 $ ( "#notification" ) . addClass ( "noservice" ) ;
239239 if ( self . out_of_service_image ) {
240- $ ( "#notification" ) . html ( '<img src="' + self . out_of_service_image . mediaUri + '" class="img-fluid position-relative"/>' ) ;
240+ $ ( "#notification" ) . html (
241+ '<img src="' + getImageSrc ( self . out_of_service_image ) + '" class="img-fluid position-relative"/>'
242+ ) ;
241243 } else {
242244 $ ( "#notification" ) . text ( "Service not available" ) ;
243245 }
@@ -366,9 +368,7 @@ Channel.prototype.updateChannelInfo = function () {
366368 cpsInstance ;
367369 var channelInfo = $ ( "#channel_info" ) ;
368370 channelInfo . empty ( ) ;
369- channelInfo . append (
370- '<span class="menuitem_chicon d-inline-block"><img src="' + this . getImageSrc ( self . image ) + '"></span>'
371- ) ;
371+ channelInfo . append ( '<span class="menuitem_chicon d-inline-block"><img src="' + getImageSrc ( self . image ) + '"></span>' ) ;
372372 channelInfo . append (
373373 '<span class="menuitem_chnumber d-inline-block">' +
374374 self . lcn +
@@ -477,7 +477,7 @@ Channel.prototype.showEPG = function () {
477477 var header = document . createElement ( "div" ) ;
478478 header . addClass ( "epg_chinfo align-items-center sticky-top px-2" ) ;
479479 var logo = document . createElement ( "img" ) ;
480- logo . setAttribute ( "src" , self ?. image ?. mediaUri || "./images/empty.png" ) ;
480+ logo . setAttribute ( "src" , getImageSrc ( self ?. image ) ) ;
481481 logo . setAttribute ( "alt" , "channel icon" ) ;
482482 logo . addClass ( "chicon img-fluid d-block" ) ;
483483 header . appendChild ( logo ) ;
0 commit comments