Constructor
new Item(item)
Parameters:
Name | Type | Description |
---|---|---|
item |
Object | Contains the video data |
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 |
Returns:
ytdl.videoInfo
- Type
- Promise.<Object>
(async) getItemData(item) → {Promise.<Object>}
Get ytdl videoInfo
Parameters:
Name | Type | Description |
---|---|---|
item |
Item | Video Item |
Returns:
ytdl.videoInfo
- Type
- Promise.<Object>