A DisTube custom plugin for supporting Yandex Music URL. Created by AlexInCube
If you want to use it with Distube v4, install v0.2.1 version of this plugin. Version ^1.0.3 works only with Distube v5.
This plugin grabs the songs on Yandexmusic and plays with DisTube.
Examples of supported links:
- Public track https://music.yandex.com/album/10030/track/38634572
- Albums https://music.yandex.ru/album/5307396
- Playlists https://music.yandex.ru/users/alexander.tsimbalistiy/playlists/1000
If you have some troubles, please create an issue.
You need the Premium Subscription in Yandex Music if you want to use this API outside Russia VDS
npm install distube-yandex-music-plugin@latest
const Discord = require("discord.js");
const client = new Discord.Client();
const { DisTube } = require("distube");
const { YandexMusicPlugin } = require("distube-yandex-music-plugin");
const distube = new DisTube(client, {
plugins: [new YandexMusicPlugin({
oauthToken: "your_token",
uid: "your_uid"
})],
});
oauthToken:
: Required for using Yandex API. You can retrieve token by following this guideuid:
: Required for using Yandex API. You can retrieve uid by opening Yandex Mail and copy uid from url in address bar.
Token and UID must relate to one account