Web Analytics

WinYandexMusicRPC

⭐ 222 stars English by FozerG

[DISCORD RPC]  WinSdk + Yandex Music Discord Rich Presence

TotalDownloads LastRelease CodeOpen OS - Windows

>Despite the unreasonable decision to block Discord in Russia, I will continue to keep the script working as much as possible 🕊️

>We will use what we like.

Discord RPC to show the music you are currently listening to on your computer. Tracks and their covers are loaded from Yandex Music.

discord

There are similar RPCs that show the current track using the Yandex Music API. However, they cannot display information about what is playing from the radio (for example, My Wave).

Therefore, I created a script that uses Windows.Media.Control to get information about the current track, searches Yandex Music, and displays the track in Discord.

Advantages compared to other scripts: No Yandex Music token required ✅ Shows tracks from playlists, radio ✅ Not limited to using Yandex Music, you can listen to music even from VKontakte ✅ Works with both browsers and applications ✅ Shows pause status ✅ Shows how much time is left until the track ends ✅ Status "Listening" instead of "Playing a game" ✅

Requirements

Tested only on Windows 11 and Windows 10, it will not work on other versions and platforms. Work is not guaranteed on Lite and Custom trimmed versions of Windows.

If you do not use the exe file then:

How to download and use the Exe?

How to use main.py?

>To compile the script using Pyinstaller, run the following command: pyinstaller --noconfirm main.spec

------------ If you listen to music not only from Yandex Music, I recommend replacing the line strong_find = True with strong_find = False, or use the system tray. This will show better search results, but not always accurate.

Bugs

Bugs always exist, but first you need to find them 🫡 If you find a bug, do not hesitate to report it in Issues ------------ Please show your interest in this project so I can update it as much as possible.

>The code is not perfect, as Python is not my main language, and the script was written for personal use. However, it can serve as a basis for your own scripts.

>Uses Yandex Music API

--- Tranlated By Open Ai Tx | Last indexed: 2025-09-16 ---