17 clean up services structure (#18)
* Refactor ClipService and MediaService * Refactor ClipService for less coupling to Jobs * PATCH unnecessary requests in frontend * REFACTOR MetadataService to use CommandRunner * REFACTOR DirectoryService and UploadService * REFACTOR ClipService * MERGE MetadataService with MediaService
This commit is contained in:
@@ -87,7 +87,15 @@ public class JobService {
|
||||
SecurityContextHolder.setContext(job.getSecurityContext());
|
||||
}
|
||||
|
||||
clipService.run(job);
|
||||
clipService.create(
|
||||
job.getInputVideoMetadata(),
|
||||
job.getOutputVideoMetadata(),
|
||||
job.getInputFile(),
|
||||
job.getOutputFile(),
|
||||
job.getProgress()
|
||||
);
|
||||
|
||||
job.setStatus(JobStatus.FINISHED);
|
||||
|
||||
} catch (IOException | InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
|
||||
Reference in New Issue
Block a user