* Fix inotify detection of caption file removal.
This commit is contained in:
parent
6119262fa4
commit
ef70eada7d
@ -521,6 +521,11 @@ inotify_remove_file(const char * path)
|
|||||||
sqlite_int64 detailID;
|
sqlite_int64 detailID;
|
||||||
int rows, playlist;
|
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 */
|
/* Invalidate the scanner cache so we don't insert files into non-existent containers */
|
||||||
valid_cache = 0;
|
valid_cache = 0;
|
||||||
playlist = is_playlist(path);
|
playlist = is_playlist(path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user