mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 13:07:28 +00:00
refactor!: finish parser migration
Finally! :) This removes all code related to the old parser. #65
This commit is contained in:
20
lib/parser/classes/EndScreenPlaylist.js
Normal file
20
lib/parser/classes/EndScreenPlaylist.js
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
const Text = require('./Text');
|
||||
const Thumbnail = require('./Thumbnail');
|
||||
const NavigationEndpoint = require('./NavigationEndpoint');
|
||||
|
||||
class EndScreenPlaylist {
|
||||
type = 'EndScreenPlaylist';
|
||||
|
||||
constructor(data) {
|
||||
this.id = data.playlistId;
|
||||
this.title = new Text(data.title);
|
||||
this.author = new Text(data.longBylineText);
|
||||
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
|
||||
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
||||
this.video_count = new Text(data.videoCountText);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = EndScreenPlaylist;
|
||||
Reference in New Issue
Block a user