youtubei
Version:
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
18 lines (17 loc) • 394 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Caption = void 0;
/**
* Represent a single video caption entry
*/
class Caption {
/** @hidden */
constructor(attr) {
Object.assign(this, attr);
}
/** transcript end time in milliseconds */
get end() {
return this.start + this.duration;
}
}
exports.Caption = Caption;