spotify-to-ytmusic
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -77,3 +77,3 @@ const YoutubeMusic = require('node-youtube-music') | ||
content = content.filter(song => song.artists.map(artist => artist.name).join(', ') === track.artists.map(artist => artist.name).join(', ')) | ||
content.length < 1 ? ytList.push(null) : ytList.push(content[0]) | ||
content.length < 1 ? ytList.push(null) : ytList.push(`https://www.youtube.com/watch?v=${content[0].youtubeId}`) | ||
} | ||
@@ -80,0 +80,0 @@ |
{ | ||
"name": "spotify-to-ytmusic", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Convert songs from Spotify to YouTube Music!", | ||
@@ -25,3 +25,7 @@ "main": "index.js", | ||
"spotify-to-youtube", | ||
"spotify-to-yt" | ||
"spotify-to-yt", | ||
"convert", | ||
"discord", | ||
"discord.js", | ||
"discord bot" | ||
], | ||
@@ -28,0 +32,0 @@ "author": "itsgox", |
@@ -5,7 +5,9 @@ # Spotify to YouTube Music | ||
## Changelog | ||
## Features | ||
> - The authentication is now handled by **spotify-to-ytmusic**, only using a **Client ID** & **Client Secret**, the previously required **Redirect URI** & **Access Token** are not needed anymore. | ||
> - **spotify-to-ytmusic** is now much faster. | ||
> - The **YouTube Music** results are now much more accurate. | ||
- Super **easy-to-use** | ||
- Access/refresh token **not required** | ||
- Convert **multiple songs** | ||
- **99% accuracy** | ||
- Perfect for **Discord Bots** | ||
@@ -20,4 +22,4 @@ ## Installation | ||
- To use **Spotify to YouTube Music**, first you need to provide your **Spotify Credentials** (**[Client ID & Client Secret](https://www.avermedia.com/us/creator_central_spotify)**), in order to have access to the **Spotify API**. | ||
- You can only provide **Spotify Tracks** *(Playlists / Albums / Podcasts are not supported)* | ||
- To use **spotify-to-ytmusic**, first you need to provide your **[Spotify Credentials](https://www.avermedia.com/us/creator_central_spotify)**, in order to have access to the **Spotify API**. | ||
- You can only provide **`Tracks`** // **`Playlists`**, **`Albums`** and **`Podcasts`** are **NOT** supported! | ||
@@ -48,16 +50,15 @@ ## Example | ||
*Other ways to provide a **Spotify Track**:* | ||
### *Other ways to provide a Spotify Track* | ||
```javascript | ||
await spotifyToYoutubeMusic('https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT') | ||
``` | ||
```javascript | ||
await spotifyToYoutubeMusic('spotify:track:4cOdK2wGLETKBW3PvgPWqT') | ||
``` | ||
```javascript | ||
await spotifyToYoutubeMusic('https://api.spotify.com/v1/tracks/4cOdK2wGLETKBW3PvgPWqT') | ||
``` | ||
```javascript | ||
await spotifyToYoutubeMusic(['4cOdK2wGLETKBW3PvgPWqT','06JvOZ39sK8D8SqiqfaxDU']) | ||
``` | ||
## Note | ||
This system is not 100% perfect, and sometimes will not get the right song(s) from YouTube Music. | ||
``` |
61
5369