aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workers')
-rw-r--r--apps/workers/workers/crawlerWorker.ts18
1 files changed, 10 insertions, 8 deletions
diff --git a/apps/workers/workers/crawlerWorker.ts b/apps/workers/workers/crawlerWorker.ts
index 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 index
await 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 webhook
await triggerWebhook(bookmarkId, "crawled", undefined, enqueueOpts);