fix prompt and thumbnail path
This commit is contained in:
@@ -29,7 +29,9 @@ exports.generateVideoThumbnail = onObjectFinalized(
|
||||
if (/_thumb9x16\.jpg$/i.test(objectName)) return;
|
||||
|
||||
const bucket = admin.storage().bucket(bucketName);
|
||||
const playbackMatch = objectName.match(/^musics\/([^/]+)\/playback\.mp4$/i);
|
||||
const playbackMatch = objectName.match(
|
||||
/^users\/[^/]+\/projects\/([^/]+)\/playback\.mp4$/i,
|
||||
);
|
||||
const projectId = playbackMatch ? playbackMatch[1] : null;
|
||||
|
||||
// Use unique folder under /tmp to avoid name collisions
|
||||
|
||||
Reference in New Issue
Block a user