playdl-music-extractor
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "playdl-music-extractor", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"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", | ||
@@ -30,3 +30,3 @@ "main": "./src/index.js", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^8.0.1", | ||
"eslint": "^8.1.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
@@ -45,2 +45,3 @@ "eslint-plugin-import": "^2.25.2", | ||
"video-extractor", | ||
"music-downloader", | ||
"youtube", | ||
@@ -47,0 +48,0 @@ "spotify", |
@@ -81,5 +81,6 @@ <div align="center"> | ||
- `Extractor() can be used if you need only the info about the Query from various platforms` | ||
- `Data.tracks[0].stream can be used in terms of stream value in @discordjs/voice or any other Audio package After using - StreamDownloader() .` | ||
## Use-Case/Example for @discordjs/voice Package | ||
## Use-Case for @discordjs/voice Package | ||
@@ -86,0 +87,0 @@ ``` |
@@ -84,3 +84,4 @@ const SoundCloud = require('@sidislive/soundcloud-scraper'); | ||
stream: | ||
SoundCloudRawTrack.streamURL && SoundCloudRawTrack.streamURL !== 'undefined' | ||
SoundCloudRawTrack.streamURL | ||
&& SoundCloudRawTrack.streamURL !== 'undefined' | ||
? SoundCloudRawTrack.streamURL | ||
@@ -98,3 +99,3 @@ : undefined ?? undefined, | ||
await PlayDLExtractor.DataExtractorYoutube( | ||
track.title, | ||
`${track.title} ${track.author.slice(0, 10)}`, | ||
'souncloud', | ||
@@ -101,0 +102,0 @@ YoutubeStreamOptions, |
@@ -65,3 +65,5 @@ const { getData, getPreview } = require('spotify-url-info'); | ||
SpotifyTrackRawData.name | ||
?? (SpotifyTrackRawData.track ? SpotifyTrackRawData.track.name : undefined) | ||
?? (SpotifyTrackRawData.track | ||
? SpotifyTrackRawData.track.name | ||
: undefined) | ||
?? VideoThumbnailPreview.title | ||
@@ -105,3 +107,3 @@ ?? undefined, | ||
const CompleteTracks = await PlayDLExtractor.DataExtractorYoutube( | ||
track.title, | ||
`${track.title} ${track.author.slice(0, 10)}`, | ||
'spotify', | ||
@@ -108,0 +110,0 @@ YoutubeStreamOptions, |
25939
604
121