mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 21:52:48 +00:00
fix: search continuations should return a Search class
Why? To keep things consistent.
This commit is contained in:
@@ -61,7 +61,12 @@ class Parser {
|
||||
const on_response_received_endpoints = data.onResponseReceivedEndpoints && Parser.parseRR(data.onResponseReceivedEndpoints) || null;
|
||||
const on_response_received_endpoints_memo = Parser.#memo;
|
||||
this.#clearMemo();
|
||||
|
||||
|
||||
this.#createMemo();
|
||||
const on_response_received_commands = data.onResponseReceivedCommands && Parser.parseRR(data.onResponseReceivedCommands) || null;
|
||||
const on_response_received_commands_memo = Parser.#memo;
|
||||
this.#clearMemo();
|
||||
|
||||
return {
|
||||
contents,
|
||||
contents_memo,
|
||||
@@ -69,7 +74,8 @@ class Parser {
|
||||
on_response_received_actions_memo,
|
||||
on_response_received_endpoints,
|
||||
on_response_received_endpoints_memo,
|
||||
on_response_received_commands: data.onResponseReceivedCommands && Parser.parseRR(data.onResponseReceivedCommands) || null,
|
||||
on_response_received_commands,
|
||||
on_response_received_commands_memo,
|
||||
/** @type {*} */
|
||||
continuation_contents: data.continuationContents && Parser.parseLC(data.continuationContents) || null,
|
||||
metadata: Parser.parse(data.metadata),
|
||||
|
||||
Reference in New Issue
Block a user