getmusicbee.com

MusicBee & Add-Ons => Customizations => Plugins => Topic started by: Steven on June 05, 2011, 09:43:25 PM

Title: Subsonic Client
Post by: Steven on June 05, 2011, 09:43:25 PM
*** this plugin has been replaced ***
see the end of this topic for the latest information.
The download link is now on:

https://github.com/midwan/MB_SubSonic/releases
or the official Plugin page http://musicbee.wikia.com/wiki/Subsonic_Client




-------------------------------------------------------
Subsonic (http://www.subsonic.org/pages/index.jsp) is an application that allows you to access your music files from any location with internet access to a home server you host your music files on. This plugin enables MusicBee to access those music files via Subsonic.

Subsonic Plugin (MB_SubSonic.dll)
http://www.mediafire.com/?j6iklfm8kzhfpkt

- if you dont have a Plugins sub-folder where MB is installed create one
- copy MB_SubSonic.dll to the Plugins sub-folder
- you should end up with something like: c:\program files\MusicBee\Plugins\MB_SubSonic.dll
- restart MB, and in the Plugin preferences enable Subsonic
  - host is your server name without the http:// at the start
  - port is the server port
  - path is normally the default "\" but it is possible to configure subsonic to be something else so you need to enter the same
  - username
  - password
  - transcode stream - only tick if you need to reduce the size of the file streamed from the server because the connection is slow
- on clicking Apply, MB will validate the settings - any errors are those as returned by Subsonic and I probably wont be able to help so you might need to visit the Subsonic forum for help

If no error is reported on setup, a Subsonic drive will appear in the computer section. Clicking the parent node will show the entire library, but you can also view playlists and folders. It will take some time to initially load the main Subsonic node the very first time (several minutes to 30 minutes for very large libraries on slow connections). It should be quick from then on

You can reference the subsonic drive from Auto-Playlists, the Auto-DJ or create manual playlists (but in all cases these reside in your MusicBee library, not on the Subsonic server). If you add files to your local MusicBee library, MB will keep track of playcounts and enable ratings to be stored (but only in the local MusicBee library cache, not on the server).

In the main panel, MusicBee will only show the tags that Subsonic makes available which are the basic ones you need (Artist, Title, Album, Track#, Year, Genre and Duration). Unfortunately it doesnt include Album Artist.
Title: Re: Subsonic Client
Post by: Conure on June 09, 2011, 06:30:09 PM
We have a Subsonic server and I set this up to work in MB with no problems whatsoever.

Thank you for the excellent tutorial!

Tom
Title: Re: Subsonic Client
Post by: BigHam1 on June 11, 2011, 01:15:42 AM
Holy smokes, this could be huge! I was just looking at Subsonic to stream my music library to my Android phone.

So, essentially, the added functionality would allow us to use MusicBee running on an outside computer (work, laptop) to access our music files on whatever computer is acting as the subsonic server (home pc or other) - is that correct?

Is there added functionality over just telling the subsonic client to "use external player"? Does MusicBee treat the files on the subsonic server as a "subsonic library" of sorts? :o
Title: Re: Subsonic Client
Post by: Conure on June 13, 2011, 05:37:03 PM
It basically allows you to use MB's interface instead of the Subsonic interface.
Title: Re: Subsonic Client
Post by: Guegs on June 13, 2011, 11:32:31 PM
So am I supposed to be able to browse the files on my subsonic server by artwork? If this is what it does, then it doesn't work for me. I can listen to them only if I click the little '+' symbol.
Title: Re: Subsonic Client
Post by: Steven on June 14, 2011, 06:20:39 AM
you can browse by artwork. I dont understand what you mean by "I can listen to them only if I click the little '+' symbol."
Title: Re: Subsonic Client
Post by: Guegs on June 14, 2011, 10:39:44 PM
The little '+'  symbol that is to the right of where you click the Subsonic icon.
Title: Re: Subsonic Client
Post by: Steven on June 14, 2011, 10:44:17 PM
i'm afraid i have no idea what you are referring to.
you should see a subsonic node in the computer section which when u click on it will show the files in the main panel, and you can change views/play the files as your normal library
Title: Re: Subsonic Client
Post by: sytanek on June 29, 2011, 09:21:43 PM
I think I have replicated what his issue was. I have parent category in subsonic called Music, If I click that it is not pulling the music art for the recursive folders underneath it, however if I go one level lower and click an artist, it does scan recursively from there.

Actually I just got mine working, had to leave it on the main subsonic folder, and wait about 35 minutes. lol.
Title: Re: Subsonic Client
Post by: Enursha on August 08, 2011, 01:27:00 PM
Help - Different issue

I can see all my music listed under "Computers -- Subsonic" and I'm able to listen to it when access from here, but they aren't listed in the library. I've added subsonic as monitored folder under library preferences, anything else I'm missing because I'd really like using the Auto DJ function and subsonic doesn't show as a source.
Title: Re: Subsonic Client
Post by: Steven on August 08, 2011, 02:07:08 PM
you should be able to select Subsonic as a Folder source in the auto-dj
Title: Re: Subsonic Client
Post by: Enursha on August 08, 2011, 02:17:11 PM
Ah, see, I forgot to tell you I can be a bit stupid, I was looking at library as a sorce, didn't even consider folder. Cheers

Title: Re: Subsonic Client
Post by: greenday1987 on August 12, 2011, 01:22:41 PM
You can't run this over an encrypted server but it's pretty easy and good otherwise. Cheers Steven
Title: Re: Subsonic Client
Post by: vala on January 04, 2012, 08:27:26 AM
Very good plugin, works like a charm - thanks.

Any attempt to support https connections? Would be nice to use MusicBee everywhere with a subsonic installation @home.

Title: Re: Subsonic Client
Post by: Steven on January 04, 2012, 09:34:16 AM
i never looked at https
the subsonic developers had no interest in even replying to my requests and i dont plan to update this plugin any further

Title: Re: Subsonic Client
Post by: greenday1987 on January 04, 2012, 10:30:43 PM
Not sure what's happened, I assume it's SS's end but it now detects my music in a folder structure it previously didn't which is pretty epic. it seems that it won't group albums that are set as 'Various Artists' as so. Each song is shown as a separate artist with a single album. Even though 'Group by' is 'Artist' and 'Sort by' is 'Album Artist/ Album.' Can anyone confirm this?
Title: Re: Subsonic Client
Post by: Steven on January 04, 2012, 10:35:41 PM
subsonic doesnt support the album artist field - if you see Various Artists it would mean that the value of the Artist field
Title: Re: Subsonic Client
Post by: Steven on March 01, 2012, 07:48:48 PM
added a .NET4 build - see the first post
Title: Re: Subsonic Client
Post by: phred on March 02, 2012, 01:00:35 AM
Thank you, Sir.
Working just fine.
Title: Re: Subsonic Client
Post by: stobesel on March 21, 2012, 07:17:32 AM
Hi,

I seem to have the same issue here on windows 7 using either MusicBee 1.4 or 2 on a larger Subsonic library (~28,000 tracks).

After I configured Subsonic, I see the Subsonic directory tree under the computer browser and can expand the tree with no problems.  The tree looks like the following:

+ Subsonic
    + Music
        + artist
        + artist
        ...

If I click on Subsonic or the Music lines, nothing appears in the center panel under Genre's, Artists, albums, etc. Only when I select an artist in the Subsonic tree will anything appear in the center panel and then it is only the selected artists. Once at this level, I can select the tracks and play them with no issue.

I've also tried adding the Subsonic folder to the auto-dj but without success. Everything configures fine and Musicbee reports that auto-dj has started but only the seed track ever appears or plays.

I think I've checked everything but am obviously missing something. Can anyone help me with this?

*Edit*

When I click "Music" from the tree above, the Subsonic server logs a stack trace with the following error:

     WARN RESTController - Error in REST API. org.apache.commons.codec.DecoderException: Odd number of characters.
Title: Re: Subsonic Client
Post by: carbonic on September 12, 2012, 12:48:34 PM
So, I tried using this plugin but can't get the songs to play. Under "Computer" there's successfully a "Subsonic" submenu with a "Music" folder inside containing all the bands with music inside.
However, when I try to play one of these music numbers it says "The souce file for track x could not be found" where x is the name of the song I last played successfully and NOT the song I actually was trying to play.

I've tried adding Subsonic to "scan on startup" and messed around a bit but nothing seems to work. Anyone got any idea?
Using MusicBee 2.0.4636 beta and the .NET4 version.

Here's an example of a log entry from MusicBee when it happens:
12-09-2012 18:15:02 - 6.1.7601.65536 - 2.0.4636.31608 - url: Subsonic:\Music\Bandname\Band - Songname\filename.mp3
System.IO.FileNotFoundException: Unable to find the specified file.
   at #=qgKcYLP16lOgv1txoFRXoYV7ilov$lo$TB1K2GRaEBXs=.#=qxL2vD74_DWJgIVC3kKbU3g==(#=qas2uJ8v5F4Z8SduzABeEEPmJKe9jXOFFahgDrsllfEF3BGegy5TUPQbABptk9j6p #=qLHl5Eum1SJKyNN_yT8Z8UQ==, #=qNbwa4gJtY7Rg8o8Ft7Rx44NcYdSK2EgI4hgSvtgGwvs6_paJbAC_cSkro$y_vQcM #=qfrl1anJIHImGW193CGNq6A==, Boolean #=qj5u5dcC$MS7pK9ZdsAVItw==, Boolean #=qPNWsRSNEoyKokfp08zbyJg==, Int32 #=q7aYyA_yl6c$XKvBd3HhK4O82w0g_KXpiOUIrLE7PRKo=)
   at #=qgKcYLP16lOgv1txoFRXoYV7ilov$lo$TB1K2GRaEBXs=.#=q_dGgNTIyWKlp2Mc720FAxQ==(Object #=qqpe59DCuR$W1ml4mB2PFWw==)
Title: Re: Subsonic Client
Post by: PureHamster on September 16, 2012, 12:32:31 AM
I'm trying to get the plugin setup but am running into an error after entering my server information:

Error: The server committed a protocol violation.
Section=ResponseStatusLine

I'm able to use Subsonic through the web interface fine, so I know all the information is correct. Any advice on getting it working would be much appreciated. I've tried using http and https ports, when using http I get a security failure and https gives the error mentioned above.

Thanks
Title: Re: Subsonic Client
Post by: RevMen on October 13, 2012, 12:11:09 AM
Thank you for this wonderful plugin.  Everything works for me except for one quirk.  When I attempt to play any FLAC files from the subsonic server I get an unable to play/corrupt file error message.  UNLESS I play a local FLAC file first.  As long as I play a local FLAC file after opening the program I can play them off the server just fine.  All other formats seem to work without any special steps.
Title: Re: Subsonic Client
Post by: greenday1987 on October 13, 2012, 10:28:48 AM
I'm trying to get the plugin setup but am running into an error after entering my server information:

Error: The server committed a protocol violation.
Section=ResponseStatusLine

I'm able to use Subsonic through the web interface fine, so I know all the information is correct. Any advice on getting it working would be much appreciated. I've tried using http and https ports, when using http I get a security failure and https gives the error mentioned above.

Thanks
I take it the port set in MB is correct (port 80 I would imagine) and if in 'C:\Programs\MusicBee\Plugins\' you right-click 'MB_SubSonic.dll' & 'MB_SubSonic.dll.config'' there's no suggestion that they are blocked?
Title: Re: Subsonic Client
Post by: Nick1787 on January 30, 2013, 12:41:15 AM
Any chance you're considering expanding this to support multiple servers?  This would be a nice added feature.

Also, is the source readily available anywhere?  Id like to look at it and see your implementation and possible adapt it to add more features.

Thanks
Title: Re: Subsonic Client
Post by: Steven on January 30, 2013, 07:08:00 AM
there is no chance i will look to enhance this plugin but if any developer reading this wants to enhance it then i am happy to provide the code for it. Its done with VB.NET
Title: Re: Subsonic Client
Post by: ufkal on February 01, 2013, 03:35:07 PM
I just saw this as a plug in, and I got to say, I am looking forward to it. I just set up my subsonic server last night, and was going to figure out how to add MusicBee as a player. 

The more I explore this, but better and better I absolutely LOVE this music player.  I'm a this close to ditching MediaMonkey and Winamp!

You sir...ROCK!
Title: Re: Subsonic Client
Post by: boroda on June 26, 2013, 08:05:24 AM
Here is plugin's wiki page (http://musicbee.wikia.com/wiki/Subsonic_Client). Please update it if plugin is updated.
Title: Re: Subsonic Client
Post by: Lemy on June 29, 2013, 07:12:38 PM
Has the code for this plugin been published already?
Title: Re: Subsonic Client
Post by: boroda on June 29, 2013, 07:16:15 PM
No, but you can PM Steven to request source code. I think Steven will send source to your if you have plans to enhance this plugin.
Title: Re: Subsonic Client
Post by: Lemy on July 18, 2013, 04:08:42 PM
The original code from Steven:

http://www.mediafire.com/download/wh43lpnbzrpboaf/SubSonic.zip

Quote from: Steven
feel free to do what you want with it eg. open source it if you want
Title: Re: Subsonic Client
Post by: Steven on August 04, 2013, 11:48:13 AM
A small bug fix to the plugin has been made for when drilling down into folders, musicbee application can start slowing down because the panel starts refreshing multiple times.
See first page for the link
Title: Re: Subsonic Client
Post by: Korvenwin on May 18, 2014, 07:50:26 PM
This plugin is broken right now.  :(
Title: Re: Subsonic Client
Post by: Monte87 on February 28, 2015, 03:25:08 PM
Can you please look into revisiting this plugin.  I am currently using a fork of SubSonic called MadSonic maybe they will be more willing to assist you?  This is the only standalone music player that actually supports SubSonic to an extent.  I would love it if we could have the whole subsonic/madsonic database as a library and interact with its features.  At the moment, MadSonic does support Album Artists so that would be a great change.  Please Steven revisit this plugin.
Title: Re: Subsonic Client
Post by: Vraana on August 19, 2015, 02:05:17 PM
Hi,

I seem to have the same issue here on windows 7 using either MusicBee 1.4 or 2 on a larger Subsonic library (~28,000 tracks).

After I configured Subsonic, I see the Subsonic directory tree under the computer browser and can expand the tree with no problems.  The tree looks like the following:

+ Subsonic
    + Music
        + artist
        + artist
        ...

If I click on Subsonic or the Music lines, nothing appears in the center panel under Genre's, Artists, albums, etc. Only when I select an artist in the Subsonic tree will anything appear in the center panel and then it is only the selected artists. Once at this level, I can select the tracks and play them with no issue.

I've also tried adding the Subsonic folder to the auto-dj but without success. Everything configures fine and Musicbee reports that auto-dj has started but only the seed track ever appears or plays.

I think I've checked everything but am obviously missing something. Can anyone help me with this?

*Edit*

When I click "Music" from the tree above, the Subsonic server logs a stack trace with the following error:

     WARN RESTController - Error in REST API. org.apache.commons.codec.DecoderException: Odd number of characters.


Same problem here. It would be really nice if someone would be able to repair this - continuously syncing SubSonic library with MusicBee library is kinda the point...
Title: Re: Subsonic Client
Post by: MiDWaN on February 09, 2016, 10:50:46 AM
Hi all,

I too like this plugin and find it very useful. Since Steven doesn't seem to have any intention of continuing work on it, I was thinking of picking it up and continue from where he left off... :-)

Please let me know of any features you'd like added so we can build a wish-list.

The code will be published on Github and linked here (or maybe even better, on a new topic) once it's done.
Title: Re: Subsonic Client
Post by: phred on February 09, 2016, 03:26:39 PM
For my purposes the plugin worked well.  Now even though enabled, it doesn't show in the computer node of v3.  It still works somewhat in 2.5.  The issue with 2.5 is that it is not loading all my tracks.  It's not a connection issue because it loaded all my playlists, including some new ones that were created yesterday.  But I don't use 2.5 any more, so if someone is going to tackle this, getting it going for 3.x should be the goal as 2.5 isn't really being supported any longer.
Title: Re: Subsonic Client
Post by: Steven on February 09, 2016, 06:03:49 PM
if the current plugin doesnt show in the computer node with v3 then I will need to fix that on the MB API side
Title: Re: Subsonic Client
Post by: phred on February 09, 2016, 06:29:38 PM
if the current plugin doesnt show in the computer node with v3 then I will need to fix that on the MB API side
That would be great if you have the time to do this.  At least that way we (I) can see if it's working better in 3 than it now does in 2.5.
I don't know about the others, but I'm not in a rush.  Whenever you can get to it.
Title: Re: Subsonic Client
Post by: Steven on February 09, 2016, 08:53:17 PM
Now even though enabled, it doesn't show in the computer node of v3.
i just installed sub-sonic and tried it with v3. I see the subsonic icon in the Computer Node and can browse and play music so I dont think v3 is necessarily the source of the problem (although the API code wasnt changed from v2.5, its always possible there is some unexpected impact). I dont want to spend any more time on this unless MiDWaN also has some problems
Title: Re: Subsonic Client
Post by: phred on February 09, 2016, 09:04:13 PM
Now even though enabled, it doesn't show in the computer node of v3.
i just installed sub-sonic and tried it with v3. I see the subsonic icon in the Computer Node and can browse and play music so I dont think v3 is necessarily the source of the problem (although the API code wasnt changed from v2.5, its always possible there is some unexpected impact). I dont want to spend any more time on this unless MiDWaN also has some problems
Understandable.  I will disable all plugins except SubSonic and see what happens.  If it shows, I'll re-enable them one by one.
Title: Re: Subsonic Client
Post by: phred on February 09, 2016, 09:39:22 PM
Well this is really weird...
I disabled all plugins except SubSonic and restarted MB.  It did not appear in the computer node.  I re-entered my SubSonic credentials and restated.  No change.  I uninstalled SS and restated.  No change.  I reinstalled SS and restarted.  No change.  I re-enabled all plugins and restarted and SubSonic appeared.
Title: Re: Subsonic Client
Post by: phred on February 09, 2016, 11:25:57 PM
What I am finding however, is that lots of album art isn't showing in Artwork View.  And in the album expanded view tracks are listed out of sequence.
(http://i.imgur.com/r5WnNfhl.jpg) (http://i.imgur.com/r5WnNfh.jpg)
Title: Re: Subsonic Client
Post by: MiDWaN on February 14, 2016, 10:49:26 PM
Hi all,

Just wanted to give you an update on the status of my work on this:
- I've created a repository on Github to host the code (and eventually, the releases).
- The code has been converted from VB.NET to C# and tested (though not very thoroughly yet).
- Some minor improvements and optimizations have been applied.
- For now the focus was to port the code and make sure everything works. Improvements and bugfixes will come right after this stage.

You can find the source code on the Github repository: https://github.com/midwan/MB_SubSonic

As soon as I have tested all the functionality I will publish a binary package as well (DLL) which can be used with MusicBee.
Any problems or suggestions can be added in the "Issues" section of the Github project. The Wiki page there will be (eventually) used for documentation.

Steven, I've mentioned you in the README and given you credit for the original work upon which this is based. If you'd like some other kind of mention, please let me know.

Finally, once a release version is ready I will also update the relevant areas in this Forum (e.g. new topic about it, relevant entry in the Plugins page, etc.)
Title: Re: Subsonic Client
Post by: phred on February 14, 2016, 10:54:12 PM
Thanks for taking this on.
Title: Re: Subsonic Client
Post by: MiDWaN on February 16, 2016, 08:25:25 AM
I've compiled what I consider a "pre-release" version, ideal for people wanting to test and report any issues before we consider it stable enough.

If anyone is willing to help test it, it's currently here: https://github.com/midwan/MB_SubSonic/releases

I'm using it daily now and haven't seen any problems yet, both in MusicBee 2.5 and 3.0.x beta. But more people testing it is always better.
If we don't find anything in a few days, we can release the first version as "stable" and continue working on the next version after that.

thanks for any assistance! :)
Title: Re: Subsonic Client
Post by: hiccup on February 16, 2016, 08:44:27 AM
Could you perhaps briefly explain real-world scenarios what you could use this plugin for?
Also, I saw there is a free version of Subsonic and a paid one.
How do the differences between these two affect the possibilities of this plugin for MusicBee?

tia!

Title: Re: Subsonic Client
Post by: MiDWaN on February 16, 2016, 09:43:44 AM
Of course, I assumed that most people interested in this would already know that bit...

With this plugin MusicBee acts as a Subsonic player. In simple terms, that means that you can use MusicBee to stream your music from a Subsonic server you have access to (for example, a home server you setup or a friend's server you have access to, etc). You will need to have a Subsonic server somewhere of course, for this to work. :)

Subsonic (www.subsonic.org) is a free streaming media server that you can install on your own server and have it manage your collection. You can access that collection using multiple "players", including a web front-end (which comes with Subsonic), smartphone players (e.g. Android, iPhone), and desktop ones. With this plugin, MusicBee also gets this functionality added.

There is a paid Premium option for Subsonic, which costs $1 per month, that enables some extra features as mentioned here: http://www.subsonic.org/pages/premium.jsp including access to your collection from external apps (such as this plugin). As far as I know, you will need that - but I haven't personally tested it on an installation without a Premium option to be 100% (maybe it works, maybe it doesn't). You get 30 days of free Premium with a new installation anyway, if someone wants to try it out.

If you have any more questions, I'd be happy to help further.
Title: Re: Subsonic Client
Post by: hiccup on February 16, 2016, 04:13:14 PM
Of course, I assumed that most people interested in this would already know that bit...

Thnx MiDWaN
Maybe most people do, but I didn't  ;-)

I was especially wondering if there might be some kind of integration between the databases of MB and Subsonic.
That might be interesting for sharing the MB database between more than 1 computer.

But if I understand it correctly, with this plugin, MB will function as a 'dumb' client, and the Subsonic database will have to be maintained and scanned separately from MB's database.

Anyway, it has made me curious, so I will see if I can experiment a bit with it on my NAS4Free server.
In advance: thnx for your work on this!
Title: Re: Subsonic Client
Post by: MiDWaN on February 16, 2016, 04:38:34 PM
The subsonic api provides many interesting functions, including uploading, editing, downloading and even sharing your media. Most of that is not currently covered by the plugin, at this stage. I'm not sure what you have in mind when you mention integrating the databases,  but if you can describe  it in more detail we can see how feasible it is.

Title: Re: Subsonic Client
Post by: hiccup on February 16, 2016, 06:12:20 PM
Well, just throwing up ideas and wishes without any experience with Subsonic, or hindered by too much technological insight in the matter;
For me it would be ideal if:

My precious music library would be maintained by using MusicBee only.
So all my interactions concerning tagging and scanning my music library would only be with MB.
Such editing and scanning operations would only need to be possible to be done from one (main) pc.
I don't need (or want) to be able to do editing or scanning of the files on other systems.

My phone, tablet, upnp mediaplayers, other pc's having MB installed, etc. would just need to be playback clients, being able to play everything from my library, and always picking up all changes and edits that have been made to my main library from my main pc.

I was hoping that maybe Subsonic might be some intermediate tool to accomplish something like this.
But if I understand correctly, Subsonic would be the master of the (a) database, and MB will just be a 'slave'.
Title: Re: Subsonic Client
Post by: MiDWaN on February 16, 2016, 06:51:12 PM
Maybe you aren't 100% clear on what Subsonic is/offers... :)

It is, in essence, a streaming service. It allows you to make your collection available over the internet to any client/player that is able to connect to it. Think of the following real-life scenario (my own):

- I have a huge collection of music I have amassed over the years. It's located in my home NAS.
- When I'm home, I use MusicBee to manage that collection. I listen to music, edit tags, organize etc.
- When I'm not at home, I want to be able to access that collection as well - that's where Subsonic comes in.

I have installed Subsonic on a spare machine which is always-on. I have configured Subsonic to use my collection located in my home NAS, the same way I did for MusicBee (just point it to the right folders, and Rescan).
Now when I'm on the road, I can use a mobile App to access my Subsonic server and stream any song from my collection directly to my phone. I can use "D-Sub" (an Android app) for that.

When I'm at work, I wanted to be able to do the same with a desktop client (e.g. MusicBee). I could just use the web interface that Subsonic provides, but I found that it's not ideal if you're also using the browser doing other things - the stream can chop up sometimes due to the browser doing heavy work on another tab for example.

And that brings us to the plugin - it allows a MusicBee installation to tap into a Subsonic server. In my case, my home server with my collection.
Using the plugin, MusicBee "sees" an extra library with content which it can manipulate in the same way as a local one - i.e. search, playback, etc.

Subsonic itself allows more functionality than what the plugin has implemented so far, such as editing the Tags, downloading media locally, uploading media to the server/collection, even Chatting with other users currently connected on your Subsonic server. Some of that functionality I'm planning to add to the plugin in the future. Feedback and suggestions would also dictate what parts will be done first.

For example, my first item in the to-do list is to change the way the plugin connects to the Subsonic server: it currently sends your password as plaintext, I will change that to use a one-time token instead for better security.

I hope this makes things a bit more clear... :)
Let me know if you have any more questions.
Title: Re: Subsonic Client
Post by: phred on February 16, 2016, 07:08:09 PM
I've been using SubSonic just about as long as I've been using MB.  They each use its own database and never the twain shall meet.  I do my tag editing and file manipulation only in MB.  I export my playlists from MB to a directory on the computer where the SubSonic server lives.  All my music files are on a NAS I have SubSonic scan for new files and playlists once a day.  As far as I know, you cannot set it to continuously monitor.  I can use the SubSonic client from anywhere with an Internet connection.  Since I like MB's GUI better than SubSonic's, I installed a barebones version of MB on my laptop.  It doesn't have a real library as I didn't want to put 17,000+ tracks on the laptop.  But I have the SubSonic plugin on the laptop and that gives me access to all my tracks in a GUI that I like.  I can also access it via my Android device.  There seem to be quite a few apps available for Android and iDevices.  Some are free and some are not.  Some work better than others.

And while no developer is as responsive as Steven, SubSonic's developer, Sindre Mehus, is good.  And there is a good forum crowd also.  Very willing to help users new or old.
Title: Re: Subsonic Client
Post by: hiccup on February 16, 2016, 07:08:17 PM
Maybe you aren't 100% clear on what Subsonic is/offers... :)

No doubt about that ;-)

But your explanation certainly helps a lot.
To get it all a bit clearer in my head before I dive into this myself:

So you have your music collection on a NAS, and any edits or maintenance you do with MusicBee are directly done to the files on your NAS?
Two questions for now:

- why don't you have Subsonic installed on your NAS, but on a separate computer?

If I understand correctly, you have Subsonic pointed to the files on your NAS.
 - can you automate Subsonic to automatically scan that music library for changes, and will it also read and understand MusicBee's custom tags? So that a client MusicBee installation can pick up on all that?


edit:
I just missed phred's input. More info to digest!
Title: Re: Subsonic Client
Post by: phred on February 16, 2016, 07:20:26 PM
- why don't you have Subsonic installed on your NAS, but on a separate computer?
The SS server needs an OS in order to serve.  If you NAS has one of these, it might be able to run:
(http://i.imgur.com/gKWUH2Yl.jpg) (http://i.imgur.com/gKWUH2Y.jpg)

Quote
If I understand correctly, you have Subsonic pointed to the files on your NAS.
 - can you automate Subsonic to automatically scan that music library for changes, and will it also read and understand MusicBee's custom tags? So that a client MusicBee installation can pick up on all that?
Yes, but only once a day.  Continuous monitoring has been asked for in the past, but it's not currently available.  Mine updates at 0630 every day.
Title: Re: Subsonic Client
Post by: hiccup on February 16, 2016, 07:26:31 PM
I saw that. My NAS (NAS4Free) is based on FreeBSD, and I couldn't just now find much recent info on people running Subsonic on that successfully.
There seems to be a fork of Subsonic, called Madsonic, which might run on NAS4free. So it's time for some experimenting...
Title: Re: Subsonic Client
Post by: MiDWaN on February 16, 2016, 07:26:52 PM
Regarding running Subsonic on my NAS:
- I've built a silent (fanless) but rather low-powered machine for this role, which is also responsible for a few other tasks. Although the OS supports it (I use FreeNAS), I don't want to stress it further by running Subsonic on it, as it can't handle some cpu-intensive stuff easily (e.g. transcoding a FLAC stream to low bitrate mp3).
- I already had the secondary machine always-on for other tasks, so adding Subsonic on it was no heavy burden (it has a relatively modern 4-core CPU).
Title: Re: Subsonic Client
Post by: hiccup on February 16, 2016, 07:30:11 PM
Interesting stuff.

I am guessing custom tags are lost in the process, right?
Title: Re: Subsonic Client
Post by: phred on February 16, 2016, 07:39:55 PM
Please let us know your findings.

I'm checking into your question about Custom Tags and the MB SS client doesn't seem to show them.  Most of my custom tags are for use in generating auto-playlists.

But right now, this new plugin doesn't seem to work any better than the previous one.  Only some (a very small number) of my album art is showing up.  Most show as "No Cover Art." And while it appears that my music library exists if I click on each artist, my playlists are un-populated.

I checked MB v3 with the old plugin and it has the same behavior regarding album art and playlists.  The playlist name shows, but its un-populated.  And MB 2.5 has the same behavior with both versions of the plugin.
Title: Re: Subsonic Client
Post by: phred on February 16, 2016, 07:50:10 PM
@MiDWaN-

It would be helpful if you could add a version number or the release date to the ZIP filename.  That would make it easier to keep track of versions.

Thanks.
Title: Re: Subsonic Client
Post by: phred on February 16, 2016, 07:58:24 PM
Sometimes my playlists show under the SubSonic node along with the Music, and sometimes only Music shows.

Album art and the number of tracks is not showing when in Artwork View and clicking on an Artist in the left panel under SusSonic\Music:
(http://i.imgur.com/IkX98acl.jpg) (http://i.imgur.com/IkX98ac.jpg)

Yet the tracks are there:
(http://i.imgur.com/jKQCQYwl.jpg) (http://i.imgur.com/jKQCQYw.jpg)
Title: Re: Subsonic Client
Post by: MiDWaN on February 17, 2016, 06:47:40 AM
Thanks for the feedback!
I will look into the items mentioned and get back to you.
Title: Re: Subsonic Client
Post by: phred on February 17, 2016, 06:48:30 PM
Yesterday I was trying out the newly updated SusSonic plugin and found that its behavior (for me) was exactly the same as the original plugin.  I was looking at my Error Log today and noticed this:
Code
2/16/2016 2:35:09 PM - 6.1.7601.65536 - 3.0.5889.40450 - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at MusicBeePlugin.Plugin.SaveSettings()
   --- 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 MusicBee.Plugin.#=qKn4V5ubE1pkq3m2JNbPLvA==()
It appears to be a plugin error, but I can't take it any further than that.  As a guess could this be because the original plugin had a .config file while the new one does not?
Title: Re: Subsonic Client
Post by: MiDWaN on February 18, 2016, 07:36:01 AM
Thanks for the report.

For now, it's normal that the behavior is the same as the older version, as the code was ported from there. The expectation was actually just this: to work the same way the previous one did, for this version.

The aim was to have a basis to work on, in the language I'm most comfortable with (that's C#, so I ported the code from VB.NET).

From now on, we can work on improvements and fixes - such as the problems mentioned above.

I already implemented something that was bugging me for a while with the old plugin, namely a more secure way of authenticating. The previous version would send off your username/password as plaintext to the server, as part of the URL. Now a unique, one-way token is generated and sent every time you need something from the server... (Edit: this is not in the release version yet, it was just implemented in the code yesterday night).

I haven't seen the Exception message you got in my tests, could you please provide some more details on the steps you take to reproduce this?
(Edit 2: The .config file should not be necessary for this version, if you still have the previous one there please try removing it as it may cause problems)
Title: Re: Subsonic Client
Post by: phred on February 18, 2016, 01:25:59 PM
Understood now that this version has no changes from the original.

As for the error, it was not a popup error.  I had been trying various things with SubSonic around the time of the error, but only saw it in the log on the following day.  I posted it because it -may- have something to do with SubSonic, but I can't tell.

The old .config file had already been renamed and could not be the cause of the error.

I wiil wait until some improvements are made before trying again.
Title: Re: Subsonic Client
Post by: MiDWaN on February 18, 2016, 03:48:23 PM
Hi all,

I've decided to release a first "stable" version of the plugin, after the following changes:
- Ported to C# from the VB.NET version of Steven Mayall.
- Changed authentication method from plaintext to one-way token for security.
- Minor code improvements for size, speed and efficiency.
- Bumped version to 2.0 to avoid any collisions with the older version.

As you can see, most of the functionality has remained "as-is" for this release. One important new feature however is the authentication method, which is now more secure - the previous version would send your password in plaintext in the URL, that is no longer the case.

I was thinking about moving to a new topic in the future, what do you think about that? Should we stay on this one where all the older problems are mentioned also, or start clean?

I will look into uploading the plugin to MusicBee's "Plugins" section as well - not sure on the process for that yet. :)

Meanwhile, here's the binary if anyone wants it: https://github.com/midwan/MB_SubSonic/releases/tag/v2.0

Have fun!
Title: Re: Subsonic Client
Post by: phred on February 18, 2016, 07:45:49 PM
I was thinking about moving to a new topic in the future, what do you think about that? Should we stay on this one where all the older problems are mentioned also, or start clean?
I think the thread should remain here.  Seeing as how this version of the plugin has evolved from the original, there's no point in having two SubSonic plugin threads.  Especially since  the original plugin is no longer supported, it would only confuse users if two threads existed.
Title: Re: Subsonic Client
Post by: MiDWaN on February 19, 2016, 07:22:19 AM
Ok, I have no problem with that. I've updated the Wiki page to link to the new version as well.
Title: Re: Subsonic Client
Post by: MiDWaN on February 24, 2016, 03:22:45 PM
New version is out!

Version 2.1 adds several security improvements, and fixes some minor bugs.

v2.1:
This version adds several security improvements, besides fixing some bugs:
- Added HTTPS support for connecting to servers configured accordingly.
- The configuration file is now encrypted. Please note that this will make your existing configuration file invalid (you will need to enter your server details again).
- Fixed a bug while fetching tags from the server.
- Fixed a potential crash if the cache file would exist, but was empty.
- Minor corrections.

now that the security concerns are (mostly) addressed, I can start looking into the bugs mentioned above. :)

Edit: You can get it from here: https://github.com/midwan/MB_SubSonic/releases/download/v2.1/mb_Subsonic_v2.1.zip
or the official Plugin page http://musicbee.wikia.com/wiki/Subsonic_Client
Title: Re: Subsonic Client
Post by: phred on February 24, 2016, 05:02:57 PM
Can you please post a link for the 2.1 download?
Title: Re: Subsonic Client
Post by: MiDWaN on February 24, 2016, 05:24:22 PM
I've edited my post above to include the links.

I also make sure to keep the official plugin page updated with new (stable) releases as they come along, so people won't have to rely on the last post of this thread to find it. :)
Maybe a good idea would be to add a "check for updates" function in the plugin itself, only enabled with a certain checkbox in the Options.
Title: Re: Subsonic Client
Post by: MiDWaN on February 25, 2016, 01:38:35 PM
"Sometimes my playlists show under the SubSonic node along with the Music, and sometimes only Music shows."

This seems to be a bug in MB 3, in my tests it seems to work under 2.5.
In MB3, the "GetPlaylists" function is called when you Refresh the server. However, once you click on a Playlist it does not call the "GetPlaylistFiles" function as it should, and so the contents show up as empty.

In MB2.5 it does seem to work as expected, at least in my tests.
Title: Re: Subsonic Client
Post by: Steven on February 26, 2016, 08:42:29 PM
Sometimes my playlists show under the SubSonic node along with the Music, and sometimes only Music shows.
thats a bug on the MB side and fixed for the next v3 update
Title: Re: Subsonic Client
Post by: phred on February 28, 2016, 07:53:27 PM
Sometimes my playlists show under the SubSonic node along with the Music, and sometimes only Music shows.
thats a bug on the MB side and fixed for the next v3 update
This still happens to me with MB 3.0.5902 and SubSonic 2.1.  "Music" shows -below- the playlists and is indented the same amount as if it is one of the playlists.  Expanding it, or clicking on it, shows all my tracks.  Clicking on "SubSonic" in the computer node also shows all tracks.
However, if I click on -any- playlist, the status bar shows "Unable to access: Subsonic:\xxx  where xxx is three numbers in the 300-400 range that are different with each playlist.
Title: Re: Subsonic Client
Post by: minotza on March 02, 2016, 01:06:11 AM
Really excited that you picked this up MiDWaN. Thanks for putting your free time into it.

I have a Subsonic server set up and Musicbee is connected to it via the Subsonic plugin. When I click on the yellow submarine in the  computer node, I see nothing in the tracklist. When I click on my music folder named 'Music" which is one level beneath the yellow submarine, I also see nothing in the tracklist. However, when I click on an artist's folder a level beneath the "Music" folder I can finally see the songs in the tracklist. I would really like to be able to view all the songs in the Subsonic share, and any folders within the share, in one Musicbee tab. Is this a known bug or just something that is unsupported at the moment but with plans to be integrated?
 
Also, I have a custom URL setup for subsonic, it's http://xxxxxxxxx.subsonic.org. However, when I try and use this with the plugin it tells me it failed to connect to the remote server. I'm inputting just "xxxxxxxxx.subsonic.org" as per your instructions. Using localhost works, though. Any ideas?


Lastly, I want to use the Subsonic share that's on the network as my monitored folder in Musicbee rather than the same folder on my local drive. (I'm planning on moving this folder to a dedicated music server). This way I can set up my Musicbee so that my library is just what folders I have in my Subsonic music folder  Will I lose any functionality here if I do this? By doing this I'd be basically virtualizing the music library so that I can access/edit it from anywhere with a MB install and the Musicbee Subsonic plugin configured to my server.

Thanks for your time and help!
Title: Re: Subsonic Client
Post by: MiDWaN on March 02, 2016, 08:49:13 AM
Hi there,

Regarding your issues:
1) What you describe sounds like the first time scanning process, which takes some time. It happens in the background, so there's no visual reference (maybe that should be improved), but after it's done you should be able to see all content by clicking on the Subsonic icon. When you click on a subfolder, it triggers a "refresh" of that folder's content, so it will show that (if it's already fetched from the server). The Artist folder contains the least amount of entries (relevant to the main Subsonic node or the Music folder below that), so if those are fetched from the server they will show up when you click on it. If you wait a bit more, clicking on the main Subsonic node should show all tracks eventually.
Also, this first-time scan only happens once and the results are cached locally, so you won't have to go through the same slow process again. If you cancel the process however, the cache may not be complete and it will be recreated the next time.

In other words, let it do a full scan first and test it again afterwards.

2) Does it work if you use the same URL on your browser from the same computer MusicBee runs? I have a custom *.subsonic.org domain as well and it works normally for me, though I had to manually set a redirection rule in my router to make it work with HTTPS. Keep in mind Subsonic will try to use uPnP to open up the port you have it running under, but there's a chance that may fail. If that happens, you need to set the rule manually on your router/firewall. Testing it with a browser should show if it works in general or not.

