Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): skip auto-transcription when status is ERROR

Richie McIlroy50fb9a71d4f0
diff --git a/apps/web/app/embed/[videoId]/page.tsx b/apps/web/app/embed/[videoId]/page.tsx
index 5a8ca764f..112bd20e2 100644
--- a/apps/web/app/embed/[videoId]/page.tsx
+++ b/apps/web/app/embed/[videoId]/page.tsx
@@ -258,7 +258,8 @@ async function EmbedContent({
video.transcriptionStatus !== "COMPLETE" &&
video.transcriptionStatus !== "PROCESSING" &&
video.transcriptionStatus !== "SKIPPED" &&
- video.transcriptionStatus !== "NO_AUDIO"
+ video.transcriptionStatus !== "NO_AUDIO" &&
+ video.transcriptionStatus !== "ERROR"
) {
transcribeVideo(video.id, video.ownerId, aiGenerationEnabled);
}
diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsx
index aa1627ba8..8eafd3ee9 100644
--- a/apps/web/app/s/[videoId]/page.tsx
+++ b/apps/web/app/s/[videoId]/page.tsx
@@ -581,7 +581,8 @@ async function AuthorizedContent({
video.transcriptionStatus !== "COMPLETE" &&
video.transcriptionStatus !== "PROCESSING" &&
video.transcriptionStatus !== "SKIPPED" &&
- video.transcriptionStatus !== "NO_AUDIO"
+ video.transcriptionStatus !== "NO_AUDIO" &&
+ video.transcriptionStatus !== "ERROR"
) {
console.log("[ShareVideoPage] Starting transcription for video:", videoId);
transcribeVideo(videoId, video.owner.id, aiGenerationEnabled).catch(