inotify: fix SQL error when moving captions

Change INSERT to INSERT OR REPLACE when recording caption file moves,
to avoid UNIQUE constraint failures.
This commit is contained in:
Justin Maggard
2016-03-17 13:37:09 -07:00
parent 910b84bcd6
commit abc1972600
3 changed files with 6 additions and 3 deletions

View File

@ -350,9 +350,8 @@ inotify_insert_file(char * name, const char * path)
if( !is_image(path) )
return -1;
break;
default:
default:
return -1;
break;
}
/* If it's already in the database and hasn't been modified, skip it. */