Skip to content

Commit

Permalink
fix: update path to rating
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Jan 17, 2019
1 parent 1dc838c commit 6071d62
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 @@ -80,7 +80,8 @@ const printVideoInfo = (info, live) => {
console.log();
console.log(label('title: ') + info.title);
console.log(label('author: ') + info.author.name);
console.log(label('average rating: ') + info.avg_rating);
console.log(label('average rating: ') +
info.player_response.videoDetails.averageRating);
console.log(label('view count: ') +
info.player_response.videoDetails.viewCount);
if (!live) {
Expand Down

0 comments on commit 6071d62

Please sign in to comment.