From b4b07315895379907fe16352577cbcc98969df2f Mon Sep 17 00:00:00 2001 From: LuanRT Date: Thu, 5 Jan 2023 20:32:14 -0300 Subject: [PATCH] refactor: remove unneeded check when generating search filter params YouTube doesn't do this so I don't see why we should. --- src/proto/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/proto/index.ts b/src/proto/index.ts index cec20d0e..c9ba0121 100644 --- a/src/proto/index.ts +++ b/src/proto/index.ts @@ -74,9 +74,6 @@ class Proto { data.noFilter = 0; if (data.filters) { - if (filters.upload_date && filters.type !== 'video') - throw new Error(`Upload date filter cannot be used with type ${filters.type}`); - if (filters.upload_date) { data.filters.uploadDate = upload_date[filters.upload_date]; }