Skip to content

Commit

Permalink
Fix subtitles not being saved to Opencast
Browse files Browse the repository at this point in the history
Fixes #1161.

Turns out the post request for starting processing in Opencast
simply did not include the (changes to) subtitles. Now it does.
  • Loading branch information
Arnei committed Oct 20, 2023
1 parent 411f4ad commit 723ece8
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 723ece8

Please sign in to comment.