mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
17 lines
411 B
JavaScript
17 lines
411 B
JavaScript
'use strict';
|
|
|
|
const Text = require('./Text');
|
|
|
|
class ChannelVideoPlayer {
|
|
type = 'ChannelVideoPlayer';
|
|
|
|
constructor(data) {
|
|
this.id = data.videoId;
|
|
this.title = new Text(data.title, '');
|
|
this.description = new Text(data.description, '');
|
|
this.views = new Text(data.viewCountText, '');
|
|
this.published_at = new Text(data.publishedTimeText, '');
|
|
}
|
|
}
|
|
|
|
module.exports = ChannelVideoPlayer; |