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 7BB071384C0 for ; Sun, 30 Aug 2015 00:20:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B68FE08E6; Sun, 30 Aug 2015 00:20:51 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 84D46E08D9 for ; Sun, 30 Aug 2015 00:20:50 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BnBwA731xV/wLkjBhcgxCBMoJQhVW7NwmHUQIcgSE4FAEBAQEBAQGBCoQjAQEDAX4LCw0UExICDQVciCQIzyMBAQEBBgEBAQEeizqFDBaDAYEWBYtEhyx3gRiBQ4ctgSiDa4JlDguPBCOEFCIxgkcBAQE X-IPAS-Result: A0BnBwA731xV/wLkjBhcgxCBMoJQhVW7NwmHUQIcgSE4FAEBAQEBAQGBCoQjAQEDAX4LCw0UExICDQVciCQIzyMBAQEBBgEBAQEeizqFDBaDAYEWBYtEhyx3gRiBQ4ctgSiDa4JlDguPBCOEFCIxgkcBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="inf'?gz'50?scan'50,208,50";a="161820811" Received: from unknown (HELO waltdnes.org) ([24.140.228.2]) by ironport2-out.teksavvy.com with SMTP; 29 Aug 2015 20:20:49 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Sat, 29 Aug 2015 20:20:45 -0400 From: "Walter Dnes" Date: Sat, 29 Aug 2015 20:20:45 -0400 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] CD ripper that generates song titles? Message-ID: <20150830002044.GA8679@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> <20150829103844.6c1af9c5@digimed.co.uk> 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/mixed; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: <20150829103844.6c1af9c5@digimed.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) X-Archives-Salt: 866c2b07-04ff-4131-b58c-2cece404f2fa X-Archives-Hash: a1783a0bbe85046bfb2643f900e95312 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 I don't run "desktop environments"; I run useful applications --/9DWx/yDrRhgMJTb Content-Type: application/octet-stream Content-Disposition: attachment; filename="audio_01.inf.gz" Content-Transfer-Encoding: base64 H4sICD433lUAA2F1ZGlvXzAxLmluZgB9Ul1P2zAUfY5/xZV4CEi4ddIkLUiVxhI0FVGGVtj2 FjmJm1j4I7MdaPfr59DC2Mvezrn33O97UhtGHWug2kPdNDR+oc8wm5CIRlkpuBp2ZTIhkxS3 TDmty90iK7Ok5MoxgQ3GtTYMO4lj3Awa1/2AWZIRgj/heJKQtvsNZDGNs2lMohRIdkmiSw/u 1+gE5cXqrrj+WRarTb4qlkG4dXL2teFfitvH25dHk1buV04uiJ7LBQ69vPj8riW7JiXVrIoi tM7vlkFAMhKn0XwxmxGSotXmW+6Njxu8uc6wb2dOyOzC17wS1SB7ZrbaSGZ8ze/UcD1YuDKO W2dDdP8/52u41ap9Mdx5SRiizV8WhEdFrWWv7dGSfySvbmoMVe2b5R8yuiWzlrbs1bD+gA+p hc/V+P1v9Vg9/0DfNY47MYbkglrLa8j1oJzZw83wxCq9C9GDofXTm+pGd0rtIae2gyms4AcV T/DQMbjlih21fpfRAalBVmOzR2odNc6fA52AGzkIplrXAVdgWe20sXAaTefpyLRqLDBad2fn YJh1YKnsBbOHTIdAnzhO4vQcCLr3j8Vk31HL7TJQGuUdVYoJT2K/1H5f+jtK7vzzLgOtagan tbca3nYOeqOdr8+aM3StGk6V3+MyEF4tmO+Vq4btQPijotUIxweCAyTjrHF8kYLXycZ3Pki0 LlKst1vL/KxJgv4AqdodQzUDAAA= --/9DWx/yDrRhgMJTb--