Hi,
I'm writing something to categorize MP3s, I was thinking of something to correctly "parse"(?) the MP3 into good metadata: If the file has ID3 tags it's good, I read those and use them, if not, I have to rely on parsing the filename, folder/filename, folder/folder/filename... etc.
Instead of assuming that the files are always /(title) - (artist)/, I was thinking of something like checking $1 and $2 against a list of the artists already in the db to see if there IS an artist with that name and mark that as a possible artist, if not, require input from the user, but there are obvious flaws in that. (different ways to type the artist name, typos, punctuations...etc)
Does anyone use a similar technique? or something to achieve the same results?
He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.
Chady | http://chady.net/
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.