From 6ebcf743659c2666326a52d29a04f390099bf374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 27 Aug 2023 18:37:39 +0200 Subject: [PATCH] feat: warn about empty searches --- index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.ts b/index.ts index 0a26a59..8d8fa34 100644 --- a/index.ts +++ b/index.ts @@ -147,6 +147,10 @@ while (true) { logger.debug("Found %d videos: %j", videos.length, videos); + if (videos.length === 0) { + logger.warn("Got no videos!"); + } + let downloaded = 0; for (const video of videos) { if (!video.id) {