mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-03 09:35:05 +00:00
feat: tidy things up and implement more renderers
- Finished Library parser - Fixed search continuations - Improved channel parser - Improved playlist parser - Added support for posts of type poll - Improved History parser - Removed redundant code
This commit is contained in:
@@ -142,7 +142,7 @@ class VideoInfo {
|
||||
const response = await filter.endpoint.call(this.#actions);
|
||||
const data = response.on_response_received_endpoints.get({ target_id: 'watch-next-feed' });
|
||||
|
||||
this.watch_next_feed = data.continuation_items;
|
||||
this.watch_next_feed = data.contents;
|
||||
|
||||
return this;
|
||||
}
|
||||
@@ -159,7 +159,7 @@ class VideoInfo {
|
||||
const response = await this.#watch_next_continuation.endpoint.call(this.#actions);
|
||||
const data = response.on_response_received_endpoints.get({ type: 'appendContinuationItemsAction' });
|
||||
|
||||
this.watch_next_feed = data.continuation_items;
|
||||
this.watch_next_feed = data.contents;
|
||||
this.#watch_next_continuation = this.watch_next_feed.pop();
|
||||
|
||||
return this.watch_next_feed;
|
||||
|
||||
Reference in New Issue
Block a user