shyguyNC / mp3manager

A small ruby gem for moving and renaming mp3s based on their id3 tags
MIT License
1 stars 1 forks source link

Formatting needs to be implemented as an argument to the clone() method #4

Open shyguyNC opened 12 years ago

shyguyNC commented 12 years ago

Right now, Mp3manager.clone(source, dest) always copies and renames in the same format '[artist] - [title].mp3'. This is, of course, very limited, and the main weakness of the gem holding up its release imo. We need to come up with a good format. I propose the following: a simple string, with tags to be inserted as [tagname]. This will be passed in as an argument to the command line version, or to clone(), if called from another ruby file.

example: [artist] - [album] - [title] would clone the mp3s along the lines of 'Zamfir - Pan Flute Crazy - Pan Do Attitude (Extended Cut).mp3'

this formatting should not allow any characters that aren't valid parts of a filename. Also the '/' character should be reserved to indicate that new directories should be created (we'll track that functionality in another issue). Other things to figure out:

any other ideas welcome here, this issue is also for brainstorming. :)

shyguyNC commented 12 years ago

I committed some code that implements this feature last night. but it still needs some tweaking, specifically:

shyguyNC commented 12 years ago

Not ready to call this done yet .. needs some unit tests