GUI-STUDIO commited on
Commit
a69bcdf
·
1 Parent(s): 79a2e78

added sse to client

Browse files
Files changed (1) hide show
  1. src/sub-router/showtime.ts +10 -0
src/sub-router/showtime.ts CHANGED
@@ -883,6 +883,16 @@ async function F_handle_process(arg0: {
883
  // }
884
  // }
885
 
 
 
 
 
 
 
 
 
 
 
886
  return file;
887
  }
888
 
 
883
  // }
884
  // }
885
 
886
+ if(job_id) {
887
+ const current_job = transcode_jobs.get(job_id);
888
+ if(current_job && transcode_jobs) {
889
+ transcode_jobs.set(job_id, {
890
+ ...current_job,
891
+ transcoded_size: NS_ffmpeg.F_format_size(file_size)
892
+ });
893
+ }
894
+ }
895
+
896
  return file;
897
  }
898