museeks icon indicating copy to clipboard operation
museeks copied to clipboard

Support for playing files without adding to the library

Open YurySolovyov opened this issue 9 years ago • 12 comments

It should be possible to play selected (possibly multiple) files via:

right click -> open with -> museeks

Related: #154

YurySolovyov avatar Aug 17 '16 11:08 YurySolovyov

I would really like to have this. 😄

aleclarson avatar Jan 15 '17 09:01 aleclarson

@KeitIG In addition to the OP, I thought about adding files to playlists without going through library, what do you think if we add context menu to the + button with 3 items "From files", "From folders", "From library" ?

YurySolovyov avatar Apr 04 '17 19:04 YurySolovyov

Sort of like in https://github.com/KeitIG/museeks/issues/248, we can also drop files(or folders, or mixed) on playlist area to add them to playlist.

YurySolovyov avatar Apr 04 '17 19:04 YurySolovyov

Currently working on this, but the documentation on file association is terrible, and testing it is tough too.

martpie avatar Apr 15 '18 23:04 martpie

https://electronjs.org/docs/api/app#event-open-file-macos for macOS, parse process.argv for linux/win.

martpie avatar Apr 15 '18 23:04 martpie

Any progress in this?

On Linux, this functionality is handled by MimeType record in .desktop file:

...
...
MimeType=audio/mp1;audio/mp2;audio/mp3;

for example. List of MimeTypes would be probably longer. But it also has to be implemented in binary itself, to provide functionality to run command like this:

./museeks myfile.mp3

This could add this file into the library and play it, or just play it if it's already in the library.

BlueManCZ avatar Mar 27 '20 17:03 BlueManCZ

The problem is not too hard in terms of OS integration. It's about how the app works itself.

Currently, you can only play music that is in your library. In order to make it work, I need to add support to play files without them being in the library.

martpie avatar Mar 27 '20 18:03 martpie

I like ideology in Clementine music player. When you open file from the file manager, it is added into your library no matter what. You can then remove it if you don't want it there.

BlueManCZ avatar Mar 27 '20 18:03 BlueManCZ

I like ideology in Clementine music player. When you open file from the file manager, it is added into your library no matter what. You can then remove it if you don't want it there.

maybe this is the solution yes, I feel it's weird though. imo it should play the title without adding it, it feels more natural.

martpie avatar Mar 27 '20 19:03 martpie

it should play the title without adding it

But then you can't fill your library by opening files from the file manager. In Clementine, you can do this. Maybe solution would be adding "File open behaviour" into the settings.

BlueManCZ avatar Mar 27 '20 19:03 BlueManCZ

Maybe solution would be adding "File open behaviour" into the settings.

Paired with a dialog prompting the user to set this when first doing ./museeks song.mp3, I think would be viable...

"Should files opened by Museeks be added to the Library?"

qcasey avatar Mar 27 '20 19:03 qcasey