Skip to content

Commit

Permalink
update until for vod history
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed Jan 28, 2025
1 parent 11938ac commit 479c17a
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion app/specific/Screens.js
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,8 @@ function Screens_UpdateLiveHistoryUntil(Vod_Id, time) {

for (i; i < len; i++) {
arrayPos = ScreenObj[Main_HistoryLive].data[i];
if (arrayPos.vodid.toString() === Vod_Id) {

if (arrayPos && arrayPos.vodid.toString() === Vod_Id) {
var y = parseInt(i / ScreenObj[Main_HistoryLive].ColumnsCount),
x = parseInt(i - y * ScreenObj[Main_HistoryLive].ColumnsCount);

Expand All @@ -1897,6 +1898,33 @@ function Screens_UpdateLiveHistoryUntil(Vod_Id, time) {
}
}
}

Screens_UpdateVodHistoryUntil(Vod_Id, time);
}

function Screens_UpdateVodHistoryUntil(Vod_Id, time) {
if (ScreenObj[Main_HistoryVod].Cells && ScreenObj[Main_HistoryVod].Cells.length && Vod_Id) {
var id,
i = 0,
len = ScreenObj[Main_HistoryVod].data.length,
arrayPos;

Vod_Id = Vod_Id.toString();

for (i; i < len; i++) {
arrayPos = ScreenObj[Main_HistoryVod].data[i];

if (arrayPos && arrayPos.id.toString() === Vod_Id) {
var y = parseInt(i / ScreenObj[Main_HistoryVod].ColumnsCount),
x = parseInt(i - y * ScreenObj[Main_HistoryVod].ColumnsCount);

id = y + '_' + x;

Main_textContent(ScreenObj[Main_HistoryVod].ids[9] + id, Play_timeMs(time));
break;
}
}
}
}

function Screens_setOffset(pos, y, key) {
Expand Down

0 comments on commit 479c17a

Please sign in to comment.