@nechlophomeriaa/spotifydl
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -107,2 +107,7 @@ const { isUrl, tags, convertMs } = require("./function") | ||
const getOrigin = await getOriginalUrl(song) | ||
if (!getOrigin.includes("track/")) { | ||
;(result.status = false), (result.message = "Download track not support for Album/Playlist") | ||
console.log(result) | ||
return result | ||
} | ||
var tracks = await spotify.getTrack(getOrigin.split("track/")[1].split("?")[0]) | ||
@@ -136,3 +141,3 @@ } else { | ||
} | ||
console.log(result) | ||
console.log(err) | ||
return result | ||
@@ -139,0 +144,0 @@ } |
@@ -10,3 +10,3 @@ { | ||
"description": "Simple Scraper Spotify Track/Album/Playlist Downloader with Metadata", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"main": "index.js", | ||
@@ -16,3 +16,3 @@ "scripts": { | ||
"start": "node index.js", | ||
"format": "prettier --write '**/*.{md,js,json}'" | ||
"format": "prettier --write '**/*.{js,json}'" | ||
}, | ||
@@ -19,0 +19,0 @@ "repository": { |
@@ -18,7 +18,7 @@ <p>Simple Scraper Spotify Downloader from <a href ="https://spotifydown.com/id">SpotifyDown</a></p> | ||
```js | ||
;async () => { | ||
(async () => { | ||
const searchTrack = await search(query, limit) // | ||
console.log(searchTrack) | ||
// Promise will be return an Array | ||
} | ||
}) | ||
@@ -41,6 +41,6 @@ /* | ||
// Input Metadata: ✅ | ||
;async () => { | ||
(async () => { | ||
const downTrack = await downloadTrack(song) // query || url | ||
console.log(downTrack) | ||
} | ||
}) | ||
/* | ||
@@ -76,6 +76,6 @@ Example Output: { | ||
// Input Metadata: ✅ | ||
;async () => { | ||
(async () => { | ||
const downAlbums = await downloadAlbum(url) | ||
console.log(downAlbums) | ||
} | ||
}) | ||
/* | ||
@@ -82,0 +82,0 @@ Example Output: { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13824
213
1