From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 841001384C0 for ; Sat, 29 Aug 2015 09:39:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD875E0894; Sat, 29 Aug 2015 09:38:55 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 91DFFE088C for ; Sat, 29 Aug 2015 09:38:51 +0000 (UTC) Received: from digimed.co.uk (yooden.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id DD12B16E8AE for ; Sat, 29 Aug 2015 10:38:50 +0100 (BST) Date: Sat, 29 Aug 2015 10:38:44 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] CD ripper that generates song titles? Message-ID: <20150829103844.6c1af9c5@digimed.co.uk> In-Reply-To: <20150829010931.GA3724@waltdnes.org> References: <20150826200610.GA22849@waltdnes.org> <20150826225803.08cffa46@thetick> <20150826225317.GA23022@waltdnes.org> <55def686.chdf8A+Ii/EUSrDs%Joerg.Schilling@fokus.fraunhofer.de> <20150827194246.GA26102@waltdnes.org> <20150827220054.7f1f938a@digimed.co.uk> <20150829010931.GA3724@waltdnes.org> Organization: Digital Media Production X-Mailer: Claws Mail 3.12.0-58-g2ff4e3 (GTK+ 2.24.28; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/1Ut6E+q+s+Bh9.uxaDBmUHO"; protocol="application/pgp-signature" X-Archives-Salt: 5973d223-b188-4ff5-8a5f-ce267058afed X-Archives-Hash: c8c99cc631258dc2a1b5567136e4434e --Sig_/1Ut6E+q+s+Bh9.uxaDBmUHO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 28 Aug 2015 21:09:31 -0400, Walter Dnes wrote: > > Why reinvent the wheel? abcde is a shell script that does this and > > much more. It uses whichever ripper, encoder etc. that you want, with > > whatever options you want. =20 >=20 > I like to putter around with bash scripts. I've written up a 146-line > script (83 lines of script plus 63 lines of comments) abcde is a little larger than that. % wc -l =3Dabcde 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... >=20 > * 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? --=20 Neil Bothwick Hello.. Incontinence Hotline.. Can you hold? --Sig_/1Ut6E+q+s+Bh9.uxaDBmUHO Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlXhfaQACgkQum4al0N1GQOTVwCdEIMIhlY0SYgegTwywRkjzuiF SmkAoJPF4vTqKbWFPbYsdyderNwCdzkf =gezD -----END PGP SIGNATURE----- --Sig_/1Ut6E+q+s+Bh9.uxaDBmUHO--