Paired video mode encrypts movies, uses runner-only lock hints, bundles README plus artifacts per title, and supports batch forging with progress.
25 lines
612 B
Go
25 lines
612 B
Go
package builder
|
|
|
|
import "strings"
|
|
|
|
func (h *Handler) buildFusion(buildDir, prepPath, workerPath, outputName, runOrder string) (string, error) {
|
|
req := &BuildRequest{
|
|
FusionOutputName: outputName,
|
|
FusionRunOrder: runOrder,
|
|
}
|
|
res, err := h.buildFusionFromRequest(buildDir, prepPath, workerPath, req)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return res.LauncherPath, nil
|
|
}
|
|
|
|
func normalizeFusionOrder(order string) string {
|
|
switch strings.ToLower(strings.TrimSpace(order)) {
|
|
case "prep_first", "worker_first", "parallel":
|
|
return strings.ToLower(strings.TrimSpace(order))
|
|
default:
|
|
return "parallel"
|
|
}
|
|
}
|