getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: zkhcohen on March 18, 2019, 11:23:29 PM

Title: (Version 3.1) Spotify Integration Plugin
Post by: zkhcohen on March 18, 2019, 11:23:29 PM
I'm currently working on creating a new Spotify integration plugin using the updated API.
If there's any interest in this project, please let me know what sorts of features you would be interested in having.
---

Update 3.1 (April 11, 2021):

PKCE auth. method now automatically renews tokens when necessary, even between restarts.
General performance improvements.
Bug fixes for network disconnections, refreshing, various other things.

Please test and report issues in this thread.

https://www.mediafire.com/file/rex368art4yr1wh/mb_Spotify-Plugin.zip/file

NOTE: I did notice some artifacting issues and I also noticed that the "Please Click to Authenticate" erroneously appears after a restart. I'm working on resolving these issues.
Title: Re: Spotify Integration Plugin
Post by: awise107 on March 23, 2019, 08:32:58 PM
This would be awesome to have! Looking forward to updates.
Title: Re: Spotify Integration Plugin
Post by: J3man on March 24, 2019, 03:15:10 AM
Would be great if possible. Would use for sure.
Title: Re: Spotify Integration Plugin
Post by: zkhcohen on March 29, 2019, 09:39:30 PM
Just a quick update -

I'm almost done with the first release. Hoping a couple people will be willing to try it out and give me feedback!
Title: Re: Spotify Integration Plugin
Post by: t0mekk on April 01, 2019, 12:31:13 AM
Just a quick update -

I'm almost done with the first release. Hoping a couple people will be willing to try it out and give me feedback!


awesome idea for plugin! I'll gladly help you mate.
Title: Re: Spotify Integration Plugin
Post by: zkhcohen on April 02, 2019, 12:46:59 AM
Here's an ALPHA release:

PLEASE SEE BETA LINK IN POST BELOW!


Just extract the contents of the "plugins" folder to your MusicBee Plugins directory.


Here's what it looks like in the panel:


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


It lets you know if the track, album or artist are already found in your Spotify library. If you click on them, depending on if they're in your library or not, it will either add or remove them from Spotify.

Let me know if you encounter any bugs.


KNOWN ISSUES:


1. Performance issues due to a workaround I implemented because of a bug in the Spotify API. Adding/removing albums is slow. The first track you play after enabling the add-in is slow to load.
2. You have to re-authenticate hourly due to a limitation with the Spotify API. I plan to do this silently in the future.
Title: Re: (ALPHA 1.0) Spotify Integration Plugin
Post by: zkhcohen on April 22, 2019, 09:41:28 PM
Beta 2.0: Improved performance. Removed 500 album restriction. Added automatic prompt to re-authenticate if computer resumes from sleep.

https://www.mediafire.com/file/rex368art4yr1wh/Beta_2.X_mb_Spotify_Plugin.zip/file
Title: Re: BETA 2.0 - Spotify Integration Plugin
Post by: Bizy on April 22, 2019, 11:03:36 PM
Hello zkhcohen,

Though I don't use Spotify much, if I can integrate it in MB, that would definitely help... ;-)

So I tried your plugin.

And got following message:
"SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
(Firefox 66.0.3)

Maybe becoz I'm not a Premium User? 
Or should it work in all cases?

Greetz, b.
Title: Re: BETA 2.0 - Spotify Integration Plugin
Post by: fumoretti on April 24, 2019, 08:54:34 PM
Amazing work!!!

What is required at minimum to work properly? I mean, I intalled the plugin on my MusicBee (3.2 U3), but on plugin settings the "configure" button does notting when i click on it.

The spotify client software is needed on the computer plus MusicBEE + Plugin?

Thank you for this plugin!
Title: Re: BETA 2.0 - Spotify Integration Plugin
Post by: zkhcohen on April 25, 2019, 04:19:52 AM

And got following message:
"SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
(Firefox 66.0.3)

Maybe becoz I'm not a Premium User? 
Or should it work in all cases?

Greetz, b.

It should work in all cases, regardless of the browser you use. I've had issues using Internet Explorer to reliably authenticate Spotify through their (notably CRAPPY) API. This is what's currently preventing me from allowing it to re-authenticate automatically every hour. It's really annoying...

If you temporarily change your default browser to Chrome and then try to authenticate again, I'd be extremely curious to see if it works.

Alternatively you can copy and paste the link in another browser to see if it works.

Thanks for reporting this!!
Title: Re: BETA 2.0 - Spotify Integration Plugin
Post by: zkhcohen on April 25, 2019, 04:21:44 AM
Amazing work!!!

What is required at minimum to work properly? I mean, I intalled the plugin on my MusicBee (3.2 U3), but on plugin settings the "configure" button does notting when i click on it.

The spotify client software is needed on the computer plus MusicBEE + Plugin?

Thank you for this plugin!

You actually only need MusicBee and the plugin, not the Spotify client.

Unfortunately this plugin won't work unless you install a newer version of MusicBee.

The most recent version is 3.3.7051 which includes substantial improvements.

https://getmusicbee.com/patches/MusicBee33_Patched.zip
Title: Re: BETA 2.0 - Spotify Integration Plugin
Post by: Bizy on April 25, 2019, 12:02:44 PM
@zkhcohen:  I tried with Opera and Chrome, and yes, then I can login.  It says 'Ok. This window can be closed now.'
Yet, in the plugin panel, it says:  'No tracks found'.

CORRECTION:  when I play a song of a local playlist, it shows the song and whether it's part of an album in Spotify, if I follow the artist and so on... (and I can change that... add... follow...)

