youtubei
Version:
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
20 lines (19 loc) • 480 B
JavaScript
/**
* Represent a single video caption entry
*/
var Caption = /** @class */ (function () {
/** @hidden */
function Caption(attr) {
Object.assign(this, attr);
}
Object.defineProperty(Caption.prototype, "end", {
/** transcript end time in milliseconds */
get: function () {
return this.start + this.duration;
},
enumerable: false,
configurable: true
});
return Caption;
}());
export { Caption };