mstinaff / PMS_Updater

Shell script for updating the Plex Media Server inside the FreeNAS Plex plugin
MIT License
439 stars 91 forks source link

Token auth #44

Closed jbeez closed 4 years ago

jbeez commented 5 years ago

Fixed a few issues @mstinaff

Kryptonit3-zz commented 4 years ago

Looks good. Only thing I would add now would be a way to check if any users are watching plex and delay update until no active users. That way it would be piece of mind for making it a cron job and not killing someones movie or show for an update. Another script does this here - https://github.com/mrworf/plexupdate/blob/master/plexupdate-core#L180-L207

It reads the plex-ip:32400/status/sessions url which is XML listing the active sessions.