New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

youtube-mp3-downloader

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-mp3-downloader - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

9

lib/YoutubeMp3Downloader.js

@@ -87,6 +87,9 @@ "use strict";

} else {
// Map new structure to old one
info = info.player_response.videoDetails;
var videoTitle = self.cleanFileName(info.title);
var artist = "Unknown";
var title = "Unknown";
var thumbnail = info.iurlhq || null;
var thumbnail = info.thumbnail.thumbnails[0].url || null;

@@ -104,6 +107,8 @@ if (videoTitle.indexOf("-") > -1) {

//Derive file name, if given, use it, if not, from video title
var fileName = (task.fileName ? self.outputPath + "/" + task.fileName : self.outputPath + "/" + (sanitize(videoTitle) || info.video_id) + ".mp3");
var fileName = (task.fileName ? self.outputPath + "/" + task.fileName : self.outputPath + "/" + (sanitize(videoTitle) || info.videoId) + ".mp3");
ytdl.getInfo(videoUrl, { quality: self.youtubeVideoQuality }, function(err, info) {
if (err) callback(err, null);
//Stream setup

@@ -110,0 +115,0 @@ var stream = ytdl.downloadFromInfo(info, {

{
"name": "youtube-mp3-downloader",
"version": "0.6.2",
"version": "0.6.3",
"description": "Downloads Youtube videos (in parallel, as streams), encodes the audio data as mp3 and stores them in a defineable location",

@@ -25,3 +25,3 @@ "keywords": [

"sanitize-filename": "^1.6.1",
"ytdl-core": "^0.29.3"
"ytdl-core": "^0.29.5"
},

@@ -28,0 +28,0 @@ "author": {

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