Initial OSS scaffold from Songs2VID (pre-strip)

This commit is contained in:
Songs2VID Support
2026-08-03 06:15:05 +02:00
commit 506d56fa92
195 changed files with 25023 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import path from "path";
import { WATERMARK_FILE_PATH } from "./watermark-policy";
export function getUploadDir(): string {
return process.env.UPLOAD_DIR || path.join(process.cwd(), "uploads");
}
export function getJobDir(userId: string, jobId: string): string {
return path.join(getUploadDir(), userId, jobId);
}
/** Brand watermark PNG used by the default overlay pipeline. */
export function getWatermarkPath(): string {
return process.env.WATERMARK_FILE_PATH?.trim() || WATERMARK_FILE_PATH;
}
export { WATERMARK_FILE_PATH };