DJanGo wrote: > that was quite near - 25 lines... > > > Code: -------------------- > > #!/bin/bash > > SAVEIFS=$IFS > IFS=$(echo -en "\n\b") > > if [ -f /tmp/album.txt ] > then > rm /tmp/album.txt > fi > > for file in $(find ./ -iname *.mp3) > do > album_folder=$(dirname "$file"|rev|cut -d '/' -f 1|rev) > album_tag=$(eyeD3 "$file"|grep 'album'|grep -v 'album '|cut -d ' ' -f2-) > if [ ! "$album_folder" = "$album_tag" ] > then > echo $file is in $album_folder but tag is $album_tag>>/tmp/album.txt > fi > done > IFS=$SAVEIFS > > if [ -f /tmp/album.txt ] > then > cat /tmp/album.txt > fi > -------------------- > >
Many thanks for that. So I got eyeD3 installed and managed to run the script. I'm seeing alot of these errors: Code: -------------------- 'ascii' codec can't decode byte 0xc2 in position 1127: ordinal not in range(128) Genre string cannot be parsed with '^([A-Z 0-9+/\-\|!&'\.]+)([,;|][A-Z 0-9+/\-\|!&'\.]+)*$': (None) -------------------- Any ideas? ------------------------------------------------------------------------ itm's Profile: http://forums.slimdevices.com/member.php?userid=17437 View this thread: http://forums.slimdevices.com/showthread.php?t=108251 _______________________________________________ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter