Files
YouTube.js/lib/parser/classes/VideoOwner.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

19 lines
451 B
JavaScript

'use strict';
const Text = require('./Text');
const Author = require('./Author');
class VideoOwner {
type = 'VideoOwner';
constructor(data) {
this.subscription_button = data.subscriptionButton || null;
this.subscriber_count = new Text(data.subscriberCountText);
this.author = new Author({
...data.title,
navigationEndpoint: data.navigationEndpoint
}, data.badges, data.thumbnail);
}
}
module.exports = VideoOwner;