MPExtended / WifiRemote

Remote access plugin for MediaPortal
GNU General Public License v3.0
4 stars 5 forks source link

Create a music playlist from file #22

Closed johanj closed 10 years ago

Shukuyen commented 10 years ago

Thanks for your pull request, @johanj! Can you please add a description what you changed, what it does and how it can be used? Thanks!

johanj commented 10 years ago

The new feature is to create a music playlist from file or folder(CreatePlaylistItemFromMusicFile, CreatePlaylistItemFromMusicFolder in MpMusicHelper.cs). This features already existed for other media types but was not implemented for music and my commit added support for music.

I also updated a few log messages that said 'play' when it should be 'show'. Probably a copy/paste misstake from DieBagger.

So it's general MPExt. commands so it's not specific for music, it just now works also for music.

The usage is e.g. {Type: "mpext", Action: "enqueue", ItemId: id, MediaType: parseInt(mediaType), ProviderId: parseInt(provider), StartPosition: 0, PlayInfo: playInfo}