mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
fix(innertube): Allowing getStreamingData to use client (#895)
This commit is contained in:
committed by
GitHub
parent
432571769e
commit
5aecd0ace9
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user