mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 21:52:48 +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:
@@ -7,8 +7,10 @@ class ItemSection {
|
||||
|
||||
constructor(data) {
|
||||
this.header = Parser.parse(data.header);
|
||||
this.target_id = data.targetId || data.sectionIdentifier || null;
|
||||
this.contents = Parser.parse(data.contents);
|
||||
|
||||
data.targetId || data.sectionIdentifier &&
|
||||
(this.target_id = data.targetId ? data.sectionIdentifier : null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user