in reply to Re: Regex Parsing Chars in a Line in thread Regex Parsing Chars in a Line
The actual code is real simple but an actual script would be deadly if run in a wrong directory.
I have neglected to write safety features in them. But in essence it is simply:
Parsing a directory of media files.
In a loop, running each file through dozens of filters to reformat names and titles, and to remove any unnecessary desiderata. I use hyphens as my main field seperators, so only need two: Author and Title, but can accomodate a third.
For example it is important in Fiction to keep Author field first, as that is used to further parse into categories, which is often parsed from from the Title (and extra Series/Subtitle) fields.
The opposite is true in Nonfiction, where the author is often optional (as the publisher may be more relevant).
Plus, there are *many* scripts and functions, each used as needed. Some will create underscores, and encapsulate dates, others will remove them.
|