issue #10 #11 Fix EPG issue when no existed epg info.

This commit is contained in:
paul kim
2024-06-19 14:20:17 +09:00
parent 69152b57cd
commit 98e8db71fe

View File

@@ -4937,12 +4937,13 @@ HotelTV.ui_appfull = (function() {
{ {
let _ChItem = _tvCtgyAllChannels[_idx]; let _ChItem = _tvCtgyAllChannels[_idx];
// _chNumber는 -기준으로 잘라낸 앞숫자, 예를들면 16-1이라면 _chNumber는 16이 됨. // _chNumber는 -기준으로 잘라낸 앞숫자, 예를들면 16-1이라면 _chNumber는 16이 됨.
let _ChNumber = __ifxn_getChItemValue(_ChItem, "number").toString().split('-'); let _ChNumStr = __ifxn_getChItemValue(_ChItem, "number").toString();
let _ChNumber = Number(_ChNumStr.split('-')[0]);
// Find out matched channel // Find out matched channel
if ( Number(_ChNumber)==Number(_strReqNumNext) ){ if ( _ChNumber==Number(_strReqNumNext) ){
// Find out // Find out
_state.tv.shortkey.ch_item_idx = Number(__ifxn_getChItemIdxByNumber(_strReqNumNext)); _state.tv.shortkey.ch_item_idx = Number(__ifxn_getChItemIdxByNumber(_ChNumStr));
console.log("Find out matched channel index(of ALL category)::> " + _state.tv.shortkey.ch_item_idx); console.log("Find out matched channel index(of ALL category)::> " + _state.tv.shortkey.ch_item_idx);
break; break;
} }
@@ -5177,6 +5178,13 @@ HotelTV.ui_appfull = (function() {
//let _new_progress_bar_width = parseInt(_elDivTvChEpgDetails.find("#tm_chart").width()*_egp_prog_inf.epg_info.progress_pcent/100); //let _new_progress_bar_width = parseInt(_elDivTvChEpgDetails.find("#tm_chart").width()*_egp_prog_inf.epg_info.progress_pcent/100);
let _new_progress_bar_width = parseInt(835*_egp_prog_inf.epg_info.progress_pcent/100); let _new_progress_bar_width = parseInt(835*_egp_prog_inf.epg_info.progress_pcent/100);
_elDivTvChEpgDetails.find('.progress').width(_new_progress_bar_width); _elDivTvChEpgDetails.find('.progress').width(_new_progress_bar_width);
} else {
_elDivTvChEpgTitle.text("");
_elDivTvChEpgDetails.find('#tm_playing').text("");
//let _new_progress_bar_width = parseInt(_elDivTvChEpgDetails.find("#tm_chart").width()*_egp_prog_inf.epg_info.progress_pcent/100);
let _new_progress_bar_width = 0;
_elDivTvChEpgDetails.find('.progress').width(_new_progress_bar_width);
} }
// Fade in epg // Fade in epg