sll552 / DiscordBee

MusicBee plugin that updates your Discord status with the currently playing track
Apache License 2.0
421 stars 31 forks source link

Presence somehow stopped working #119

Closed VojtaNesvadba closed 2 years ago

VojtaNesvadba commented 2 years ago

I don't know much about this tech-thing, but until today it worked well, authomatically uploaded covers to presence assets and everything, but now it like just from nothing stopped. I am using the latest version (v2.1.0). Basically, it shows all the info, even the custom name I set on Discord Application, but it just doesn't update covers. It doesn't even show MusicBee logo on presence (which I experienced dissapeared from Presence assets, maybe I once missclicked when manually uploading covers, but it should upload back again by the plugin, or not? I also replaced it with the logo from source for the plugin, so this is not a problem).

UPDATE: I tried to unistall and set up new application for it. All I see is that is just stopped uploading assets to the Discord App.

Gimzie commented 2 years ago

I seem to have the same problem. Was there an API change or something as of late?

sll552 commented 2 years ago

Without having tested anything. It can happen that the token in the leveldb changes and might become unreadable. For almost all cases of "it stopped working" the best thing you can do is the logout -> delete leveldb -> login dance.

I will try to verify if there is anything else that changed (like API, limits, etc.) but I don't know when I will have time for that.

VojtaNesvadba commented 2 years ago

I see deleting leveldb didn't work for me. Judging by https://discordstatus.com/ there was no problem with developer portal. I may be wrong.

Gimzie commented 2 years ago

Yep, I tried deleting my leveldb multiple times as usual, but DiscordBee doesn't seem to be uploading new cover images. It doesn't seem like I'm able to get it to use existing images either.

sll552 commented 2 years ago

I was able to reproduce it myself. It seems that discord finally stopped writing the auth token to the leveldb (which was bad security wise anyway) that means that the plugin is no longer able to use your login to upload the covers. I actually don't know why existing covers should not work because it seems like listing the already uploaded covers still works.

Anyway this breaks the cover functionality and it will stay broken until #117 is done.

Rings4 commented 2 years ago

Strange, still working for me.

sll552 commented 2 years ago

maybe because there is still an old ldb file with a still working token. I also had an old file with a token in it but it expired and when I deleted the leveldb folder in the new files there was no token anymore.

mileinmortal commented 2 years ago

is there anyway to upload manually the covers?

anitsekS commented 2 years ago

any updates on when this will be fixed?

seulgiism commented 2 years ago

i would like to know too ;3 i've been lurking this for like 1 or 2 months and there is no update ;(

Elasder123 commented 2 years ago

I hope there will be other methods to add covers, maybe a manual option?

seanmiles commented 2 years ago

I hope there will be other methods to add covers, maybe a manual option?

There is currently a manual way to add album art functionality: https://github.com/sll552/DiscordBee/issues/100#issuecomment-1013757465

In my experience it only works if the artwork is linked to the song in MusicBee and the song is in the same folder as the Cover.png you are uploading (separate folders, like discs, will not work).

Discord_2022-05-03_09-56-58

Edit: I will add you still need to manually upload the pause, play, stop, and logo icons if those don't exist already (for first time setup, for example) in order for the album art functionality to start working. I pulled those icons from the repo and then used a custom image for the logo.

image

VelocityRa commented 2 years ago

@seanmiles Haven't been able to make it work. Does it still work for you?

In my experience it only works if the artwork is linked to the song in MusicBee and the song is in the same folder as the Cover.png you are uploading (separate folders, like discs, will not work).

Does embedded art work?

seanmiles commented 2 years ago

@VelocityRa Yes, it's still working for me. On MusicBee I have the art embedded and also linked to the Cover file, which is the file I upload to the Discord developer portal, with the name being the [converted MD5 hash](https://gchq.github.io/CyberChef/#recipe=To_Base64('A-Za-z0-9%2B/%3D')MD5()). Try embedding the art if it's not already and then linking it to the Cover file, which is the file you then upload on the portal.

image

Elasder123 commented 2 years ago

I hope there will be other methods to add covers, maybe a manual option?

There is currently a manual way to add album art functionality: #100 (comment)

In my experience it only works if the artwork is linked to the song in MusicBee and the song is in the same folder as the Cover.png you are uploading (separate folders, like discs, will not work).

Discord_2022-05-03_09-56-58

Edit: I will add you still need to manually upload the pause, play, stop, and logo icons if those don't exist already (for first time setup, for example) in order for the album art functionality to start working. I pulled those icons from the repo and then used a custom image for the logo.

image

t̶r̶i̶e̶d̶ ̶i̶t̶ ̶a̶n̶d̶ ̶m̶y̶ ̶a̶l̶b̶u̶m̶ ̶a̶r̶t̶ ̶i̶s̶ ̶s̶t̶i̶l̶l̶ ̶n̶o̶t̶ ̶s̶h̶o̶w̶i̶n̶g̶ ̶u̶p̶ ̶X̶D̶D̶ ̶o̶n̶l̶y̶ ̶t̶h̶e̶ ̶l̶o̶g̶o̶ ̶a̶n̶d̶ ̶t̶h̶e̶ ̶p̶l̶a̶y̶,̶ ̶p̶a̶u̶s̶e̶ ̶a̶n̶d̶ ̶s̶t̶o̶p̶ nvm it works had to restart the playlist I was playing XDDDDDDDDDDD THE ART FINALLY WORKS BY DOING IT MANUALLY YEHAAAA

grunge666 commented 2 years ago

I hope there will be other methods to add covers, maybe a manual option?

There is currently a manual way to add album art functionality: #100 (comment)

In my experience it only works if the artwork is linked to the song in MusicBee and the song is in the same folder as the Cover.png you are uploading (separate folders, like discs, will not work).

Discord_2022-05-03_09-56-58

Edit: I will add you still need to manually upload the pause, play, stop, and logo icons if those don't exist already (for first time setup, for example) in order for the album art functionality to start working. I pulled those icons from the repo and then used a custom image for the logo.

image

Too much work, I'd rather wait for the "official" automated way.

Rings4 commented 2 years ago

maybe because there is still an old ldb file with a still working token. I also had an old file with a token in it but it expired and when I deleted the leveldb folder in the new files there was no token anymore.

When does this token expire? I'm curious because my artwork still shows normally. I've been meaning to change the app name in the developer portal but I'm worried that will cause the token to expire and thus my artwork will stop displaying, is that the case?

sll552 commented 2 years ago

When does this token expire? I'm curious because my artwork still shows normally. I've been meaning to change the app name in the developer portal but I'm worried that will cause the token to expire and thus my artwork will stop displaying, is that the case?

The token is your normal discord login token, so it should not be bound to anything related to the developer dashboard. But no guarantee on that.