sorry, this is my mistake !
In getcover_sphere.sh , the script check if the cover image has changed with this line :
Code:
hash=$(echo "$cover" | md5sum | cut -d" " -f 1) #Generate hash for current song.
I think the script calculate the md5sum only with the filename, and not with the file (if you read me larryni). With conkyGuayadeque script, the name of the picture is always the same, so the script can't see when cover change.
So, you have to change the above line by theses ones :
Code:
if [ "$player" == "guayadeque" ] ; then
hash=$(md5sum "$cover")
else
hash=$(echo "$cover" | md5sum | cut -d" " -f 1) #Generate hash for current song.
fi
Thinking a lit bit more, md5sum is quite heavy ... I can track the change on the date of the file (with ls -l) , this solution should be lighter :
Code:
if [ "$player" == "guayadeque" ] ; then
hash=$(ls -l /tmp/guayadeque-coverart.jpg )
else
hash=$(echo "$cover" | md5sum | cut -d" " -f 1) #Generate hash for current song.
fi
What do you think ?
(And yes the ring in the middle of the screen is not very nice !)
Bookmarks