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



-----BEGIN PGP SIGNED MESSAGE-----
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
$MUSICROOT
+-1999
| +-Genre_A
| +-Genre_B
+-2000
| +-Genre_A
| +-Genre_C
+-2001
  +-Genre_D
and so forth, you could do

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

or

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.

Regards,
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 (http://www.jwz.org/doc/linux.html)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhH0BwACgkQ/5Z1ELUuopFGFwCfZkmJK7DXraivtzvKcW6bxs9N
bMMAoJ9SKCQK/JQx32dKamAoHUVDZWoC
=P+TH
-----END PGP SIGNATURE-----


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