[SOLVED] Auto-Shuffle not working in combination with "folder" Tag Filter - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [SOLVED] Auto-Shuffle not working in combination with "folder" Tag Filter (/showthread.php?tid=3571) |
Auto-Shuffle not working in combination with "folder" Tag Filter - jenzd - 03-07-2021 Hi all, I am running Moode 7.0.1 on a Raspberry Pi 3B and have encountered the following problem with the Auto-Shuffle feature in combination with a "folder" Tag Filter:
Any ideas, how to solve this issue? Thanks & Best regards jenzd By the way: Thank you for this awesome piece of software. It's fascinating that pretty much everything I dreamed of (and more) is working straight out of the box! :-) RE: Auto-Shuffle not working in combination with "folder" Tag Filter - jenzd - 03-09-2021 Hi all, In the meantime I have solved the problem myself. As usual, the root cause was sitting in front of the screen:
Best regards Jens RE: Auto-Shuffle not working in combination with "folder" Tag Filter - Tim Curtis - 03-09-2021 Good find regarding "filename". I'll update the (i) help cos that one is not obvious since MPD itself uses just "file". RE: Auto-Shuffle not working in combination with "folder" Tag Filter - jenzd - 03-10-2021 Since the contents of the Tag Filter field is internally passed to MPC, it is interestingly even possible to select more than one folder using regular expressions. E.g. the following Tag Filter works: '(filename =~ "nas/nas-station/music/(some-folder|other-folder)")' This shuffles all files in "nas/nas-station/music/some-folder" as well as "nas/nas-station/music/other-folder". Really cool. By the way: Is something similar also possible in the Advanced Search of the Library? RE: Auto-Shuffle not working in combination with "folder" Tag Filter - Tim Curtis - 03-10-2021 Prolly. The Library filters interact with MPD directly but we compile it with Perl Regular Expression support. RE: Auto-Shuffle not working in combination with "folder" Tag Filter - jenzd - 03-10-2021 Thanks for the hint, Tim! Indeed it is possible, yet with a trick to circumvent the standard behaviour of the Advanced Search web interface. The trouble with the current interface is that it puts each search string into a "contains" context. To enable regular expressions, however, it is necessary to use "=~" instead. Fortunately the interface can be cheated:
Thanks again & best regards Jens |