Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jalabulajunx

Pages: 1
1
MusicBee API / API Request: Subsonic - Playlist(s) API
« on: May 02, 2018, 08:42:34 PM »
Hello, Steve -

This is a follow-up post from here on the request for APIs on creating and modifying Playlists from Subsonic Plugin.  I have written down the requirements in a user story/gherkin format. Let me know if you have any questions.

For Create Playlist(s)

As a user, I would like to create a playlist of songs within my Subsonic server, so that I can access it anywhere on various clients

Saving the playlist
Given that users have selected one or more songs that are part of Subsonic
When they invoke an option to save it as a playlists
Then they should be provided with a way to save the playlist on Subsonic server

Options while saving the playlists
Given that users have selected songs to save as playlists
When they invoke option to save
Then they are provided with options to enter a name, description and private/public flag for the Playlist

For Editing and Modifying Playlists' attributes

As a user who owns the playlists, I would like to edit and modify playlists' name, description and/or the private/public flag, so that I control the playlists

User who owns the playlists
Given that user selected a playlist
When they edit the Playlist
Then they should see an option to edit its attributes - Name, Description, and Flag.

User who does not own the playlists - Shared playlists
Given that the user selects playlists
When they try to edit the playlists
Then they do not see options to modify any of the attributes


For Deleting Playlist(s)

As a user, I would like to delete a playlist I own, so that I have a complete control on my playlists.

User who owns the playlists
Given that user selected a playlist
When they delete the Playlist
Then they are presented with a confirmation for deletion
And upon confirmation, the playlists get deleted from the Subsonic server

User who does not own the playlists - Shared playlists
Given that the user selects playlists
When they try to delete the playlists
Then they do not see an option to delete the playlists


For modifying the contents of the playlist(s)

As a user who owns the playlists, I should be able to modify the contents of the playlists, i.e., add or remove songs from the playlist so that I can customize and publish the playlists to be accessible across devices

Removing
Given that user selects the playlists
When they view the songs that make up the playlist
Then they see an option to remove one or more songs from the playlists (either right-click or other means) on Subsonic
//Per Subsonic API, the remove takes the index of the song within the playlist and not the songId.


Adding
Given that user is viewing an album or a playlist of songs
When they right click on the song/songs
Then they see an option to add the songs to the playlists on Subsonic server
//Per Subsonic API, the add takes the songId.

Non-owners
Given that users who do not own the playlist views it
When they right-click a song/songs
Then they do not see an option to remove songs from the playlist they do not own on Subsonic
And they do not see an option to add songs to a playlist they do not own on Subsonic

2
Plugins / Re: Subsonic Client
« on: April 24, 2018, 07:59:13 PM »
Sweet! It does. Thanks. Where do I find your wishlist bucket to add enhancement requests?

3
Plugins / Re: Subsonic Client
« 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.

4
Plugins / Re: Subsonic Client
« 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.

5
Plugins / Re: Subsonic Client
« 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?

6
Plugins / Re: Subsonic Client
« 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?

7
Plugins / Re: Subsonic Client
« 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.

8
Plugins / Missing Playlists
« 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, 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 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.

Pages: 1