playdl-music-extractor
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "playdl-music-extractor", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -6,2 +6,3 @@ const SpotifyExtractor = require('./bin/Spotify-Resolver'); | ||
const FacebookResolver = require('./bin/Facebook-Resolver'); | ||
const ReverbnationResolver = require('./bin/Reverbnation-Resolver'); | ||
@@ -26,2 +27,3 @@ /** | ||
const FacebookVideoUrlRegex = /(?:https?:\/{2})?(?:w{3}\.)?(facebook|fb).com\/.*\/videos\/.*/; | ||
if (!Query || (Query && typeof Query !== 'string')) throw TypeError('Query is invalid or is not String'); | ||
if (Query.match(SpotifyUrlRegex)) return await SpotifyExtractor(Query, YoutubeStreamOptions); | ||
@@ -36,2 +38,3 @@ if (Query.match(FacebookVideoUrlRegex)) return await FacebookResolver(Query, YoutubeStreamOptions); | ||
} | ||
if (Query.toLowerCase().includes('www.reverbnation.com')) return await ReverbnationResolver(Query, YoutubeStreamOptions); | ||
return await QueryResolver(Query, YoutubeStreamOptions); | ||
@@ -38,0 +41,0 @@ } |
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
21714
509