Python watchdog script that looks for new/remove/move filesystem events on cifs/nfs/others and writes/removes a dummy file on it, so Jellyfin inotify implementation (real time monitoring) reacts and scans the library for changes.
I configured your script, it's running, but I couldn't understand how it communicates with jellyfin to notify you that something has arrived. I tested it yesterday and it seemed to work, but today, I sent a movie and its script recognized it, but jellyfin didn't update it. My files are on a Drive Team mounted and configured with rclone.
Could you explain more about this script? Maybe I did something wrong.
After running the script for longer times e.g. three days, watchdog does not react to filesystem changes anymore. This seems like an issue with the watchdog library itself rather than a problem with watchertoucher.
At the moment the only reasonable fix is to run the script as a systemd service and have it restart every 24 hours. This does not cause any downtime.
Any help on the issue is appreciated, since I have been unable to fix it completely.
Per my understanding this script is able to watch folders recursively. However either something is broken or I'm not doing something correctly. Observe the following two screenshots. The logs show a folder (The Revenant) with a .mkv file inside being created in /mnt/mat-nas/.temp. Good so far. Then it is moved to /mnt/mat-nas/Movies and that is also detected but not touched. My watchertoucher.py file has Movies in the watched libraries and the option to watch folders recursively is enabled. But if I copy paste the revenant.mkv file to /mnt/mat-nas/Movies it is touched.