mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 21:52:48 +00:00
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:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user