View Single Post
Posts: 42 | Thanked: 16 times | Joined on Oct 2007 @ Nottingham
#4
hello Nokia800newbie. I think you'll find it's all working as planned: open a file from file manager and it will play it, regardless of the directory it is in, or what else is there too. Play an album (as defined in the id3 tags) from the explorer feature of media player, or set up a playlist. Create a really playlist really easily with:
Code:
 ls -1 *.mp3 > MyPlayListName.m3u
and be a little more clever with this which, when run from the directory containing an album or collection of songs, will list them, find those lines ending with mp3 and write the file to a file with the last part of the directory name, presumably the album name
Code:
ls -1|grep -i -e .mp3$>$(basename $PWD).m3u
ls -1 is list files, one per line, "pipe" to grep which matches mp3 or MP3 -i case insensitive and -e extended (so $ matches line end), then direct that to a file, basename is the last part /of/a/directory/path/basename of variable PWD (the present working directory). This line can be saved into a text file, extension .sh and chmod +x myplaylistcreator.sh and run like a macro.