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
bocanico committed Jul 3, 2019
1 parent a4e38fa commit fe89f28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ function getVideoFromId(provider, videoId) {
playerUrl = _ref2[4],
embedCode = _ref2[5];

return formatter(provider.name, videoId, { title: title, description: description, duration: duration, thumbnailUrl: thumbnailUrl, playerUrl: playerUrl, embedCode: embedCode });
return formatter(provider.name, videoId, {
title: title,
description: description,
duration: duration,
thumbnailUrl: thumbnailUrl,
playerUrl: playerUrl,
embedCode: embedCode
});
});
}

Expand Down
4 changes: 3 additions & 1 deletion lib/providers/digiteka.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ var provider = {
return fetch(searchUrl(query, provider.itemsPerPage, 1 + Math.ceil(offset / provider.itemsPerPage)), { timeout: 10000, headers: provider.headers }).then(function (res) {
return res.json();
}).then(function (res) {
return _.get(res, 'results', []).map(function (_ref) {
return _.get(res, 'results', []).map(
// eslint-disable-next-line
function (_ref) {
var video_id = _ref.video_id,
title = _ref.title,
description = _ref.description,
Expand Down

0 comments on commit fe89f28

Please sign in to comment.