Skip to content

Commit

Permalink
fixed the property names add like vod
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxx committed May 12, 2023
1 parent 739d9c3 commit af09066
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/auto_scheduler/mrss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ export class MRSSAutoScheduler {
let asset = assets[i];
if (asset) {
const totalScheduleEventDuration = asset.duration;
/*
if (feed.shouldInsertLive) {
console.log(`[${feed.channelId}]: Adding schedule event (${ScheduleEventType.LIVE}): url=${feed.liveUrl}, start=${asset.start_time}, end=${asset.end_time}`);
console.log(`[${feed.channelId}]: Adding schedule event (${ScheduleEventType.LIVE}): url=${asset.url}, start=${asset.start_time}, end=${asset.end_time}`);
scheduleEventsToAdd.push(new ScheduleEvent({
id: uuidv4(),
channelId: feed.channelId,
Expand All @@ -232,7 +233,8 @@ export class MRSSAutoScheduler {
}));
feed.resetLiveEventCountdown();
} else {
console.log(`[${feed.channelId}]: Adding schedule event (${ScheduleEventType.LIVE}): url=${feed.liveUrl}, start=${asset.start_time}, end=${asset.end_time}`);
*/
console.log(`[${feed.channelId}]: Adding schedule event (${ScheduleEventType.VOD}): url=${asset.url}, start=${asset.start_time}, end=${asset.end_time}`);
scheduleEventsToAdd.push(new ScheduleEvent({
id: uuidv4(),
channelId: feed.channelId,
Expand All @@ -244,7 +246,7 @@ export class MRSSAutoScheduler {
type: ScheduleEventType.VOD,
}));
feed.decreaseLiveEventCountdown();
}
//}
}
}
for (const scheduleEvent of scheduleEventsToAdd) {
Expand Down

0 comments on commit af09066

Please sign in to comment.