Re: iRiver plays files in order they were saved
- From: Kjetil Thuen <Kjetil.Thuen@xxxxxxxxxx>
- Date: Mon, 28 Jan 2008 13:10:03 +0100
søn, 27.01.2008 kl. 22.03 +0000, skrev chombee:
There appear to be no way to tell the device to play the files in order
of filename, or mp3 tag, it can only play them in the order they were
saved.
Is there some way around this?
I've successfully used this small bash script to alphabetize the
directory:
-- snip --
#!/bin/bash
if [ $# -lt 1 ] ;then
echo "Usage: `basename $0` directory"
exit 1
fi
if [ ! -d "$1" ] ;then
echo "Usage: `basename $0` directory"
exit 1
fi
DIR=`mktemp -d -p .`
mv "`pwd`/$1"/* "`pwd`/$DIR/"
for file in "$DIR"/* ; do
mv "$file" "`pwd`/$1"/ ;
done
if [ -e "$DIR" ]; then
rmdir "$DIR";
fi
-- snap --
It works like this:
~/m/Albums> find "Will Oldham - Western Music" -type f
Will Oldham - Western Music/03 - Will Oldham - Three Photographs.ogg
Will Oldham - Western Music/01 - Will Oldham - Always Bathing in the
Evening.ogg
Will Oldham - Western Music/02 - Will Oldham - Western Song for
J.L.L..ogg
Will Oldham - Western Music/04 - Will Oldham - Jump in Jump in_ Come in
Come in.ogg
~/m/Albums> alphabetizedir "Will Oldham - Western Music"
~/m/Albums> find "Will Oldham - Western Music" -type f
Will Oldham - Western Music/01 - Will Oldham - Always Bathing in the
Evening.ogg
Will Oldham - Western Music/02 - Will Oldham - Western Song for
J.L.L..ogg
Will Oldham - Western Music/03 - Will Oldham - Three Photographs.ogg
Will Oldham - Western Music/04 - Will Oldham - Jump in Jump in_ Come in
Come in.ogg
You can run this script after you have copied the files to your mp3
player, or even run it recursively on your music collection to fix the
problem once and for all. Note that this does not seem to work on lvm
partitions.
--
Kjetil Thuen
Attachment:
signature.asc
Description: Dette er en digitalt signert meldingsdel
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- References:
- iRiver plays files in order they were saved
- From: chombee
- iRiver plays files in order they were saved
- Prev by Date: .config
- Next by Date: Re: metashell - User Friendly Shell
- Previous by thread: Re: iRiver plays files in order they were saved
- Next by thread: Installation problems
- Index(es):