@@ -23,7 +23,7 @@ const BACKEND_DEFAULT = "http://127.0.0.1:5679";
2323const BACKEND_MAX_PORT = 5689 ;
2424const POLL_INTERVAL_MS = 1200 ;
2525const HEALTH_CHECK_MS = 8000 ;
26- const VERSION = "1.5.3 " ;
26+ const VERSION = "1.5.4 " ;
2727
2828async function detectBackend ( ) {
2929 // Try ports 5679-5689 like CEP panel does
@@ -686,7 +686,7 @@ async function runChapterGeneration() {
686686 if ( area && body ) {
687687 area . classList . remove ( "hidden" ) ;
688688 body . value = result . chapters . map ( ( c , i ) =>
689- `${ formatTimecode ( c . start ) } — ${ c . title ?? `Chapter ${ i + 1 } ` } `
689+ `${ formatTimecode ( c . seconds ?? c . start ?? 0 ) } — ${ c . title ?? `Chapter ${ i + 1 } ` } `
690690 ) . join ( "\n" ) ;
691691 }
692692 }
@@ -747,7 +747,7 @@ async function runDenoise() {
747747 ( result ) => {
748748 UIController . hideProcessing ( ) ;
749749 UIController . setButtonLoading ( "runDenoiseBtn" , false ) ;
750- UIController . showToast ( `Denoise complete. Output: ${ result . output_path ?? "saved" } ` , "success" ) ;
750+ UIController . showToast ( `Denoise complete. Output: ${ result . output ?? result . output_path ?? "saved" } ` , "success" ) ;
751751 UIController . setStatus ( "Denoise complete." ) ;
752752 } ,
753753 ( err ) => {
@@ -776,7 +776,7 @@ async function runNormalize() {
776776 ( result ) => {
777777 UIController . hideProcessing ( ) ;
778778 UIController . setButtonLoading ( "runNormalizeBtn" , false ) ;
779- UIController . showToast ( `Normalization complete. Output: ${ result . output_path ?? "saved" } ` , "success" ) ;
779+ UIController . showToast ( `Normalization complete. Output: ${ result . output ?? result . output_path ?? "saved" } ` , "success" ) ;
780780 UIController . setStatus ( "Normalization complete." ) ;
781781 } ,
782782 ( err ) => {
@@ -872,7 +872,7 @@ async function runColorMatch() {
872872 ( result ) => {
873873 UIController . hideProcessing ( ) ;
874874 UIController . setButtonLoading ( "runColorMatchBtn" , false ) ;
875- UIController . showToast ( `Color match complete. Output: ${ result . output_path ?? "saved" } ` , "success" ) ;
875+ UIController . showToast ( `Color match complete. Output: ${ result . output ?? result . output_path ?? "saved" } ` , "success" ) ;
876876 UIController . setStatus ( "Color match complete." ) ;
877877 } ,
878878 ( err ) => {
@@ -901,7 +901,7 @@ async function runAutoZoom() {
901901 ( result ) => {
902902 UIController . hideProcessing ( ) ;
903903 UIController . setButtonLoading ( "runAutoZoomBtn" , false ) ;
904- UIController . showToast ( `Auto zoom complete. Output: ${ result . output_path ?? "saved" } ` , "success" ) ;
904+ UIController . showToast ( `Auto zoom complete. Output: ${ result . output ?? result . output_path ?? "saved" } ` , "success" ) ;
905905 UIController . setStatus ( "Auto zoom complete." ) ;
906906 } ,
907907 ( err ) => {
@@ -1024,7 +1024,7 @@ async function runBatchExport() {
10241024
10251025 await JobPoller . start (
10261026 "/timeline/export-from-markers" ,
1027- { preset , output_dir : outputDir } ,
1027+ { input_file : "" , markers : [ ] , output_dir : outputDir , format : preset } ,
10281028 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Exporting..." ) ; } ,
10291029 ( result ) => {
10301030 UIController . hideProcessing ( ) ;
@@ -1051,7 +1051,7 @@ async function runBatchRename() {
10511051
10521052 await JobPoller . start (
10531053 "/timeline/batch-rename" ,
1054- { pattern, scope } ,
1054+ { renames : [ ] , pattern, scope } ,
10551055 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Renaming..." ) ; } ,
10561056 ( result ) => {
10571057 UIController . hideProcessing ( ) ;
@@ -1077,7 +1077,7 @@ async function runSmartBins() {
10771077
10781078 await JobPoller . start (
10791079 "/timeline/smart-bins" ,
1080- { strategy } ,
1080+ { rules : [ { binName : strategy , rule : "type" , field : "type" , value : strategy } ] } ,
10811081 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Organising..." ) ; } ,
10821082 ( result ) => {
10831083 UIController . hideProcessing ( ) ;
@@ -1302,7 +1302,7 @@ async function runDeliverables(type) {
13021302
13031303 await JobPoller . start (
13041304 `/deliverables/${ type . replace ( / _ / g, "-" ) } ` ,
1305- { sequence_data : { } , output_dir : outputDir || null } ,
1305+ { sequence_data : { video_tracks : [ ] , audio_tracks : [ ] } , output_dir : outputDir || null } ,
13061306 ( pct , msg ) => { UIController . setProgress ( pct ) ; UIController . setProcessingMsg ( msg || "Generating..." ) ; } ,
13071307 ( result ) => {
13081308 UIController . hideProcessing ( ) ;
0 commit comments