Finally, regarding your last question: you would lose any functionality not currently supported by the plugin. There are things I have in mind to add in the future, but it will always be limited to: a) what the Subsonic API allows and b) what MusicBee allows in Plugins.
Title: Re: Subsonic Client
Post by: minotza on March 03, 2016, 02:54:42 AM
Hi there,

Regarding your issues:
1) What you describe sounds like the first time scanning process, which takes some time. It happens in the background, so there's no visual reference (maybe that should be improved), but after it's done you should be able to see all content by clicking on the Subsonic icon. When you click on a subfolder, it triggers a "refresh" of that folder's content, so it will show that (if it's already fetched from the server). The Artist folder contains the least amount of entries (relevant to the main Subsonic node or the Music folder below that), so if those are fetched from the server they will show up when you click on it. If you wait a bit more, clicking on the main Subsonic node should show all tracks eventually.
Also, this first-time scan only happens once and the results are cached locally, so you won't have to go through the same slow process again. If you cancel the process however, the cache may not be complete and it will be recreated the next time.

In other words, let it do a full scan first and test it again afterwards.

2) Does it work if you use the same URL on your browser from the same computer MusicBee runs? I have a custom *.subsonic.org domain as well and it works normally for me, though I had to manually set a redirection rule in my router to make it work with HTTPS. Keep in mind Subsonic will try to use uPnP to open up the port you have it running under, but there's a chance that may fail. If that happens, you need to set the rule manually on your router/firewall. Testing it with a browser should show if it works in general or not.

