ytdl-core
Advanced tools
Comparing version 4.4.2 to 4.4.3
@@ -271,5 +271,6 @@ const utils = require('./utils'); | ||
* @param {Object} videoDetails | ||
* @param {Object} info | ||
* @returns {Object} | ||
*/ | ||
exports.cleanVideoDetails = videoDetails => { | ||
exports.cleanVideoDetails = (videoDetails, info) => { | ||
videoDetails.thumbnails = videoDetails.thumbnail.thumbnails; | ||
@@ -283,2 +284,7 @@ delete videoDetails.thumbnail; | ||
'videoDetails.shortDescription', 'videoDetails.description'); | ||
// Use more reliable `lengthSeconds` from `playerMicroformatRenderer`. | ||
videoDetails.lengthSeconds = | ||
info.player_response.microformat && | ||
info.player_response.microformat.playerMicroformatRenderer.lengthSeconds; | ||
return videoDetails; | ||
@@ -285,0 +291,0 @@ }; |
@@ -90,3 +90,3 @@ const urllib = require('url'); | ||
info.player_response.microformat.playerMicroformatRenderer, | ||
info.player_response && info.player_response.videoDetails, additional)); | ||
info.player_response && info.player_response.videoDetails, additional), info); | ||
@@ -93,0 +93,0 @@ return info; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "4.4.2", | ||
"version": "4.4.3", | ||
"repository": { | ||
@@ -12,0 +12,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91702
2453