mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
fix: incorrect node parser implementations (#428)
These were causing some issues in v5.2.0.
This commit is contained in:
@@ -7,14 +7,11 @@ export default class CarouselLockup extends YTNode {
|
||||
static type = 'CarouselLockup';
|
||||
|
||||
info_rows: ObservedArray<InfoRow>;
|
||||
video_lockup?: CompactVideo;
|
||||
video_lockup?: CompactVideo | null;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.info_rows = Parser.parseArray(data.infoRows, InfoRow);
|
||||
const video_lockup = Parser.parseItem(data.videoLockup, CompactVideo);
|
||||
if (video_lockup != null) {
|
||||
this.video_lockup = video_lockup;
|
||||
}
|
||||
this.video_lockup = Parser.parseItem(data.videoLockup, CompactVideo);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user