Closed buroa closed 1 year ago
Autoscan used to perform file-checking in combination with the retries
and minimum-age
fields back in the pre-1.0 days. However, in #34, we removed the file presence check for a couple reasons:
minimum-age
field was carried over from the original idea behind Plex Autoscan: grouping multiple changes together to minimise the number of scans Plex performs, reducing the number of API calls made to Google Drive by Rclone.In the general case though, the speed at which Plex and other targets are notified is unchanged. In a setup where files are immediately available on the file-system when Autoscan is notified of their existence, a scan can be sent right away with a minimum-age
of 0s
. However, such a minimum-age
would disable the grouping behaviour, which is undesirable. With and without file existence checking, a minimum-age
of e.g. 5m
would perform exactly the same.
The only setups which suffer from the lack of file existence checking are network-shares, not including Google Drive through Rclone, but including e.g. SMB and NFS. Here the minimum-age
should not only take the grouping behaviour into account, but also the maximum time it takes for a file to become available on the remote-side of these network shares. However, we think only a minor percentage of users have such setups, so we decided that the file existence checking wasn't worth it.
I'm curious to hear about any common syncing issues you're experiencing. In the meanwhile, I'm closing this issue.
I implemented it myself: https://github.com/buroa/autoscan/commit/452a1392a2ca7104088bd3bb3a22db37b26529d5
This will allow common syncing issues and potentially notify Plex faster than waiting on some arbitrary
minimum-age
.