mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
* refactor: Move transcript logic to `MediaInfo` + Add support for retrieving different languages. * docs: Update and add examples
18 lines
438 B
TypeScript
18 lines
438 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
import Text from './misc/Text.js';
|
|
|
|
export default class TranscriptSectionHeader extends YTNode {
|
|
static type = 'TranscriptSectionHeader';
|
|
|
|
start_ms: string;
|
|
end_ms: string;
|
|
snippet: Text;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.start_ms = data.startMs;
|
|
this.end_ms = data.endMs;
|
|
this.snippet = new Text(data.snippet);
|
|
}
|
|
} |