Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix: Stop erroring in video download when there's no media found

Mohamed Bassem0f59cb689f3d
diff --git a/apps/workers/videoWorker.ts b/apps/workers/videoWorker.ts
index 518b41c5..f81b0960 100644
--- a/apps/workers/videoWorker.ts
+++ b/apps/workers/videoWorker.ts
@@ -115,7 +115,11 @@ async function runWorker(job: DequeuedJob<ZVideoRequest>) {
assetPath = downloadPath;
} catch (e) {
const err = e as Error;
- if (err.message.includes("ERROR: Unsupported URL:")) {
+ if (
+ err.message.includes(
+ "ERROR: Unsupported URL:" || err.message.includes("No media found"),
+ )
+ ) {
logger.info(
`[VideoCrawler][${jobId}] Skipping video download from "${url}", because it's not one of the supported yt-dlp URLs`,
);