From: Josh Cheek Date: 2011-07-01T03:50:58+09:00 Subject: Re: A File Renamer --00221546fd6698af5f04a6f2611c Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jun 30, 2011 at 10:55 AM, Johnny Morrice wrote: > > Is there a pattern to the file names you are working with? The key is > > to find a pattern and write code to work with that pattern. > > You know the video file itself probably has meta data. > > Inspecting that would be a harder than just regex matching on the > filename but the program is going to be much more robust in the face of > crappy input. > > But requires a different set of assumptions: the files are videos (it is called a "File" renamer, no longer a "Movie" renamer), and they're all the same format or you have a tool that will let you access this format. I did something like this with my music collection, CD's that I'd ripped were MP3s and could be renamed nicely, but the ones I'd bought off iTunes were m4a's and didn't have this info. Some of the music I'd ripped a long time ago didn't have all the same tags filled out, etc. In the end I had a tool that renamed maybe 90-95% of my music and the rest I had to do by hand. --00221546fd6698af5f04a6f2611c--