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

@@ -14,9 +14,10 @@ class EndScreenVideo {
this.title = new Text(data.title);
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
this.thumbnail_overlays = Parser.parse(data.thumbnailOverlays);
this.author = new Author({ nav_text: data.shortBylineText, badges: data.ownerBadges || data.badges });
this.author = new Author(data.shortBylineText, data.ownerBadges);
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
this.short_view_count_text = new Text(data.shortViewCountText);
this.badges = Parser.parse(data.badges);
this.duration = {
text: new Text(data.lengthText).toString(),
seconds: data.lengthInSeconds