mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 21:52:48 +00:00
fix: minor bug
This commit is contained in:
@@ -148,10 +148,16 @@ const formatVideoData = (data, context, desktop) => {
|
||||
video_details.title = data[2].playerResponse.videoDetails.title;
|
||||
video_details.description = data[2].playerResponse.videoDetails.shortDescription;
|
||||
video_details.thumbnail = data[2].playerResponse.videoDetails.thumbnail.thumbnails.slice(-1)[0];
|
||||
|
||||
// actions
|
||||
video_details.like = like => {};
|
||||
video_details.dislike = dislike => {};
|
||||
video_details.removeLike = remove_like => {};
|
||||
video_details.subscribe = subscribe => {};
|
||||
video_details.unsubscribe = unsubscribe => {};
|
||||
video_details.comment = comment => {};
|
||||
|
||||
// additional metadata
|
||||
video_details.metadata = metadata;
|
||||
return video_details;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user