artemanufrij / playmymusic

An elementary OS app
http://anufrij.org/melody
96 stars 26 forks source link

The ability to add multiple library locations #23

Open dmanlfc opened 6 years ago

dmanlfc commented 6 years ago

It would be good if you could add multiple locations for the library I separate some of my music in the household for remixes & DJ sets away from the main library for other tools such a Plex. Having the option to add another library location instead of Change Library would be great!

artemanufrij commented 6 years ago

Is it important for you that your second library would monitored for new files? If -not- so you can use "Import Musicโ€ฆ" for import any libraries.

dmanlfc commented 6 years ago

Correct - monitored like the primary library. I use it for all my DJing stuff which is separated so I don't have it showing up on other systems around the house.

malpaw commented 6 years ago

Alternatively, one could just use symbolic links to group all locations in one directory. @dmanlfc, would this serve as a workaround for you? The thing is, in my case the crawler does not always follow such links, possibly due to the fact some of them are network shares?

artemanufrij commented 6 years ago

@malpaw you are right. Following symbolic links is already implemented. ๐Ÿ‘

malpaw commented 6 years ago

It is, hovewer it seems the crawler ignores network shares as the only implementation I found is named LocalFilesManager:

lf_manager = PlayMyMusic.Services.LocalFilesManager.instance;

If so, the workaround I proposed would not always help.

artemanufrij commented 6 years ago

how did you linked your network share?

malpaw commented 6 years ago

ln -s /media/share-mounted-by-file-manager /home/user/Music/here

artemanufrij commented 6 years ago

thanks. I will test it.

artemanufrij commented 6 years ago

Network shares are available over gvsf like (smb://bulldozer/scanner/) on my system. Just remoteable devices are mounted on /media/user/device. :confused:

malpaw commented 6 years ago

I checked again and it doesn't work even for symbolic links to a local filesystem, logging one warning for each such links: ** (com.github.artemanufrij.playmymusic:21221): WARNING **: LocalFilesManager.vala:85: Operation is not supported

Sorry for spamming this issue, it looks like a separate one.

artemanufrij commented 6 years ago

No worries ๐Ÿ˜„ . It helps me to improve the app ๐Ÿ‘