mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-15 18:42:11 +00:00
Other changes: - Renamed "getShortsWatchItem" to "getShortsVideoInfo". - Fixed `ShortFormVideoInfo`. This never worked for me ever since it was introduced. Turned out it was just implemented incorrectly. - Moved `basic_info` extraction to `MediaInfo`. Less of a pain to maintain as we only have to modify one file. - Removed unneeded tsdoc comments. - Fixed `Innertube#getStreamingData()`. Now it actually returns a deciphered format. - Simplified some types.
18 lines
524 B
TypeScript
18 lines
524 B
TypeScript
import Text from '../misc/Text.js';
|
|
import { YTNode } from '../../helpers.js';
|
|
import type { RawNode } from '../../index.js';
|
|
|
|
export default class UpdateToggleButtonTextAction extends YTNode {
|
|
static type = 'UpdateToggleButtonTextAction';
|
|
|
|
default_text: string;
|
|
toggled_text: string;
|
|
button_id: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.default_text = new Text(data.defaultText).toString();
|
|
this.toggled_text = new Text(data.toggledText).toString();
|
|
this.button_id = data.buttonId;
|
|
}
|
|
} |