View Single Post
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#3399
Schturman,

Did N9QT ever have a script for albumartremoval? I used to have a copy of such a script just can't remember where did I use it from as suddenly my Gallery is being filled up with album art again...


Edit: The funny thing is searching for it via Google gives me results of me telling people it can be found here but didn't post a link to it...Lesson learnt; post links for others next time; never know when one needs them


Edit 2: Found it deep in my old damaged HDD

For anyone who needs it the following is it:

Code:
#!/bin/sh
MUSICDIR="/home/user/MyDocs/Music"
find "${MUSICDIR}" -iname *.jpg -o -iname *.jpeg -o -iname *.png | while IFS="" read FILE; do 
   DIRNAME=`dirname "${FILE}"`
   LASTPART=`echo "${DIRNAME}" | awk -F '/' '{print $NF}'`
   if [ "${LASTPART}" != ".mediaartlocal" ]; then
      if [ "$1" = "-d" ]; then  
         echo "${FILE} will be moved to ./mediaartlocal/"
      else
         echo "Moving ${FILE} -> ./mediaartlocal/"
         if [ ! -d "${DIRNAME}/.mediaartlocal/" ]; then
            mkdir "${DIRNAME}/.mediaartlocal/" 
         fi 
         mv "${FILE}" "${DIRNAME}/.mediaartlocal/"
      fi
   fi
done

Edit 3: Found the b*astard! It was the Android installation causing the issue...For anyone with the same problem, the offending directory is /home/user/MyDocs/Android/data/com.android.providers.media/albumthumbs

Last edited by thedead1440; 2012-10-02 at 12:50.
 

The Following 2 Users Say Thank You to thedead1440 For This Useful Post: