Skip to content

Commit

Permalink
fix: Stop erroring in video download when there's no media found
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Nov 9, 2024
1 parent 18c6203 commit 0f59cb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/workers/videoWorker.ts
Original file line number Diff line number Diff line change
@@ -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`,
);

0 comments on commit 0f59cb6

Please sign in to comment.