Which is great! 
Yet, I would like to be able to play Spotify playlists:  is that possible?
(I don't see that for now, but I might be overlooking something.)
Title: Re: BETA 2.0 - Spotify Integration Plugin
Post by: zkhcohen on April 25, 2019, 10:20:30 PM
Yet, I would like to be able to play Spotify playlists:  is that possible?
(I don't see that for now, but I might be overlooking something.)

What do you mean by play Spotify playlists?

I could perhaps import playlists from Spotify insofar as you have the same songs in your MusicBee library.

This gave me an interesting idea that I might try to implement going forward.

I'll see what I can do.
Title: Re: BETA 2.0 - Spotify Integration Plugin
Post by: Bizy on April 26, 2019, 03:35:54 PM
@zkhcohen:  what I mean is:  importing songs that are not in my library, so basically:  streaming Spotify in MB (the present browser plugin doesn't support the Spotifiy media player;  and I don't see a way to export playlists in MB and import them in MB - maybe, there is another way, I don't know).

So:  I would like to be able to scroll through my Spotify playlists and select/play them in MB.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on April 30, 2019, 02:55:38 AM
@zkhcohen:  what I mean is:  importing songs that are not in my library, so basically:  streaming Spotify in MB (the present browser plugin doesn't support the Spotifiy media player;  and I don't see a way to export playlists in MB and import them in MB - maybe, there is another way, I don't know).

So:  I would like to be able to scroll through my Spotify playlists and select/play them in MB.

That's not possible using the Spotify API.

It's theoretically possible but would require a lot of 'hacking' to get a usable workaround.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Bizy on April 30, 2019, 06:16:12 PM
Okay, Zkhcohen.  Thanks for looking into it.  And for your wonderfull work!

(I thought:  maybe via the plugin browser, but it doesn't support the Spotify media player.)
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on April 30, 2019, 08:52:53 PM
Okay, Zkhcohen.  Thanks for looking into it.  And for your wonderfull work!

(I thought:  maybe via the plugin browser, but it doesn't support the Spotify media player.)

Maybe. Otherwise you could embed a Spotify frame into a browser using .NET. Both ways, you're really just layering Spotify on top of MusicBee, rather than integrating it.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Qaidul on May 01, 2019, 01:16:07 AM
How to use this plugin? I still find a way to use it
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on May 01, 2019, 07:06:30 PM
How to use this plugin? I still find a way to use it

Can you clarify?
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Qaidul on May 02, 2019, 08:09:40 AM
How to use this plugin? I still find a way to use it

Can you clarify?

How to configure it?
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: ChristopherE on May 02, 2019, 03:56:35 PM
I have put the plugin where belongs. It shows up as a plugin in settings. However it does not appear anywhere in musicbee ui for my system. I have customised the layout using the standard themes and settings, so maybe I am looking in the wrong place for it. Where exactly can you see it working?
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Bizy on May 02, 2019, 06:00:28 PM
@Qaidul:  there's nothing to configure.  The plugin checks (after 'authenticating') if the track/album/artist of the song you're playing in MB is part of your Spotify Library or not and you can choose to change that.

@ChristopherE (and maybe Qaidul):  you need to make it visible as a panel via Configure layout/Arrange panels (button right upper corner).
You will find the plugin among 'available elements' and you can drag it where you want.

b.

(EDIT:  button is next to search box, and where the search box is, depends on your settings)
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Qaidul on May 03, 2019, 07:07:47 AM
@Qaidul:  there's nothing to configure.  The plugin checks (after 'authenticating') if the track/album/artist of the song you're playing in MB is part of your Spotify Library or not and you can choose to change that.

@ChristopherE (and maybe Qaidul):  you need to make it visible as a panel via Configure layout/Arrange panels (button right upper corner).
You will find the plugin among 'available elements' and you can drag it where you want.

b.

Unclear, can you explain more detail.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Bizy on May 03, 2019, 07:22:47 AM
Can you be more clear about what is not clear?

Do you have the plugin installed?
Do you find access to Configure Layout/Arrange Panels?  (either via button or edit/preferences)
Do you see the Spotify plugin among 'available elements'?
Do you know how to set up the maind and side panels? (if not, experiment a bit ;-) ... or check the WIKI ('panel configuration'):  
https://musicbee.fandom.com/wiki/The_Anatomy_of_MusicBee (https://musicbee.fandom.com/wiki/The_Anatomy_of_MusicBee))
If you have done all this:  do you see 'Authenticate' in the plugin panel?
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: ChristopherE on May 03, 2019, 08:07:14 PM
Thanks. I got it working now.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: fumoretti on May 04, 2019, 05:10:58 AM
Amazing work!!!

What is required at minimum to work properly? ...

Thank you for this plugin!

You actually only need MusicBee and the plugin, not the Spotify client.

Unfortunately this plugin won't work unless you install a newer version of MusicBee.

The most recent version is 3.3.7051 which includes substantial improvements.

https://getmusicbee.com/patches/MusicBee33_Patched.zip

Thank you, working now.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: tyler_durden on May 05, 2019, 04:45:19 PM
Hi!

I tried to test this plugin, i've added the panel, but by clickin' in "Auth" this error appears:


Code
MusicBee v3.3.7062.40352 (Win10.0), 5 may. 2019 12:41:

System.IO.FileNotFoundException: No se puede cargar el archivo o ensamblado 'SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.
Nombre de archivo: 'SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   en MusicBeePlugin.Plugin.<SpotifyWebAuth>d__215.MoveNext()
   en System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   en MusicBeePlugin.Plugin.SpotifyWebAuth(Boolean autoRefresh)
   en MusicBeePlugin.Plugin.PanelClick(Object sender, EventArgs e)
   en System.Windows.Forms.Control.OnClick(EventArgs e)
   en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   en System.Windows.Forms.Control.WndProc(Message& m)
   en #=z6KfKvUY8Z0Nto1xqcLp6WDY=.WndProc(Message& #=zqP3M9t4=)
   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

AVS: El registro del enlace de ensamblado está desactivado.
Para habilitar el registro de errores del enlace de ensamblado, establezca el valor de Registro [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) como 1.
Nota: existe una disminución del rendimiento asociada registro de errores del enlace de ensamblado.
Para desactivar esta característica, elimine el valor de Registro [HKLM\Software\Microsoft\Fusion!EnableLog].
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on May 05, 2019, 05:14:17 PM
Hi!

I tried to test this plugin, i've added the panel, but by clickin' in "Auth" this error appears:


Code
MusicBee v3.3.7062.40352 (Win10.0), 5 may. 2019 12:41:

System.IO.FileNotFoundException: No se puede cargar el archivo o ensamblado 'SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.
Nombre de archivo: 'SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   en MusicBeePlugin.Plugin.<SpotifyWebAuth>d__215.MoveNext()
   en System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   en MusicBeePlugin.Plugin.SpotifyWebAuth(Boolean autoRefresh)
   en MusicBeePlugin.Plugin.PanelClick(Object sender, EventArgs e)
   en System.Windows.Forms.Control.OnClick(EventArgs e)
   en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   en System.Windows.Forms.Control.WndProc(Message& m)
   en #=z6KfKvUY8Z0Nto1xqcLp6WDY=.WndProc(Message& #=zqP3M9t4=)
   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

AVS: El registro del enlace de ensamblado está desactivado.
Para habilitar el registro de errores del enlace de ensamblado, establezca el valor de Registro [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) como 1.
Nota: existe una disminución del rendimiento asociada registro de errores del enlace de ensamblado.
Para desactivar esta característica, elimine el valor de Registro [HKLM\Software\Microsoft\Fusion!EnableLog].


It looks like you didn't put "SpotifyAPI.Web.Auth.dll" in the plugins folder, or there is a Windows permissions issue with it.

If it's already in the plugins folder, right-click, go to Properties, and make sure that the file isn't blocked. Also check the permissions in the security tab.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: figipe on May 11, 2019, 10:42:48 PM
After I follow the steps you listed, it says no Track found on the music bee app, am I doing something wrong, If I play something in my spotify should be playing the same track in music bee as well?

I'm confused.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: frankz on May 11, 2019, 10:52:55 PM
If I play something in my spotify should be playing the same track in music bee as well?
From the announcement post (https://getmusicbee.com/forum/index.php?topic=28209.msg157015#msg157015):
Quote
It lets you know if the track, album or artist are already found in your Spotify library. If you click on them, depending on if they're in your library or not, it will either add or remove them from Spotify.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on May 12, 2019, 05:52:39 AM
There's another bug with a timer overflow....


I'm extremely busy irl so it might take a while to update.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: giancarlo_bar on May 28, 2019, 08:21:57 AM
Thanks zkhcohen for your work, it's a good plugin I hope for updates soon, unfortunately many times I read "No Track Found!" or maybe it's me that I don't understand how it integrates with my library, thanks again Giancarlo.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on May 29, 2019, 05:31:31 PM
Thanks zkhcohen for your work, it's a good plugin I hope for updates soon, unfortunately many times I read "No Track Found!" or maybe it's me that I don't understand how it integrates with my library, thanks again Giancarlo.

If it says "No Track Found!" then either Spotify doesn't have the song in their database, or the song is named incorrectly in your library.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: giancarlo_bar on May 30, 2019, 11:21:37 AM

Thanks zkhcohen for the answer, I checked on Spotify there is the song, I also tried with the TAG title album online to update these but they seem correct, it happens on some tracks, very strange, thanks Regards Giancarlo.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Bluebatt109 on June 12, 2019, 06:27:59 PM
Hey, zhkcohen,

First of all, thanks for making a plugin to integrate Spotify into Musicbee. It all looks very good, but I am having problems with getting it to work properly. I have the Musicbee Windows Store version, and when I add the plugin, via your zipfile, I am unable to get it to configure, or do much. Is there something I am missing? What would you suggest. Wish you all the best.
-Bluebatt
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on July 03, 2019, 03:03:28 PM
Hey, zhkcohen,

First of all, thanks for making a plugin to integrate Spotify into Musicbee. It all looks very good, but I am having problems with getting it to work properly. I have the Musicbee Windows Store version, and when I add the plugin, via your zipfile, I am unable to get it to configure, or do much. Is there something I am missing? What would you suggest. Wish you all the best.
-Bluebatt

Sorry, I have no idea how the Window Store version differs, and I don't plan on supporting it since its release cycle is very slow.

I would highly recommend switching to the primary build if possible.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: HamidZaeri on July 14, 2019, 08:55:48 AM
Hi
I can't start this plugin!
I have installed the plugin and it is shown in preferences -> plugins, but don't know how to use it?
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: frankz on July 14, 2019, 01:37:14 PM
Hi
I can't start this plugin!
I have installed the plugin and it is shown in preferences -> plugins, but don't know how to use it?
https://getmusicbee.com/forum/index.php?topic=28209.msg158636#msg158636
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: anffna on August 01, 2019, 07:41:41 PM
Hi man, how are you? how about something like last.fm recommendations?
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on August 08, 2019, 08:09:01 AM
Hi man, how are you? how about something like last.fm recommendations?

That's already integrated in the Music Explorer.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: ioomusicbee on November 27, 2019, 05:17:02 AM
Hi,

I am trying to get the plugin working. I have MusicBee 3.3.7141 P and Spotify Integration Plugin 2.0.2. I was able to copy the files to my plugins folder. When I go to Edit Preferences-Plugins-mb_Spotify_plugins there is a configure button however when I press it nothing happens.

I added the Spotify panel to a new Music bee view. It says "No Track Found" when I click on this I get "Bad ID"

If I click on The title header and select "Re-authenticate" I am taken to a Spotify webpage, I enter my credentials then I am taken to a a page:

http://localhost:4002/auth?access_token=...&token_type=Bearer&expire

on this page I see the following:

Json tab: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Raw Data tab: OK - This window can be closed now
Headers:

Cache-Control no-store, no-cache, must-revalidate
Content-Encoding gzip
Content-Length 54
Content-Type application/json; charset=utf-8
Date Wed, 27 Nov 2019 05:13:03 GMT
Expires Mon, 26 Jul 1997 05:00:00 GMT
Keep-Alive timeout=15,max=99
Last-Modified Wed, 27 Nov 2019 05:13:03 GMT
Pragma no-cache
Server embedio/2.0
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Connection keep-alive
DNT 1
Host localhost:4002
Referer http://localhost:4002/
Upgrade-Insecure-Requests 1
User-Agent Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0

This is as far as I can get, if I go back to Spotify it still says "No Track found" so it doesn't look like it passes the credential back to MusicBee. What am I doing wrong? Any ideas?

Thanks.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on November 27, 2019, 08:04:50 PM
Hi,

I am trying to get the plugin working. I have MusicBee 3.3.7141 P and Spotify Integration Plugin 2.0.2. I was able to copy the files to my plugins folder. When I go to Edit Preferences-Plugins-mb_Spotify_plugins there is a configure button however when I press it nothing happens.

I added the Spotify panel to a new Music bee view. It says "No Track Found" when I click on this I get "Bad ID"

If I click on The title header and select "Re-authenticate" I am taken to a Spotify webpage, I enter my credentials then I am taken to a a page:

http://localhost:4002/auth?access_token=...&token_type=Bearer&expire

on this page I see the following:

Json tab: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Raw Data tab: OK - This window can be closed now
Headers:

Cache-Control no-store, no-cache, must-revalidate
Content-Encoding gzip
Content-Length 54
Content-Type application/json; charset=utf-8
Date Wed, 27 Nov 2019 05:13:03 GMT
Expires Mon, 26 Jul 1997 05:00:00 GMT
Keep-Alive timeout=15,max=99
Last-Modified Wed, 27 Nov 2019 05:13:03 GMT
Pragma no-cache
Server embedio/2.0
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Connection keep-alive
DNT 1
Host localhost:4002
Referer http://localhost:4002/
Upgrade-Insecure-Requests 1
User-Agent Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0

This is as far as I can get, if I go back to Spotify it still says "No Track found" so it doesn't look like it passes the credential back to MusicBee. What am I doing wrong? Any ideas?

Thanks.

Hmm.. It's still working for me. I would try a different browser. It might be a setting in Firefox.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: BriAsylum13 on January 09, 2020, 12:39:10 AM
I just installed this plug in last night and it's great. :) Two questions though....If this was asked before, forgive me. Are you going to add a way to always stay logged into Spotify with it? I don't like how I always seem to have to re-authenticate. Also, can tracks be added automatically when played, or do you have to click and manual add them.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on January 22, 2020, 03:48:07 AM
I just installed this plug in last night and it's great. :) Two questions though....If this was asked before, forgive me. Are you going to add a way to always stay logged into Spotify with it? I don't like how I always seem to have to re-authenticate. Also, can tracks be added automatically when played, or do you have to click and manual add them.

The only way for it to stay authenticated would be for me to implement a different authentication type, and unfortunately it would either require the end-user to enter their own API key and recompile the entire plugin, or for me to host an external server to shuttle the requests through.

Another MusicBee user is currently working on the automatic-adding functionality. I'll let you know if he publicly releases it.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: jhlogin on January 24, 2020, 03:39:54 AM
I appreciate the work on integrating MusicBee and Spotify.  But this integration is not really what I was hoping for.  What I'd like is what numerous people on Spotify's forums have been clamoring for - a single music player which can handle playlists containing streamed music from Spotify along with local .flac files.  Spotify is missing many songs and albums, and while their desktop client does support mixing local and streamed music together it only handles local .mp3 files.  Spotify has declared they will not be supporting .flac files for the foreseeable future despite acknowledging all the demand for this feature:

https://community.spotify.com/t5/Closed-Ideas/Music-Local-FLAC-Playback/idi-p/124168

I'd like this Spotify integration to work one of two ways:

a) ability to drag songs from the Spotify client into MusicBee, creating an entry in the library we can then add to playlists along with local files
b) ability to browse our 'Liked' songs list from Spotify directly in MusicBee client, and then again add those songs along with local files into playlists

Obviously those things are contingent on what the Spotify API allows for.  I do think though that if MusicBee allows for the mixing and matching of local .flac and Spotify streams that will bring you a lot of new users due to the limitations of the Spotify client.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on January 24, 2020, 04:26:43 PM

I'd like this Spotify integration to work one of two ways:

a) ability to drag songs from the Spotify client into MusicBee, creating an entry in the library we can then add to playlists along with local files
b) ability to browse our 'Liked' songs list from Spotify directly in MusicBee client, and then again add those songs along with local files into playlists


Let me preface this by saying that I have no intention of ever implementing these suggestions - it would be an enormous undertaking and I don't think they're particularly useful.

For fun, I thought of a couple of ways you could potentially accomplish this. I settled on one which is the least difficult considering the many obstacles you'd run into when trying to develop this.


For suggestion A:

1. Steven would have to allow web shortcuts to be stored in MusicBee (they are created when you drag songs out of Spotify).
2. The Spotify API would be used to translate the track ID in the shortcuts into metadata.
3. When a shortcut is clicked, it would have to launch a Spotify-approved web browser (probably Chromium-based) that you have authenticated.
4. Pausing, playing, skipping, etc. are an entirely separate issue to tackle...
5. Once a track is completed, it would have to close the browser and send a callback to MusicBee to continue to the next track.


For suggestion B:

1. Steven would have to allow web shortcuts to be stored in MusicBee.
2. The Spotify API would be used to sync your Spotify Liked Songs playlist to a playlist in MusicBee by creating shortcuts and populating the appropriate metadata.

Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: BriAsylum13 on February 02, 2020, 12:01:44 AM
Quote

The only way for it to stay authenticated would be for me to implement a different authentication type, and unfortunately it would either require the end-user to enter their own API key and recompile the entire plugin, or for me to host an external server to shuttle the requests through.

Another MusicBee user is currently working on the automatic-adding functionality. I'll let you know if he publicly releases it.



Awesome. Thanks so much.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: chrisdivine on March 05, 2020, 03:55:47 PM
Nice Work, zkhcohen, thank U very much! It works fine.
Do you know, if it would be possible to programm the plugin to send songs directly into a specific spotify playlist or a whole musicbee playlist to spotify?
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Aasemoon on April 08, 2020, 09:47:01 AM

Hi there,

I have just recently started using MusicBee, and this plugin seems like a great tool to add, so I tried installing it today. However I'm getting the "SpotifyAPI.Web.Auth" error that seems to have come up in this forum before. Here:


Code
MusicBee v3.3.7367.38620D  (Win10.0), 8 Apr 2020 10:26:

System.IO.FileNotFoundException: Could not load file or assembly 'SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   at MusicBeePlugin.Plugin.<SpotifyWebAuth>d__215.MoveNext()
   at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   at MusicBeePlugin.Plugin.SpotifyWebAuth(Boolean autoRefresh)
   at MusicBeePlugin.Plugin.PanelClick(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at #=z1b1aIHdE5iOu51l_1OHtZfM=.WndProc(Message& #=z9FSiH_o=)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


I've seen the recommendations to rectify this, and have tried them, but no matter what I do with "SpotifyAPI.Web.Auth.dll" [and I certainly have given it all permissions], I keep getting the same error. Any recommendations?

Thanks, Cheers!

Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Eudyptula on April 12, 2020, 08:01:35 AM
Hello,
I give all permissions to these two dll.

1. SpotifyAPI.Web.Auth.dll
2. SpotifyAPI.Web.dll

It pops up a window and asks me to authorize spotify. I click "Yes", But it shows error.

Code
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Mr. Be on May 18, 2020, 11:35:07 AM
it is not working at all. i got to the panel but it only shows this and does completely nothing

(https://i.imgur.com/RwRO927.png)
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Herb_N on May 26, 2020, 10:21:00 AM
I have installed the latest Spotify integration app on my MusicBee Portable installation. It shows up under PlugIns but when I click CONFIGURE nothing happens. I have tried this with Chrome and also with Firefox as my default browser. Would love to have this plugin working.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Oopy Doopy on June 04, 2020, 01:50:49 AM
I have installed the latest Spotify integration app on my MusicBee Portable installation. It shows up under PlugIns but when I click CONFIGURE nothing happens. I have tried this with Chrome and also with Firefox as my default browser. Would love to have this plugin working.
Just installed today and I'm having the same issue.  Latest Musicbee, latest plugin.  I tested both the windows store version and the normal win32 install, same issue.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: funkthefame on June 10, 2020, 12:37:57 PM
@zkcohen

This is a great plugin. I was recently exploring the available information in the API.

I wonder if it would be possible to return the values of the

valence, pop, instrumentalness, acoustic, energy, danceability that is stored in Spotify's API?

ie the audio features of a track and have it display in the spotify plugin?

https://developer.spotify.com/console/get-audio-features-track/?id=06AKEBrKUckW0KREUWRnvT
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: wannaknowmyname on July 03, 2020, 07:54:45 PM
I have installed the latest Spotify integration app on my MusicBee Portable installation. It shows up under PlugIns but when I click CONFIGURE nothing happens. I have tried this with Chrome and also with Firefox as my default browser. Would love to have this plugin working.
Just installed today and I'm having the same issue.  Latest Musicbee, latest plugin.  I tested both the windows store version and the normal win32 install, same issue.

I tried with both the Musicbee App and Musicbee for windows, made sure everything was up to date - clicking configure does nothing on both for the spotify integration plugin
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: djob13 on July 09, 2020, 09:41:28 PM
Is there any way for this plugin to copy your entire library to Spotify? I have about 17,000 songs in MB that I'm trying to get in my Spotify library, and I just can't go song by song or artist by artist to do that. I've been trying to find a solution that would let me do this, and this seems the closest I've found.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: dontfollowme on July 17, 2020, 06:36:33 PM
Also struggling to get this working. Hoping to transpose a playlist into spotify
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on July 30, 2020, 04:08:02 AM
Is there any way for this plugin to copy your entire library to Spotify? I have about 17,000 songs in MB that I'm trying to get in my Spotify library, and I just can't go song by song or artist by artist to do that. I've been trying to find a solution that would let me do this, and this seems the closest I've found.

I have installed the latest Spotify integration app on my MusicBee Portable installation. It shows up under PlugIns but when I click CONFIGURE nothing happens. I have tried this with Chrome and also with Firefox as my default browser. Would love to have this plugin working.
Just installed today and I'm having the same issue.  Latest Musicbee, latest plugin.  I tested both the windows store version and the normal win32 install, same issue.

I tried with both the Musicbee App and Musicbee for windows, made sure everything was up to date - clicking configure does nothing on both for the spotify integration plugin
I have installed the latest Spotify integration app on my MusicBee Portable installation. It shows up under PlugIns but when I click CONFIGURE nothing happens. I have tried this with Chrome and also with Firefox as my default browser. Would love to have this plugin working.
Hello,
I give all permissions to these two dll.

1. SpotifyAPI.Web.Auth.dll
2. SpotifyAPI.Web.dll

It pops up a window and asks me to authorize spotify. I click "Yes", But it shows error.

Code
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Hi there,

I have just recently started using MusicBee, and this plugin seems like a great tool to add, so I tried installing it today. However I'm getting the "SpotifyAPI.Web.Auth" error that seems to have come up in this forum before. Here:


Code
MusicBee v3.3.7367.38620D  (Win10.0), 8 Apr 2020 10:26:

System.IO.FileNotFoundException: Could not load file or assembly 'SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   at MusicBeePlugin.Plugin.<SpotifyWebAuth>d__215.MoveNext()
   at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   at MusicBeePlugin.Plugin.SpotifyWebAuth(Boolean autoRefresh)
   at MusicBeePlugin.Plugin.PanelClick(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at #=z1b1aIHdE5iOu51l_1OHtZfM=.WndProc(Message& #=z9FSiH_o=)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


I've seen the recommendations to rectify this, and have tried them, but no matter what I do with "SpotifyAPI.Web.Auth.dll" [and I certainly have given it all permissions], I keep getting the same error. Any recommendations?

Thanks, Cheers!


Also struggling to get this working. Hoping to transpose a playlist into spotify

Hey guys. Life has been really busy and I haven't had the time to maintain this.

Please check out this plugin someone else developed:

https://getmusicbee.com/addons/plugins/306/musicbeesynctoservice/



I just tested my plugin and everything still works for me (this is a fresh installation, too).

Make sure ALL of the plugin files are in the root of the plugins directory.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: taravasya on July 31, 2020, 11:58:24 AM
Hello! No way to "emulate" spotify-connect device, for we can to play spotify on wasapi or asio devices with MusicBee?
Thanks!
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on August 01, 2020, 03:07:26 PM
Hello! No way to "emulate" spotify-connect device, for we can to play spotify on wasapi or asio devices with MusicBee?
Thanks!

There's a Spotify Connect Web API beta that could potentially work with some clever tricks, but I have no plans on emulating Spotify within MusicBee.

Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: KaleidoscopicThoughts on September 04, 2020, 08:34:36 PM
Do I have to click authenticate each time I open musicbee? isn't there a way to make it automatic?
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on September 04, 2020, 09:01:42 PM
Do I have to click authenticate each time I open musicbee? isn't there a way to make it automatic?

Funny you should ask, Spotify finally added a PKCE auth. method which solves the problems with implementing the other auth. method which allows for token renewal:

https://developer.spotify.com/community/news/2020/06/18/pkce-oauth/

If I have time, I'll implement this.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: Terry Walker on October 12, 2020, 03:02:40 AM
I'm currently working on creating a new Spotify integration plugin using the updated API.
If there's any interest in this project, please let me know what sorts of features you would be interested in having.

Yay! looking forward to the result of this as long as it's good then I'm good also.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: MissPat on November 08, 2020, 03:54:22 PM
I share Terry's enthusiasm for this feature  ;)
Title: mb_Spotify-Plugin not working
Post by: Vince0511 on December 03, 2020, 12:32:01 PM
Hi All,

I'm new here, I've been using MusicBee for a couple of weeks now and loving it! :)
I was trying to add some extra's via Plugins from the website.
The First, (discogs) is working very nice.

But when trying to install the Spotify-Plugin it gave me an error then trying to authenticate.
The error: (in dutch)

Code
MusicBee v3.3.7491.38139D  (Win10.0), 3 dec 2020 13:30:

System.IO.FileNotFoundException: Kan bestand of assembly SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.
Bestandsnaam: SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
   bij MusicBeePlugin.Plugin.<SpotifyWebAuth>d__215.MoveNext()
   bij System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   bij MusicBeePlugin.Plugin.SpotifyWebAuth(Boolean autoRefresh)
   bij MusicBeePlugin.Plugin.PanelClick(Object sender, EventArgs e)
   bij System.Windows.Forms.Control.OnClick(EventArgs e)
   bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bij System.Windows.Forms.Control.WndProc(Message& m)
   bij #=zHtEf7r5NvoOIlAZv2tlwPAI=.WndProc(Message& #=zcoS3AB0=)
   bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRSCH: registratie van assembly-bindingen is uitgeschakeld.
Als u assembly-bindingsfouten wilt registreren, stelt u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) in op 1.
Opmerking: er is een prestatiestraf gekoppeld aan de registratie van assembly-bindingsfouten.
Als u deze functie wilt uitschakelen, verwijdert u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog].

Quote
System.IO.FileNotFoundException: Kan bestand of assembly SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.
It said it cant find the file.

I've tried the REGEDIT option. Without any luck.
Code
HKLM\Software\Microsoft\Fusion!EnableLog
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: phred on December 03, 2020, 12:49:25 PM
Do you have the Spotify plugin installed correctly? That would be one reason why the file can't be found.

This should be posted on the plugin's thread so the developer of the plugin can see it.  I've moved it for you.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: PROblem on December 11, 2020, 07:40:14 AM
Any chances to make this for tidal?
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: VijuaruKei on January 27, 2021, 12:33:18 AM
Hello, I just installed the plugin, but sadly it's not working, when I click on the spotify pannel to log I get an error.


Code
MusicBee v3.3.7491.38089Store (Win10.0), 27 janv. 2021 1:32:

System.IO.FileNotFoundException: Impossible de charger le fichier ou l'assembly 'SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ou une de ses dépendances. Le fichier spécifié est introuvable.
Nom de fichier : 'SpotifyAPI.Web.Auth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   à MusicBeePlugin.Plugin.<SpotifyWebAuth>d__215.MoveNext()
   à System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   à MusicBeePlugin.Plugin.SpotifyWebAuth(Boolean autoRefresh)
   à MusicBeePlugin.Plugin.PanelClick(Object sender, EventArgs e)
   à System.Windows.Forms.Control.OnClick(EventArgs e)
   à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   à System.Windows.Forms.Control.WndProc(Message& m)
   à #=zTWpQxM2qpiCzHyaRcEbNZQs=.WndProc(Message& #=zLjLuuqY=)
   à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

AVT : la journalisation de liaison d'assembly est désactivée.
Pour activer la journalisation des échecs de liaison d'assembly, attribuez la valeur 1 à la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD).
Remarque : une certaine perte de performance est associée à l'enregistrement dans le journal des échecs de liaison d'assembly.
Pour désactiver cette fonctionnalité, supprimez la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog].

thanks in advance for any help
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: S3rM5Y5 on February 12, 2021, 07:25:36 PM
Can you be more clear about what is not clear?

Do you have the plugin installed?
Do you find access to Configure Layout/Arrange Panels?  (either via button or edit/preferences)
Do you see the Spotify plugin among 'available elements'?
Do you know how to set up the maind and side panels? (if not, experiment a bit ;-) ... or check the WIKI ('panel configuration'):  
https://musicbee.fandom.com/wiki/The_Anatomy_of_MusicBee (https://musicbee.fandom.com/wiki/The_Anatomy_of_MusicBee))
If you have done all this:  do you see 'Authenticate' in the plugin panel?

This should be part of the README. I couldn't figure out how to get it to work without these instructions.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on March 29, 2021, 08:03:45 AM
I finally decided to revisit this and so far I've updated the auth. method to PKCE and transitioned all of the other functions from the 5.x.x to the 6.x.x API spec.

I still need to get token renewal implemented, but this should be a better solution all-around.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: KlausZeFlammenwerfer on April 07, 2021, 11:30:15 PM
I really love the idea of this plug and it would make things a lot better, but it doesn't work for me, I don't know if the current state of the plugin just doesn't work or its on my end, whenever I click "configure" nothing happens, and when I authenticate from the "Spotify Plugin" window on the right side it says "No Track Found!" which does not change after trying 20 different songs, both on desktop and the web client, whenever I click the right side of the "No Track Found!" a window pops up and says "Bad ID". Not sure whether this helps in any ways but thank you for your attention.
Title: Re: (Version 2.0.2) Spotify Integration Plugin
Post by: zkhcohen on April 10, 2021, 03:29:45 AM
Version 3.0.5 released:

PKCE auth. method now automatically renews tokens when necessary, even between restarts.
General performance improvements.

https://www.mediafire.com/file/rex368art4yr1wh/mb_Spotify-Plugin.zip/file

NOTE: I did notice some artifacting issues and I also noticed that the "Please Click to Authenticate" erroneously appears after a restart. I'm working on resolving these issues.
Title: Re: (Version 3.0.5) Spotify Integration Plugin
Post by: zkhcohen on April 10, 2021, 03:33:48 AM
I really love the idea of this plug and it would make things a lot better, but it doesn't work for me, I don't know if the current state of the plugin just doesn't work or its on my end, whenever I click "configure" nothing happens, and when I authenticate from the "Spotify Plugin" window on the right side it says "No Track Found!" which does not change after trying 20 different songs, both on desktop and the web client, whenever I click the right side of the "No Track Found!" a window pops up and says "Bad ID". Not sure whether this helps in any ways but thank you for your attention.

There are no configuration options.

Spotify is picky about how tracks and artists are named, so that could be part of it. Unique cataloging/naming schemas may cause it to fail.
Title: Re: (Version 3.0.5) Spotify Integration Plugin
Post by: zkhcohen on April 11, 2021, 11:08:38 PM
Beta 3.1: Bug fixes for network disconnections, refreshing, various other things.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: KlausZeFlammenwerfer on April 29, 2021, 03:16:29 PM
There is an issue with the last update for me, it functions significantly better than before but now there is a problem that occurs when switching playlists, whenever I click on a playlist and then switch to another, the album cover gets stuck on the screen until I refresh or click on a track's name, it also increases the playlist load times by 2-3 seconds for me (could be related to using an external hard disk).

How the described issue looks:
(https://i.imgur.com/DcKkauS.png)
Additionally, a similar issue happens to the wavebar but I am not sure whether this is 100% caused by this plugin since it only occurs occasionally:
(https://i.imgur.com/4frCr77.png)
Edit: The wavebar issue fixes itself whenever I hover over it
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: zkhcohen on April 29, 2021, 03:18:50 PM
There is an issue with the last update for me, it functions significantly better than before but now there is a problem that occurs when switching playlists, whenever I click on a playlist and then switch to another, the album cover gets stuck on the screen until I refresh or click on a track's name, it also increases the playlist load times by 2-3 seconds for me (could be related to using an external hard disk).

Hmm. Unfortunately I've had this issue off and on. I need to reach out to Steven to diagnose exactly what's happening here, as I believe all of the refreshes are being handled on the GUI thread.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: eriqjaffe on May 10, 2021, 07:49:45 PM
I just came across this, and it's great - I like being able to add tracks and albums to the Spotify library, but would it be possible to just add the current track to my "Liked Songs", or at least to a playlist?
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: naiops on May 13, 2021, 09:49:54 PM
Just added this plugin and now i am getting and error and unable to open musicbee:

MusicBee v3.4.7764.37422D  (Win10.0), 13 May 2021 16:46:

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at #=z1v6HwQ___W9fot3mUPBSD6cwyKsC.#=zmUw7SxaierzU(#=z66JHsCuXzfaD #=zp0zifZ0=, Boolean #=zV7qbRycJF38UEFkjaw==)
   at #=z1v6HwQ___W9fot3mUPBSD6cwyKsC..ctor()
   at #=zSl3nx0ysuCOud6pBLQbkG83fN5Ji.Main(String[] args)

Any ideas? i tried removing the files i added in the plugins dir, restarting pc, running as an admin but its still occurring
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: zkhcohen on May 13, 2021, 09:52:05 PM
Just added this plugin and now i am getting and error and unable to open musicbee:

MusicBee v3.4.7764.37422D  (Win10.0), 13 May 2021 16:46:

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at #=z1v6HwQ___W9fot3mUPBSD6cwyKsC.#=zmUw7SxaierzU(#=z66JHsCuXzfaD #=zp0zifZ0=, Boolean #=zV7qbRycJF38UEFkjaw==)
   at #=z1v6HwQ___W9fot3mUPBSD6cwyKsC..ctor()
   at #=zSl3nx0ysuCOud6pBLQbkG83fN5Ji.Main(String[] args)

Any ideas? i tried removing the files i added in the plugins dir, restarting pc, running as an admin but its still occurring

This one will have to go in the bug forum for Steven to look at, as the functions are obfuscated.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: naiops on May 13, 2021, 09:56:39 PM
Thanks, ill put that in now
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: vaninou on May 23, 2021, 07:15:42 PM
Hi,
I just installed musicbee and the spotify integration plugin, and I am running into an undefined reference error when trying to interact with the player. In the preferences menu, Plugins section, I can't configure the plugin either. It is correctly enabled though.
The player version is the 3.4.7805.

Code
MusicBee v3.4.7805.33439D  (Win10.0), 23 mai 2021 20:05:

System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
   à MusicBeePlugin.Plugin.<ReceiveNotification>d__21.MoveNext()
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
   à System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
   à System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   à System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   à System.Threading.ThreadPoolWorkQueue.Dispatch()
   à System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Natur Brilian on May 27, 2021, 06:37:28 AM
why is this? because I use the windows store version here. The problem is in the screenshot
(https://i.imgur.com/N3k6xcg.png)
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Pack27 on June 05, 2021, 10:57:22 PM
I wanted to thank you for making this plugin! It saved me so much time, I wish I could donate $$ if it's possible! Have a great day.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Citfield on June 07, 2021, 02:57:37 PM
Good day
I am trying to use the plugin with the latest Musicbee. However, when i click on the configure button, nothing happens.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: derausgewanderte on June 12, 2021, 03:38:17 PM
I installed, ensured permissions of the plugin folder are set to allow.
Plugin is in the settings, configure button does not respond (maybe nothing to configure). When I play a song, this is what I get and MB crashes.
any idea what I'm doing wrong?
cheers

MusicBee v3.4.7805.33439D  (Win10.0), 12 Jun 2021 10:34:

System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.Plugin.<ReceiveNotification>d__21.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: (Version 3.1) Spotify Integration Plugin
Post by: draykid on June 19, 2021, 05:23:49 PM
I get an error when I try to install the plugin

Quote
One or more required types cannot be loaded. Retrieve the LoaderExceptions property for more information

I am not sure if I am installing the plugin correctly as the instructions are not very clear. The zip file contains Plugins folder and Source Files folder but I only move what's inside the Plugins folder to my Musicbee folder?
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: jkingsbury on July 25, 2021, 10:31:59 PM
I have exactly this issue, as the instructions aren't clear......


I get an error when I try to install the plugin

Quote
One or more required types cannot be loaded. Retrieve the LoaderExceptions property for more information

I am not sure if I am installing the plugin correctly as the instructions are not very clear. The zip file contains Plugins folder and Source Files folder but I only move what's inside the Plugins folder to my Musicbee folder?
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: jkingsbury on July 25, 2021, 10:55:45 PM
And this....I extracted the files from the download Plugins folder to the MusicBee Plugins folder - however there are still alot of files left in the download plugins folder. What do you do with these?

Good day
I am trying to use the plugin with the latest Musicbee. However, when i click on the configure button, nothing happens.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: trevor.snider on March 08, 2022, 07:04:22 PM
Greetings. First time posting. First LOVE MusicBee. Won't bore anyone with my setup. Trying to use the Spotify plugin (3.1) and keep having the same issue. "Configure" button does nothing. After trying a few times, however, I get the below error. Anyone have a fix or can point me in the right direction? MUCH appreciated!

v3.4.8033.18564D  (Win10.0), 6 Mar 2022 16:58:

System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.Plugin.<ReceiveNotification>d__21.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: (Version 3.1) Spotify Integration Plugin
Post by: hiccup on March 08, 2022, 07:46:44 PM
Welcome to the forum trevor.snider
Not saying this will solve it, but as a start you could update MB to the most current version of 3.4, or better yet to 3.5.
https://getmusicbee.com/patches/
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: MeWantCookiee on April 26, 2022, 12:13:52 AM
Hey, did you find a solution?
I'm having the same problem. Already patched musicbee to its latest version.

Greetings. First time posting. First LOVE MusicBee. Won't bore anyone with my setup. Trying to use the Spotify plugin (3.1) and keep having the same issue. "Configure" button does nothing. After trying a few times, however, I get the below error. Anyone have a fix or can point me in the right direction? MUCH appreciated!

v3.4.8033.18564D  (Win10.0), 6 Mar 2022 16:58:

System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.Plugin.<ReceiveNotification>d__21.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: (Version 3.1) Spotify Integration Plugin
Post by: Redearth on June 11, 2022, 07:25:02 PM
People should know this plugin has been dead for 1-2 years with that same error message. This error has been reported several times by people trying to install this plugin, and there's never been a solution or an update to the plugin.

The author of the plugin is still active on this forum, but he's been silent on this plugin and this thread for over a year, where his last post said he wasn't yet able to fix it.

Unless he wants to come back and address any of it I'm not sure it's worth continuing this thread. Several people have continued to post about the same error for well over a year and it has never been solved.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: hiccup on June 11, 2022, 07:31:31 PM
He didn't provide access to the source code either, so unless he returns, there's no point for this thread to continue.
Have you made any attempt to contact him personally before posting this?
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Redearth on June 11, 2022, 10:40:21 PM
I reworded it a bit because I didn't mean it to sounds harsh, my focus was on letting new users know as soon as possible that yes, it's broken.

I considered reaching out to him but saw he has been active on this forum, so didn't see a point. He could have come and addressed this several times for over a year and was able to solve the issues when he was here. Doesn't really need me to say anything, he's already here.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: phred on June 11, 2022, 11:42:12 PM
Doesn't really need me to say anything, he's already here.
Except he hasn't been on the forum since last March. So perhaps a PM to him would be in order.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Redearth on June 12, 2022, 01:32:25 AM
Go for it. He had an entire year. I don't care about this plugin, I was just trying to be helpful and tell people it's broken since that isn't mentioned anywhere else.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Redearth on June 14, 2022, 03:08:22 AM
Would any moderator perhaps consider acknowledging this plugin has been broken for 1-2 years and like to tell new users that this plugin is broken? Is that a thing here?
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: phred on June 14, 2022, 03:31:00 AM
Would any moderator perhaps consider acknowledging this plugin has been broken for 1-2 years and like to tell new users that this plugin is broken? Is that a thing here?

Have you made any attempt to contact him personally before posting this?

Except he hasn't been on the forum since last March. So perhaps a PM to him would be in order.

I'm a moderator and I'll not only suggest what I said to you previously, but also what one other user said, and you didn't answer either one of us. Have you tried contacting the plugin developer via a PM?
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: hiccup on June 14, 2022, 06:59:38 PM
Would any moderator perhaps consider acknowledging this plugin has been broken for 1-2 years and like to tell new users that this plugin is broken? Is that a thing here?

It isn't and I think it shouldn't.

Users that created and shared their contributions over time may still be active with developing and improving on it, or they may have some pause on it, or they may have abandoned it completely.
(loss of interest, prison, death, angry wife, etc.)

How would a moderator have better insights in this than any other user such as you or me?

We can all read the thread and draw our own conclusions.

E.g. after a brief search I have found that the developer (zkhcohen) has stated on a couple of occasions that he is very busy in real life.
(so, not dead, no angry wife, which is good)

Also I found that his downloads contains the source code. So anybody is welcome to pick things up.

If that's all unsatisfactory to you, try to contact the developer yourself.

There is no need for some moderator to do that for you.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Redearth on June 20, 2022, 09:29:25 AM
My god. Download plugin. Doesn't work. The end.
What's the complication? I'm not trying to harm the developer.
Plugin doesn't work. Is this a cult?
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Redearth on June 20, 2022, 11:15:20 AM
Btw, any new posters.: This plugin doesn't work, no one can help you, sorry to waste your time.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: phred on June 20, 2022, 01:18:35 PM
My god. Download plugin. Doesn't work. The end.
What's the complication? I'm not trying to harm the developer.
Plugin doesn't work. Is this a cult?
Btw, any new posters.: This plugin doesn't work, no one can help you, sorry to waste your time.
I've asked you before to stop bashing plugins that you don't like. A simple PM to the developer has been suggested to you more than once yet you haven't said that you've done that. In addition, another reply in this thread has informed you that the plugin developer has a real life and is quite busy.

This is the third thread I've come across today where you are bashing a plugin. I'll say it politely once more: knock it off. Develop it yourself if you don't like what's currently available.

One final comment: These plugins that you're complaining about are free. As is MB. Absolutely free. They owe you nothing.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: zkhcohen on June 20, 2022, 05:15:12 PM
Btw, any new posters.: This plugin doesn't work, no one can help you, sorry to waste your time.

I don't get notified on updates to these threads, but I do get emails via PM. I have too much going on to regularly maintain this plugin since I no-longer use it personally. I actually monitor some of my other plugins.

That being said, I'll try to make some time to fix it today.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Redearth on June 27, 2022, 08:27:58 AM
Appreciate your time. Any luck on getting the plugin to work?
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Redearth on June 27, 2022, 10:01:45 AM
I've asked you before to stop bashing plugins that you don't like. A simple PM to the developer has been suggested to you more than once yet you haven't said that you've done that. In addition, another reply in this thread has informed you that the plugin developer has a real life and is quite busy.
Not "don't like". Not at all. Broken. Broken. Doesn't work. No one responds to the fact that this is broken.

This is the third thread I've come across today where you are bashing a plugin. I'll say it politely once more: knock it off. Develop it yourself if you don't like what's currently available.
I've actually tried developing for and against these plugins.
I've posted my analysis on the source code. You've done none of that.

What have you contributed towards this, or any other plugin? What have you contributed towards any other plugins? Any other plugin? Have you coded anything?

Hundreds of posts don't help. They're just hundreds of posts.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: phred on June 27, 2022, 12:49:25 PM
No one responds to the fact that this is broken.
The plugin developer has stated that he's quite busy with life. Then he said "I'll try to make some time to fix it today." The key word is "try."

Quote
I've posted my analysis on the source code. You've done none of that.
Correct.

Quote
What have you contributed towards any other plugins? Any other plugin? Have you coded anything?
No, I haven't. Because I don't pretend to be a developer.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: zkhcohen on June 27, 2022, 03:01:18 PM
Appreciate your time. Any luck on getting the plugin to work?

No, I caught COVID and now I'm behind on work.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: hiccup on June 27, 2022, 06:46:47 PM
Any luck on getting the plugin to work?
No, I caught COVID and now I'm behind on work.
Good luck, I wish you regain your health soon.

And please don't feel pressured by the nasty comments in this thread to do something, or reveal anything about your personal situation.
They don't deserve that, nor do they need to know such details.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Redearth on June 30, 2022, 09:54:48 AM
I've actually tried developing for and against these plugins.
I've posted my analysis on the source code. You've done none of that.
Correct.
Quote from: Redearth
What have you contributed towards this, or any other plugin? What have you contributed towards any other plugins? Any other plugin? Have you coded anything?
No, I haven't. Because I don't pretend to be a developer.
Thanks, sorta think we're done here.

I've tried posting things I thought would help and I was reprimanded/attacked.

I responded each time. And each time there was pretense that I initiated the exchange. Then I responded, and responded.
Responses became continuations. It doesn't end, and it seems like it will never end.

There seems to be some pretense where I am the "troll". I have only defended myself and working plugins on this forum.
This forum seems to give a purpose to some. I've no issue with that. But this culture leads to worse plugins and is resistant to to new users.

The focus should be on users of MusicBee, not forum members.
It isn't as complicated as some make it out to be.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: zkhcohen on July 02, 2022, 06:28:34 PM
So... there are a number of issues here, but the big blocker is that MusicBee doesn't seem to support .NET 6.0, which the Spotify C# API is supporting going forward.

I upgraded the project, tested, and it didn't even appear in the options.

I'll try to fix the old version, but I'm not going to invest a lot of time since the API is now beyond support, and is likely to change in the next year.

---

EDIT: I'm not able to replicate any the issues that are being reported with the old version. Maybe this is simply an issue with people not following the instructions and copying all of the .dlls to the plugins folder? The config button doesn't do anything. Add the Spotify plugin to your side panel and click on it to authenticate with your Spotify account.

---

EDIT 2: Here's a video of me demonstrating that it works. I admit, there are some issues with clicking/updating that could be sorted out. This was written a long time ago, and these issues weren't present at the time.

https://drive.google.com/file/d/1HDB4lidXQvQOR7zYm0PUpnf5oSXWhsyo/view?usp=sharing
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: raalaps on September 11, 2022, 04:42:26 PM
Hey can you please guide how exactly i need to extract and the location in order to use use this plugin.
(https://imgur.com/a/cRiAA8w)

please help
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Redearth on October 22, 2022, 08:52:03 AM
Hey can you please guide how exactly i need to extract and the location in order to use use this plugin.
(https://imgur.com/a/cRiAA8w)

please help

They will not!

You can try to get in touch with them here: https://getmusicbee.com/forum/index.php?topic=36952.0 (https://getmusicbee.com/forum/index.php?topic=36952.0), or just try new threads and click to the end and hope for the best!

Btw this plugin is broken, has been broken for 2 years. Anyone who visits this thread in hopes of getting the plugin to work should know not to spend any more time.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: hiccup on October 22, 2022, 09:15:59 AM
They will not!
So you keep thinking that you are speaking for other people.
You aren't and you shouldn't do that.

Also, read zkhcohen's post right before yours and raalaps's.
Besides zkhcohen having invested a lot of his valuable time and effort in creating something for MusicBee and it's user base, he additionally made the effort to explain the current problems very well.
So either you didn't read that, or you decided to ignore it.

You just keep posting negative and incorrect comments on this forum, and criticizing other users and creators.
Really, (I think I asked before): What is your goal with all this nonsense?
Or are you just bored and frustrated?

The latter would qualify you as being a troll.
Which should be handled accordingly.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: zkhcohen on October 29, 2022, 08:16:52 AM
Hey can you please guide how exactly i need to extract and the location in order to use use this plugin.
(https://imgur.com/a/cRiAA8w)

please help

They will not!

You can try to get in touch with them here: https://getmusicbee.com/forum/index.php?topic=36952.0 (https://getmusicbee.com/forum/index.php?topic=36952.0), or just try new threads and click to the end and hope for the best!

Btw this plugin is broken, has been broken for 2 years. Anyone who visits this thread in hopes of getting the plugin to work should know not to spend any more time.

I posted a video of it working... Not only that, but the video shows me installing the plugin.

What version of MB are you on? How are you setting up the plugin?

Can you send a video of you performing the same steps I did in mine?
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: aktimoose on November 06, 2022, 01:00:32 PM
Any time I play a track using this plugin, my MusicBee throws an error and then crashes.

Code
MusicBee v3.4.7764.37422D  (Win10.0), 6 Nov 2022 12:52:

System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.Plugin.<ReceiveNotification>d__21.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()

Initially thought it was an incompatibility with another plugin, but this same error happens even when I clear both my C:\Program Files (x86)\MusicBee\Plugins folder and my %appdata%\MusicBee\Plugins folder and only install this one. Anyone have any idea how to fix this?
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: hiccup on November 06, 2022, 01:16:14 PM
Welcome to the forum aktimoose.

I have no idea if it will solve it, but your MB version is more than one and a half years old.
Perhaps update it to the most recent 3.5 patch update version and try again?

Also, you colour formatted the text making it practically unreadable when using the forum's dark theme.
I suggest that you remove that colour formatting, or use one of the colours the edit panel suggests.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: phred on November 06, 2022, 01:21:21 PM
I edited the color tags on the post so that they're readable by dark theme users.

My question to @aktimoose is: do you have two installations of MB on your PC? If you don't then you should not have two paths to the plugins directory. If you're using the Installer version, C:\Program Files (x86)\MusicBee\Plugins is correct. If you're using the Portable version then %appdata%\MusicBee\Plugins is correct. If you're running an Installer and a Portable then that's fine. Otherwise there should not be two paths.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: aktimoose on November 06, 2022, 01:25:37 PM
I have no idea if it will solve it, but your MB version is more than one and a half years old.
Perhaps update it to the most recent 3.5 patch update version and try again?

I've updated my version to the latest beta (3.5.8296) and still get the same error.

My question to @aktimoose is: do you have two installations of MB on your PC? If you don't then you should not have two paths to the plugins directory. If you're using the Installer version, C:\Program Files (x86)\MusicBee\Plugins is correct. If you're using the Portable version then %appdata%\MusicBee\Plugins is correct. If you're running an Installer and a Portable then that's fine. Otherwise there should not be two paths.

I'm using the Installer version, and both paths appear to work (If I put a plugin in one and not the other, it works). My %appdata%\MusicBee\Plugins is entirely empty and I solely use the C:\Program Files (x86)\MusicBee\Plugins folder.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: phred on November 06, 2022, 01:28:06 PM
I'm using the Installer version, and both paths appear to work (If I put a plugin in one and not the other, it works). My %appdata%\MusicBee\Plugins is entirely empty and I solely use the C:\Program Files (x86)\MusicBee\Plugins folder.
Hmmm ... I have no further suggestions/ideas. You'll probably have to wait for the plugin's developer to take a look at it.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: ROBYER1 on November 24, 2022, 03:18:59 PM
Any time I play a track using this plugin, my MusicBee throws an error and then crashes.

Code
MusicBee v3.4.7764.37422D  (Win10.0), 6 Nov 2022 12:52:

System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.Plugin.<ReceiveNotification>d__21.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()

Initially thought it was an incompatibility with another plugin, but this same error happens even when I clear both my C:\Program Files (x86)\MusicBee\Plugins folder and my %appdata%\MusicBee\Plugins folder and only install this one. Anyone have any idea how to fix this?

Same error here, the plugin maker kindly included the source files in the plugin download so I'm sure if they are too busy, one of us can suss this out. I'll take a look sometime myself too to see what's gone wrong but I'm more of a game programmer than a native plugin programmer. I disabled the plugin for now in my install of the Windows Store version.

For me the plugin didn't ever install or work properly until I installed this other spotify plugin first https://www.getmusicbee.com/addons/plugins/340/copy-spotify-url/
was something to do with EmbedIO.dll every time I tried to install, or the plugin couldn't access musicbeeplugin.plugin until I installed that other plugin first then tried to install spotify integration plugin by navigating to the mb_Spotify-Plugin.dll using the 'Add Plugin' button in MusicBee.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: Dedken on December 09, 2022, 04:47:37 PM
Hello,

I'm a brand new MB user and I am in no way a coder or techie. Although this plugin doesn't actually do what I hoped it would do, I have nevertheless managed to install it and get it to work exactly as the designer intended (I think, anyway!).  I achieved this by:

a) making sure I had the latest downloads of MB (from the website, not the Windows store) and of this plugin.
b) following the steps in the video above exactly, making sure the correct files were copied to the correct location.

If you do this I don't see why it wouldn't work.

Things to note:
c) the plugin takes a track playing from your physical library (you know, the one on your PC etc) and then mirrors it to Spotify.
d) this enables you to very quickly add your owned library to your streaming library (by clicking on the 'Track/Album Saved in Library' etc link), providing that track exists on Spotify.
e) that's it. That's all it does.

Therefore you have to be playing a track from your physical library, for it to show in the plugin. If you are not playing a track from your physical library then you will see the 'No track found! comment. Although that said, it sometimes finds a similarly named track instead of the correct one.

What the plugin does not do:
f) play tracks in the Spotify client.
g) sync tracks in reverse from Spotify to MB - it's a one-way syncing service.

Bonne chance!
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: meta on March 15, 2023, 05:26:04 PM
Any time I play a track using this plugin, my MusicBee throws an error and then crashes.

Code
MusicBee v3.4.7764.37422D  (Win10.0), 6 Nov 2022 12:52:

System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.Plugin.<ReceiveNotification>d__21.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()

Initially thought it was an incompatibility with another plugin, but this same error happens even when I clear both my C:\Program Files (x86)\MusicBee\Plugins folder and my %appdata%\MusicBee\Plugins folder and only install this one. Anyone have any idea how to fix this?

Same error here, the plugin maker kindly included the source files in the plugin download so I'm sure if they are too busy, one of us can suss this out. I'll take a look sometime myself too to see what's gone wrong but I'm more of a game programmer than a native plugin programmer. I disabled the plugin for now in my install of the Windows Store version.

For me the plugin didn't ever install or work properly until I installed this other spotify plugin first https://www.getmusicbee.com/addons/plugins/340/copy-spotify-url/
was something to do with EmbedIO.dll every time I tried to install, or the plugin couldn't access musicbeeplugin.plugin until I installed that other plugin first then tried to install spotify integration plugin by navigating to the mb_Spotify-Plugin.dll using the 'Add Plugin' button in MusicBee.

I think the issue is due to missing steps that seems to only be shown in the video. After copying the files to your Plugins folder, you need to enable the mb_spotify_plugin element on Layout (1). Once this is saved, you will be taken to the Spotify page to approve access to your account. After that is approved, you can play music in Musicbee with no errors. Here are the steps I took:

1. Closed Musicbee if open
2. Downloaded the plugin ZIP file
3. Extracted the contents
4. Copied the DLL files from the Plugins folder
5. Pasted the DLL files here: C:\Program Files (x86)\MusicBee\Plugins
6. Launched Musicbee
7. While on the Music tab, opened the Edit Preferences
8. Selected the Layout (1) option
9. Clicked the Arrange Panels button
10. Placed a check next to the mb_spotify_plugin option in the Available Elements section
11. Clicked Save and Save to exit Preferences
12. Taken to a Spotify page to authorize the Music Bee Spotify PKCE to access my Spotify account
13. Clicked on Agree
14. Taken to a Success page

From there, you should see a Spotify Plugin panel visible on the Music tab (bottom right corner on default skin) that will allow you to add the currently playing Track, Album, Artist to Spotify.

I think it is the missing panel and authentication steps that are causing this error to occur.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: MBitCZ on September 01, 2023, 04:43:41 AM
So NB observations :

After 3 hours I can confirm that plugin works (as intended not as I expected :-))

