mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-04 03:51:00 +00:00
fix: search continuations not being parsed correctly (#173)
* feat: add `TitleAndButtonListHeader` * fix: continuations not being parsed correctly * chore: add a test * chore(package): bump version to 2.0.2 * chore: lint
This commit is contained in:
15
src/parser/classes/TitleAndButtonListHeader.ts
Normal file
15
src/parser/classes/TitleAndButtonListHeader.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import Text from './misc/Text';
|
||||
import { YTNode } from '../helpers';
|
||||
|
||||
class TitleAndButtonListHeader extends YTNode {
|
||||
static type = 'TitleAndButtonListHeader';
|
||||
|
||||
title: Text;
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.title = new Text(data.title);
|
||||
}
|
||||
}
|
||||
|
||||
export default TitleAndButtonListHeader;
|
||||
Reference in New Issue
Block a user