Re: [Rhythmbox-devel] Feature request : search by directory

Hash: SHA1

Hi Emmanuel,

another alternative would be using a tool to do the tagging for you. I'm
not going to argue for any of the tools for that as there's much
controversy amongst the users of this list concerning EasyTag,
MusicBrainz Picard, Qoudlibet Ex Falso and ${Type-name-of-program-here}.
I haven't used any lately. What I do use frequently though is mid3v2,
which on my gentoo came with mutagen which in turn seems to be part of
quodlibet. As I am a fan of command line tools and interfaces, I'd do
something along the lines of this.

Given a directory structure of
| +-Genre_A
| +-Genre_B
| +-Genre_A
| +-Genre_C
and so forth, you could do

for year in 1999 2000 2001; do find $MUSICROOT/$year -iname \*.mp3 -exec
mid3v2 -y $year "{}" \; ;done


for dir in $MUSICROOT/????/*/; do export genre=$(basename $dir); find
$dir -iname \*.mp3 -exec mid3v2 -g "$genre" "{}" \; ;done

If I understand correctly, though, your primary directory structure is
by decade. I'm not sure if you could set 199x as the year; if so, you'd
check whether the year field of the id3tag is filled appropriately and i
not set it do 199x or whatever.

Since alot of people on this list seem to dislike command line tools,
I'll stop there for now. Feel free to ask any questions off-list if you
have any problems with the above or similar advanced command line usage.

7<arsten, fan of #!/bin/bash (and RB, of course!)

Steven Brown wrote:
> [automatic playlis suggestion] 
> On Tue, Jun 3, 2008 at 7:19 AM, Translucide Design & Communications
> <info translucidedesign com> wrote:
>> [request to search by path, as manual retagging is a hassle]

- --
Using a computer isn't an end in itself, it's merely a means to an end.
The focus must always be on the task that the person wants to
accomplish, to communicate, to learn, to create, to be entertained.
Insofar as the computer itself makes itself known in this process, the
computer is an impediment. Do What I Mean! Be humanistic, don't get
bogged down in the details.
  --Jamie Zawinski (
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]