mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-23 06:32:51 +00:00
feat: add parsers for TimeWatched
This commit is contained in:
18
src/parser/classes/SimpleTextSection.ts
Normal file
18
src/parser/classes/SimpleTextSection.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import Text from './misc/Text';
|
||||
|
||||
import { YTNode } from '../helpers';
|
||||
|
||||
class SimpleTextSection extends YTNode {
|
||||
static type = 'SimpleTextSection';
|
||||
|
||||
lines: Text[];
|
||||
style: string;
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.lines = data.lines.map((line: any) => new Text(line));
|
||||
this.style = data.layoutStyle;
|
||||
}
|
||||
}
|
||||
|
||||
export default SimpleTextSection;
|
||||
Reference in New Issue
Block a user