Remove unused code

This commit is contained in:
LuanRT
2021-10-02 20:43:23 -03:00
parent c79ef60e03
commit 4a9717e392

View File

@@ -46,7 +46,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);