update when mtimes are not the same
git-svn-id: https://svn.musicpd.org/mpd/trunk@238 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
c69b615f2b
commit
e5e45242e0
|
@ -151,7 +151,7 @@ int updateInDirectory(Directory * directory, char * shortname, char * name) {
|
||||||
if(0==findInList(directory->songs,shortname,&song)) {
|
if(0==findInList(directory->songs,shortname,&song)) {
|
||||||
addToDirectory(directory,shortname,name);
|
addToDirectory(directory,shortname,name);
|
||||||
}
|
}
|
||||||
else if(mtime>((Song *)song)->mtime) {
|
else if(mtime!=((Song *)song)->mtime) {
|
||||||
LOG("updating %s\n",name);
|
LOG("updating %s\n",name);
|
||||||
updateSongInfo((Song *)song);
|
updateSongInfo((Song *)song);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue