Skip to content

Commit 0f59cb6

Browse files
committed
fix: Stop erroring in video download when there's no media found
1 parent 18c6203 commit 0f59cb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/workers/videoWorker.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ async function runWorker(job: DequeuedJob<ZVideoRequest>) {
115115
assetPath = downloadPath;
116116
} catch (e) {
117117
const err = e as Error;
118-
if (err.message.includes("ERROR: Unsupported URL:")) {
118+
if (
119+
err.message.includes(
120+
"ERROR: Unsupported URL:" || err.message.includes("No media found"),
121+
)
122+
) {
119123
logger.info(
120124
`[VideoCrawler][${jobId}] Skipping video download from "${url}", because it's not one of the supported yt-dlp URLs`,
121125
);

0 commit comments

Comments
 (0)