Class: Item

Item(item)

Class representing a video Item.

Constructor

new Item(item)

Parameters:
Name Type Description
item Object Contains the video data
Author:
Source:

Members

data

Default Value:
  • { type:'video', live:false, title:'', link:'', thumbnail:'', author:{ name:'', ref:'', verified:false }, description:'', views:0, duration:'00:00', uploaded_at:'', }
Source:

Methods

(async) getBasicItemData(item) → {Promise.<Object>}

Get Basic ytdl information
Parameters:
Name Type Description
item Item Video Item
Source:
Returns:
ytdl.videoInfo
Type
Promise.<Object>

(async) getItemData(item) → {Promise.<Object>}

Get ytdl videoInfo
Parameters:
Name Type Description
item Item Video Item
Source:
Returns:
ytdl.videoInfo
Type
Promise.<Object>