talisto / plex-inotifier Goto Github PK
View Code? Open in Web Editor NEWMonitors a local filesystem (NAS) to update a remote Plex Media Server when changes occur
Monitors a local filesystem (NAS) to update a remote Plex Media Server when changes occur
Hello,
since i moved my Plex to another machine I wanted to give this a shot. However I get this result after trying to run it:
Got Plex libraries: {"/path": 1, "/path2": 2, "/path3": 3} Adding directories to inotify watch Traceback (most recent call last): File "./plex-inotify.py", line 214, in <module> auto_add=True File "/usr/local/lib/python3.5/dist-packages/pyinotify.py", line 1916, in add_watch exclude_filter) File "/usr/local/lib/python3.5/dist-packages/pyinotify.py", line 1833, in __add_watch wd = self._inotify_wrapper.inotify_add_watch(self._fd, path, mask) File "/usr/local/lib/python3.5/dist-packages/pyinotify.py", line 153, in inotify_add_watch return self._inotify_add_watch(fd, pathname, mask) File "/usr/local/lib/python3.5/dist-packages/pyinotify.py", line 246, in _inotify_add_watch pathname = pathname.encode(sys.getfilesystemencoding()) UnicodeEncodeError: 'utf-8' codec can't encode character '\udcfc' in position 65: surrogates not allowed
Do you have any idea on how to fix this?
great script, work perfectly as intended even in 2020 but at the first run the script was unable to detect some file addition or deletion in my libraries and each time it throws message like this :
/volume2/Video/Movies/@eaDir/Mymovie.avi@SynoEAStream is not an allowed path
i get rid of this temporarily with this kind of command :
find /volume2 -type d -name "@eadir" -exec rm -r "{}" ;
Adding some enhancement to ignore all this @eadir and @SynoEAStream on the NAS filesystem would be great !
I think theses files and dirs were creating by activating AFP Shares on the synology but i'm not sure.
Thanks for your help.
Ps if needed i can help you if you need to translate the README in french.
Ain't too big on github. Not sure how to let you know that I found the useful other than creating an issue.
Works great, exactly what I needed. My NAS has all my movies but Plex runs on a NUC and cannot detect library changes on the NFS mounts. Now I just hope inotify won't keep my disks spinning ;)
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.