Skip to content

Commit

Permalink
Merge pull request #1183 from Arnei/subtitle-not-saved-on-process
Browse files Browse the repository at this point in the history
Fix subtitles not being saved to Opencast
  • Loading branch information
KatrinIhler authored Oct 27, 2023
2 parents 411f4ad + 723ece8 commit cd48d62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/redux/workflowPostAndProcessSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ export const postVideoInformationWithWorkflow = createAsyncThunk('video/postVide
}

const response = await client.post(`${settings.opencast.url}/editor/${settings.id}/edit.json`,
{ segments: convertSegments(argument.segments), tracks: argument.tracks, workflows: argument.workflow }
{
segments: convertSegments(argument.segments),
tracks: argument.tracks,
subtitles: argument.subtitles,
workflows: argument.workflow
}
)
return response
})
Expand Down
6 changes: 5 additions & 1 deletion src/redux/workflowPostSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ export const postVideoInformation = createAsyncThunk('video/postVideoInformation
}

const response = await client.post(`${settings.opencast.url}/editor/${settings.id}/edit.json`,
{ segments: convertSegments(argument.segments), tracks: argument.tracks, subtitles: argument.subtitles }
{
segments: convertSegments(argument.segments),
tracks: argument.tracks,
subtitles: argument.subtitles
}
)
return response
})
Expand Down

0 comments on commit cd48d62

Please sign in to comment.