style: format code

This commit is contained in:
LuanRT
2022-07-21 03:51:28 -03:00
parent 4bf4639902
commit 60e6326402
269 changed files with 2082 additions and 992 deletions

View File

@@ -1,22 +1,25 @@
import Author from './misc/Author';
import NavigationEndpoint from './NavigationEndpoint';
import Text from './misc/Text';
import { YTNode } from '../helpers';
class Channel extends YTNode {
static type = 'Channel';
constructor(data) {
super();
this.id = data.channelId;
this.author = new Author({
...data.title,
navigationEndpoint: data.navigationEndpoint
}, data.ownerBadges, data.thumbnail);
this.subscribers = new Text(data.subscriberCountText);
this.videos = new Text(data.videoCountText);
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
this.description_snippet = new Text(data.descriptionSnippet);
}
}
export default Channel;
export default Channel;