Skip to content

Commit

Permalink
feat(info): Change URL format in getInfo (#279)
Browse files Browse the repository at this point in the history
* Update info.js
* Raw -> Standard

BREAKING CHANGE: `info.video_url` will now always point to the standard web player url
  • Loading branch information
FireController1847 authored and fent committed Jan 30, 2018
1 parent 48217a9 commit bcddc67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ module.exports = function getInfo(link, options, callback) {
// Get related videos.
related_videos: util.getRelatedVideos(body),

// Give the canonical link to the video.
video_url: url,
// Give the standard link to the video.
video_url: VIDEO_URL + id,
};

var jsonStr = util.between(body, 'ytplayer.config = ', '</script>');
Expand Down

0 comments on commit bcddc67

Please sign in to comment.