Skip to content

Commit

Permalink
Merge pull request #860 from AI4Bharat/minorchange-03
Browse files Browse the repository at this point in the history
minor changes for expand timestamp seting startime of 1st seg = 0
  • Loading branch information
aparna-aa authored Dec 20, 2024
2 parents d8a7b37 + 5457e1f commit 01cb595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/subtitleUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export const onExpandTimeline = (id, vo=false) => {
const copySub = [...subtitles];

if(id === 0 && copySub.length > 1){
copySub[id].start_time = DT.d2t(0);
// copySub[id].start_time = DT.d2t(0);
copySub[id].end_time = DT.d2t(DT.t2d(copySub[id+1].start_time)-0.2);
}else if(id+1 === copySub.length){
copySub[id].start_time = DT.d2t(DT.t2d(copySub[id-1].end_time)+0.2)
Expand Down

0 comments on commit 01cb595

Please sign in to comment.