From ef70eada7df122a70c1bbefe7ad7887fe073eba5 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Tue, 31 Jan 2012 01:17:00 +0000 Subject: [PATCH] * Fix inotify detection of caption file removal. --- inotify.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inotify.c b/inotify.c index 5dc0962..e7a2cfe 100644 --- a/inotify.c +++ b/inotify.c @@ -521,6 +521,11 @@ inotify_remove_file(const char * path) sqlite_int64 detailID; int rows, playlist; + if( ends_with(path, ".srt") ) + { + rows = sql_exec(db, "DELETE from CAPTIONS where PATH = '%q'", path); + return rows; + } /* Invalidate the scanner cache so we don't insert files into non-existent containers */ valid_cache = 0; playlist = is_playlist(path);