Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
[release] build lib
Browse files Browse the repository at this point in the history
  • Loading branch information
larube committed Aug 23, 2017
1 parent 42605c0 commit f869fef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/providers/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ var fetchUrl = function fetchUrl(videoId, part) {
return 'https://www.googleapis.com/youtube/v3/videos?part=' + part + '&id=' + videoId + '&key=' + provider.apiKey;
};

var fetchVideo = _.memoize(function (videoId, part) {
var fetchVideo = function fetchVideo(videoId, part) {
return fetch(fetchUrl(videoId, part), { headers: provider.headers }).then(function (res) {
return res.json();
});
});
};

/**
* Convert duration ISO 8601 to seconds
Expand Down

0 comments on commit f869fef

Please sign in to comment.