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:
LuanRT
2022-06-20 03:02:42 -03:00
parent a556aacfdd
commit 748e34758f
51 changed files with 567 additions and 356 deletions

View File

@@ -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);
}
}