Hi, There have been a few calls for adding the option to ignore particular filetypes (e.g. MP3s in a directory where one already has FLACs). I've added a function to SC to allow this, and I'd appreciate some feedback if people want to try this out.
It works in a fashion similar to .cvsignore files - you pre-populate a file called ".slimignore" in the directory which contains the "duplicate" files containing a wildcard pattern which masks out the files you want skipped. Here's one which would work: ==== *.mp3 *.ogg ==== That will exclude any files with the extension .mp3 or .ogg from processing from that directory ONLY - it's a bit different from cvsignore in that it doesn't apply to subdirectories, so the possibly slightly annoying fact is you'd need one .slimignore file per album if that's how you organize your music. That wouldn't be hard to script though :) I've tested it on Linux only, but I don't *think* any of the Perl code is OS-specific -- again, feedback appreciated. I don't know of the policy for getting this included in SC if it ever passes muster or gets that far - how does that work? Anyway, it's a patch to Slim::Utils::Misc (search for a file called "Misc.pm") +-------------------------------------------------------------------+ |Filename: slimignore_patch.txt | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=4647| +-------------------------------------------------------------------+ -- davis ------------------------------------------------------------------------ davis's Profile: http://forums.slimdevices.com/member.php?userid=8771 View this thread: http://forums.slimdevices.com/showthread.php?t=45088 _______________________________________________ beta mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/beta
