feat: warn about empty searches
This commit is contained in:
parent
0b1ef02eb9
commit
6ebcf74365
1 changed files with 4 additions and 0 deletions
4
index.ts
4
index.ts
|
@ -147,6 +147,10 @@ while (true) {
|
||||||
|
|
||||||
logger.debug("Found %d videos: %j", videos.length, videos);
|
logger.debug("Found %d videos: %j", videos.length, videos);
|
||||||
|
|
||||||
|
if (videos.length === 0) {
|
||||||
|
logger.warn("Got no videos!");
|
||||||
|
}
|
||||||
|
|
||||||
let downloaded = 0;
|
let downloaded = 0;
|
||||||
for (const video of videos) {
|
for (const video of videos) {
|
||||||
if (!video.id) {
|
if (!video.id) {
|
||||||
|
|
Loading…
Reference in a new issue