Thank you for your donation!


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


Shuffle on album level
#21
Thanks Tim. I’ll see how it goes.
Reply
#22
I’m getting inconsistent results with 192.168.0.157/Public/Music in the tag field. Sometimes it works, sometimes it doesn’t. Should I use inverted commas/quotation marks at start and end of the string?
Reply
#23
(12-05-2024, 04:49 PM)ICLlP Wrote: I’m getting inconsistent results with 192.168.0.157/Public/Music in the tag field. Sometimes it works, sometimes it doesn’t. Should I use inverted commas/quotation marks at start and end of the string?

I think you FIRST need to mount 192.168.0.157's root folder as a NAS or SMB share for instance, then use what Tim suggested:
file NAS/Public/Music

Or, maybe more correctly, mount 192.168.0.157/Public as a NAS, and then access it with
file NAS/Music

Of course, once you do this, you need a library update/rebuild in order MPD to know the file paths of your music, and filter them out during a search... with moOde you just cannot search a folder of your choice if MPD is not already aware of its contents. Anybody prove me wrong on this, of course.
Reply
#24
Thanks, but being a bit dim I’m not sure that I follow you. I hit the SMB scan button and selected the NAS volume from the drop-down. I now have the source as Drobo5N2/Public. On the volume I have three folders of content: Music, Classical and OtherStuff. By manual editing of the path I create three sources: Drobo5N2/Public/Music, Drobo5N2/Public/Classical and Drobo5N2/Public/OtherStuff. I want to limit the album shuffling to Drobo5N2/Public/Music. So, what exactly should I enter in the Tag filter field?
Reply
#25
In the Remote NAS Source screen note the "Name" entry. Let's refer to this entry as "SHARE_NAME".

In the Auto-shuffle "Tag filter" field enter the following:

Code:
filename "NAS/SHARE_NAME/Music"

Behind the scenes the command below is used to perform the filter

Code:
mpc search filename "NAS/SHARE_NAME/Music"
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#26
(12-05-2024, 06:16 PM)Tim Curtis Wrote: In the Remote NAS Source screen note the "Name" entry. Let's refer to this entry as "SHARE_NAME".

In the Auto-shuffle "Tag filter" field enter the following:

Code:
filename "NAS/SHARE_NAME/Music"

Behind the scenes the command below is used to perform the filter

Code:
mpc search filename "NAS/SHARE_NAME/Music"
The NAS name is Drobo5N2, so do I put “NAS/Drobo5N2/Public/Music” or “Drobo5N2/Public/Music”?
Reply
#27
(12-05-2024, 06:40 PM)ICLlP Wrote:
(12-05-2024, 06:16 PM)Tim Curtis Wrote: In the Remote NAS Source screen note the "Name" entry. Let's refer to this entry as "SHARE_NAME".

In the Auto-shuffle "Tag filter" field enter the following:

Code:
filename "NAS/SHARE_NAME/Music"

Behind the scenes the command below is used to perform the filter

Code:
mpc search filename "NAS/SHARE_NAME/Music"
The NAS name is Drobo5N2, so do I put “NAS/Drobo5N2/Public/Music” or “Drobo5N2/Public/Music”?

The only variable is SHARE_NAME. Just replace it with whatever is in the "Name" field on the Remote NAS Source screen. The terms "NAS" and "Music" are constants in the string.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#28
I can’t get it to work with (single or double) quotes.
The path to my music is USB/6364-3239/
Music bought from Bandcamp is in USB/6364-3239/_Bandcamp/
It doesn’t work with any of these:

Code:
filename “USB/6364-3239/_Bandcamp/“
filename “_Bandcamp”
filename ‘_Bandcamp’
filename USB/6364-3239/_Bandcamp


It only works when I use 
Code:
filename _Bandcamp

   
Reply
#29
(12-05-2024, 07:42 PM)Tim Curtis Wrote:
(12-05-2024, 06:40 PM)ICLlP Wrote:
(12-05-2024, 06:16 PM)Tim Curtis Wrote: In the Remote NAS Source screen note the "Name" entry. Let's refer to this entry as "SHARE_NAME".

In the Auto-shuffle "Tag filter" field enter the following:

Code:
filename "NAS/SHARE_NAME/Music"

Behind the scenes the command below is used to perform the filter

Code:
mpc search filename "NAS/SHARE_NAME/Music"
The NAS name is Drobo5N2, so do I put “NAS/Drobo5N2/Public/Music” or “Drobo5N2/Public/Music”?

The only variable is SHARE_NAME. Just replace it with whatever is in the "Name" field on the Remote NAS Source screen. The terms "NAS" and "Music" are constants in the string.
Thanks Tim. I have entered: NAS/Drobo5N2/Public/Music
I’ll report back.
Reply
#30
What does mpc search return?

Code:
mpc search filename "USB/6364-3239/_Bandcamp/“
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: