Giter VIP home page Giter VIP logo

plex-inotifier's People

Contributors

talisto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

plex-inotifier's Issues

UnicodeEncodeError while trying to test the script

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?

enhancement to ignore @eaDir and @SynoEAStream created by some NAS indexing or Filesystem

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.

Brilliant

@talisto

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

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.