Cloudbox / autoscan

Autoscan replaces the default Plex and Emby behaviour for picking up changes on the file system.
MIT License
611 stars 53 forks source link

inotify detecting new files but not file changes where the filename remains the same #53

Open SpartacusIam opened 3 years ago

SpartacusIam commented 3 years ago

I don't know if this is the way inotify is supposed to work or not but the behavior I'm seeing is that inotify will detect a change for newly create files (ie. imports of new movies or upgrades (ie. movie-bluray720p.mkv changing to movie-bluray1080p.mkv)) but it will not detect file changes when the file remains the same (ie. file being converted where the file size gets reduced but the name remains the same).

edrock200 commented 2 years ago

Are those changes being written/processed from the same machine that autoscan resides on? Is the disk the changes are being written to local to the host that autoscan is running from? I ask because, if you have the storge network attached on the host autoscan is on, and the initial writes are occuring from that host to the network storage, autoscan will see that, but if another system reaches out and modifies the content on said network storage, autoscan will not see that (unless that second host is reaching out to local disks on host where autoscan resides)