diff options
Diffstat (limited to 'apps/workers')
| -rw-r--r-- | apps/workers/package.json | 2 | ||||
| -rw-r--r-- | apps/workers/videoWorker.ts | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/workers/package.json b/apps/workers/package.json index 1e522024..e11a85d6 100644 --- a/apps/workers/package.json +++ b/apps/workers/package.json @@ -38,7 +38,7 @@ "rss-parser": "^3.13.0", "tesseract.js": "^5.1.1", "tsx": "^4.7.1", - "typescript": "^5.3.3", + "typescript": "^5.7.3", "zod": "^3.22.4" }, "devDependencies": { diff --git a/apps/workers/videoWorker.ts b/apps/workers/videoWorker.ts index f81b0960..10f18454 100644 --- a/apps/workers/videoWorker.ts +++ b/apps/workers/videoWorker.ts @@ -116,9 +116,8 @@ async function runWorker(job: DequeuedJob<ZVideoRequest>) { } catch (e) {
const err = e as Error;
if (
- err.message.includes(
- "ERROR: Unsupported URL:" || err.message.includes("No media found"),
- )
+ 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`,
|
