Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: Use shared playlistes on a NAS on local devices
#1
Question 
Hi together,

i use 2 Moode-devices in the same network, and i looked at the preferences if there is a possibility to use non-local playlists.
I think there is no such feature implented at the moment..

Would it be a big thing to integrate a path to a NAS where the playlists are?
Would it be a problem if two devices would add songs to the favorites/playlists?
For me, it would be no problem if songs, which has beeen added by the other device, would appear after a certain time or after a reboot or reselection of the playlist.

Thanks in advance!
Tom
Reply
#2
Good questions. Someone would need to test such a configuration.

IIRC below is the approach for remote playlist directory. Not tested on my end so YMMV

NAS
- Create a playlist directory named Playlists
- Configure it as a shared directory so other hosts can see it
- Copy playlist files to the directory

PI
- Using SSH create a mount point named /mnt/Playlists in /etc/fstab to the shared playlists directory on the NAS
- Using SSH create a symlink in /var/lib/mpd/ to the playlists share

Code:
# Delete the local playlist directory (it needs to be empty first)
sudo rmdir /var/lib/mpd/playlists

# Create the symlink (
sudo ln -s /mnt/Playlists /var/lib/mpd/playlists
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
I've been using this type of configuration for most of the last year without a problem (see my original question here: https://moodeaudio.org/forum/showthread....2#pid47122).

The one problem currently is that before updating I have to revert to the old playlist directory, otherwise the update fails with an error. Thus I haven't deleted the old directory but simply moved it to playlists.org before creating the symlink. Now whenever I want to update I move the symlink out of the way and the old directory into its original place, do the update and then move them back.

The only caveat is that with multiple devices you need to mount the NAS to the exact same paths for the playlists to be correct on all devices.

And naturally the playlists are only available when the NAS is reachable...
Reply


Forum Jump: