refactor: remove unneeded check when generating search filter params

YouTube doesn't do this so I don't see why we should.
This commit is contained in:
LuanRT
2023-01-05 20:32:14 -03:00
parent d69d701869
commit b4b0731589

View File

@@ -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];
}