I figured it out, it was mayhem for me. I was following the script but not using a Synology, so that probably does it haha. For me, the mounted drive in openmediavault was /srv/dev-disk-by-id-usb-WD_easystore_###########################-part1
This is working great for adding new content but if I delete content is there a way to trigger an update to remove the content from the plex library?
I just realized it will remove content, I thought it wasn’t because it seems pnotify is only working for some of my libraries. If I have multiple shares for the same library will that cause a problem?
EDIT: So it seems inotify is not working for my NFS shares, should I maybe being using a different type of share?
The NFS protocol pre-dates iNotify in the kernel. NFS was never updated to propagate this notification.
I hoped it would too but NFSv4 doesn’t. We can only hope NFSv5 does someday.
I am stuck on step 3. When I shell into my WD nas, the terminal says “Unable to locally verify the issuer’s authority. To connect to whateversite.com insecurely, use ‘–no-check-certificate’.”
I tried typing no check certificate on either side of the command as well as on its own, but I am not getting any further.
My goal is to use Plex Inotifier fo notify my shield PMS that my WD Nas has new library files.
Notify does not function over a network mount.
The server must make a periodic poll (scan) to see if there is new content.
The best you can do is:
- Set to partial scan. This prevents it from descending into directories where the directory isn’t modified.
- Set the scan time interval to be one acceptable to you.
Will Plex ever create endpoints to trigger a partial refresh of a specific directory (or at least a specific item id)? Continually refreshing the entire Library when adding several items is more work than there needs to be.
I have Partial Scan enabled, but Plex on my MacMini definitely runs through the whole Library when new items are added.
Inotify over a network protocol is a function of the protocol. NFS and SMB predate iNotify.
Certain OS’s (like windows) periodically poll by themselves when you’re not looking. This is why it seems to work but it’s not a function of iNotify.
Linux doesn’t poll. It needs the interrupt (iNotify)
I GET:
Adding directories to inotify watch
Traceback (most recent call last):
File “plex-inotify.py”, line 213, in
auto_add=True
File “/usr/local/lib/python3.6/site-packages/pyinotify-0.9.6-py3.6.egg/pyinotify.py”, line 1916, in add_watch
File “/usr/local/lib/python3.6/site-packages/pyinotify-0.9.6-py3.6.egg/pyinotify.py”, line 1833, in __add_watch
File “/usr/local/lib/python3.6/site-packages/pyinotify-0.9.6-py3.6.egg/pyinotify.py”, line 153, in inotify_add_watch
File “/usr/local/lib/python3.6/site-packages/pyinotify-0.9.6-py3.6.egg/pyinotify.py”, line 246, in _inotify_add_watch
UnicodeEncodeError: ‘utf-8’ codec can’t encode character ‘\udce9’ in position 21: surrogates not allowed
Relevance to PMS?
- An external inotify agent written in python?
- Python 3.6 ? (Plex uses 2.7 internally)
it very prefect, I have success in my nas, and I have a doubt.
my nas have auto hibernation, I want to know using inotifier if nas still keep hibernation?
thanks!
inotify will not keep the drives awake.
inotify is the kernel service sending a message to another application that something on the disks has changed. If nothing has changed then there will be no event(s).
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.