mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-15 18:42:11 +00:00
* fix(VideoInfo.ts): reimplement `get music_tracks` - Add parser classes to parse needed data - Add `CarouselLockup` - Add `EngagementPanelSectionList` - Add `InfoRow` - Add `StructuredDescriptionContent` - Add `VideoDescriptionMusicSection` - Add `VideoDescriptionHeader` - Add `Factoid` - Add `ExpandableVideoDescriptionBody` - Add `AdsEngagementPanelContent` - Add `engagement_panels` to raw and parsed next responses - Add `engagement_panels` parsing code to `parser.ts` * Check for song inside of video_lockup first before checking info_rows * Add support for pulling artist ids out of music_tracks - Add support for WRITERS InfoRow - Check for video id inside of naviagation endpoint on info_row metadata * Add `AdsEngagementPanelContent` to ignore list * Switch `map => parseItem` to `parseArray` * Use `Text` && `NavigationEndpoint` * Replace `String` with `Text` in `ExpandableVideoDescriptionBody`
23 lines
623 B
TypeScript
23 lines
623 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { type RawNode } from '../index.js';
|
|
import { Text } from '../misc.js';
|
|
|
|
export default class ExpandableVideoDescriptionBody extends YTNode {
|
|
static type = 'ExpandableVideoDescriptionBody';
|
|
|
|
show_more_text: Text;
|
|
show_less_text: Text;
|
|
attributed_description_body_text: {
|
|
content: String
|
|
};
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.show_more_text = new Text(data.showMoreText);
|
|
this.show_less_text = new Text(data.showLessText);
|
|
this.attributed_description_body_text = {
|
|
content: data.attributedDescriptionBodyText.content
|
|
};
|
|
}
|
|
}
|