getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: derTyp on February 03, 2018, 09:08:27 PM

Title: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on February 03, 2018, 09:08:27 PM
Hi,

I wrote a small plugin that uses the Discord Rich Presence API to display information about the currently playing song in MusicBee.
It is similar to the Spotify integration in Discord.

(https://i.imgur.com/DUuVlsg.png)

I used the MusicBee Logo from the website repo, I hope this is OK.

Edit: I have pushed a new version (1.0.1) that takes the discord API rate limiting into account when updating the status.

Download (https://github.com/sll552/DiscordBee/releases)
Addon Page (https://getmusicbee.com/addons/plugins/156/discordbee/)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Steven on February 03, 2018, 09:12:34 PM
free free to submit it to the add-ons page
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on February 03, 2018, 09:14:12 PM
Sorry, forgot to add the link  ;)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Diehorner on February 04, 2018, 06:39:05 AM
Hi,

I wrote a small plugin that uses the Discord Rich Presence API to display information about the currently playing song in MusicBee.
It is similar to the Spotify integration in Discord.

(https://i.imgur.com/DUuVlsg.png)

...

Works great, thanks Stefan ;)!
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: tyler on February 06, 2018, 04:21:36 AM
Great plugin! I really like this since I do not use Spotify.

Is it possible to use the album art of whatever I'm listening to instead of the MusicBee icon? I'm assuming no, but if it is possible I think that'd be really cool.


Thanks for a great plugin!
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on February 08, 2018, 01:46:38 PM
Unfortunately this is currently not possible, because discord allows only preuploaded images to be displayed in the profile.

But I am working on a Fix for the Unicode bug, so a new version will come soon  :) .

Edit: Unicode fix is live in v1.0.2
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Phosphorus on February 14, 2018, 12:06:40 AM
Awesome dude, thanks  ;D
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Nokiaman on February 15, 2018, 10:15:39 AM
This reminds me of Windows Messenger having such functionality for WMP. Cool idea! :D
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Winsord on February 19, 2018, 03:19:13 AM
This is awesome, thank you! :)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Stephanizzle on March 17, 2018, 12:38:10 PM
(https://i.gyazo.com/cdea7501157b8416c07dc7aa7aee7e9a.png)
Hi there,
I have the newest version of Windows 10, with newest version of MusicBee App for Windows 10. For some reason I can't get the DiscordBee to work I keep getting this error code.  The codes posted on the plugins page is all inside my musicbee-plugin folder. How do I get the discordbee to work, it was working on the regular desktop version of MusicBee for windows I had earlier, but it wont work on the app for windows 10 :/
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on March 17, 2018, 02:21:04 PM
I tried to replicate this but for me it is loading.

What I did was:
  * Go to Musicbee Settings -> Plugins
  * Use the add Plugin button (top right)
  * Select the latest release zip of the plugin
  ** It displayed an error (something like "... Initialise method not found ...")
  * Restart Musicbee
  * Plugin should be loaded
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Stephanizzle on March 18, 2018, 06:34:06 AM
Oh my goodness, thank you so much, my problem was i moved the contents to the folder on my own. Now it works thanks again so much!!!!!! :-*
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: yin on March 23, 2018, 03:39:57 AM
I've been using this for a while and I love it, but when the artist + song name is too large, it cuts off like this:

(https://i.imgur.com/OJ7MduI.png)

Do you have any plans on making it scroll like Spotify does (if it's even possible?)

Thanks!
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: cptchi on March 23, 2018, 04:09:26 AM
I've been using this for a while and I love it, but when the artist + song name is too large, it cuts off like this:

(https://i.imgur.com/OJ7MduI.png)

Do you have any plans on making it scroll like Spotify does (if it's even possible?)

Thanks!

maybe the dev can change it so the song title is at the top and the artist is at the bottom
i use a different discord plugin (https://github.com/wiiblob/mb_DiscordRichPresence) and i think it looks much cleaner that way.

anyone knows if these plugins are able to pull cover art from last.fm or musicbrainz, instead of showing the musicbee icon?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on March 23, 2018, 09:09:42 AM
I've been using this for a while and I love it, but when the artist + song name is too large, it cuts off like this:

(https://i.imgur.com/OJ7MduI.png)

Do you have any plans on making it scroll like Spotify does (if it's even possible?)

Thanks!

I would like to implement this but currently this is a feature request at Discord (https://github.com/discordapp/discord-rpc/issues/146). It is not possible to do this in the plugin, so you have to wait for Discord...

Anyway the screenshot does not look like my plugin, are you sure this is the right thread? Because I am not cutting of song names, only album (see below)


maybe the dev can change it so the song title is at the top and the artist is at the bottom
i use a different discord plugin (https://github.com/wiiblob/mb_DiscordRichPresence) and i think it looks much cleaner that way.

anyone knows if these plugins are able to pull cover art from last.fm or musicbrainz, instead of showing the musicbee icon?

The Plugin you mentioned is not displaying the album in the presence text fields (it is using the image text for this). I tried to display as much data as possible in the given fields and decided that the album is the least significant one, that is why it is in the position that currently gets cut off.

For pulling images, there is an issue (https://github.com/sll552/DiscordBee/issues/3) for this, unfortunately this also requires changes from Discord.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: yin on March 27, 2018, 02:50:37 PM
I've been using this for a while and I love it, but when the artist + song name is too large, it cuts off like this:

(https://i.imgur.com/OJ7MduI.png)

Do you have any plans on making it scroll like Spotify does (if it's even possible?)

Thanks!

I would like to implement this but currently this is a feature request at Discord (https://github.com/discordapp/discord-rpc/issues/146). It is not possible to do this in the plugin, so you have to wait for Discord...

Anyway the screenshot does not look like my plugin, are you sure this is the right thread? Because I am not cutting of song names, only album (see below)


maybe the dev can change it so the song title is at the top and the artist is at the bottom
i use a different discord plugin (https://github.com/wiiblob/mb_DiscordRichPresence) and i think it looks much cleaner that way.

anyone knows if these plugins are able to pull cover art from last.fm or musicbrainz, instead of showing the musicbee icon?

The Plugin you mentioned is not displaying the album in the presence text fields (it is using the image text for this). I tried to display as much data as possible in the given fields and decided that the album is the least significant one, that is why it is in the position that currently gets cut off.

For pulling images, there is an issue (https://github.com/sll552/DiscordBee/issues/3) for this, unfortunately this also requires changes from Discord.

Oof, sorry about this, I was sure this was the same plugin because the version was the same. I had no idea there were 3 different plugins for it!

I'll be getting yours now, thanks for the help!
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: shinydark on March 28, 2018, 10:43:36 PM
Thank you very much, works like a charm!
But can we get an option to change the layout?
I for example would like to show only the title of the song in the first line and only the album in the second line.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on March 29, 2018, 01:31:09 PM
Thanks for the suggestion, I thought about doing this a while ago. I created an issue to track the progress https://github.com/sll552/DiscordBee/issues/5
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: WarReady on April 11, 2018, 10:11:58 AM
Thank you :)   :o  :D  ::)  :-*  Hope this gets perfected soon. going to try it out now. Tried it and it's awesome. I prefer the "BadAss" Icons from jmoss90 though. 
Too bad we cant just copy how Spotify displays its music to the discord status... that would be great.... I mean we should be allowed and let discord pick all the necessary information from musicbee ...

maybe if we an get Discord to treat musicbee as if it were spotify and not just a game? you know? Make Musicbee look like spotify somehow? I dunno. Just an Idea. It's not like I know how complex that would be? But I can imagine you'd have to identify which files interact with discord and then seeing what do with them to bridge them to musicbee?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on April 11, 2018, 01:04:11 PM
maybe if we an get Discord to treat musicbee as if it were spotify and not just a game? you know? Make Musicbee look like spotify somehow? I dunno. Just an Idea. It's not like I know how complex that would be? But I can imagine you'd have to identify which files interact with discord and then seeing what do with them to bridge them to musicbee?

The problem is that the spotify integration in Discord is completely different than every other integration they have. It is also entirely based on web services (its basically spotifies servers talking to discord) so there is no way to make discord think you are running spotify if you aren't. Even the album covers are hosted on spotifies CDN and not on discord servers.
I guess spotify payed a not so small amount to get integrated into discord and that might also be the cause for discord being so reserved about requested changes to make their official API more like the spotify integration.
But I can assure you that I try to be as close as possible to the spotify integration but I have to use the public APIs.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Perfume of a Nerd's Burning Flesh on April 24, 2018, 06:30:23 AM
Just wanted to drop by to say thanks for this plugin. Very much appreciated.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: ArachneNet on May 03, 2018, 01:26:46 AM
Hey, gotta say, I'm loving this plugin! It's great. I gathered from earlier posts in this thread that it's not possible to display the album-art of the currently playing song due to the way Discord handles this plugin. Yet I was wondering, sice I'm a big fan of modding the look and feel, if there is some way to edit the icon itself. I'm using the "BadassBee" Icons and I'd love to see a feature that would allow me to replace the original icon with the modefied one. Would this be possible? I'd love to know! Cheers!
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on May 08, 2018, 03:24:45 PM
Sorry for the delay, somehow I didn't get a notification email....

Unfortunately it is not possible to add such a feature because of the way discord designed the underlying API that I use.

The pictures basically work this way:
   1) I upload a picture using my developer account through a web interface at discord (this is strictly non public access as it holds secrets, bot keys, etc.) and enter a descriptor (e.g. "logo"). And there is also a limit of 150 pictures per account.
   2) Then I can set a field in the request that is sent to discord for updating the status for your discord profile that corresponds to said descriptor.
   3) Discords servers parse the field in the request and look for the preuploaded picture with the corresponding descriptor, if such a picture is found it will get displayed in your client.

Unfortunately there is no way to allow the end users (every instance of the plugin) to upload pictures. I could however upload a "dark version" (e.g. badassbee) of the picture and let the user choose between those.
But don't expect this to happen soon as I want to finish the custom layout first. Also using pictures from someone might also have copyright implications (that's why I am using the official logo from the homepage repo).
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on May 13, 2018, 04:37:31 PM
Just to let you know, I just finished the custom Layout stuff.

If somebody likes to test it you can install this pull request build (https://ci.appveyor.com/api/buildjobs/5h6hd2vbycxg7h2q/artifacts/DiscordBee-Release-layout_settings-24.zip) and play with it.

If everything goes well I will release a new version sometime next week.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: ArachneNet on May 14, 2018, 08:04:36 AM
Hi derTyp,

Downloaded the plugin and looking into it soon. Thank you for the clarification by the way :) explains a lot.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on May 18, 2018, 07:34:37 PM
v1.1.0 supporting custom layouts is released https://github.com/sll552/DiscordBee/releases (https://github.com/sll552/DiscordBee/releases)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on August 10, 2018, 04:55:02 PM
v1.1.1 which fixes a crash of the Windows Store version of MusicBee is released https://github.com/sll552/DiscordBee/releases/tag/v1.1.1
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: allavaz on August 19, 2018, 05:27:27 PM
Can we get an option to only show on Discord if it's actually playing music, like Spotify? For example if we pause it won't show anymore. Just a particular small feature I'm interested in.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on August 23, 2018, 01:36:47 PM
I guess that should be possible. I will consider adding this in the next release, but I wont do a release just for that so it can take a while until I get to implement it.
Github Issue: https://github.com/sll552/DiscordBee/issues/12
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Aealo on September 07, 2018, 07:18:44 AM
Hello, for some reason this plugin stopped working for me and just writes that I am playing MusciBee
(https://i.imgur.com/o2zMx17.png)
(https://i.imgur.com/QnSs1h8.png)

EDIT: looks like reinstalling discord fixed problem
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: wariostarx on September 08, 2018, 12:24:20 PM
So I found out that your plugin doesn't like songs with 1 character as song name, it won't display it. When I change the name to 2 character it does display the song, but when I change it back to 1 it keeps the previous name. When I play a different song first and then a song with 1 character as name, it will keep the information of the last song and keep counting from where I stopped that song instead of beginning again at 0:00. However certain songs with non-latin names that are 1 character do show up.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on September 08, 2018, 04:45:09 PM
Fixed in https://github.com/sll552/DiscordBee/issues/14

The bugfix will be released in the next version, if you want to try it out now use the artifacts from https://ci.appveyor.com/project/sll552/discordbee/build/artifacts
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on September 08, 2018, 08:09:17 PM
New release with bugfixes and requested features : https://github.com/sll552/DiscordBee/releases/tag/v1.2.0
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: SoberSteven on September 19, 2018, 10:17:31 PM
I understand we can reconfigure the layout but I am wondering if there is a way to replace the track# field with the Year. Since there are two fields between the parentheses, I cannot get it to work. The best I could get is "(x year) of (x track count)" which is no good. When I input the Year and a field which I know none of my songs have information on ("Mood" for example), this erases the track field completely so I am only left with song name, artist and album. Is there something I can do to only have the Year in the brackets?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on September 20, 2018, 05:15:06 AM
This is most likely a Discord limitation as the fields used for the track number are intended for displaying a "party size" so this is normally set to 5 out of 10 players or something like that (more on this https://discordapp.com/developers/docs/rich-presence/how-to#updating-presence).

I believe that discord simply ignores those fields if only one of them is set. So unfortunately I don't think that there is a way to workaround this. What should be possible is that you use the text field in the same row and just add the year at the end of the string.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: JhowCEC on September 21, 2018, 02:33:31 AM
I make the account here only to THANK YOU! Nice job guy.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: JhowCEC on September 21, 2018, 03:47:55 AM
This plugin have an option to show the album cover of each track? It will be good!  :)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on September 26, 2018, 07:51:47 PM
https://github.com/sll552/DiscordBee/issues/3
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: DownwidnRat98 on October 31, 2018, 07:20:10 AM
Hi all, I'm having trouble with the plugin.

I installed everything correctly but the only thing that shows up when people click my name on the discord tab is
"Playing a game: MusicBee: # Minutes"
I've reinstalled everything repeatedly to see if its something with the apps or I added the plugin wrong, but everytime I do it repeats the same issue again.

I've added an image example if anyone's willing to help me out.

https://imgur.com/kTUyM0J
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on October 31, 2018, 08:54:54 PM
This looks like the plugin is not loaded in MusicBee.
Please make sure you installed it correctly and it is listed (and not disabled) in the MusicBee Settings. Remember that the plugin doesn't work with the web client of Discord

If you think everything is correct please add a little more Information about your setup (e.g. MusicBee version, if its the windows store version, Plugin version)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Ping on November 10, 2018, 01:43:53 AM
Hi, is anyone else getting a problem where Discord can't see Musicbee? I was trying to get this plugin to work and only just noticed it.

I'm using the latest version of Windows 10 1809. Latest version of Discord and Musicbee (store version).
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on November 10, 2018, 08:33:01 PM
This is most likely because the windows store apps in general are not picked up by discord.

However this should not be an issue, the plugin should work even when MusicBee is not registered as a game in Discord.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: chainedupalice on November 10, 2018, 10:25:19 PM
Just made an account to comment on this, I love it. I only use Spotify for discovering music so that's a bit rare, and I needed something to show my music status for Musicbee, my primary app for listening to music. This is great.

One tiny suggestion, can there be another line that could show Album name like it shows on for spotify?

(https://i.imgur.com/dzoW8bU.png)

again, great job
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on November 11, 2018, 04:56:21 PM
Unfortunately I am bound to the fields that Discord offers. It is not possible to add fields or change their data types (e.g. number vs. string). This is documented here: https://discordapp.com/developers/docs/rich-presence/how-to#updating-presence-update-presence-payload-fields
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: ahmedhara on November 18, 2018, 11:12:50 PM
How can I replace the MusicBee picture with the album art. The Artwork variable that's suppose to do that is nothing but the path to the artwork, it doesn't actually display the image in discord. Is there a way to display the album art or no?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on November 21, 2018, 08:49:13 PM
if you would have read at least the last 8 posts of this thread you would have found the answer...

The variables are populated by musicbee, they are essentially the ID3 tags. For album art see https://github.com/sll552/DiscordBee/issues/3 (in short: no its not possible)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: blurr on February 15, 2019, 06:56:53 PM
Hi there,
I am having a weird issue where, whenever I start up MusicBee, the DiscordBee plugin appears to be disabled by default, despite my best attempts to have it enabled in my preferences. Also, after having enabled the plugin manually, I have to remove and add MusicBee from the games list in Discord for it to work again - Having to do this every time is kind of a bother.
Wonder if anyone has any ideas of how to fix this. I have tried reinstalling the plugin.

(https://i.gyazo.com/c4bfffda8b6aaade3f15f398a386335b.png)
(https://i.gyazo.com/6dd5be52e2338608b6b8b09a2e6c7625.png)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: boroda on February 16, 2019, 09:11:31 AM
I see 2 disords plugins with the same name on 1st screenshot. this may the problem. try to delete 1 of plugins from mb\plugins folder.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: blurr on February 16, 2019, 12:37:35 PM
I see 2 disords plugins with the same name on 1st screenshot. this may the problem. try to delete 1 of plugins from mb\plugins folder.
While I agree that there being two instances of the plugin in the MusicBee preferences is odd, the second screenshot shows all files related to the DiscordBee plugin, all of which come directly from the "DiscordBee-Release-1.2.1.zip" file from the download page on GitHub, so I don't think I have any unnecessary/duplicate files.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: phred on February 16, 2019, 01:37:58 PM
Your second screenshot also shows two "mb_DiscordBee.dll" files. The ZIP I just downloaded from the first post in this thread only has one. I suggest you delete -all- of the discordbee files and start over. Make sure click 'uninstall' in the Plugins preferences first and then delete the files.

It also looks like the smaller of those two dlls is the config file, but the filename is different from what's in the ZIP. Hence the reason for suggestion you delete everything related to this plugin and start fresh.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: blurr on February 16, 2019, 04:06:12 PM
Your second screenshot also shows two "mb_DiscordBee.dll" files. The ZIP I just downloaded from the first post in this thread only has one. I suggest you delete -all- of the discordbee files and start over. Make sure click 'uninstall' in the Plugins preferences first and then delete the files.

It also looks like the smaller of those two dlls is the config file, but the filename is different from what's in the ZIP. Hence the reason for suggestion you delete everything related to this plugin and start fresh.

The issue seems to be solved now that I actually uninstalled the plugin in the MusicBee plugin preferences, before simply deleting the files (whereafter the files were reinstalled). I also renamed the config file, which may or may not have had an effect. Thanks.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: MashaScream on March 09, 2019, 11:31:56 PM
I know this has been asked before, however, regarding the icon: is the limitation due to MusicBee's way of handling the plugin?

I know that there's a similar plugin for foobar2000 which makes it so you can pick a custom icon to show in the discord app. Thanks.

On the side note this is a great one since the previous plugins I searched didn't work.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: diljitdosanjh on March 18, 2019, 02:32:27 AM
Worked like a charm as expected, cheers!
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on March 30, 2019, 05:17:19 PM
I know this has been asked before, however, regarding the icon: is the limitation due to MusicBee's way of handling the plugin?

I know that there's a similar plugin for foobar2000 which makes it so you can pick a custom icon to show in the discord app. Thanks.

This is a Discord limitation.
Could you give me a link to the mentioned plugin, maybe the author found a way around this?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Dodonj on July 23, 2019, 12:10:54 PM
Hi, the plugin is loaded in musicbee and seems to be running but it isn't detected by discord. What should I do?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on July 28, 2019, 07:36:06 PM
Make sure you followed the install instructions, especially the part with adding musicbee as game in discord.

Also just to be sure, check whether you can open the settings of the plugin. If not then the plugin is not properly loaded or installed (make sure to copy the discord-rpc dll and the plugin).
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: McCovican on August 18, 2019, 10:42:50 PM
Hi, I don't suppose it would be possible for this plugin to use the "Listening To" prefix (like Spotify does - example below) instead of the game-centric "Playing" - or is that limited to Spotify itself? Cheers.

(https://x.brutix.uk/d35589.png) (https://x.brutix.uk/23e232.png) (https://x.brutix.uk/c3db50.png)

PS: Other small request: would it be possible to have an option to remove the "track <x> of <x>" section altogether, and to add line-breaks manually (I'd like to have artist, track, and album on separate lines)? No bother if you can't get any of these, just me being picky. Overall, I really love this plugin and appreciate the effort you've put into it. :)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on September 03, 2019, 08:52:12 PM
There is an issue that tracks the request for the spotify like integration (https://github.com/sll552/DiscordBee/issues/3), in short: this will most likely never be possible.

Line breaks are not possible as discord always correctly escapes them, this is kind of a security measure by them.

For disabling the track count, this is already possible. After looking at it this might actually be kind of a bug or at least an unexpected behavior.
The problem is that you cannot set one of the string fields in the settings to an empty string (e.g. the track field) if you do that it will be silently ignored (this behavior could be changed). You can however workaround this by setting the 2 track count fields to " " (space character) as this will be stripped and the track numbers won't be displayed in discord.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Dibony on March 27, 2020, 11:08:14 AM
hey,

some people still seem to struggle to implement it although the code works perfectly.

if you have the the windows app version try this.

1. Unzip the file.
2. Put it into your Musicbee Folder C:\Users\uncha\Music\MusicBee
3. edit preferences
4. add plugin
5. select mb_DiscordBee.dll
6. apply, save

That's all. Make sure you enabled discord to read it as a game and then it all works.

Thanks for the plugin.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: MashaScream on April 20, 2020, 01:24:01 AM
I know this has been asked before, however, regarding the icon: is the limitation due to MusicBee's way of handling the plugin?

I know that there's a similar plugin for foobar2000 which makes it so you can pick a custom icon to show in the discord app. Thanks.

This is a Discord limitation.
Could you give me a link to the mentioned plugin, maybe the author found a way around this?

I feel terrible for replying only a year later, however, here it is in case you're still updating the plugin. It still works like a charm to this day.

https://www.foobar2000.org/components/view/foo_discord_rich
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Mattheww on May 15, 2020, 08:59:51 PM
This app stopped working for me after a discord update. Is anyone else having this issue?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: johnmillsjr on May 16, 2020, 01:02:49 AM
This app stopped working for me after a discord update. Is anyone else having this issue?

Mine's still going.

Is the plugin still enabled in your settings?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: badomen24 on May 19, 2020, 10:47:40 PM
This app stopped working for me after a discord update. Is anyone else having this issue?

This happened to me as well. I had to remove MusicBee as a game in Discord and then re-add it, restarted Discord and MusicBee and it seems to be working again.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: joameba on June 01, 2020, 09:04:45 PM
This app stopped working for me after a discord update. Is anyone else having this issue?

I have this problem too! did what badomen24 do but without success

https://imgur.com/a/POdVBxT

I have the latest version of everything, any ideas?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Turk on June 08, 2020, 07:12:22 PM
Has Discord been updated or something? I've spent FAR too long trying to find this elusive "Add Game" option in the settings of discord clicking every option at least 20 times and "for the life of me" I can NOT find "add game" anywhere, I can add steam, twitter or whatever only because there is an option for it.

I've clicked my profile in chat, the cog in the bottom left next to the mic/headphones icons next to my name - basically just where the f is this option?

Its driving me flippin mental.  :-[

Plug in is installed fine, it opens etc.

p.s. screenshot would begreatly appreciated of where exactly in discord this add game option is.

TIA


it's not done by adding musicbee to steam as a game is it? nah there's no mention of that in the instructions....  :-X
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: joey181101 on June 22, 2020, 01:46:26 AM
randomly stopped working no reason whatsoever.
uninstalled the plugin and cant reinstall just comes up with this meaningless error.

https://cdn.discordapp.com/attachments/678484684237176854/724424678772310031/unknown.png
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: phred on June 22, 2020, 03:21:54 AM
randomly stopped working no reason whatsoever.
uninstalled the plugin and cant reinstall just comes up with this meaningless error.

https://cdn.discordapp.com/attachments/678484684237176854/724424678772310031/unknown.png
Your screenshot shows that the plugin hasn't been enabled.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: joey181101 on June 22, 2020, 05:49:08 AM
randomly stopped working no reason whatsoever.
uninstalled the plugin and cant reinstall just comes up with this meaningless error.

https://cdn.discordapp.com/attachments/678484684237176854/724424678772310031/unknown.png
Your screenshot show that the plugin hasn't been enabled.

Are you trying to wind me up?

I clicked Enable and that is the error that came up, it is infact NOT enabled. It would be highlighted in gray not blue. The blue indicates that I just clicked it.

https://cdn.discordapp.com/attachments/678484684237176854/724485923705978890/unknown.png

I can't even uninstall it now, it just stays there. Nice coding :P
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: phred on June 22, 2020, 11:44:36 AM
Are you trying to wind me up?
No, not at all. I asked because it wasn't clear to me what steps you had taken. And enabling a plugin is sometimes overlooked.

Quote
I can't even uninstall it now, it just stays there. Nice coding :P
Close MB and go to your plug-ins folder and delete the dll. Then restart MB and the plugin should no longer appear.

You should also look at the Error Log (Help > Support > View Error Log) and see if there's anything there relating to the plugin. If so, copy and paste it here.

It might also be helpful to know what version number of MB you're using along with the installation type.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: pheerie on July 18, 2020, 04:57:14 AM
I found this thread after installing DiscordBee and only seeing "Now Playing MusicBee". The fix is to make sure both apps are launched in Administrator mode. Most people will already be launching Discord in Admin mode as some features are crippled without it. Do the same for MusicBee and it is fixed:

(https://i.ibb.co/dcm2Rhh/Capture.png)

(https://i.ibb.co/KD2Q01D/Capture.png)
Title: DiscordBee
Post by: Based_phoenix on July 22, 2020, 03:06:11 PM
Show album covers in DiscordBee

probably requested before.
is there any way this could be implemented ?
Title: please help this is unreal
Post by: joey181101 on July 23, 2020, 02:51:49 AM
any fix for this yet?

(https://cdn.discordapp.com/attachments/678484684237176854/735675382870704198/unknown.png)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: phred on July 23, 2020, 03:20:43 AM
The author of this plugin hasn't been on the forum since mid-January. The project may be abandoned.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on August 02, 2020, 03:06:06 PM
The author of this plugin hasn't been on the forum since mid-January. The project may be abandoned.

Fortunately I can correct you here ;). I haven't been active here because somehow the email notifications for new messages stopped working for me. Sorry for that.

I am in fact still maintaining this plugin but due to the aforementioned issue I was only active on Github and have only seen the issues that have been created there.


any fix for this yet?

(https://cdn.discordapp.com/attachments/678484684237176854/735675382870704198/unknown.png)

I suspect this is caused by some incompatibilities with another plugin, but this is just a guess. Can you please take a look at the error log that has been mentioned before. Also try to disable or delete all other plugins in the plugin folder and see if DiscordBee gets loaded in this case.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: phred on August 04, 2020, 03:09:00 AM
The author of this plugin hasn't been on the forum since mid-January. The project may be abandoned.

Fortunately I can correct you here ;). I haven't been active here because somehow the email notifications for new messages stopped working for me. Sorry for that.
Glad to see that you're still around and supporting the plugin.

For the record, there are issues with email notifications over the past month or two. Mostly that it's taking a long time from when a monitored thread has a new post to when the email is sent. I've seen it take about 24 hours.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: joameba on August 05, 2020, 01:03:34 AM
I found this thread after installing DiscordBee and only seeing "Now Playing MusicBee". The fix is to make sure both apps are launched in Administrator mode. Most people will already be launching Discord in Admin mode as some features are crippled without it. Do the same for MusicBee and it is fixed:

thank you! after months with this problem, you were the only one giving a good solution :D
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: ruben1515 on August 13, 2020, 06:48:42 AM
I found this thread after installing DiscordBee and only seeing "Now Playing MusicBee". The fix is to make sure both apps are launched in Administrator mode. Most people will already be launching Discord in Admin mode as some features are crippled without it. Do the same for MusicBee and it is fixed:

thank you! after months with this problem, you were the only one giving a good solution :D
Doesn't fix the issue for me unfortunatelly :(
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: MegasXLR on September 14, 2020, 07:54:24 PM
Just wanted to drop by and say that this module is the reason I tried and stayed on MusicBee which I then liked very much so thanks :)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: lucytea on October 29, 2020, 07:16:24 AM
Would it be possible to toggle the MusicBee logo off completely? It doesn't feel very relevant to me, and removing it would leave more room for the other text to be wider.
I can see someone in a public server playing Spelunky 2, it has no icon but still seems to use rich presence (it says "spelunking"), so I'm guessing it's possible?


I saw you mention this about another plugin, but that repository is gone. This sounds like getting rid of the logo may free up another text line even? Sounds handy if so, but I realise this is a more complex level of customizability I'm talking about.

Quote
The Plugin you mentioned is not displaying the album in the presence text fields (it is using the image text for this).
EDIT: Found a copy of that repo (here (https://github.com/Harmon758/mb_DiscordRichPresence)), it doesn't seem to display very differently at all, based on the screenshot in the readme? Maybe I'm misunderstanding something but that idea sounds like a dud. Either way, no logo would still be lovely.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on October 30, 2020, 09:36:15 PM
Would it be possible to toggle the MusicBee logo off completely? It doesn't feel very relevant to me, and removing it would leave more room for the other text to be wider.
I can see someone in a public server playing Spelunky 2, it has no icon but still seems to use rich presence (it says "spelunking"), so I'm guessing it's possible?

I tried it in the simulator (this is some online presence emulator in the Discord Developer Portal) and if no image is selected it would display the Discord logo. I will try this with the real plugin again to be sure.

I saw you mention this about another plugin, but that repository is gone. This sounds like getting rid of the logo may free up another text line even? Sounds handy if so, but I realise this is a more complex level of customizability I'm talking about.
Quote
The Plugin you mentioned is not displaying the album in the presence text fields (it is using the image text for this).
EDIT: Found a copy of that repo (here (https://github.com/Harmon758/mb_DiscordRichPresence)), it doesn't seem to display very differently at all, based on the screenshot in the readme? Maybe I'm misunderstanding something but that idea sounds like a dud. Either way, no logo would still be lovely.

I am pretty sure that if it's possible to remove the image (which seems to be not the case) it would not add a text line. And as far as I remember this quote was in context of changing which fields are displayed and maybe cut off, which has been fixed by providing the layout settings. All text fields that are available can be set there, even the image alt text for the logo.

I would really like to offer more customization and a more music focused integration like the Spotify one but Discord is very restrictive on whats possible with the Rich Presence API. Since they moved their issue tracker  from Github to their own site it seems like they even care less about requested features (there are many more Developers that wanted to display custom images for example).
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: lucytea on October 31, 2020, 02:17:16 AM
I've found an open source (GPLv3) plugin for an unrelated program which implements rich presence with no icon. Maybe this would be a useful reference?
https://github.com/leMaik/chunky-discord

I guess there's no guarantee it can be toggled - this might require no logo uploaded at all, or something similar.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on October 31, 2020, 02:37:36 AM
thanks, i will take a look
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: ImFilippo on November 22, 2020, 02:50:00 PM
Hi, is there a way to change the musicbee icon in the discord status (i'm referring to this)
(https://i.imgur.com/DUuVlsg.png)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: jWaSiMhE on March 10, 2021, 09:13:57 PM
I'm getting the "Unable to initialise plugin - Exception has been thrown by the target of an invocation." error even on a clean install of Windows then Musicbee.

I've tried running both Discord and Musicbee as admin to no avail.

Is there a fix for this yet? I loved this feature until my SSD went and I had to reinstall a fresh Os on a new drive.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: lucytea on March 11, 2021, 01:38:02 AM
thanks, i will take a look
I was able to make this work by simply commenting out the contents of SetImage(name) and compiling. That would presumably be pretty easy to add a toggle to?
Discord's documentation (https://discord.com/developers/docs/rich-presence/how-to#rich-presence-field-requirements) does claim that all fields are optional.
(https://cdn.discordapp.com/attachments/622089187809820672/819383087648735242/unknown.png)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: avjeferson on March 14, 2021, 10:31:35 AM
Absolutely love your work. The only improvement i could suggest is the ability to change icon displayed on discord depending on the current song playing (Embedded into the song). And the default Music bee icon when its absent. Would love it if the album art had a tiny Music bee logo at the corner. Then again its absolutely amazing just as it is now too :)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on April 15, 2021, 09:11:47 PM
thanks, i will take a look
I was able to make this work by simply commenting out the contents of SetImage(name) and compiling. That would presumably be pretty easy to add a toggle to?
Discord's documentation (https://discord.com/developers/docs/rich-presence/how-to#rich-presence-field-requirements) does claim that all fields are optional.
(https://cdn.discordapp.com/attachments/622089187809820672/819383087648735242/unknown.png)

Sorry I totally forgot about this, it is now tracked by https://github.com/sll552/DiscordBee/issues/68 and will most likely be in the next release together with an updated MusicBee API to support more virtual tags.

Absolutely love your work. The only improvement i could suggest is the ability to change icon displayed on discord depending on the current song playing (Embedded into the song). And the default Music bee icon when its absent. Would love it if the album art had a tiny Music bee logo at the corner. Then again its absolutely amazing just as it is now too :)

Album art is still not possible unfortunately. This is because of restrictions by Discord and is not fixable by me. I know about some "workarounds" but those involve much work for the user and possibly violate Discord TOS. Maybe I can come up with a better solution some time in the future but currently its not possible.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: teddyweddy on May 07, 2021, 06:33:41 PM
I had some trouble getting this plugin to show up in discord, i tried the run as administrator trick and that makes it work! But whenever I'm running MusicBee as an administrator it's unable to access all of my music which is on a network share. None of my mounted drives seem to show up in Music Bees interface whenever its in administrator mode.

Found a fix for this in case anyone has a similar issue.

Open the registry editor (regedit.exe);
Go to the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System;
Create a new parameter (DWORD type) with the name EnableLinkedConnections and the value 1
Restart and you should be able to use network drives in elevated privileges.

Found here (http://woshub.com/how-to-access-mapped-network-drives-from-the-elevated-apps/) but it's better to post it here too in case that website stops existing.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: reynardlee on June 20, 2021, 07:17:25 AM

any fix for this yet?

(https://cdn.discordapp.com/attachments/678484684237176854/735675382870704198/unknown.png)


I suspect this is caused by some incompatibilities with another plugin, but this is just a guess. Can you please take a look at the error log that has been mentioned before. Also try to disable or delete all other plugins in the plugin folder and see if DiscordBee gets loaded in this case.



I suspect this is caused by some incompatibilities with another plugin, but this is just a guess. Can you please take a look at the error log that has been mentioned before. Also try to disable or delete all other plugins in the plugin folder and see if DiscordBee gets loaded in this case.

Hi! I just downloaded MB today and tried to install DiscordBee, and came upon the same error. My discord is ran in admin mode, so I tried running MB in admin as well, still didn't work out. I didn't download any other plugins, but there are some that came with the MB download. The steps I did was, unzip and copy into C:\Program Files (x86)\MusicBee\Plugins, and try to enable it in MB. (MB version 3.4.7805)

(https://cdn.discordapp.com/attachments/743037275608449034/856054333660463104/unknown.png)

Here is the error log:
Code
6/20/2021 2:03:35 PM - 10.0.19042.0 - 3.4.7805.33439D - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
   at DiscordRPC.DiscordRpcClient..ctor(String applicationID, Int32 pipe, ILogger logger, Boolean autoEvents, INamedPipeClient client)
   at MusicBeePlugin.Plugin.Initialise(IntPtr apiInterfacePtr)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at #=zlFwaJ1S_oYR_8J8laA==..ctor(#=zVzsNxnIpA1tczBaJkA== #=zMbi_FLA=)

Thank you in advance!
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on June 23, 2021, 08:27:03 PM
Could you post a screenshot of your plugins directory?
Title: DiscordBee wont uninstall/wont work
Post by: ickyvickyspit on June 24, 2021, 01:51:46 AM
For months now, I've been having trouble with uninstalling the DiscordBee plugin. Before having the issue, I uninstalled it since the plugin stopped working so I thought a reinstall would fix my issue. Ever since, it just wouldn't leave the Plugin menu. It only shows as "disabled" even after spamming the uninstall button/removing the plugin files. (https://imgur.com/Ge7kODd). When I click enable, i get this pop-up (https://imgur.com/C5IdxwD). I've uninstalled and reinstalled Musicbee, no change. Is there any way to fix this?
Title: Re: DiscordBee wont uninstall/wont work
Post by: sveakul on June 24, 2021, 02:00:57 AM
I'm not sure I completely understand the steps you've taken ("spamming the uninstall button" means what??) but first do a simple Windows File Explorer search for "mb_DiscordBee.dll" to see if the file remains in some other folder.  If so, delete it and restart MB.  If it remains on the plugins list, try re-installing the plugin manually, then hitting the uninstall button again.  If it's still on the list, and the plugin file is truly gone, there are other ways to remove the entry itself but first let's see what happens after the steps above.
Title: Re: DiscordBee wont uninstall/wont work
Post by: ickyvickyspit on June 24, 2021, 02:18:37 AM
I'm not sure I completely understand the steps you've taken ("spamming the uninstall button" means what??) but first do a simple Windows File Explorer search for "mb_DiscordBee.dll" to see if the file remains in some other folder.  If so, delete it and restart MB.  If it remains on the plugins list, try re-installing the plugin manually, then hitting the uninstall button again.  If it's still on the list, and the plugin file is truly gone, there are other ways to remove the entry itself but first let's see what happens after the steps above.

Ive searched for the file on all my hard drives and found nothing. Ive also done as you said but nothing changed. It's still on the plugin menu, and it wont enable. (also, spamming the uninstall button means what it means, i pressed it repeatedly to see if it will remove the plugin from the menu, but it didnt)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: sveakul on June 24, 2021, 03:35:48 AM
You can try manually removing the entry for the plugin in the MusicBee3Settings.ini file.  BACK UP THE FILE FIRST.

Open the ini in Notepad and find the section that starts with <SystemPlugin>.  Look down the list and find the entry that mentions mb_DiscordBee.dll--it will have its own sub-section that starts with <State> and ends with </State>.  Delete just that section, including its own preceding <State> and closing </State> entries.  Save the edited ini file, and restart MusicBee.

If that doesn't remove the entry from the GUI I'm out of ideas.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Steven on June 24, 2021, 09:52:46 AM
a plugin can be located in different folders depending on how its installed
C:\Users\<your id>\AppData\Roaming\MusicBee
MusicBee installation folder\Plugins
delete from both locations
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: paxer07 on June 24, 2021, 07:01:14 PM
(https://i.imgur.com/nDzsmn9.png)
I am running the latest verision of MusicBee (as of June 24th, 2021) and it says that I am unable to install the discord status plugin for music bee.

(https://i.imgur.com/z3RnYXO.png)
It was working fine before I reinstalled windows a few days ago.
This second screenshot is after I restarted MusicBee from the first screenshot and tried to enable the plugin.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: ickyvickyspit on June 25, 2021, 04:28:30 AM
a plugin can be located in different folders depending on how its installed
C:\Users\<your id>\AppData\Roaming\MusicBee
MusicBee installation folder\Plugins
delete from both locations

OH MY GOD THIS WORKED. THANK YOU SO MUCH!!!!!!
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: sveakul on June 25, 2021, 04:54:46 AM
OH MY GOD THIS WORKED. THANK YOU SO MUCH!!!!!!
I had believed what you said when you replied to my first post that asked you to do a File Explorer search with: "Ive searched for the file on all my hard drives and found nothing," or else we could have gotten there earlier.  Anyway, I'm glad you have it fixed now.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: reynardlee on June 26, 2021, 03:31:02 PM
Could you post a screenshot of your plugins directory?

(https://imgur.com/a/diTVsvy)

sorry for the late reply! I have deleted everything but DiscordBee
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: sveakul on June 26, 2021, 07:36:02 PM
@reynardlee:  the plugin was probably already there but in a different directory, causing the error when you tried to install it again (see: https://getmusicbee.com/forum/index.php?topic=24336.msg192148#msg192148 (https://getmusicbee.com/forum/index.php?topic=24336.msg192148#msg192148)) .

Try deleting it from all locations (please do a Windows File Explorer search of the entire drive(s) if you are not sure where it may be), restarting MusicBee, and installing the plugin again.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: reynardlee on June 27, 2021, 01:54:08 PM
@reynardlee:  the plugin was probably already there but in a different directory, causing the error when you tried to install it again (see: https://getmusicbee.com/forum/index.php?topic=24336.msg192148#msg192148 (https://getmusicbee.com/forum/index.php?topic=24336.msg192148#msg192148)) .

Try deleting it from all locations (please do a Windows File Explorer search of the entire drive(s) if you are not sure where it may be), restarting MusicBee, and installing the plugin again.

I have tried it, but I tried it again today.

HOWEVER, I managed to fix it. Initially, I copied the entire Folder into the plugins folder, somehow it didn't work, but today I copied the 4 files (without the folder) into the \Plugins folder, and it works now. I am not sure if It was the problem or not tho. I probably misread the installation steps (maybe i am dumb, im sorry  :-X ) Anyways, thank you all for your help!  :D
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: HWPrinz on July 13, 2021, 12:01:13 PM
Hi,
having the same weird behavior installing the plugin.
New Install of Musicbee (latest)
When 'Add Plugin' and selecting the zip file for DiscordBee, it says
'Unable to initialize the plugin: DiscordRPC.dll
Dll entry point: MusicBeePlugin.Plugin was not found'

...none the less, it copies it into the roaming plugin folder

then closing and re opening MusicBee
then shows the plugin enabled and active

After selecting 'MusicBee' as well as a game for the activity status in Discord, it finally works..
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on October 03, 2021, 04:00:12 AM
Is there any possibility of https://github.com/maybeclean/musicbee-rich-presence
being implemented natively into this plugin? Basically, the plugin I linked to allows for artwork upload (around 300 albums or so).

It was raised as a github issue which explains it better: https://github.com/sll552/DiscordBee/issues/87
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on October 06, 2021, 03:03:12 PM
I am working on getting album covers supported using your own discord app. The basics are working but there are some major limitations on Discords side, mostly because this si not intended for automation.

My plan is to have a working version next week which will allow the use of the plugin with your own discord app id and it will handle the last ~300 albums that have been played, the oldest covers will be overwritten when the limit is reached, so you should never notice anything. I will provide a guide on how to setup the discord app and what the limitations are when I have finished implementing what I have planned.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on October 08, 2021, 11:59:06 PM
I am working on getting album covers supported using your own discord app. The basics are working but there are some major limitations on Discords side, mostly because this si not intended for automation.

My plan is to have a working version next week which will allow the use of the plugin with your own discord app id and it will handle the last ~300 albums that have been played, the oldest covers will be overwritten when the limit is reached, so you should never notice anything. I will provide a guide on how to setup the discord app and what the limitations are when I have finished implementing what I have planned.

Awesome, really looking forward to it!
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on October 23, 2021, 08:04:11 AM
Did the feature get delayed?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on November 01, 2021, 12:44:52 AM
Yes, unfortunately I had less time to work on it than expected.

But nonetheless I am happy that version 2.0.0 was just released and includes the album upload and some bugfixes. You can download it at  https://github.com/sll552/DiscordBee/releases/tag/v2.0.0
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 04:53:50 AM
Yes, unfortunately I had less time to work on it than expected.

But nonetheless I am happy that version 2.0.0 was just released and includes the album upload and some bugfixes. You can download it at  https://github.com/sll552/DiscordBee/releases/tag/v2.0.0

Congrats on the release! I'll give it a try later today.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 05:25:08 AM
I ended up giving it a shot. I played a track but even after 15 minutes the artwork hasn't been uploaded as an asset (because it's still not there on the developer page and no image shows up on Discord).
I tried manually uploading an image instead and it indeed didn't appear immediately, however I was able to see the manually uploaded image around 5 minutes after.

I'm wondering if it's because I have the album art embedded into the file and not actually as a file?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Shingo on November 01, 2021, 11:10:08 AM
Ooh I've been waiting for this. Thanks for the release!
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 01:27:24 PM
Ooh I've been waiting for this. Thanks for the release!

Does it work for you?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on November 01, 2021, 02:26:35 PM
I ended up giving it a shot. I played a track but even after 15 minutes the artwork hasn't been uploaded as an asset (because it's still not there on the developer page and no image shows up on Discord).
I tried manually uploading an image instead and it indeed didn't appear immediately, however I was able to see the manually uploaded image around 5 minutes after.

I'm wondering if it's because I have the album art embedded into the file and not actually as a file?

Did the upload of the basic assets work? Do you see the logo, play, pause, ... icons on the developer page? Because only if those are present the cover uploads will start.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 04:01:01 PM
I ended up giving it a shot. I played a track but even after 15 minutes the artwork hasn't been uploaded as an asset (because it's still not there on the developer page and no image shows up on Discord).
I tried manually uploading an image instead and it indeed didn't appear immediately, however I was able to see the manually uploaded image around 5 minutes after.

I'm wondering if it's because I have the album art embedded into the file and not actually as a file?

Did the upload of the basic assets work? Do you see the logo, play, pause, ... icons on the developer page? Because only if those are present the cover uploads will start.

Nope, there are no assets at all for me.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on November 01, 2021, 04:10:00 PM
Please take a look at https://github.com/sll552/DiscordBee/issues/92#issuecomment-956312241
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 04:36:25 PM
Please take a look at https://github.com/sll552/DiscordBee/issues/92#issuecomment-956312241

I tried it on Canary with a different account and it still didn't work. I might try to reinstall Discord, and/or my laptop later.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 08:15:03 PM
I followed the powershell instructions you said on Github but Ill post it here since I dont have an account:

(https://cdn.discordapp.com/attachments/734457904324804723/904810357309182012/unknown.png)

(https://cdn.discordapp.com/attachments/734457904324804723/904813516526071869/unknown.png)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on November 01, 2021, 10:29:30 PM
Ok thats interesting, because that should be the folder where discord saves some state, including the auth token the plugin needs to upload the assets.

Could you make the window a little bigger for the last command, because the path for "--user-data-dir" is the interesting part?

Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 10:34:41 PM
Ok thats interesting, because that should be the folder where discord saves some state, including the auth token the plugin needs to upload the assets.

Could you make the window a little bigger for the last command, because the path for "--user-data-dir" is the interesting part?



This is as big as I was able to make it, hope it helps:
(https://cdn.discordapp.com/attachments/734457904324804723/904845870921576508/unknown.png)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on November 01, 2021, 10:37:28 PM
Could you do the steps mentioned in https://github.com/sll552/DiscordBee/issues/92#issuecomment-956630886

I guess I need to start a support Discord server  ;D
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 10:45:22 PM
Could you do the steps mentioned in https://github.com/sll552/DiscordBee/issues/92#issuecomment-956630886

I guess I need to start a support Discord server  ;D

I wouldn't mind helping out on discord, would perhaps solve this quicker (I hope it's solveable)
But I did your instructions, but the thing is I opened all .ldb files but none of them had a ".mfa" function, just "MFA_WARNING"
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on November 01, 2021, 11:14:45 PM
By any chance, could it be that you have not enabled 2-factor authentication for your discord account? If so please enable it and try again
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 11:27:44 PM
By any chance, could it be that you have not enabled 2-factor authentication for your discord account? If so please enable it and try again


I activated 2FA and I can find the method now, with the long string following it. Anything else I should do now?
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: derTyp on November 01, 2021, 11:30:06 PM
My hopes are that the plugin works now.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 11:32:40 PM
My hopes are that the plugin works now.

Oh yeah I see the play/pause/stop/mbicon assets on the developer page. No album art uploaded yet but I guess it takes time with the delay. Thanks for the help
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 01, 2021, 11:48:13 PM
I noticed it wasn't uploading album art, so I restarted both Discord and Musicbee. A few minutes pass and I look at the developer page and it seems to have uploaded the musicbee assets again (play, pause, icon etc) and still no album art. Should be noted all my art is embedded in the .flac files but I dont think that should matter

(https://cdn.discordapp.com/attachments/734457904324804723/904864198184550450/unknown.png)


Its uploading albums now too
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Shingo on November 01, 2021, 11:50:50 PM
Ooh I've been waiting for this. Thanks for the release!

Does it work for you?

Yes, though it takes a while to upload and load each asset, but that's a limitation with Discord's API. I suppose there's not much that can be done in that regard, except maybe triggering a cover art upload for a few of the upcoming tracks in the playlist too, other than the currently playing one, to make some sort of a short term cache. But I have no idea if that's even possible.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: SonicRings on November 02, 2021, 12:29:57 AM
Mine hasn't uploaded a single artwork either, and I played music for well over 6 hours.

I think the better solution would be to just let us choose which 296 album arts to use, since that would also avoid discord flagging our accounts with excessive api calls (deleting old artwork to upload new ones). Less risk, less unpredictability.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: heyman111 on November 02, 2021, 01:13:04 AM
Mine hasn't uploaded a single artwork either, and I played music for well over 6 hours.

I think the better solution would be to just let us choose which 296 album arts to use, since that would also avoid discord flagging our accounts with excessive api calls (deleting old artwork to upload new ones). Less risk, less unpredictability.

Totally agree with this suggestion. It would be great to somehow be able to choose only specific albums to have art on.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: SonicRings on November 02, 2021, 02:07:51 AM
Mine hasn't uploaded a single artwork either, and I played music for well over 6 hours.

I think the better solution would be to just let us choose which 296 album arts to use, since that would also avoid discord flagging our accounts with excessive api calls (deleting old artwork to upload new ones). Less risk, less unpredictability.

Totally agree with this suggestion. It would be great to somehow be able to choose only specific albums to have art on.

I actually made an issue requesting this on Github but it was closed with yesterday's update even though yesterday's update was not what I suggested: https://github.com/sll552/DiscordBee/issues/87#issuecomment-936321129
Title: Best DB version for MB v3.0.5977?
Post by: kilo on November 27, 2021, 09:48:56 AM
I stick to version 3.0.5977 of MusicBee for compatibility with a skin I use, but the latest version of DiscordBee right now (2.02) doesn't work it; AKA Discord displays nothing. What's the best DB version for my MB version? (I also don't know how to tweak to config file)
Title: Re: Best DB version for MB v3.0.5977?
Post by: hiccup on November 27, 2021, 11:09:23 AM
I stick to version 3.0.5977 of MusicBee for compatibility with a skin I use, …
It must be a very special skin that it makes you stagnate with a five year old version of MusicBee.
Out of curiosity, which skin is it?
It may make sense to try and contact the developer of it and see if he is willing to update it.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: kilo on November 27, 2021, 11:18:16 AM
Burnt Orange, though I have it recoloured to be magenta.

And do you mean I should contact the creator through the Github page's forums? Or would it be better to send a DM on here, I wouldn't know.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: hiccup on November 27, 2021, 11:29:46 AM
Burnt Orange, though I have it recoloured to be magenta.
I happen to have a repository of old skins, and this Burnt Orange works fine for me on MB 3.4
So I am not sure why it doesn't work for you.
But I do notice that it's dependent on a skin called Crimson that also needs to be present in the same skin folder.
I am guessing that if you copy 'Crimson' to the same skin folder as 'Burnt Orange' in your 3.4 install it will work fine.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: kilo on November 27, 2021, 11:59:29 AM
Your suggestion worked! Went back up to 3.4.7805 with Crimson in the same folder ("Dark-Fine Tuned" FTR) and now it works flawlessly; aside from DiscordBee still not working :c. I could only guess I'm missing files in the plugins folder from all the tinkering I did with this.

(https://i.imgur.com/X0NkMcf.png)
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: Spoot on May 01, 2022, 08:03:30 AM
Thanks for making this! Cover Art definitely still has some problems appearing but it's fine..
Title: DiscordBee no longer showing time elapsed in Discord status
Post by: kilo on May 28, 2022, 08:47:03 PM
Question (not related to my previous posts on here): isn't DiscordBee supposed to show the total and elapsed time of your current song in your Discord status? It still shows album, song name, and track number, but this has been gone for months. Was it removed?
Title: Discordbee doesn't work
Post by: nekothegamer on August 28, 2022, 10:47:35 PM
please i need help, i want it to work back it's the reason i use musicbee in the first place

(https://i.imgur.com/MfPeHzV.png)
(https://i.imgur.com/XtRa67a.png)

please i need help, i want it to work back it's the reason i use musicbee in the first place
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: spencey on November 01, 2022, 09:04:47 AM
Mine is completely broken since early September. Using the current version 3.0.4. I've tried deleting old files in roaming %appdata% but doesn't really do anything. It just seems the whole thing is broken since the ID thing changed with discord. Very sad, because I loved the RP integration. It was cool to share what bootlegs or whatever odd music I was listening to with my friends, but there's an end to everything eventually..

my version of Musicbee is 3.4.8033
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: duncebee on December 16, 2022, 06:55:18 PM
Think the latest updates broke this. It was working just a few days ago
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: claphands on December 17, 2022, 10:11:52 AM
I'm currently on the Nov 27th build (3.5.8367) with no issues. You might want to go back to that version, if possible. I'm going to wait to upgrade I guess.

For completeness, last time I updated was September 2020 (3.4.7792) also with no issues.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: tvlh on June 11, 2023, 04:47:46 PM
Hi. Seems like DiscordBee isn't uploading the album covers. How can I fix this?

(https://i.imgur.com/sAfzrlm.png)

Thank you in advance.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: thequietkid on June 16, 2023, 05:57:36 AM
(https://imgur.com/a/EVrvaDL)
Can someone please help me with this?
I am getting this "Unable to initialise plugin" error message when trying to enable this plugin from the musicbee preferences menu.
Title: Re: DiscordBee - Updates your Discord status with Infos from MusicBee
Post by: greusch on June 18, 2023, 05:57:55 AM
(https://imgur.com/a/EVrvaDL)
Can someone please help me with this?
I am getting this "Unable to initialise plugin" error message when trying to enable this plugin from the musicbee preferences menu.

Can confirm this is happening for me as well. I was noticing that my album art uploads were no longer working in DiscordBee 3.0.4 even with a custom Imgur ID, but until there's a workaround or fix for this I am unable to update.
Title: MusicBee Error
Post by: Rowann1 on July 25, 2023, 03:07:30 AM
My MusicBee has been crashing multiple times a day for the last year and a half. Finally reporting it.

Error:

MusicBee v3.5.8150.17011D  (Win10.0), 24 Jul 2023 22:04:

System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.DiscordTools.DiscordClient.<UploadArtwork>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Title: Re: MusicBee Error
Post by: sveakul on July 25, 2023, 06:18:01 AM
   at MusicBeePlugin.DiscordTools.DiscordClient.<UploadArtwork>d__22.MoveNext()
This shows the problem is with the Discord Bee plugin.  Try updating the plugin to its latest version (https://github.com/sll552/DiscordBee/releases (https://github.com/sll552/DiscordBee/releases)) first, and if errors continue post in that plugin's forum thread so its developer can see them.