public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] CD ripper that generates song titles?
Date: Sat, 29 Aug 2015 20:20:45 -0400	[thread overview]
Message-ID: <20150830002044.GA8679@waltdnes.org> (raw)
In-Reply-To: <20150829103844.6c1af9c5@digimed.co.uk>

[-- Attachment #1: Type: text/plain, Size: 2649 bytes --]

On Sat, Aug 29, 2015 at 10:38:44AM +0100, Neil Bothwick wrote

> 4896 /usr/bin/abcde
> 
> > that handles
> > things to *MY* specs for *MY* needs.  It processes .inf and .wav files
> > in a directory, creating flac files in a flac subdirectory.  I haven't
> > tested it under all conditions, but it tries to handle...
> > 
> > * Check for a "flac" subdirectory; create one if it doesn't already
> > exist
> > * If "Tracktitle" field is empty, bail out.
> > * If "Tracktitle" field contains a slash ("/"), assume that the artist's
> >   name is to the left of the slash, and the song name is on the right
> >   side of the slash.
> > * If "Tracktitle" field is non-empty, but doesn't contain a "/", assume
> >   that it only has the title.
> >   - Get the artist name from the "Performer" field.
> >   - If "Performer" field is empty, use "Albumperformer" field.
> >   - If both are empty, set artist name to "Unknown".
> > * The flac files are created in the "flac" subdirectory
> 
> That's pretty much what I do with abcde, except I only had to edit a
> config file, leaving my script puttering time for wheels I need more.
> 
> How do you handle compilation/multi-artist CDs?

  Please re-read the message you're replying to. An example .inf file is
attached.  There are 3 fields that my algorithm looks at...

Albumperformer= 'Various Artists'
Performer=      'Various Artists'
Tracktitle=     'Johnny Cash / I Walk The Line'

  Given that there is a separate .inf file for each track, I figure the
way it *SHOULD* be done is to have the track title in the "Tracktitle"
field, and the artist in the "Performer" field.  But, no, that's too
logical.  The old saw about MTAs is "be conservative in what you send,
and liberal in what you accept".  Boy, do I ever have to be liberal in
what I accept.  As noted in my previous message, the algorithm, in
descending priority is...

1) If the "Tracktitle" field contains a slash, assume that it's in the
format 'Artist or Group Name / Track name'.  The above example gets
converted to "I_Walk_The_Line_-_Johnny_Cash.flac".

2) Some .inf files actually get it right (gasp!) with the track title
in the "Tracktitle" field and the performer in the "Performer" field.
There is no slash "/" in the "Tracktitle" field.

Albumperformer= 'Glenn Miller'
Performer=      'Glenn Miller'
Tracktitle=     'In the mood'

This gets converted to "In_the_mood_-_Glenn_Miller.flac"

3) A variant on 2) above, if no "/" in "Tracktititle", and the
"Performer" field is empty, use the "Albumperformer" field as the
artist.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications

[-- Attachment #2: audio_01.inf.gz --]
[-- Type: application/octet-stream, Size: 560 bytes --]

  reply	other threads:[~2015-08-30  0:20 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-26 20:06 [gentoo-user] CD ripper that generates song titles? Walter Dnes
2015-08-26 20:16 ` Daniel Frey
2015-08-26 20:38 ` covici
2015-08-26 20:49 ` Heiko Baums
2015-08-26 21:01   ` Marc Joliet
2015-08-27 11:28   ` Joerg Schilling
2015-08-27 23:48     ` wabenbau
2015-08-26 20:53 ` wabenbau
2015-08-26 20:58 ` Marc Joliet
2015-08-26 21:04   ` Emanuele Rusconi
2015-08-26 22:53   ` Walter Dnes
2015-08-27 11:37     ` Joerg Schilling
2015-08-27 19:42       ` Walter Dnes
2015-08-27 21:00         ` Neil Bothwick
2015-08-29  1:09           ` Walter Dnes
2015-08-29  9:38             ` Neil Bothwick
2015-08-30  0:20               ` Walter Dnes [this message]
2015-08-30 10:46                 ` Neil Bothwick
2015-08-30 17:39                   ` [gentoo-user] " James
2015-08-31 16:40                   ` [gentoo-user] " Stroller
2015-08-31 22:21                     ` Alan McKinnon
2015-09-01  3:22                     ` Walter Dnes
2015-08-26 21:04 ` Fernando Rodriguez
2015-08-27 11:30   ` Joerg Schilling
2015-08-26 21:12 ` [gentoo-user] " Grant Edwards
2015-08-26 21:40 ` [gentoo-user] " Neil Bothwick
2015-08-26 22:50 ` Alex Corkwell
2015-08-27  3:42   ` Daniel Frey
2015-09-07 23:45   ` covici
2015-09-08  0:49     ` Fernando Rodriguez
2015-09-08  2:51       ` covici
2015-09-08  3:17         ` Fernando Rodriguez
2015-09-08  4:09       ` covici
2015-09-08  5:02         ` Fernando Rodriguez
2015-09-08  7:09           ` covici
2015-09-08  5:59         ` Fernando Rodriguez
2015-09-08  6:05           ` Fernando Rodriguez
2015-08-27  4:14 ` Alan McKinnon
2015-08-27  9:53   ` Neil Bothwick
2015-08-27 14:43     ` Alan McKinnon
2015-08-27 17:29       ` Mick
2015-08-27 18:16         ` Alan Grimes
2015-08-28  1:03           ` [gentoo-user] " James
2015-08-27 18:56       ` [gentoo-user] " Neil Bothwick
2015-08-27 19:07         ` Todd Goodman
2015-08-28  5:03         ` Alan McKinnon
2015-08-28  8:04           ` Neil Bothwick
2015-08-27 11:24 ` Joerg Schilling
2015-08-28  6:15 ` Justin Findlay
  -- strict thread matches above, loose matches on Subject: below --
2015-08-27 20:06 Schilling, Jörg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150830002044.GA8679@waltdnes.org \
    --to=waltdnes@waltdnes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox