mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 07:11:48 +00:00
chore: clean up build steps
This commit is contained in:
22
src/parser/classes/Channel.js
Normal file
22
src/parser/classes/Channel.js
Normal file
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user