![]() |
Re-organizing folders from #gamemp3s releases
What I need to do is the following:
Organize my #gamemp3s music so they match their original folder scheme (i.e. 2006-11-3/folders/). Right now I have all the seperate albums in a single folder, but just displaying its contents takes ages with 400+ subfolders. So I want to seperate the albums back into their original release date (year-month-day) folders. Needless to say, I can't do this manually, since it would take forever. I need some sort of script/macro that takes information from the #gamemp3s release history and organizes my folders accordingly. All subfolders (album names) are untouched, so this should work out well. Any suggestions on how to get started? |
Anyone, please.
This can't be an impossible task. I do have some experience with VisualBasic scripting, but I just need some pointers on this. At least I think VB would be a good way of getting something like this done. |
Helps if I read.
As I assume slashes, colons, ampersands, and the like are not valid in Windows file/directory names, what do you use for special characters? Super Metroid “Sound In Action” being an example here--I know double-quotes aren't valid in filenames, but I have very little experience with gamemp3s' rips and naming conventions. Trying to figure out how things are named in case of special characters so I can whip up a script for you. |
The actual folder for Super Metroid "Sound in Action" has normal quotes in it.
Still, I don't want to rename these folders, but rather have them moved to their respective YEAR-MONTH-DAY\ subfolder, so all I need to do is compare my folder names from that release list and put them in the right subfolder. All of them are currently in the same folder. If there are some special characters that can't be read, I might as well sort those folders out manually. Thanks a lot for your reply, any help is greatly appreciated. |
1 Attachment(s)
Alright, a couple things.
First, there's an archive attached--you need this, as it has two files. One has a list of all the albums (I extracted that with another script I forgot to save =\ ), and another is the Perl script itself; the script also expects that file to be with your albums, so drop it into the $source you'll be defining below. I also did not test this much, but when I did, it was in the same directory as the empty album directories were. Also, there's a small edit you need to make to the third line of the script, which is (as in the archive): Code:
$source = '/home/duminas';The same applies to line 39, which is: Code:
`move "$source/$relinfo[1]" "$lastrelease/$relinfo[1]"`;Third, this will say it succeeded if it _FINDS_ the directory--it may fail to move it, due to some odd characters here and there (ampersands as an example). These you will need to deal with on your own. Fourth, it changes the release dates from, say, 2006/11/14 to 2006-11-14. This is really minor, but just bringing it up. I'm also going to put the code straight away below for anyone who wishes to see it, but you'll need both. You'll also need to install Perl if you want to use this. I'll help you with that if you need it. I hope this works for you, Rock. Code:
#!/usr/bin/perl |
Another method that could be used is using a program called ClrMamePro. If you (or somebody else) builds a database and then runs your files through it, it'll sort everything on its own. It confirms a file is a match via CRC codes and can fix file and folder names if necessary.
I've thought about doing something like this at some point, but I haven't done so yet. I'm still learning about the program for making databases. I might try fooling around with it some more later. |
| All times are GMT -5. The time now is 10:25 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2026, vBulletin Solutions, Inc.