[madman-discuss] New AutoTag Algorithms and Proposed AutoRename feature
Brought to you by:
inducer
From: Chris E. <ce...@gm...> - 2006-09-19 16:40:19
|
I tried to go back into the archives gmane but didn't see the best way to offer up new code for madman. I've attached an updated version of ui/auto_tag.cpp that implements 3 new AutoTag algorithms that I found helpful. Artist/Album/Tracknumber - Title Artist - Album/Tracknumber - Title Tracknumber only The last one is the simplest; it merely looks for a series of digits in a filename (no path). The others are based of the "Artist - Title" algorithm but use the full path of the file. I considered trying to hack the "Intelligent" algorithm to consider these cases but it was easy enough to implement the basic regex for each. The only drawback I see is that I assume a Unix style directory delimiter in case anyone has successfully gotten madman working on Windows. I can continue offering up "single use" algorithms but would it be more productive to try to get the "Intelligent" algorithm to take these cases into account? I was worried I would break other cases it does handle for the sake of making these ones work. My other question is whether anyone has considered an automated/configurable way to rename the physical files madman manages based on their tag contents. I know, for example, that iTunes does something along these lines and it would be helpful for people who are equally anal-retentive as myself. The basic idea would be to re-arrange a selection of files to match a configurable pattern so that, from the root of the media directory they were found, all files would have identical organization. Also available as a possible configuration option would be special characters to be parsed out of the filenames (or ignored) to make them more "transportable". I say across a selection as it might be dangerous to make this purely automated in the background or during the scan process. At first I considered just writing a quick plug-in to handle this. The main drawback I see to this is that you would need to re-scan your library so that these files are "re-found". I also assume that madman would consider these files brand new and any history/stats you had on the files before they were renamed would be lost (true?). In the short term, I can write and offer up just such a plug-in as more or less a "proof of concept". Any ideas? -- Chris Elston ce...@gm... |