Closed ricoshett closed 1 month ago
Added support for Yandex.Music, thanks for reporting!
for some reason it stopped working. again.
could you share your logs? they're located at %APPDATA%\Music Presence\presence.log
presence 2024-10-17T19:15:22.984Z INFO No media players detected presence 2024-10-17T19:15:40.907Z INFO Discord: Presence updated: Клятва by Арктида on Мой Друг via ru.yandex.desktop.music (ru.yandex.desktop.music) [0:08/4:56 playing] [cover:image/proxy] presence 2024-10-17T19:16:42.602Z INFO Proxy: disconnecting after idle duration=60000 cid=THzjcHnPFcgJawfloT4Xjw presence 2024-10-17T19:16:48.280Z ERROR Failed to wait for proxy client: the client is not connected presence 2024-10-17T19:16:48.287Z ERROR Using cover image from player failed: the client is not connected presence 2024-10-17T19:16:48.287Z INFO Discord: Presence updated: Клятва by Арктида on Мой Друг via ru.yandex.desktop.music (ru.yandex.desktop.music) [1:15/4:56 playing] [cover:image] presence 2024-10-17T19:16:54.254Z INFO Proxy: ready base_url=https://proxy.musicpresence.io/v0 cid=JEJ3uMS3n76gzln4ue5-kA presence 2024-10-17T19:16:56.270Z INFO Discord: Presence updated: Клятва by Арктида on Мой Друг via ru.yandex.desktop.music (ru.yandex.desktop.music) [1:23/4:56 playing] [cover:image/proxy]
thanks, which song is not detected and at what time? note that the timestamps in the logs are in UTC. speaking by the part of the logs you sent it looks like the song is displayed in your status
all songs are detected, but discord doesn't display any of them in the status I tried to play the same songs in soundcloud and it worked just fine... but they don't in yandex music
I'm not really sure why one would be showing and not the other, especially if the logs say that the Discord status has been set. Could you share more of your logs where you switch between Soundcloud and Yandex.Music? What setting do you have for "Show the name of the player instead of Music" in the Appearance settings? Can you try unchecking it (if it isn't already) and see if switching between the two works then?
sure
presence 2024-10-17T19:36:50.880Z INFO Discord: Presence updated: Тени в театре by Кукрыниксы on Фаворит Солнца via ru.yandex.desktop.music (ru.yandex.desktop.music) [0:08/3:44 playing] [cover:none]
presence 2024-10-17T19:36:51.897Z INFO Discord: Presence updated: Тени в театре by Кукрыниксы on Фаворит Солнца via ru.yandex.desktop.music (ru.yandex.desktop.music) [0:09/3:44 playing] [cover:image/proxy]
presence 2024-10-17T19:37:27.372Z INFO Media player detected: SoundcloudLtd.SoundCloudforWindowsBeta_2xc63xn306dnw!App (SoundcloudLtd.SoundCloudforWindowsBeta_2xc63xn306dnw!App) on win_winrt
presence 2024-10-17T19:37:29.833Z ERROR Completing media metadata failed: MusicBrainz API error: No tracks found for media: Настал твой черёд by Арктида
presence 2024-10-17T19:37:29.834Z INFO Discord: Presence updated: Eminem - Superman (sped up/bass boosted) by rvv3n via SoundcloudLtd.SoundCloudforWindowsBeta_2xc63xn306dnw!App (SoundcloudLtd.SoundCloudforWindowsBeta_2xc63xn306dnw!App) [0:02/4:25 playing] [cover:none]
presence 2024-10-17T19:37:32.190Z ERROR Completing media metadata failed: MusicBrainz API error: No tracks found for media: Настал твой черёд by Арктида
presence 2024-10-17T19:37:32.198Z INFO Discord: Presence updated: Eminem - Superman (sped up/bass boosted) by rvv3n via SoundcloudLtd.SoundCloudforWindowsBeta_2xc63xn306dnw!App (SoundcloudLtd.SoundCloudforWindowsBeta_2xc63xn306dnw!App) [0:04/4:25 playing] [cover:image/proxy]
presence 2024-10-17T19:37:47.375Z ERROR Completing media metadata failed: MusicBrainz API error: No tracks found for media: Настал твой черёд by Арктида
presence 2024-10-17T19:37:47.376Z INFO Discord: Presence updated: Eminem - Superman (sped up/bass boosted) by rvv3n via SoundcloudLtd.SoundCloudforWindowsBeta_2xc63xn306dnw!App (SoundcloudLtd.SoundCloudforWindowsBeta_2xc63xn306dnw!App) [0:20/4:25 playing] [cover:image/proxy]
presence 2024-10-17T19:37:49.579Z INFO Discord: Connected
presence 2024-10-17T19:37:52.003Z ERROR Completing media metadata failed: MusicBrainz API error: No tracks found for media: Настал твой черёд by Арктида
presence 2024-10-17T19:37:52.003Z INFO Discord: Presence updated: Eminem - Superman (sped up/bass boosted) by rvv3n via SoundcloudLtd.SoundCloudforWindowsBeta_2xc63xn306dnw!App (SoundcloudLtd.SoundCloudforWindowsBeta_2xc63xn306dnw!App) [0:24/4:25 playing] [cover:image/proxy]
presence 2024-10-17T19:37:53.443Z INFO Proxy: served request rid=1 size=16941 path=66c622b7 cid=g3wve4GOeo5UdUsPnmRvsw
I've tried checking/unchecking settings you said, but it didn't help
can you try playing the exact same song? e.g. "Eminem - Superman" with Yandex.Music. it might be that the cyrilic/unicode letters cause issues
nope, didn't help
I'll try it myself once I get around to it!
Yandex.Music works just fine for me except that it doesn't report a cover image sometimes, but that doesn't stop it from appearing in my status. I'm only able to test it with local files though, not with their streaming service.
Since the logs you've shown indicate that the media is reported to Discord just like Soundcloud is, I would guess that it's not an issue with Music Presence but possibly with Discord. When that log line is written ("Discord: Presence updated") the Discord_UpdatePresence
function has been called and the data was transmitted to Discord.
I suggest you try the following things:
so the problem was indeed in "Show the name of the player instead of Music". For some reason it didn't change anything for the first time, but after waiting for a bit longer it actually worked... Closing the issue now
Yeah that can definitely be! Whenever a different name is shown ("Listening to Yandex.Music", "Listening to Soundcloud", etc.) it has to reconnect to Discord under the hood and that can take some time. Usually it should just takes a few seconds though for the change to appear in your Discord client.
Players I am using, that aren't supported yet: