Skip to content

Commit

Permalink
fix: update path to view count
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Dec 12, 2018
1 parent 9d0b9a2 commit cab0aaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/ytdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ const printVideoInfo = (info, live) => {
console.log(label('title: ') + info.title);
console.log(label('author: ') + info.author.name);
console.log(label('average rating: ') + info.avg_rating);
console.log(label('view count: ') + info.view_count);
console.log(label('view count: ') +
info.player_response.videoDetails.viewCount);
if (!live) {
console.log(label('length: ') + util.toHumanTime(info.length_seconds));
}
Expand Down

0 comments on commit cab0aaa

Please sign in to comment.