Giter VIP home page Giter VIP logo

pulpul-s / watchertoucher Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 30 KB

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.

Python 100.00%
cifs inotify jellyfin network-file-system watchdog nfs monitoring real-time real-time-monitoring

watchertoucher's People

Contributors

pulpul-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

watchertoucher's Issues

How does this script "talk" to jellyfin?

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.

Watchdog ocassionally stops reacting to changes on filesystems

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.

Watching folders Recursively?

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.

Love this tool btw. Any ideas?

Screenshot from 2023-11-04 15-36-17
Screenshot from 2023-11-04 15-36-43

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.