From 5aecd0ace96c371f0b15cdc6e45ef09beb5696af Mon Sep 17 00:00:00 2001 From: Muhammad Mujtaba Naveed Date: Sat, 22 Feb 2025 03:12:19 +0500 Subject: [PATCH] fix(innertube): Allowing `getStreamingData` to use client (#895) --- src/Innertube.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Innertube.ts b/src/Innertube.ts index 6acad41c..b5c2cda8 100644 --- a/src/Innertube.ts +++ b/src/Innertube.ts @@ -431,7 +431,7 @@ export default class Innertube { * @param options - Format options. */ async getStreamingData(video_id: string, options: FormatOptions = {}): Promise { - 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; } -} \ No newline at end of file +}