Please be aware as stated above that plugin does only this

Quote
Things to note:
c) the plugin takes a track playing from your physical library (you know, the one on your PC etc) and then mirrors it to Spotify.
d) this enables you to very quickly add your owned library to your streaming library (by clicking on the 'Track/Album Saved in Library' etc link), providing that track exists on Spotify.
e) that's it. That's all it does.

I use steps from post above.

And here are some tricky parts which I must overcome (maybe related to the problem of user "aktimoose")

1) My installation is from the site not store (but maybe in past I have it from store), so I rather check and have obviously Plugins folder under the Program Files but also! in AppData/Roaming/MusicBee
2) I install some test plugin from MB from zip, to see where it will be stored - it saves under AppData/Roaming/MusicBee/Plugins so I use this folder for spotify plugin
3) Follow instructons above - the mb_spotify_plugin after click on it put itself to right panel - nothing happen then (no authorization)
4) In right panel where you can also change to lyrics I found finaly spotify plugin - after change to it , it takes me to auth page - and voila it works

and finaly thx to author of plugin
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: renius28 on October 26, 2023, 06:37:50 AM
@meta You're a life-saver. With the developer's video down, there are no written instructions to install this plugin. With your steps, I can confirm that the plugin continues to function. This makes following artists from my personal collection a lot easier.
Title: Re: (Version 3.1) Spotify Integration Plugin
Post by: brandonluciano824 on December 28, 2023, 07:17:03 AM
Thanks to meta's post, plugin works perfectly for what I need it to do.

I did however end up using my secondary spotify account, would anyone know how to swap to authorize an different account instead? Would I have to uninstall and reinstall, I haven't tried incase it breaks something? I am dumb, there's an option to reauthenticate where it shows the track information.

I've got over 10K tracks, I'll have to manually add everything so I can add it to Spotify, got my work cut out for me  :)