We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getStreamingData
1 parent 4325717 commit 5aecd0aCopy full SHA for 5aecd0a
1 file changed
src/Innertube.ts
@@ -431,7 +431,7 @@ export default class Innertube {
431
* @param options - Format options.
432
*/
433
async getStreamingData(video_id: string, options: FormatOptions = {}): Promise<Format> {
434
- const info = await this.getBasicInfo(video_id);
+ const info = await this.getBasicInfo(video_id, options?.client);
435
436
const format = info.chooseFormat(options);
437
format.url = format.decipher(this.#session.player);
@@ -616,4 +616,4 @@ export default class Innertube {
616
get session() {
617
return this.#session;
618
}
619
-}
+}
0 commit comments