mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-26 08:08:54 +00:00
chore: v5.2.0 release
This commit is contained in:
20
deno/src/parser/classes/CarouselLockup.ts
Normal file
20
deno/src/parser/classes/CarouselLockup.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { type ObservedArray, YTNode } from '../helpers.ts';
|
||||
import InfoRow from './InfoRow.ts';
|
||||
import Parser, { type RawNode } from '../index.ts';
|
||||
import CompactVideo from './CompactVideo.ts';
|
||||
|
||||
export default class CarouselLockup extends YTNode {
|
||||
static type = 'CarouselLockup';
|
||||
|
||||
info_rows: ObservedArray<InfoRow>;
|
||||
video_lockup?: CompactVideo;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user