Skip to content

Commit

Permalink
fix(innertube): Allowing getStreamingData to use client (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
LingeringAsh authored Feb 21, 2025
1 parent 4325717 commit 5aecd0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Innertube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -616,4 +616,4 @@ export default class Innertube {
get session() {
return this.#session;
}
}
}

0 comments on commit 5aecd0a

Please sign in to comment.