Skip to content

Commit

Permalink
feat(ReelItem): Add accessibility label (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed May 14, 2023
1 parent beb4733 commit 046103a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser/classes/ReelItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default class ReelItem extends YTNode {
thumbnails: Thumbnail[];
views: Text;
endpoint: NavigationEndpoint;
accessibility_label?: string;

constructor(data: RawNode) {
super();
Expand All @@ -20,5 +21,6 @@ export default class ReelItem extends YTNode {
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
this.views = new Text(data.viewCountText);
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
this.accessibility_label = data.accessibility.accessibilityData.label;
}
}

0 comments on commit 046103a

Please sign in to comment.