Skip to content

Commit 5aecd0a

Browse files
authored
fix(innertube): Allowing getStreamingData to use client (#895)
1 parent 4325717 commit 5aecd0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Innertube.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export default class Innertube {
431431
* @param options - Format options.
432432
*/
433433
async getStreamingData(video_id: string, options: FormatOptions = {}): Promise<Format> {
434-
const info = await this.getBasicInfo(video_id);
434+
const info = await this.getBasicInfo(video_id, options?.client);
435435

436436
const format = info.chooseFormat(options);
437437
format.url = format.decipher(this.#session.player);
@@ -616,4 +616,4 @@ export default class Innertube {
616616
get session() {
617617
return this.#session;
618618
}
619-
}
619+
}

0 commit comments

Comments
 (0)