Skip to content

Commit

Permalink
Readme and persistent subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
umaar committed Mar 17, 2020
1 parent 4391e56 commit 76a9744
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/server/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,11 @@ router.post('/consolidate-media', async (request, response) => {
differenceString += ` ${days} day${days > 1 ? 's' : ''}`;
}

if (index % 3 === 0) {
subtitleData.push({
start: ongoingDuration,
// End: ongoingDuration + (duration),
// 1 second is often too short for a subtitle, this keps it there for longer
end: (ongoingDuration + (duration)) + 1200,
text: differenceString
});
}
subtitleData.push({
start: ongoingDuration,
end: ongoingDuration + duration,
text: differenceString
});

ongoingDuration += duration;
}
Expand Down

0 comments on commit 76a9744

Please sign in to comment.