Support for playing files without adding to the library
It should be possible to play selected (possibly multiple) files via:
right click -> open with -> museeks
Related: #154
I would really like to have this. 😄
@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" ?
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.
Currently working on this, but the documentation on file association is terrible, and testing it is tough too.
https://electronjs.org/docs/api/app#event-open-file-macos for macOS, parse process.argv for linux/win.
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.
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.
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.
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.
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.
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?"