Update Innertube.js

This commit is contained in:
LuanRT
2021-10-01 00:33:00 -03:00
parent f18c91dca4
commit 23118703db

View File

@@ -44,7 +44,7 @@ class InnerTube {
return this;
}
async search(query, options = { period: 'any', order: 'relevance', duration: 'any', quantity: 100 }) {
async search(query, options = { period: 'any', order: 'relevance', duration: 'any' }) {
if (!this.initialized) throw new Error('Missing Innertube data.');
const yt_response = await axios.post(Constants.urls.YT_BASE_URL + '/youtubei/v1/search?key=' + this.key, JSON.stringify({ context: this.context, params: Constants.filters(options.period + ',' + options.duration + ',' + options.order), query }), Constants.innertube_request_opts({ session: this })).catch((error) => error);