Files
YouTube.js/lib/parser/classes/ChannelVideoPlayer.js
LuanRT 68cb841c00 refactor!: finish parser migration
Finally! :)

This removes all code related to the old parser.

#65
2022-07-11 06:19:10 -03:00

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;