Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

The issue you are up against is the difference between the track (i.e. file's) 'artist' attribute and the directory (i.e. album's) 'artist'. For me the only option that makes sense is to keep these distinct.

You've obviously come across the case where the album should be assigned to 'Various Artists' (or your equivalent value) while each individual song is tagged with the appropriate artist. This is, however, just one example of the issue, look at Ellie Goulding's album "Halcyon", most of the songs (as you would expect) are by Ellie Goulding but one is by Calvin Harris & Ellie Goulding. What to do in this case? If this song is labeled as by Ellie Goulding then searching for material by Calvin Harris will fail, if it is properly labeled it gets shuffled off to a directory on its own? So yes this is exactly why you need to manage your own music files

There are a number of ways to do this. The way I personally do it is to keep the tags completely separate from the files (in a single CSV file in my case). This lets me define any attributes I want, like a "album-artist" and "album-album" attributes in addition to the "song-artist" and "song-album" attributes. Then I can insert a subset of those tags into the audio files via the MP3::Tag and MP3::Info packages.

I find that using a range of Perl scripts to coordinate audio files, directories, the CSV file and MP3 ID3v2 tags ensures my music is exactly where I want it.

In reply to Re: Read MP3 tags by hawtin
in thread Read MP3 tags by rgammon51

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2022-11-26 13:17 GMT
Find Nodes?
    Voting Booth?