Here's a console time-saver even counting the research time.

I'm always interested in more efficient suggestions.

SITUATION:
I've got 16,000 OGGs and MP3s with album art installed in each directory.  
Much of it was installed with albumart-qt

Many of the .directory files tellling KDE (and Windoze) where to look for the 
albumart includes a full path, which changes depending on which OS is 
accessing the drive.

Directories are organized this 
way: /collection/[alphanum]/[artist-group]/album/tracks
i.e. /collection/a/alphaville/forever young/big in japan.ogg
or /collection/r/rush/roll the bones/ghost of a chance.mp3

SOLUTION:
The following script parses all subdirectories (from where it's bashed) 
looking for hidden .directory files.  This script then replaces 
the /absolutepathname/.folder.png  with ./.folder.png.

find . -name .directory -type f -exec 
sed --in-place -e 's/^Icon\=.*\.folder\.png/Icon\=\.\/\.folder\.png/g' {} \;

Now I've got the album art as my directory icons, no matter whose computer is 
attached to my external drive.
-- 
Mike F.

Attachment: signature.asc
Description: This is a digitally signed message part.

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to