playdl-music-extractor
Advanced tools
Comparing version 2.3.9 to 2.3.10
{ | ||
"name": "playdl-music-extractor", | ||
"version": "2.3.9", | ||
"version": "2.3.10", | ||
"description": "PlayDL Music Extractor is a Extractor/Scrapper and Helps Players to fetch data from play-dl or Custom Extractors , as Per reduces extra work and credentials", | ||
@@ -33,3 +33,3 @@ "main": "./src/index.js", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-plugin-import": "^2.25.2", | ||
"eslint-plugin-import": "^2.25.3", | ||
"jsdoc": "^3.6.7", | ||
@@ -36,0 +36,0 @@ "jsdoc-babel": "^0.5.0", |
@@ -30,3 +30,6 @@ const { getData, getPreview } = require('spotify-url-info'); | ||
(video) => { | ||
if (video && video.track && video.track.name !== '') return video; | ||
if ( | ||
(video && video.track && video.track.name !== '') | ||
|| (video && video.name !== '') | ||
) return video; | ||
return void undefined; | ||
@@ -33,0 +36,0 @@ }, |
@@ -85,5 +85,10 @@ const { | ||
proxy: | ||
(YoutubeStreamOptions.Proxy | ||
(YoutubeStreamOptions.Proxy && YoutubeStreamOptions.Proxy[0] | ||
? YoutubeStreamOptions.Proxy | ||
: undefined) | ||
?? (YoutubeStreamOptions.Proxy | ||
&& typeof YoutubeStreamOptions.Proxy === 'string' | ||
? [YoutubeStreamOptions.Proxy] | ||
: undefined) ?? undefined, | ||
: undefined) | ||
?? undefined, | ||
} | ||
@@ -95,3 +100,3 @@ : undefined, | ||
if ( | ||
Loop >= 10 | ||
Loop >= 3 | ||
|| !( | ||
@@ -102,2 +107,3 @@ `${error.message}`.includes('429') | ||
|| `${error.message}`.includes('unavailable') | ||
|| `${error.message}`.includes('Unavailable') | ||
) | ||
@@ -109,4 +115,5 @@ || !( | ||
|| `${error}`.includes('unavailable') | ||
|| `${error}`.includes('Unavailable') | ||
) | ||
) throw Error(`${error.message}`); | ||
) throw Error(`${error.message ?? error}`); | ||
YoutubeStreamOptions.Proxy = [(await randomOne(true)).url]; | ||
@@ -113,0 +120,0 @@ const StreamData = await PlayDLExtractor.#streamdownloader( |
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
35601
890