diff options
author | Justin Maggard <jmaggard@users.sourceforce.net> | 2012-01-31 05:17:00 +0400 |
---|---|---|
committer | Justin Maggard <jmaggard@users.sourceforce.net> | 2012-01-31 05:17:00 +0400 |
commit | e135ca88a7f64a3765e6489ac6bd10f1d78d92f8 (patch) | |
tree | f8b1a3b23661452384d6d6b1fee222a46062e5ef | |
parent | 02507155187ddd84de4eab92e98d1e3337979b49 (diff) |
* Fix inotify detection of caption file removal.
-rw-r--r-- | inotify.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |