Socket
Socket
Sign inDemoInstall

ytdl-core

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytdl-core - npm Package Compare versions

Comparing version 4.4.2 to 4.4.3

8

lib/info-extras.js

@@ -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 @@ };

2

lib/info.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc