plexSentry (20160511 Update)

Can this be run without the UI (and not install IIS)?


I don’t need the web UI if I can configure it all from the config files.

All I really want is to limit all external users to a specified number concurrent streams.

So this can be used to set a maximum quality (bandwidth) setting for each user ?

Can this be run with the UI (and not install IIS)?

I don't need the web UI if I can configure it all from the config files.

All I really want is to limit all external users to a specified number concurrent streams.

Did you get this to work?

Has anyone tried to run this on a Synology NAS? 

EDIT: Nevermind, just saw needs Winx64 

So this can be used to set a maximum quality (bandwidth) setting for each user ?

No, since it only uses the API end points, it can't tell what bit rate the media is transcoding at, only if it is transcoding.

Has anyone tried to run this on a Synology NAS? 

EDIT: Nevermind, just saw needs Winx64 

It doesn't need to run on the same machine as the PMS, just be able to access it over the network

Can this be run without the UI (and not install IIS)?

I don't need the web UI if I can configure it all from the config files.
All I really want is to limit all external users to a specified number concurrent streams.

I don't think that option is in the config file, but if I could add it pretty quickly (right now it defaults to 1), but it would be the same number for all users except the admin (99)

I don't think that option is in the config file, but if I could add it pretty quickly (right now it defaults to 1), but it would be the same number for all users except the admin (99)


So you were able to get limiting concurrent streams working?

Sent from my HTC One_M8 using Tapatalk

So you were able to get limiting concurrent streams working?

Sent from my HTC One_M8 using Tapatalk

It depends, currently if the user is transcoding it'll kill the transcode, and I have some unreleased beta code that removes all of their library shares. However if it's direct play there's nothing that can be be done until the playback is complete (if the libraries are removed). But now that I think about it, I didn't test the direct play and the library removal too deeply, maybe it would end it. I'll test it tomorrow and get back to you.

A word of warning thou, the reason I didn't release the beta code, is that I noticed that sometimes a video gets stuck in play or pause mode when it was stopped on the user's end, or a finger slip started a movie on a ios device (that app really needs a screen between the media list and playing) and they stopped and casted within the refresh period. Little things that I figured I wanted to add a grace period for.

Any plan (or did I miss it) to open source the code? Would love to see how you are doing the transcode session killing and limiting the streams. Ideally this would run on the same unRAID box my Plex Server is on - has anyone done something similar using python or anything else?

Any plan (or did I miss it) to open source the code? Would love to see how you are doing the transcode session killing and limiting the streams. Ideally this would run on the same unRAID box my Plex Server is on - has anyone done something similar using python or anything else?

I'd also be interested in seeing this in open source. This could be very useful to me. Hopefully everyone could contribute, to get some of the requirements out :)

Brilliant concept, about to give it a try myself, my PMS is on Centos 6 but can add a small windows VM to try this unless anyone has it running via WINE or the like?

I too am really only interested in setting the number of streams per user, unlimited for myself and local household and ONE for the few plex server running friends who keep setting their friends up with plex on the phone when in the pub using their own account (to save the signup process using mobile phones after a few pints etc), this way I dont care, they will soon sort out their friends with a seperate account when they get blocked.

[20150627 Update]

-Changes to the web interface

  • Added a now playing section and other layout changes
  • Can kill transcoding sessions from the web interfeace
  • Fixed several race conditions

There's a framework in place to send emails to users from the web interface, which should go live soon, and still testing methods to kill direct plays. I've mentioned before that the program doesn't try to kill excess streams because the iOS app has a hair trigger (i've seen this in my logs from people who usually cast to apple tv), if they fix this is the next update, I'll add it.

@d2dyno said:
dirRtyjoe wrote on May 20 2015, 2:46 PM: »

Any plan (or did I miss it) to open source the code? Would love to see how you are doing the transcode session killing and limiting the streams. Ideally this would run on the same unRAID box my Plex Server is on - has anyone done something similar using python or anything else?

I’d also be interested in seeing this in open source. This could be very useful to me. Hopefully everyone could contribute, to get some of the requirements out :slight_smile:

Yes Please open this up as Open source. It has the potential to be an amazing tool.

The only error I get on PlexSentry is “Error when checking sync sessions”. Am I missing a setting?
Also the Poster image isn’t coming up in PlexSentry/Web and the Login/Tools on the top right don’t work.
Everything else is working.

Man this looks cool but the whole IIS and SQL crap is way over my head, I have only minimal knowledge… Oh well guess I’ll find something else

@tharris@9di.com said:
The only error I get on PlexSentry is “Error when checking sync sessions”. Am I missing a setting?
Also the Poster image isn’t coming up in PlexSentry/Web and the Login/Tools on the top right don’t work.
Everything else is working.
I had the wrong login. Error when checking sync sessions is gone. Do the Login/Database tools work? The update button on user settings isn’t working. I had to make changes directly in SQL Server. I am a Senior Developer and would love to make this a windows service! Source code on CodePlex or GitHub? Thanks Tom.

Currently the code is on a private svn server. It’s weird that your update button doesn’t work, as your obviously accessing the database. Are you using SQL Server or SQLite? The only thing I could think of is that you’re using a account without write access for the IIS middleman. The LoginAccount does work, but it’s part a whole forms authentication common code base I use fro my other site, that didn’t seem prudent to include in this version.

Hey @random.server i just installed this on my Server 2012 box and have IIS serving up the UI pages. I have all the configuration setup correctly (I think) and for some reason it can’t connect to the SQLite database. I get a 500 in dev tools when it trys to run the database.plex-sqlite.aspx.

My connection string is as follows.
sqlConnection.ConnectionString = “Data Source=C:/Users/xxxxxx/Downloads/20150627-PlexSentry/20150627-PlexSentry/PlexSentry-(SQLite)/PlexSentry-sqllite.db;Version=3;Timeout=100;journal_mode=WAL;”;

i tried replacing the forward slashes with double backslashes and still same error as attached image.

Any help would be great.

P.S. I would love to see this open sourced as well so I could possible write an installer and bundle it all together with your VS project and possible help out with dev as i need a side project!

Any plans for Linux version @random.server? or an easy to follow work around for it? Would love this functionality.