File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -337,11 +337,7 @@ function loadServicelist(list) {
337337function serviceListSelected ( ) {
338338 $ ( "#servicelist_registry" ) . hide ( ) ;
339339 $ ( "#settings" ) . hide ( ) ;
340- if ( serviceList . image ) {
341- $ ( "#list_logo" ) . attr ( "src" , serviceList . image ) ;
342- } else {
343- $ ( "#list_logo" ) . attr ( "src" , "images/logo_dvbi_sofia.png" ) ;
344- }
340+ $ ( "#list_logo" ) . attr ( "src" , serviceList ?. image ?. mediaUri || "images/logo_dvbi_sofia.png" ) ;
345341 var channelIndex = 0 ;
346342 for ( var i = 0 ; i < serviceList . services . length ; i ++ ) {
347343 var channel = new Channel ( ) ;
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ function UseLocalisation(elems, language) {
8686
8787Program . prototype . populateProgramInfo = function ( ) {
8888 var i ;
89- $ ( "#info_chicon" ) . attr ( "src" , this . channel . image || "./images/empty.png" ) ;
89+ $ ( "#info_chicon" ) . attr ( "src" , this . channel ? .image ?. mediaUri || "./images/empty.png" ) ;
9090 $ ( "#info_chnumber" ) . text ( this . channel . lcn ) ;
9191 $ ( ".chdrm_prginfo" ) . remove ( ) ;
9292 if ( this . cpsIndex ) {
Original file line number Diff line number Diff line change @@ -270,16 +270,12 @@ Channel.prototype.getServiceInstanceByCPSIndex = function (cpsIndex) {
270270Channel . prototype . getMoreEpisodes = function ( programId , callback ) {
271271 var self = this ;
272272 if ( this . moreEpisodesURI && typeof callback == "function" ) {
273- NetworkRequest ( {
274- url : this . moreEpisodesURI + "?pid=" + programId + "&type=ondemand" ,
273+ NetworkRequest ( this . moreEpisodesURI + "?pid=" + programId + "&type=ondemand" , {
275274 success : function ( data ) {
276275 var episodes = self . parseSchedule ( data ) ;
277276 callback . call ( callback , episodes ) ;
278277 } ,
279278 datatype : "text" ,
280- beforeSend : function ( xhr ) {
281- xhr . setRequestHeader ( "Accept" , "application/vnd.dvb.dvbi.r6" ) ;
282- } ,
283279 } ) ;
284280 } else if ( typeof callback == "function" ) {
285281 callback . call ( null ) ;
You can’t perform that action at this time.
0 commit comments