fix(innertube): Allowing getStreamingData to use client (#895)

This commit is contained in:
Muhammad Mujtaba Naveed
2025-02-22 03:12:19 +05:00
committed by GitHub
parent 432571769e
commit 5aecd0ace9

View File

@@ -431,7 +431,7 @@ export default class Innertube {
* @param options - Format options.
*/
async getStreamingData(video_id: string, options: FormatOptions = {}): Promise<Format> {
const info = await this.getBasicInfo(video_id);
const info = await this.getBasicInfo(video_id, options?.client);
const format = info.chooseFormat(options);
format.url = format.decipher(this.#session.player);
@@ -616,4 +616,4 @@ export default class Innertube {
get session() {
return this.#session;
}
}
}