A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: Don't enqueue video tasks when video downlaod is disabled
Mohamed Bassem80a10231ad4c
diff --git a/apps/workers/workers/crawlerWorker.ts b/apps/workers/workers/crawlerWorker.tsindex bec10acf..36068f14 100644--- a/apps/workers/workers/crawlerWorker.ts+++ b/apps/workers/workers/crawlerWorker.ts@@ -1150,14 +1150,16 @@ async function runCrawler(job: DequeuedJob<ZCrawlLinkRequest>) {// Update the search indexawait triggerSearchReindex(bookmarkId, enqueueOpts);- // Trigger a potential download of a video from the URL- await VideoWorkerQueue.enqueue(- {- bookmarkId,- url,- },- enqueueOpts,- );+ if (serverConfig.crawler.downloadVideo) {+ // Trigger a potential download of a video from the URL+ await VideoWorkerQueue.enqueue(+ {+ bookmarkId,+ url,+ },+ enqueueOpts,+ );+ }// Trigger a webhookawait triggerWebhook(bookmarkId, "crawled", undefined, enqueueOpts);