mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 09:06:51 +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:
@@ -6,7 +6,9 @@ class SectionList {
|
||||
type = 'SectionList';
|
||||
|
||||
constructor(data) {
|
||||
this.target_id = data.targetId || null;
|
||||
data.targetId
|
||||
&& (this.target_id = data.targetId);
|
||||
|
||||
this.contents = Parser.parse(data.contents);
|
||||
|
||||
if (data.continuations) {
|
||||
@@ -17,7 +19,8 @@ class SectionList {
|
||||
}
|
||||
}
|
||||
|
||||
this.header = Parser.parse(data.header);
|
||||
data.header &&
|
||||
(data.header = Parser.parse(data.header));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user