PDA

View Full Version : How to exclude folders from a scan?



jtc
2011-12-29, 03:49
Hi.

I'm sharing my music files between LMS and iTunes (using PureMusic 1.83). PM allows the use of FLAC files within iTunes. In doing so it creates what appears at first glance to be a .pmbmf file within the folder of each imported album. Beneath the surface this .pmbmf file is actually a folder containing 'stub' M4A files which allow iTunes to 'see' the FLAC files. A bit clunky but it works.

However, on doing a full scan, LMS spiders into each of these .pmbmf 'files' and adds duplicates for each track that it finds.

I'm aware that it's possible to 'disable' particular file types (by entering the file extension, e.g. mp3) but doing this for the pmbmf 'files' doesn't stop LMS from spidering down into the actual folder that these 'files' contain.

Is there a way to exclude particular folders (using wildcards) from the scan so that it ignores these .pmbmf 'files'?

I'm using a QNap NAS drive, SBT, Mac Mini (OSX 10.7.2) with iTunes & PureMusic. I don't mind hacking the odd file but I'm not sure I want to do too much 'modification' if I can help it. I'll also happily consider an add-in if there's anything that can help. Lastly, if it comes to it, I don't mind running a sql query that will remove the file entries from the underlying LMS database but I wouldn't know where to start.

Can anyone help me, please?

Thanks.

jtc
2011-12-29, 15:24
I'm sure it must be possible. For the moment I've had to exclude M4A files but this is akin to throwing the baby out with the bathwater in my mind.

So, any help much appreciated.

aubuti
2011-12-29, 15:43
Are the file names really .pmbmf? I ask because usually LMS won't descend into hidden folders, and the convention for hiding files and folders on Linux/Unix is to have a dot (.) as the first character in the name. Are the files on your NAS or on the Mac? And if on the NAS, what OS does it use?

mherger
2011-12-30, 00:15
> Is there a way to exclude particular folders (using wildcards) from the
> scan so that it ignores these .pmbmf 'files'?

There's a preference called "ignoreDirRE" which could be set to "\.pmbmf"
to achieve this. You'd have to set it manually, as there's no UI for it.

- shut down LMS
- open ~/Library/Application\ Support/Squeezebox/server.prefs in a text
editor
- add the following line at the end:
ignoreDirRE: '\.pmbmf'
- restart LMS

--

Michael

jtc
2011-12-30, 03:31
Hi Michael, I shall definitely try that once I'm home later. I'll post back on how I get on.

jtc
2011-12-31, 05:37
That appears to have done the trick. Had to hunt about a bit (LMS is running on my QNap Ts-119 Pro) but once I found the prefs file, and apart from trying to be too clever and managing to prevent LMS from starting up at all, setting it as you described seems to have worked).

So, thank you again!