mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
chore: clean up build steps
This commit is contained in:
15
src/parser/classes/MetadataRow.ts
Normal file
15
src/parser/classes/MetadataRow.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import Text from './misc/Text';
|
||||
|
||||
import { YTNode } from '../helpers';
|
||||
|
||||
class MetadataRow extends YTNode {
|
||||
static type = 'MetadataRow';
|
||||
title;
|
||||
contents;
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.title = new Text(data.title);
|
||||
this.contents = (data.contents as any[]).map((content) => new Text(content));
|
||||
}
|
||||
}
|
||||
export default MetadataRow;
|
||||
Reference in New Issue
Block a user