From 0f59cb689f3da65ad327df1b58bc22c1b231ed24 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sat, 9 Nov 2024 15:36:03 +0000 Subject: fix: Stop erroring in video download when there's no media found --- apps/workers/videoWorker.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/workers') 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) { 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`, ); -- cgit v1.2.3-70-g09d2