Finally, regarding your last question: you would lose any functionality not currently supported by the plugin. There are things I have in mind to add in the future, but it will always be limited to: a) what the Subsonic API allows and b) what MusicBee allows in Plugins.

Thanks for your response. Looking at the log has pointed some things out..when I click on the Subsonic icon nothing happens, I've waited hours and nothing has populated, and no error message in Subsonic appears. When I click on my "Music" sub folder I get an error in Subsonic about permissions to some mp3:

[3/2/16 9:47:55 PM EST]   WARN   RESTFilter   Error in REST API: Access denied to file Low Life (Screwed By Danka)

I've also seen an error messages about Access denied to file "C:\Users\Me\Desktop".

Finally I am constantly getting this error message in subsonic as well:

[3/2/16 9:45:48 PM EST]   WARN   RESTFilter   Error in REST API: For input string: ""

Although I can't say what produces it yet. I thought maybe the error messages would help. I can access my custom Subsonic URL from my subsonic host's browser, and from an external network, so the problem is just with the subsonic plugin I'm pretty sure.

Also about the subsonic plugin allowing me to add my subsonic share as a monitored folder..it seems like it's not working as the library will not populate even if I tell it to rescan the subsonic share. However, I don't really care about this as long as I can get all my songs to show up when I click on the Subsonic icon.

Thanks for any more help you can give me, I appreciate it!
Title: Re: Subsonic Client
Post by: phred on March 03, 2016, 03:06:37 AM
Also, I have a custom URL setup for subsonic, it's http://xxxxxxxxx.subsonic.org. However, when I try and use this with the plugin it tells me it failed to connect to the remote server. I'm inputting just "xxxxxxxxx.subsonic.org" as per your instructions. Using localhost works, though. Any ideas?
Does the SubSonic server have an IP address?  Have you tried connecting using the IP instead of the URL?
Title: Re: Subsonic Client
Post by: minotza on March 03, 2016, 11:46:29 PM
Also, I have a custom URL setup for subsonic, it's http://xxxxxxxxx.subsonic.org. However, when I try and use this with the plugin it tells me it failed to connect to the remote server. I'm inputting just "xxxxxxxxx.subsonic.org" as per your instructions. Using localhost works, though. Any ideas?
Does the SubSonic server have an IP address?  Have you tried connecting using the IP instead of the URL?

Using the external IP of the SubSonic server worked perfectly, thank you! What if it is a dynamic IP address though, how will that work?

Now I just need to figure out how to get my library to show up when I click the Subsonic icon, and how to add my Subsonic share to the Musicbee library so I can start using this effectively.
Title: Re: Subsonic Client
Post by: phred on March 03, 2016, 11:51:22 PM
Using the external IP of the SubSonic server worked perfectly, thank you! What if it is a dynamic IP address though, how will that work?
Glad to hear that worked.  But yes, the dynamic IP can be an issue.  But let Google be your friend as there are IP monitors around that alert you when the IP changes.  I'm 'supposed' to have a dynamic IP per my provider, but it hasn't changed in more than three years.

Quote
Now I just need to figure out how to get my library to show up when I click the Subsonic icon, and how to add my Subsonic share to the Musicbee library so I can start using this effectively.
That's not your problem.  It's a problem with the plugin, which has just had a rebirth and is slowly coming back to life.
Title: Re: Subsonic Client
Post by: minotza on March 04, 2016, 12:01:28 AM
Using the external IP of the SubSonic server worked perfectly, thank you! What if it is a dynamic IP address though, how will that work?
Glad to hear that worked.  But yes, the dynamic IP can be an issue.  But let Google be your friend as there are IP monitors around that alert you when the IP changes.  I'm 'supposed' to have a dynamic IP per my provider, but it hasn't changed in more than three years.

Quote
Now I just need to figure out how to get my library to show up when I click the Subsonic icon, and how to add my Subsonic share to the Musicbee library so I can start using this effectively.
That's not your problem.  It's a problem with the plugin, which has just had a rebirth and is slowly coming back to life.

I'll check out the IP monitors, thanks.

I see other people reporting they used this plugin successfully though so I can't help but think something about how I set it up is causing my tracks to not show up on the root directories.

Title: Re: Subsonic Client
Post by: phred on March 04, 2016, 01:02:05 AM
I see other people reporting they used this plugin successfully though so I can't help but think something about how I set it up is causing my tracks to not show up on the root directories.
I'm not having much success with it.  If I click on the SubSonic node, I see and have access to all my tracks.  When expanding the node, my playlists show but there's a status bar message indicating that "Unable to access Subsonic: \xxx".  Under the list of playlists, I have the Music node which opens and shows all my tracks by artist.  So I guess everything works as expected except for playlists.
Title: Re: Subsonic Client
Post by: MiDWaN on March 04, 2016, 07:12:28 AM
Which musicbee version have you guys been trying with?
The Playlist problem was only there in version 3.0 beta when I tested it,  but worked in 2.5.
Title: Re: Subsonic Client
Post by: phred on March 04, 2016, 11:40:53 AM
Which musicbee version have you guys been trying with?
The Playlist problem was only there in version 3.0 beta when I tested it,  but worked in 2.5.
I'm on v3.  Do you have plans to fix it for v3?  Especially since v2.5 isn't really being supported by Steven any longer.
Title: Re: Subsonic Client
Post by: MiDWaN on March 04, 2016, 05:44:26 PM
I'm planning to do my best to support both versions, but this particular bug (with the playlists) seems to be in MusicBee's side, not the plugin's.

It was already reported to Steven earlier. ;)
Title: Re: Subsonic Client
Post by: Steven on March 04, 2016, 05:58:37 PM
It was already reported to Steven earlier. ;)
i believe i replied to that saying the issue you reported was now fixed.
@phred, i'm not really clear what you are saying the issue is. When expanding the "Subsonic" node i would expect the playlists to be listed and then the Music node.
So apart from the strange message in the status bar what exactly are you not able to do eg. if you click a playlist does it not show the contents of the playlist?
Title: Re: Subsonic Client
Post by: minotza on March 04, 2016, 11:54:58 PM
Which musicbee version have you guys been trying with?
The Playlist problem was only there in version 3.0 beta when I tested it,  but worked in 2.5.

I'm using 2.5.5804.
The only problem I'm still having now is that none of the parent folders show any songs. For example, I set up a share on subsonic called "Test"..it has 7 mp3s in it. It shows up in Musicbee under Subsonic as a folder, when I click on the folder nothing shows up, and the Test folder is not expandable. When I move the 7 mp3s into a folder called "Album" which is located within "Test", then I can see the songs under the "Test" folder in Musicbee, but ONLY when I click on the "Album" subfolder. Clicking on "Test" in Musicbee still shows me nothing for this scenario.

I'm getting this error message when I click on the parent folders:
Error in REST API: For input string: ""

Thanks for any help.
Title: Re: Subsonic Client
Post by: phred on March 05, 2016, 01:18:25 AM
It was already reported to Steven earlier. ;)
i believe i replied to that saying the issue you reported was now fixed.
@phred, i'm not really clear what you are saying the issue is. When expanding the "Subsonic" node i would expect the playlists to be listed and then the Music node.
Yes, that's how it appears in the left side panel.
>SubSonic
>Playlist 1
>Playlist 2
>Music
When clicking on either Music -or- SubSonic, my entire library is displayed.  Is that the expected behavior?  To have the library show on -both- nodes?

Quote
So apart from the strange message in the status bar what exactly are you not able to do eg. if you click a playlist does it not show the contents of the playlist?
Exactly.  Playlist contents do not show.  The view remains on the full library.  Trying to play any track/album showing when on a playlist results in nothing playing.  It's like the tracks show, but aren't really there.
Playlist 2010s is selected but track details shows tracks from the library and not the playlist:
(http://i.imgur.com/aQK7Orfl.jpg) (http://i.imgur.com/aQK7Orf.jpg)
Title: Re: Subsonic Client
Post by: minotza on March 05, 2016, 01:54:06 AM
phred how did you add the Subsonic share to your library?
Title: Re: Subsonic Client
Post by: phred on March 05, 2016, 03:07:58 AM
phred how did you add the Subsonic share to your library?
I'm not certain I understand the question.  You already stated you have the plugin and it's enabled, correct?  And I thought you said it works when you changed the plugin config to the external IP, right?  There should be nothing more needed other than your SS username and password:
(http://i.imgur.com/0985Njcl.jpg) (http://i.imgur.com/0985Njc.jpg)
SS from within MB is working for me as long as I don't want to listen to any playlists despite the fact that the playlists do appear under the SS node.
Title: Re: Subsonic Client
Post by: minotza on March 05, 2016, 04:03:47 AM
phred how did you add the Subsonic share to your library?
I'm not certain I understand the question.  You already stated you have the plugin and it's enabled, correct?  And I thought you said it works when you changed the plugin config to the external IP, right?  There should be nothing more needed other than your SS username and password:
(http://i.imgur.com/0985Njcl.jpg) (http://i.imgur.com/0985Njc.jpg)
SS from within MB is working for me as long as I don't want to listen to any playlists despite the fact that the playlists do appear under the SS node.

Sorry..I'm asking you how you got your subsonic share to appear under your Musicbee library because mine is only in the computer node. Could you possibly send me a screenshot of your subsonic setup, including the settings in the server control panel, and the media folder settings on the web app? I want to see if I'm missing anything obvious..thank you so much if you can help out.


Also, I'm having the same problem as Shred, I just wanted to show you exactly what it was Midwan. The only time that error message shows up is when I click on the Subsonic icon. I get no message when I click on Music, but if I expand Music I can see individual artist folders and the music within each, only if I click on each artist folder individually.

Sorry if I'm over explaining, I just want you to know what's going on so you can debug it properly. Can't wait to get this thing working! 

(http://i.imgur.com/HtIpDAL.png)

Title: Re: Subsonic Client
Post by: phred on March 05, 2016, 01:39:49 PM
Sorry..I'm asking you how you got your subsonic share to appear under your Musicbee library because mine is only in the computer node. Could you possibly send me a screenshot of your subsonic setup, including the settings in the server control panel, and the media folder settings on the web app? I want to see if I'm missing anything obvious..thank you so much if you can help out.
SubSonic does not and will not appear as part of the MB Library.  It will only appear in the computer node.  I have done nothing on the SubSonic side to enable MB to access it.  It's all from the MB plugin.   I'll be happy to send you some screenshots of my SubSonic setup, but they won't help with this.  If SS is working as expected via a web browser and not in MB, then the problem is with MB.  Or the plugin. 

I guess I'm still a little confused as to what problem you're experiencing.  Here you stated that it worked perfectly.  But then you say you can't get the library to show up.  So what is working perfectly?
Using the external IP of the SubSonic server worked perfectly, thank you! What if it is a dynamic IP address though, how will that work?

Now I just need to figure out how to get my library to show up when I click the Subsonic icon, and how to add my Subsonic share to the Musicbee library so I can start using this effectively.
Title: Re: Subsonic Client
Post by: minotza on March 05, 2016, 03:46:45 PM
Sorry..I'm asking you how you got your subsonic share to appear under your Musicbee library because mine is only in the computer node. Could you possibly send me a screenshot of your subsonic setup, including the settings in the server control panel, and the media folder settings on the web app? I want to see if I'm missing anything obvious..thank you so much if you can help out.
SubSonic does not and will not appear as part of the MB Library.  It will only appear in the computer node.  I have done nothing on the SubSonic side to enable MB to access it.  It's all from the MB plugin.   I'll be happy to send you some screenshots of my SubSonic setup, but they won't help with this.  If SS is working as expected via a web browser and not in MB, then the problem is with MB.  Or the plugin. 

I guess I'm still a little confused as to what problem you're experiencing.  Here you stated that it worked perfectly.  But then you say you can't get the library to show up.  So what is working perfectly?
Using the external IP of the SubSonic server worked perfectly, thank you! What if it is a dynamic IP address though, how will that work?

Now I just need to figure out how to get my library to show up when I click the Subsonic icon, and how to add my Subsonic share to the Musicbee library so I can start using this effectively.

What IS working is that if I click on individual artist's folder I can only then see the music within it. If I click on the parent "Music" folder, or the parent "Subsonic" icon, none of the music shows up...effectively making the plugin next to useless for me. I can't click into each artist to manage my music. Also I asked how you added your Subsonic share to your MB Library because that's what your screenshot is showing...the Subsonic share within your Musicbee library and NOT the normal computer node location. Thanks.
Title: Re: Subsonic Client
Post by: phred on March 05, 2016, 04:23:46 PM
What IS working is that if I click on individual artist's folder I can only then see the music within it. If I click on the parent "Music" folder, or the parent "Subsonic" icon, none of the music shows up...effectively making the plugin next to useless for me.
And that's almost the opposite of what's happening to me.  I can expand the Music node under SubSonic, click on any artist, and play any track.  And while my playlists show, the contents of the playlists don't show.

Quote
I can't click into each artist to manage my music.
When you say "manage" do you mean "listen to music" or do you mean "tag editing, etc"?  You shouldn't manage your music via the SubSonic plugin.   Managing your music should be done from the library only. 

I assume you can listen to your music directly from SubSonic, correct?  (Did I ask this before?)  Since you can "see" your artists under the Music node from within MB, it would appear that the plugin is connecting with SubSonic.  And while I appreciate MiDWaN stepping up to take over development of the plugin, providing fixes for v2.5 is, in my opinion, a waste of time as that version is at it's end of life.  Steven is no longer supporting it.  I feel MiDWaN's time would be better spent trying to get the plugin working with v3.  Steven said he fixed the issue that was on the MB side, so it would appear (I'm not a developer, so I don't know for sure) that the remaining issue(s) are on the plugin side.

Quote
Also I asked how you added your Subsonic share to your MB Library because that's what your screenshot is showing...the Subsonic share within your Musicbee library and NOT the normal computer node location. Thanks.

What you see at top "Library - phred"  in the screenshot is the header of the left side panel.  SubSonic will only live in the computer node.  Here's another shot with the other nodes collapsed:
(http://i.imgur.com/MN37AIVl.jpg) (http://i.imgur.com/MN37AIV.jpg)
Title: Re: Subsonic Client
Post by: minotza on March 05, 2016, 06:17:56 PM
What IS working is that if I click on individual artist's folder I can only then see the music within it. If I click on the parent "Music" folder, or the parent "Subsonic" icon, none of the music shows up...effectively making the plugin next to useless for me.
And that's almost the opposite of what's happening to me.  I can expand the Music node under SubSonic, click on any artist, and play any track.  And while my playlists show, the contents of the playlists don't show.

Quote
I can't click into each artist to manage my music.
When you say "manage" do you mean "listen to music" or do you mean "tag editing, etc"?  You shouldn't manage your music via the SubSonic plugin.   Managing your music should be done from the library only. 

I assume you can listen to your music directly from SubSonic, correct?  (Did I ask this before?)  Since you can "see" your artists under the Music node from within MB, it would appear that the plugin is connecting with SubSonic.  And while I appreciate MiDWaN stepping up to take over development of the plugin, providing fixes for v2.5 is, in my opinion, a waste of time as that version is at it's end of life.  Steven is no longer supporting it.  I feel MiDWaN's time would be better spent trying to get the plugin working with v3.  Steven said he fixed the issue that was on the MB side, so it would appear (I'm not a developer, so I don't know for sure) that the remaining issue(s) are on the plugin side.

Quote
Also I asked how you added your Subsonic share to your MB Library because that's what your screenshot is showing...the Subsonic share within your Musicbee library and NOT the normal computer node location. Thanks.

What you see at top "Library - phred"  in the screenshot is the header of the left side panel.  SubSonic will only live in the computer node.  Here's another shot with the other nodes collapsed:
(http://i.imgur.com/MN37AIVl.jpg) (http://i.imgur.com/MN37AIV.jpg)

When I said "I can't click into each artist to manage my music" I just meant that I can't be clicking into each artist to manage my music effectively, I would need for my entire Subsonic library to show up when I click the Subsonic icon. By manage I just mean play, group, add to playlists, ect. I will eventually want to tag right from the Subsonic share but I can wait for that. I have the Subsonic Musicbee plugin connected to Subsonic just fine, and I can also "expand the Music node under SubSonic, click on any artist, and play any track" HOWEVER I cannot click on the parent node and play any track, which is what should be happening. No one can manage their library by clicking into each artist's folder individually. I understand 2.5 is no longer supported, I'm using 3.0 now but all of the problems I'm describing are still present.
Title: Re: Subsonic Client
Post by: phred on March 05, 2016, 07:09:41 PM
Okay, I'm understanding your issue a little more now.

But as I stated earlier, I don't think tagging from within the SubSonic node is a good idea (or even possible.)  If (when) SS is seeing your MB library and playlists, I think tagging and creating playlists would be better done from within MB's library.  I don't think it was ever the intent for the plugin to be used as an extension of the manager but someone (Steven?) will correct me if I'm wrong.

Just as an aside, you do know that you can export your MB playlists, correct?  And from within SS you can point to the exported playlists directory and have them appear in SS.  I have SS scan for music and playlist changes once every 24 hours.
Title: Re: Subsonic Client
Post by: MiDWaN on March 05, 2016, 08:54:12 PM
I apologize for my slow responses, I am currently a bit occupied with work these days and didn't have time to look into this in depth.

Once I get the chance, I'll come back with more! :)

PS: The Subsonic node should (eventually) show ALL content, including all the subfolders. When you click on it, it will recursively try to scan through all the folders and subfolders it finds, and populate the list in the end. The results are also cached locally, to avoid this sort of scan happening again the next time you open it. However, I have noticed also that sometimes it does not quite behave ideally (no feedback during scanning, no proper refresh when it's finished - instead, you need to click somewhere else and back to trigger a refresh). It's also quite slow while doing this.

This is an area I am planning to improve, but it will probably take some time during testing/changing/testing again before we get to a better solution. All the feedback you can provide, the more detailed the better, would definitely help in that direction.

If at all possible, I would prefer if you could open issues on Github directly where these are tracked, flagged accordingly (e.g. bug, enhancement, etc) and resolved. If you can't, that's fine as I am also monitoring this thread of course. ;-)
Title: Re: Subsonic Client
Post by: phred on March 05, 2016, 09:37:00 PM
I apologize for my slow responses, I am currently a bit occupied with work these days and didn't have time to look into this in depth.

Once I get the chance, I'll come back with more! :)
Thanks for the update.  And I certainly understand how life sometimes gets in the way.
Title: Re: Subsonic Client
Post by: minotza on March 06, 2016, 12:46:51 AM
Okay, I'm understanding your issue a little more now.

But as I stated earlier, I don't think tagging from within the SubSonic node is a good idea (or even possible.)  If (when) SS is seeing your MB library and playlists, I think tagging and creating playlists would be better done from within MB's library.  I don't think it was ever the intent for the plugin to be used as an extension of the manager but someone (Steven?) will correct me if I'm wrong.

Just as an aside, you do know that you can export your MB playlists, correct?  And from within SS you can point to the exported playlists directory and have them appear in SS.  I have SS scan for music and playlist changes once every 24 hours.

Well, I saw that you can choose the Subsonic share as a monitored folder in Musicbee preferences. But, it doesn't currently work. So I got to thinking that if it was developed more I could just choose my Subsonic share as my Musicbee library, therefore not using the Subsonic share through the computer node, and instead having it just be my main library. I would be able to edit the tags at that point too.

However, all that is moot for now if I can just get the Subsonic icon in the computer node to populate...at that point I would just use that as my main library.

MidWaN, I tested using a parent folder (Music Folder) and sub folder (Album) with 7 mp3s and it still won't populate for me, so I can confirm there is a problem over and beyond slowness. I will post everything in the github when I get a chance.
Title: Re: Subsonic Client
Post by: minotza on April 03, 2016, 02:51:33 PM
I apologize for my slow responses, I am currently a bit occupied with work these days and didn't have time to look into this in depth.

Once I get the chance, I'll come back with more! :)

PS: The Subsonic node should (eventually) show ALL content, including all the subfolders. When you click on it, it will recursively try to scan through all the folders and subfolders it finds, and populate the list in the end. The results are also cached locally, to avoid this sort of scan happening again the next time you open it. However, I have noticed also that sometimes it does not quite behave ideally (no feedback during scanning, no proper refresh when it's finished - instead, you need to click somewhere else and back to trigger a refresh). It's also quite slow while doing this.

This is an area I am planning to improve, but it will probably take some time during testing/changing/testing again before we get to a better solution. All the feedback you can provide, the more detailed the better, would definitely help in that direction.

If at all possible, I would prefer if you could open issues on Github directly where these are tracked, flagged accordingly (e.g. bug, enhancement, etc) and resolved. If you can't, that's fine as I am also monitoring this thread of course. ;-)


Hey, any plans on troubleshooting this? My music still won't show up if I click on the main subsonic node. Just wondering if you are aware/working on a fix, thanks!
Title: Re: Subsonic Client
Post by: minotza on April 18, 2016, 04:05:15 AM
I apologize for my slow responses, I am currently a bit occupied with work these days and didn't have time to look into this in depth.

Once I get the chance, I'll come back with more! :)

PS: The Subsonic node should (eventually) show ALL content, including all the subfolders. When you click on it, it will recursively try to scan through all the folders and subfolders it finds, and populate the list in the end. The results are also cached locally, to avoid this sort of scan happening again the next time you open it. However, I have noticed also that sometimes it does not quite behave ideally (no feedback during scanning, no proper refresh when it's finished - instead, you need to click somewhere else and back to trigger a refresh). It's also quite slow while doing this.

This is an area I am planning to improve, but it will probably take some time during testing/changing/testing again before we get to a better solution. All the feedback you can provide, the more detailed the better, would definitely help in that direction.

If at all possible, I would prefer if you could open issues on Github directly where these are tracked, flagged accordingly (e.g. bug, enhancement, etc) and resolved. If you can't, that's fine as I am also monitoring this thread of course. ;-)


Hey, any plans on troubleshooting this? My music still won't show up if I click on the main subsonic node. Just wondering if you are aware/working on a fix, thanks!

If you could give any tips or areas where I should look for errors that would help too. I have basic programming knowledge and would to get this thing working on my if I can. I just need to know which part of the code would causing an error. Thanks for any help on this.
Title: Re: Subsonic Client
Post by: Christopher Dillon on May 07, 2016, 03:28:09 AM
Has anyone found a solution to this issue?

I have just installed MusicBee 2.5.5804 on two systems running Windows 8.1, and subsonic 6.0 (build 830afc).

Everything works perfectly, except playback of flac files, which follows this exact pattern.

I have tried reinstallling MusicBee and the Susbsonic plug in without success.

Thanks in advance

Christopher Dillon
Title: Re: Subsonic Client
Post by: phred on May 07, 2016, 03:53:09 AM
Has anyone found a solution to this issue?
The plugin needs to be updated.  Steven (MB developer and creator of the SubSonic plugin) doesn't have the time to support the plugin any longer.  Someone (MiDWaN) showed interest in reworking it, but there's been very little progress as far as making it work as it had in the past..  Personally, I consider the plugin dead.

You can go back in this thread to read what MiDWaN has done.  Start here http://getmusicbee.com/forum/index.php?topic=3620.msg104574#msg104574
Title: Re: Subsonic Client
Post by: Christopher Dillon on May 08, 2016, 10:38:14 AM
Thanks for the update, Phred.

It's a shame that this plugin is dead.

Other than the issue that I described, the plugin works well and MusicBee is a great addition to Subsonic
Title: Re: Subsonic Client
Post by: MiDWaN on July 28, 2016, 05:42:34 PM
Hi all,

Just wanted to let you know, there's a new version out: v2.2.

This version adds an improvement:
- Will now notify the user if a "ping" response from the Subsonic server is not successful, and allow the option to save the settings anyway, instead of silently reverting to the last saved ones. Fixes Issue #7

You can grab it from the normal Plugins page: http://musicbee.wikia.com/wiki/Subsonic_Client
Or the Github page directly: https://github.com/midwan/MB_SubSonic/releases

Meanwhile, there are currently two more issues open on Github: https://github.com/midwan/MB_SubSonic/issues
If you have a problem, I would like to kindly ask you to report it there so we can keep track of things in a good way. I cannot monitor this forum very frequently and things might get missed. :)

PS: No, it's not quite dead, I just don't have much free time lately due to family obligations.
Title: Re: Subsonic Client
Post by: MiDWaN on July 28, 2016, 05:56:49 PM
Has anyone found a solution to this issue?

I have just installed MusicBee 2.5.5804 on two systems running Windows 8.1, and subsonic 6.0 (build 830afc).

Everything works perfectly, except playback of flac files, which follows this exact pattern.

I have tried reinstallling MusicBee and the Susbsonic plug in without success.

Thanks in advance

Christopher Dillon

Christopher, I've just tested an installation playing back FLAC files through the plugin, and I didn't see any problems in either listing, or playing back the files.
Could you please open an issue on Github's relevant section, describing your problem in detail (screenshots included, if possible) so we can take it from there?
Here's the link: https://github.com/midwan/MB_SubSonic/issues
Title: Re: Subsonic Client
Post by: phred on July 28, 2016, 07:18:01 PM
Thanks for the updated version. However, the problem I reported here: http://getmusicbee.com/forum/index.php?topic=3620.msg106098#msg106098
still exists.
Title: Re: Subsonic Client
Post by: MiDWaN on July 28, 2016, 07:43:07 PM
I'm working on any remaining (reported) bugs at the moment, so this is one of the next ones to look into.

Thanks for opening an Issue on Github, we can take the details there and report back here once it's fixed.
Title: Re: Subsonic Client
Post by: MiDWaN on July 30, 2016, 11:47:36 PM
Hi all,

I've just published a new beta version, here: https://github.com/midwan/MB_SubSonic/releases/tag/v2.5-beta

This version has some major improvements:
- Completely rewrote the mechanism of communication with the Subsonic server. This should help speed things up and eliminate a few bugs.
- Fixed handling of invalid characters in the XML response received from some Subsonic servers. This fixes files not showing in playlists.
- Internal code cleanup and optimization.
- Improved user notifications when something goes wrong (e.g. no permissions to download a track).
- Improved behavior when changing Host settings - will now delete the old Cache file automatically and notify MusicBee to refresh.

I'd be grateful if you could give it a try and let me know how it behaves for you.

Please note that in this release's archive there are more than just one DLL file, all should be kept together and placed in the same "plugins" folder of MB as usual.
Title: Re: Subsonic Client
Post by: phred on July 31, 2016, 12:23:38 AM
All seems fine at this point with the minor (for me) exception of not getting any album art. I can live without that as I'm listening to  music, not looking at pictures. It could also be that it takes a while for the art to load and all I tried were a couple of quick tests to see if music is playing from my playlists. And it does. 

Thanks very much for the time you put into tracking down the issue.
Title: Re: Subsonic Client
Post by: MiDWaN on July 31, 2016, 08:43:11 AM
Happy to see that your problem is fixed. :)
As I mentioned in the Github issue thread, I could see the artwork from your server normally in my tests, so let me know if it still doesn't download it later on.

Now would be a good time to have some more people testing it and report any issues (if they find any). Especially since I've rewrote the whole mechanism for communicating with the server and back, it would be interesting to know if all works fine in all the areas (and if not, to please let me know so we can fix it).
Title: Re: Subsonic Client
Post by: MiDWaN on July 31, 2016, 10:14:03 AM
I've found one bug already, which I've opened myself on Github: https://github.com/midwan/MB_SubSonic/issues/11

If you select a top-level directory, an error is displayed ("Directory not found"). Browsing and opening subfolders works as expected.
This will be fixed in the next beta update.
Title: Re: Subsonic Client
Post by: MiDWaN on August 01, 2016, 07:52:45 PM
Just an update, the Artwork not showing problem was apparently a bug in MB, Steven fixed it in the latest Patched version. ;-)

Meanwhile I'm working on improving the performance in the plugin, especially when lots of tracks are involved in Playlists (I've found that it's not very efficient there). Once a new version is ready for further testing, I will post another update here.
Title: Re: Subsonic Client
Post by: phred on August 01, 2016, 08:25:33 PM
Just an update, the Artwork not showing problem was apparently a bug in MB, Steven fixed it in the latest Patched version. ;-)
Confirming that the artwork now shows as expected when in SubSonic node of MB 3.0.6057. Thanks to MidWan for figuring out there there was a bug in MB and to Steven for (as always) fixing it quickly.
Title: Re: Subsonic Client
Post by: MiDWaN on August 24, 2016, 09:12:56 PM
New beta version, v2.7.

This is a minor update with only one change from v2.6beta:
- Lowered the Subsonic API version requirement to v1.13.0. This should allow Subsonic forked projects like LibreSonic to work with the plugin now.

I noticed that with the website redesign the plugins section lost the Subsonic entry. I'll see if I can add it there again, but you can always grab it from here also:
https://github.com/midwan/MB_SubSonic/releases
Title: Re: Subsonic Client
Post by: MiDWaN on August 25, 2016, 06:59:50 PM
Some good news: from what I could test, the problems I had with streaming (instead of downloading the track) seem to be resolved with the latest version of MusicBee.
That means that issue #12 (https://github.com/midwan/MB_SubSonic/issues/12) can be now closed.

If anyone is still facing a problem related to that, please let me know.

I will also add the option to use the older method of authentication (sending over the password hex encoded), to support LDAP authentication with Subsonic-like servers, such as LibreSonic. Related issue is described here: https://github.com/Libresonic/libresonic/issues/69

This will be disabled by default, so existing users will not be affected.
Title: Re: Subsonic Client
Post by: dex1701 on November 07, 2016, 11:12:57 PM
Ok, I'm using Subsonic server version 6.0 and plug-in version 2.9 (beta).  For some reason, I can't get any music to show up in my MusicBee library.  I'm using the same address and credentials that I use successfully with the Subsonic web UI, SubAir, and DSub on Android.  I don't get any errors when I configure the MusicBee plug-in, and Subsonic shows up as a "drive" when I create a new library.  However, after I have everything set up, no music appears in the MusicBee UI.  If I use the re-scan library option in MusicBee, it immediately says that the re-scan is complete and no new music was found.

Any ideas?  Thanks!
Title: Re: Subsonic Client
Post by: MiDWaN on November 09, 2016, 06:03:37 PM
Ok, I'm using Subsonic server version 6.0 and plug-in version 2.9 (beta).  For some reason, I can't get any music to show up in my MusicBee library.  I'm using the same address and credentials that I use successfully with the Subsonic web UI, SubAir, and DSub on Android.  I don't get any errors when I configure the MusicBee plug-in, and Subsonic shows up as a "drive" when I create a new library.  However, after I have everything set up, no music appears in the MusicBee UI.  If I use the re-scan library option in MusicBee, it immediately says that the re-scan is complete and no new music was found.

Any ideas?  Thanks!

That sounds a bit strange. We'll need to check a few things to see what's wrong.
Could you please open an Issue on the project's Github page, so we can track this properly?
You can find the page here: https://github.com/midwan/MB_SubSonic/issues

Thanks!
Title: Re: Subsonic Client
Post by: retrofan01 on December 07, 2016, 10:22:06 AM
At the moment, I have DSub on Android set up as my only Subsonic client. When I start playing an album in DSub then pause it, I can go to Subsonic's web UI, select the More actions menu in the player bar, click Load Play Queue and it'll load the tracks in the playlist and resume playing where I left off. There's a Save Play Queue option too but I've not tried this yet.

Could this functionality be built into the MBSubsonic plugin? I've tried many different ways of syncing play queue/play position between my phone and desktop PC and this looks like the best way I've found so far. Even better would be a way to do this automatically, like Spotify Connect.
Title: Re: Subsonic Client
Post by: MiDWaN on December 07, 2016, 06:26:06 PM
That's an interesting idea, but I'll have to check if:
a) the Subsonic API supports this functionality and
b) MusicBee allows for this through the plugin.

I'll add it to the list of items and let you know once I have more details.
Title: Re: Subsonic Client
Post by: retrofan01 on December 07, 2016, 06:42:49 PM
Thanks, hope it can be implemented. I'm also currently having trouble playing FLAC files using the plugin but will post in further detail on GitHub.
Title: Re: Subsonic Client
Post by: MiDWaN on December 07, 2016, 06:49:33 PM
I have a few things I was working on, that would improve the situation a lot. But unfortunately I also have other projects I need to maintain, and there's only so much spare time to use up... so this got delayed, but not forgotten.
Title: Re: Subsonic Client
Post by: MiDWaN on February 01, 2017, 11:23:45 PM
I've pushed v2.9 out of beta, since it's been sitting there for quite a while now.
No major changes in it, just lowered the API requirement to v1.11 so that it can work with Ampache installations as well.
Title: Re: Subsonic Client
Post by: MiDWaN on February 08, 2017, 09:18:03 AM
Small update: v2.10 is out, introducing support for LibreSonic server installations (the responses from LibreSonic API use a different namespace and were not recognized as valid Subsonic servers from the plugin).
Title: Re: Subsonic Client
Post by: evil_mani-mani on February 13, 2017, 06:57:56 PM
Great plugin, there's not really any decent windows Subsonic clients so this is great. Question though, I don't see an option to browse 'starred' or top rated tracks or albums. How feasible would this be to implement in the tree? While I'm wishing for things as well, perhaps a way to 'star' tracks from within MusicBee? Cheers!
Title: Re: Subsonic Client
Post by: boroda on February 13, 2017, 07:25:18 PM
subsonic server sends only some basic tags to client: artist, title, album and some others. even album artist is inaccessible. not to speak about rating.
Title: Re: Subsonic Client
Post by: evil_mani-mani on February 13, 2017, 08:28:41 PM
subsonic server sends only some basic tags to client: artist, title, album and some others. even album artist is inaccessible. not to speak about rating.

That might have been the case years ago, but every modern client I've used (DSub, play:Sub, Jamstash, the official android client, etc) all support these features. There's API calls for getStarred, star, unstar, setrating, etc. (http://www.subsonic.org/pages/api.jsp). So it definitely doesn't look impossible.
Title: Re: Subsonic Client
Post by: boroda on February 14, 2017, 09:48:41 AM
That might have been the case years ago, ...
maybe you are right, i investigated this question 3-4 yeas ago.
Title: Re: Subsonic Client
Post by: kazak on May 04, 2017, 09:34:51 PM
I want to import my ratings from one MB library (let's call it MB1) to another that uses the subsonic client (MB2). Since subsonic doesn't support track rating, I will have two local copies cached in MB that I will have to sync manually.

I think the most straightforward way to do this is to import the itunes xml that is export from the MB1 library to MB2 once the subsonic library is added to MB2 (so it updates the ratings and playcounts, not the file locations which aren't available to MB2 network). I successfully installed the plugin, added all of the files from subsonic 'drive' to the MB2 library, checked the setting to automatically generate an itunes library xml.

Then in MB2 I clicked import library from itunes xml (selecting MB1 library using local files) and it added all the files again but with an error that the file couldn't be located. This is because the MB1 library used the files locally and MB2 using subsonic cannot access them. I deleted the duplicates and then I instead modified the MB2 library xml to include ratings. Once the MB2 xml had added ratings from MB1 xml (and a new name so it wasn't overwritten), i retried the import from MB2 and it read the file but nothing happened. It seems that if the location is subsonic, it won't add the track update the rating to my library. I made sure it wasn't how I modified the xml by just changing the existing rating of one track and trying to import it. Nothing. Is there a better way to do this or get this to work?
Title: Re: Subsonic Client
Post by: Boullie on June 20, 2017, 11:01:05 AM
Awesome work Dev's!!!
Thank you so much for making a plugin that properly works, over internet! :)
I used to have a commercial package to connect to my subsonic server, yet that dev took down his website and apparently the application checks everytime if your serial number is still valid: hence, back to trial which doesn't have any decent functionality.

This plugin is much better than the other application originally was, so I'm sticking to this one!

However, something I cannot seem to find is a way to download the database again?
My subsonic database gets updated daily and it seems as if the plugin just remains to use it's cached database, even after an update was done on server level?

How can I update the database?
I did notice that when I delete the subsonicCache.dat file, that musicbee will download the database again, but I cannot seem to find a way to update the subsonic library data from within musicbee.
Title: Re: Subsonic Client
Post by: MiDWaN on March 02, 2018, 08:32:10 PM
Hi all,
I've just pushed a new version out: v2.12.

Changes since the last version:
- Fixed bug where tracks would be incorrectly shown as Directories in some configurations
- Weaved assemblies into one file for ease of installation (now everything regarding this plugin is included in mb_Subsonic.dll)

You can grab it from the official Github repo: https://github.com/midwan/MB_SubSonic/releases

I'll also upload it on the Plugins page of MusicBee.


Note: Kindly open any requests, problems or bug fixes as Issues on the Github page. That's what I normally track and get notifications for, posting it here on this forum does not guarantee I will read it in time.. ;)
Title: Missing Playlists
Post by: jalabulajunx on April 13, 2018, 02:08:37 AM
@Steven - There is currently (or at least for some time) that from MusicBee v3.1 onwards, a user is unable to retrieve the Playlists from Subsonic servers. The last version it worked was on v3.0.6132. I did some digging on this based on the issue reported here (https://github.com/midwan/MB_SubSonic/issues/27), and I was able to reproduce. I did debug the plugin and its versions against MusicBee's version to verify that it is the issue. Looks like somewhere along the way v3.1 did break the playlists portion. The calls never hit the below code.

       public KeyValuePair<string, string>[] GetPlaylists()
       {
           return Subsonic.GetPlaylists();
       }

I am trying to help @Midwan to clear some of the issues posted on his plugin, and thought I could tackle this and another related issue (https://github.com/midwan/MB_SubSonic/issues/18) on creating playlists from MusicBee. Looks like we would need your blessing in resolving both the issues.

Please do let me know how I can help you with this.

Thanks.
Title: Re: Subsonic Client
Post by: Steven on April 13, 2018, 06:43:08 PM
you will need to send me the MB API calls - the section of code you quoted is purely related to the subsonic api

in terms of playlist creation, thats been supported for a very long time (Playlist_CreatePlaylist). Perhaps the plugin is using a very old version
https://getmusicbee.com/forum/index.php?topic=1972.0
Title: Re: Subsonic Client
Post by: jalabulajunx on April 16, 2018, 07:36:52 PM
Apologies for the late response, @Steven, for some reason I did not get a notification on your reply.

I am not sure a MB API call is used. I believe you had made specific changes to MusicBee application to directly call certain functions on Subsonic Plugin - GetFolders, GetFiles ... GetPlaylists. Looking at the CallStack - I see calls coming directly from MusicBee and not via the delegates. Not sure if I am missing the delegate to the function call, though.

I compared the v3.1 MusicBeeInterface.cs against the one inside the Plugin. They are one and the same.
Title: Re: Subsonic Client
Post by: jalabulajunx on April 24, 2018, 03:09:53 PM
@Steve - Following up on this question. Can you please let me know if there is something from your side that could be done?
Title: Re: Subsonic Client
Post by: Steven on April 24, 2018, 05:42:43 PM
It does look like the call to the plugin playlist function is being excluded. Could you try this version and let me know if it now works:
http://musicbee.niblseed.com/V3_1/MusicBee31_Patched.zip
unzip and replace the existing musicbee files
Title: Re: Subsonic Client
Post by: jalabulajunx on April 24, 2018, 06:22:08 PM
Thank you very much, Steve. Yes, I do see the playlists with this patched version.

Now, on to my second question - how do I intercept the call to create Playlists, so that I can code logic to have it created on the Subsonic Server instead of local?
Title: Re: Subsonic Client
Post by: jalabulajunx on April 24, 2018, 06:27:52 PM
Well, there is a small glitch. If the Subsonic Server node is already expanded, then I do not see the playlists. If collapse it, then restart musicbee and then expand the server node - I see the Playlists. I am not able to see the playlists if the Subsonic node was already expanded to show children.
Title: Re: Subsonic Client
Post by: Steven on April 24, 2018, 06:46:59 PM
try again, same link
MB doesnt support playlist creation from MusicBee to the plugin device. If you think its important add it to the wishlist but it would not get done for v3.1
Title: Re: Subsonic Client
Post by: jalabulajunx on April 24, 2018, 06:56:16 PM
Thanks, I tried. The same result - did not show until I restart with the node collapsed. This binary's timestamp is 1:40pm - which is the latest. The last one was 12:40pm.
Title: Re: Subsonic Client
Post by: Steven on April 24, 2018, 07:22:50 PM
not sure what happened. I have rebuilt it again. It should work
Title: Re: Subsonic Client
Post by: jalabulajunx on April 24, 2018, 07:59:13 PM
Sweet! It does. Thanks. Where do I find your wishlist bucket to add enhancement requests?
Title: Re: Subsonic Client
Post by: Steven on April 24, 2018, 09:06:27 PM
https://getmusicbee.com/forum/index.php?board=13.0
also be clear about what you want from the API eg. its not just creating the playlist, i expect it would also be supporting editing the playlist as well
Title: Re: Subsonic Client
Post by: MiDWaN on February 18, 2019, 07:43:05 PM
Hi all,
I just published a new version of the Plugin - v2.25:
https://github.com/midwan/MB_SubSonic/releases

Changes in this version, compared to the earlier release (v2.20):
- Internal code cleanup
- Implemented Disc number Tag mapping
- Implemented support for Star/Love Tag
- Implemented support for tracks Rating

Enjoy!
Title: Re: Subsonic Client
Post by: roman22 on March 14, 2019, 03:03:12 AM
Hi,

I just installed the plugin and everything works great except for one thing. "Album Artist" seems to use "Artist" instead, which creates a huge mess of my library (especially for compilation / contributing artists) D:

I don't know if I'm just missing a setting somewhere or if it's not implemented yet, but when googling the issue I found some really old comments saying It's not possible because subsonic only passes very basic tags. However I've noticed on the Gitbhub page that there are much more advanced features implemented than simple "Album Artist" which leads me to believe I'm just missing something?

subsonic server sends only some basic tags to client: artist, title, album and some others. even album artist is inaccessible. not to speak about rating.

That might have been the case years ago, but every modern client I've used (DSub, play:Sub, Jamstash, the official android client, etc) all support these features. There's API calls for getStarred, star, unstar, setrating, etc. (http://www.subsonic.org/pages/api.jsp). So it definitely doesn't look impossible.

Cheers.
Title: Re: Subsonic Client
Post by: MiDWaN on March 14, 2019, 08:32:25 AM
I'm afraid that the Subsonic API still doesn't return AlbumArtist, so we cannot do much about that until it does: http://www.subsonic.org/pages/api.jsp#getAlbum
Title: Re: Subsonic Client
Post by: diljitdosanjh on March 18, 2019, 02:31:39 AM
thank you for the updates, cheers!
Title: Re: Subsonic Client
Post by: MiDWaN on April 01, 2019, 01:19:10 PM
Just published v2.27, which includes the following changes:

Changed the default behavior of Pre-Caching all directories recursively, to optional. This is now controlled by a checkbox in the Settings window (OFF by default). This change enhances the experience a lot, since the server is now available for browsing/playing immediately, and will only load/cache what is browsed on-demand.

Grab it from the usual release URL: https://github.com/midwan/MB_SubSonic/releases/latest
Title: Re: Subsonic Client
Post by: valentin on November 21, 2019, 01:58:36 PM
Hello,

My music collection is stored on a Nextcloud server, at home. I have enabled the "music (https://github.com/owncloud/music)" app (version 0.11.0) to allow streaming the audio files from my collection to external applications compatible with Subsonic (and Ampache).

On my Arch Linux laptop I use "Clementine" which has built-in capabilities to stream from a Subsonic server. This works perfectly.

On my work laptop (Windows 10) I have installed MusicBee and, following the instructions (https://github.com/midwan/MB_SubSonic) kindly provided by MiDWaN on GitHub, I tried to configure the plugin as shown below:

(https://i.imgur.com/rMk9V1c.jpg)

The music app shows this address to use when browsing the music collection from a Subsonic compatible player:

Code
https://<my.home.server>:<port#>/index.php/apps/music/subsonic

This combination of "hostname" and "port number" is the only one which make possible the main MusicBee window to show "Detected a Subsonic server" and ""Done running GetFolderFiles" messages in the lower left corner (see images below).

(https://i.imgur.com/KEfjLAG.jpg)

(https://i.imgur.com/GoYtGXR.jpg)

The issue is that no audio file from my collection is shown (as you can see in the two images above).

Other details which may help in troubleshooting the issue:

Subsonic Client v2.28.00
MusicBee version: 3.3.7261
Nextcloud version: 16.0.5 running on Ubuntu 18.04.3 LTS
I have a static IP from my ISP
Title: Re: Subsonic Client
Post by: rocketvole on February 02, 2020, 09:47:39 PM
To steven, or whomever maintains this project: thank you! This plugin is the only way I can play subsonic server stuff on a windows 10 computer.
Title: Re: Subsonic Client
Post by: phred on February 03, 2020, 03:43:25 AM
This plugin is the only way I can play subsonic server stuff on a windows 10 computer.
It's certainly not the "only" way.
You can also use your web browser to reach your server. From -any- computer running -any- OS, from -any-where.
Title: Re: Subsonic Client
Post by: Gerd on April 25, 2020, 05:31:07 PM
Hi, i would love to use MusicBee with my Nextcloud installation using the Nextcloud Music app, but somehow i can not connect to its supersonic api. No matter what settings i chose, the supersonic plugin always tells me on ping requests that the server did not respond to ping as expected and i get no tracks displayed in the subsonic folder. any ideas, or can i do somethig to help debugging?

btw, i can perfectly connect to my Nextcloud using Subsonic android app, clementine also works, but its uggly and takes ages to load the library...
Title: Re: Subsonic Client
Post by: Gerd on April 25, 2020, 05:42:50 PM
seems i am not the first to try this without success, however, i can not even make it detect the subsonic server...

Hello,

My music collection is stored on a Nextcloud server, at home. I have enabled the "music (https://github.com/owncloud/music)" app (version 0.11.0) to allow streaming the audio files from my collection to external applications compatible with Subsonic (and Ampache).

On my Arch Linux laptop I use "Clementine" which has built-in capabilities to stream from a Subsonic server. This works perfectly.

On my work laptop (Windows 10) I have installed MusicBee and, following the instructions (https://github.com/midwan/MB_SubSonic) kindly provided by MiDWaN on GitHub, I tried to configure the plugin as shown below:

(https://i.imgur.com/rMk9V1c.jpg)

The music app shows this address to use when browsing the music collection from a Subsonic compatible player:

Code
https://<my.home.server>:<port#>/index.php/apps/music/subsonic

This combination of "hostname" and "port number" is the only one which make possible the main MusicBee window to show "Detected a Subsonic server" and ""Done running GetFolderFiles" messages in the lower left corner (see images below).

(https://i.imgur.com/KEfjLAG.jpg)

(https://i.imgur.com/GoYtGXR.jpg)

The issue is that no audio file from my collection is shown (as you can see in the two images above).

Other details which may help in troubleshooting the issue:

Subsonic Client v2.28.00
MusicBee version: 3.3.7261
Nextcloud version: 16.0.5 running on Ubuntu 18.04.3 LTS
I have a static IP from my ISP

Title: Re: Subsonic Client
Post by: wortoltje on May 25, 2020, 10:27:28 AM
Same problem as Valentin, except for using Nextcloud.
I can connect with my Subsonic server and when I try to go to my Subsonic tab in Musicbee albums do show up after a refresh, but i get a message that the directory is NOT FOUND. Also full albums are indicated as single songs with length 0:00 .

Note that this only happened when accessing my full music library. When I tested this with 10+ albums I didn't experienced this problem...

Hello,

My music collection is stored on a Nextcloud server, at home. I have enabled the "music (https://github.com/owncloud/music)" app (version 0.11.0) to allow streaming the audio files from my collection to external applications compatible with Subsonic (and Ampache).

-------
-------
-------

The issue is that no audio file from my collection is shown (as you can see in the two images above).

Other details which may help in troubleshooting the issue:

Subsonic Client v2.28.00
MusicBee version: 3.3.7261
Nextcloud version: 16.0.5 running on Ubuntu 18.04.3 LTS
I have a static IP from my ISP

Title: Re: Subsonic Client
Post by: dabeastro on June 27, 2020, 06:44:54 PM
Thank you so much for your work on this. I've got an Airsonic server working well with this. It populates nicely in the computer node. Node shows up as an option for monitoring.  Nothing happens with this though. So I resorted to just selecting all the files and doing an send to music library. That works pretty well, but will of course need to be done every time I add music to the server. Is this the best/only way to achieve getting the subsonic files into the MB library? Just checking to see if maybe I am missing something on the server side. Thanks again!
Title: Re: Subsonic Client
Post by: MiDWaN on February 05, 2021, 07:32:37 PM
It's been quite a while, I know... But I have a new release for you!
https://github.com/midwan/MB_SubSonic/releases/tag/v2.30

This one fixes several issues, removes the problematic pre-caching function and background tasks, and hopefully works better for you.
Title: Re: Subsonic Client
Post by: MiDWaN on March 15, 2021, 10:01:37 AM
New bugfix release is out: https://github.com/midwan/MB_SubSonic/releases/tag/v2.31

This fixes a problem with some Subsonic-compatible servers (e.g. Ampache), which failed to connect after the previous updates.
Title: Re: Subsonic Client
Post by: alexprevity on April 03, 2021, 01:23:22 AM
Hey all! Not sure if this is the right place to ask this, but I'm pretty sure the issue I'm experiencing is specific to the Subsonic plugin. In the Computer panel on the left, if I left click on a parent folder that is local to my PC (no matter how many sub-folders there are), it shows all of that folder (and its sub-folders') tracks in the Tracks panel in the center. However, if I'm under the Subsonic section of the Computer panel that the plugin added, I cannot see any tracks in the Track panel unless I left click on the lowest folder hierarchically. So if I have Music (Subsonic folder) > Globe (artist) > Global Trance (album), if I click on "Globe", the Track panel shows nothing. But if I click on "Global Trance", the Track panel does indeed show all of the tracks in that folder. Is this just a limitation of the Subsonic plugin, or is there something I can configure to have it show up as expected? Ideally, I would like to be able to select the highest folder I have available under Subsonic ("Music"), and be able to browse Artists as dictated by the metadata.

Thanks!
Title: Re: Subsonic Client
Post by: MiDWaN on April 03, 2021, 07:19:25 PM
This is by-design. The subsonic server is on the network, and unless you have a local offline database you cannot expect to get the whole list of tracks from the server without delays. So the decision was to show only the contents of the selected folder, instead.
The alternative is to browse by Tags, as you mentioned. But that is a separate function in Subsonic (different API calls, different handling) which hasn't been implemented in the plugin, yet. It's in the TODO list for the future...
Title: Re: Subsonic Client
Post by: alexprevity on April 05, 2021, 07:48:05 PM
Okay, that makes sense to me! It would be a lot of info to pull down for sure.

On another note, I was wondering something else - I was wanting to make an Auto Playlist locally in MusicBee. It seems that I am choose Subsonic in "music track source", but nothing populates at all in the Auto Playlist, no matter what criteria I set up. Is this just a limitation of how the Subsonic plugin works?
Title: Re: Subsonic Client
Post by: phred on April 05, 2021, 09:11:42 PM
I was wanting to make an Auto Playlist locally in MusicBee
I don't use this plugin, but I do use Subsonic. Unless I'm misunderstanding what you're trying to do, you should create the auto-playlist in MB. Then it will (should) show up on Subsonic just like any other playlist.
Title: Re: Subsonic Client
Post by: alexprevity on April 12, 2021, 06:26:31 PM
I don't use this plugin, but I do use Subsonic. Unless I'm misunderstanding what you're trying to do, you should create the auto-playlist in MB. Then it will (should) show up on Subsonic just like any other playlist.

Unfortunately, even though MusicBee technically allows you to choose Subsonic as the media library source for the playlist, it does not end up finding any files since they are not local files (and only are populated via the plugin). So at this point it does not seem possible to use MusicBee auto playlists with Subsonic media source. For now I am using a "smart playlist" Subsonic workaround, and MusicBee pulls those down just fine!
Title: Re: Subsonic Client
Post by: phred on April 12, 2021, 08:02:05 PM
Are you creating your playlists on Subsonic and playing them on MB?

I have MB running on my PC. It exports playlists (auto and static) any time there's a change. Subsonic is also running on the same PC. The music files are on a NAS, with its directory mapped to a drive letter. Subsonic scans the music files (on the NAS) and the playlist files (on a PC) once a day and updates Subsonic. Subsonic has no trouble seeing/playing the playlists.

Where is MB installed?
Where are you playlists?
Where are you music files?
Are you exporting your MB playlists?
Is Subsonic not seeing them?
Do you have MB set up correctly to export the playlists? And are you remapping the file path(s)?
Title: Re: Subsonic Client
Post by: alexprevity on April 13, 2021, 07:35:19 PM
Are you creating your playlists on Subsonic and playing them on MB?

I have MB running on my PC. It exports playlists (auto and static) any time there's a change. Subsonic is also running on the same PC. The music files are on a NAS, with its directory mapped to a drive letter. Subsonic scans the music files (on the NAS) and the playlist files (on a PC) once a day and updates Subsonic. Subsonic has no trouble seeing/playing the playlists.

Where is MB installed?
Where are you playlists?
Where are you music files?
Are you exporting your MB playlists?
Is Subsonic not seeing them?
Do you have MB set up correctly to export the playlists? And are you remapping the file path(s)?


I don't have any issue getting manual playlists created in MusicBee showing up in Subsonic! That part works fine. My issue is within MusicBee itself.

MusicBee is installed on my PC, and my music files live on my Synology NAS. The NAS is not able to be mounted to my PC as a remote drive, so I use my Mac to connect to the NAS to manage its media organization via iTunes. The issue is that if I create an auto playlist in MusicBee, it cannot properly see music that I access via the Subsonic MB plugin. I can easily make manual playlists with Subsonic source in MB, but the auto playlist feature does not seem to play nice with the Subsonic plugin. For example, I would want MusicBee to make an auto playlist with any "loved" songs with the "VGM" genre. No matter what I try and do with any criteria, MB auto playlists cannot see Subsonic media, even if you are able to technically select Subsonic as the media source in the auto playlist settings menu.
Title: Re: Subsonic Client
Post by: MiDWaN on September 01, 2021, 09:10:19 PM
It's been a while, but I've updated the plugin to a newer version:
https://github.com/midwan/MB_SubSonic/releases/tag/v2.33

This version fixes a bug that was introduced after v2.28 came out, and caused Playlists created on Subsonic servers to misbehave (tracks not playing).
Please also note that the latest MB 3.4 had a bug that caused Subsonic playlists to show up empty - this has been fixed with a patched version of MusicBee, so when that becomes available it shouldn't be a problem anymore.

Please report any issues on the Github project page! I check the forum from time to time also, but not as often. ;)
Title: Re: Subsonic Client
Post by: phred on September 01, 2021, 10:00:48 PM
this has been fixed with a patched version of MusicBee, so when that becomes available it shouldn't be a problem anymore.
If Steven fixed the MB issue in a patch version, then the patch is already available.
Title: Windows 11 MusicBee install + Subsonic
Post by: JMW on March 18, 2022, 11:57:02 AM
Hi,

I am sorry if this is the wrong place to post this question and plea for help...

I have a Subsonic server set up at home which works fine with the android app and I am able to log in using the web interface. I really want to link MusicBee to my Windows 11 machine and use the subsonic plugin but I cant seem to get it to work.  I am certain 100% that my hostname user and password are correct but to no avail.

Any help would be greatly appreciated as I really don't want to use any other player as MusicBee is the best one by far....so much so I spot Steven a few quid every now and again when I can afford it....it really is that good...


Thanks once again 
Title: Re: Windows 11 MusicBee install + Subsonic
Post by: phred on March 18, 2022, 12:57:50 PM
but I cant seem to get it to work.  I am certain 100% that my hostname user and password are correct but to no avail.
More details please.
What version of MB are you using? (Help > About)
How was MB installed? (Store, Installer, Portable)
How/Where did you install the plugin?
What happens when it "doesn't work"?
Do you see the plugin in Preferences > Plugins?
Is there anything in the Error Log at the time you try it? (Help > Support > View Error Log)
Title: Re: Subsonic Client
Post by: JMW on March 18, 2022, 03:27:48 PM
Hi phred,

Thanks for any help you may be able to give me.

I am using MB Version 3.4.8102
MB was installed using the installer (no settings or folder locations were changed during this)
The plugin was from the MB plugins pages, extracted and copied over to the plugins folder in the MusicBee folder (C:\Program Files (x86)\MusicBee\Plugins)
Once copied over, I restarted MB, and go to configure the plugin.
As for the error log, please see the attached................

OK.......this is pleasing (for me) and annoying (for wasting your time)

I just tried getting an error log, so had to replicate the issue again, as I had shut MB down...guess what....Pinged successfully (rather than giving me a massive error) and MB is now running Getindexes. I am going to assume I will have no issues from here on in.

Thanks for helping anyway, it's really appreciated.
Title: Re: Subsonic Client
Post by: phred on March 18, 2022, 04:07:48 PM
Thanks for the additional information. Glad to hear a simple restart took care of the issue.
Title: Re: Subsonic Client
Post by: beenoob on March 27, 2022, 04:51:13 AM
MusicBee installed on Windows 11 (192.168.100.16).
Airsonic (:4040), Gonic (:7000) installed on Raspberry Pi moodeaudio OS (192.168.100.18)

Both Airsonic and Gonic are accessible on the webserver page.

But when I try to put these details in the MusicBee Subsonic plugin, I get the error - The server did not respond to Ping as expected!

Am I doing something wrong?

MusicBee Version - 3.4.8033
Subsonic Client Version - 2.33.0
Installed from full installer.
Plugin installed by copying it to C:\Program Files (x86)\MusicBee\Plugins
Error - Ping response not OK. The server did not respond to Ping as expected!
Yes, the plugin is visible in the Preferences > Plugins
Nothing in the Error log about the plugin error or any error at the time of using the plugin.
Title: Re: Subsonic Client
Post by: Brant on June 14, 2022, 08:44:22 PM
I'm using Ampache and it implements its version of the subsonic API. I've got it working with a couple of clients running on Linux and Android. I tried to use this plugin and it fails to connect. Based on my access logs I believe that the problem that this plugin+Ampache is having is that Ampache expects all the /rest/* requests to have a .view extension (e.g. /rest/ping.view rather than /rest/ping).
Title: Re: Subsonic Client
Post by: kornkid5622 on October 23, 2022, 06:46:51 PM
Hi I'm attempting to use the Subsonic Plugin with a Navidrome server, and I am able to connect and even see my music library, but can't get it to show in the main page of MusicBee only the dropdown..

(https://i.imgur.com/ES6vqBF.png) (https://i.imgur.com/cfnnqOK.png)

the only time I can get it to show anything in the library is if I select a single album in the Subsonic Dropdown

(https://i.imgur.com/WrZW7ru.png) (https://i.imgur.com/oFOybgg.png)

is there any way to get it to show the whole library when I click on Subsonic?
Title: Re: Subsonic Client
Post by: MiDWaN on November 07, 2022, 09:18:51 PM
is there any way to get it to show the whole library when I click on Subsonic?

Not currently.
There used to be an option to pre-cache all the subfolders of the server, but it was causing too much trouble (especially with large collections), so it was removed a few versions back. I will take another look at this at some point, however.
Title: Re: Subsonic Client
Post by: MiDWaN on November 07, 2022, 09:21:38 PM
Just wanted to let everyone know, I published a new version of the MB_Subsonic plugin today!
Version 3 brings support for multiple server Profiles (you can configure as many as you want, but only one is active at a time), and includes some breaking changes as well - make sure to read the release notes:
https://github.com/BlitterStudio/MB_SubSonic/releases/tag/v3.0

I also have a donation page up, if you would like to buy me a coffee and help support my projects: https://ko-fi.com/midwan
Title: Re: Subsonic Client
Post by: DexEngineer on January 20, 2023, 04:50:36 PM
Trying to connect to Navidrome on NAS via domain name navidrome.nas.local, which is registered in local DNS server.
When testing with Ping Server button, the error is presented:
Code
Error retrieving response from Subsonic server:
System.Net.HttpRequestException: An error occurred while sending the request. --> System.Net.WebException:
Unable to connect to remote server ---> System.Net.Sockets.SocketException:
An attempt was made to access a socket in a way forbidden by its access permissions 192.168.2.14:443
The error is clear to me... MusicBee Subsonic Plugin is trying to use IP address.
The issue is that I use Nginx Proxy Manager for multiple services behind 192.168.2.14 address, e.g. jellyfin.nas.local, portainer.nas.local, etc.
Navidrome Web GUI or Substreamer Android App are connecting with navidrome.nas.local without that issue.

I guess something happens in PingServer function:
Code
        public static bool PingServer(SubsonicSettings settings)
        {
            _currentSettings = SettingsHelper.SanitizeSettings(new List<SubsonicSettings>{settings}).First();
            _serverName = BuildServerUri(_currentSettings);
           ..
        }

Regards
Title: Re: Subsonic Client
Post by: bbblimits on February 13, 2024, 10:30:39 AM
I'm having above issue as well. Can anyone suggest what to do here?