Nothing happens in cmd when I paste that code in. But I can call the lock.bat file from the command prompt and the library does get hidden in PMS. To get it back, I have to run the unlock.bat which brings the library back, although it puts those items in the On Deck and Recently Added which I had unchecked when creating the library. Strange.
The command prompt briefly pops up for a fraction of a second. When I click on the channel I get a spinning wheel. Then click on the lock, that is where the cmd window flashes and the graphic becomes a check mark. Nothing is locked though. Clicking the checkmark will flash the cmd window again, but nothing is happenning.
Double clicking the actual bat files in the lock_support folder is the only way that this works to lock/unlock the library. And with no need for a password. Just a bit impractical.
About the On Deck and Recently Added, the items I am hiding are showing up AFTER I unlock the library. So I have to edit the library and uncheck the box for "Include in Dashboard" under Advanced everytime I unlock.
https://twitter.com/lockforplex/status/663283582832480256
iSh0w,
I’m still getting the error
Windows 6.3 (Build 9600) is currently NOT supported!
Thanks
Pushed an update
- locked sections DO NOT show up in the dashboard when unlocked anymore(Tested on Mac/Windows7)
Nice work on this! works on windows 8 also
Oh! My badd, pl. check now
/iSh0w
Sent from my iPhone using Tapatalk
Working now - thanks :)
iSh0w,
Plex pass has a new feature called pre roll - a pre video that can play before a movie starts (movie cinema experience)
http://i.imgur.com/Scha19U.jpg
Any chance we could get it not to play on unlocked folders via lock (which happens at the moment with lock.bundle)
When the "Enabled Cinema Trailers" option is unticked it does not play
I know it might be abit hard to look at when ya not on plex pass...
Thanks :)
Yes it auto gets ticked again when locking and unlocking
Anybody running on Linux PMS where locking doesn't seem to occur at all? Everything installs OK, but when I open the section in PM-Web it takes me directly in without prompting for password.
Thoughts?
Take it that you've read the disclaimer before downloading(for Linux)? Guess your an advanced linux user?
The Linux version is experimental, congratulations, you're the first linux user! [emoji106]
Would you like to help debug and get this channel working for yourself an other Linux users?
What distro of Linux are you on?
Thanks.
/iSh0w
Sent from my iPhone using Tapatalk
yup - read the disclaimer, didn't realize I was the first - yay for me! Yeah, I'm pretty good in linux - I'm a software developer myself, so I like to get my hands dirty. Let me start off by saying I appreciate you taking the time and the effort for putting this plugin together. I've been following the thread for Password protect Movies and Categories for quite some time now, I must say - your plugin definitely sounded like long needed music to my ears. So, I'd be more than happy to debug and work through this with you.
I'm running CentOS release 6.5 (Final), full uname
Linux 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
I did try to look through the Plex logging, but I'm not to familiar with Plex development, so I wasn't sure what to look for. If you need to perform certain actions and send you the logs, I'd be more than glad to.
Thanks again!
Ok - so a couple notes too based on your last reply...
Just did a look over on your lock/unlock shell scripts - you might want to add for Linux users to chmod a+x to make them executable, I think when they get copied over that file property gets lost (not sure as I was copying from a Windows machine to the Plex Linux machine, so may have been just me.
I think you're right on the path regarding the PATHS, the paths in the file are set to "~/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/Lock.bundle/Contents/Resources/lock_support/" - which I think is the Mac OS Plex install directory. I think for Linux it's supposed to be $PLEX_HOME where you have the "~". (*Thing to note though, I'm pretty sure I did a default Plex install for my server and $PLEX_HOME is not set in my environment variables - I've added it now for this)
Took an extra step based on above and edited lock.sh to set to the correct paths - had to update the directory change command and the sqlite command to correct to as below. On a side note, there was a path error in the sqllite command as well, the path was quoted, yet the spaces in the path were still escaped (the space between Plug-in and Support was not escaped also).
cd $PLEX_HOME/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/Lock.bundle/Contents/Resources/lock_support/sqlite3 $PLEX_HOME/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db “$lockplex”
The command runs now, but I get the following error:
Error: file is encrypted or is not a database ./lock.sh: line 9: .exit: command not found
For reference: sqlite3 ex1 outputs > SQLite version 3.6.20
**Side note, for Linux users - seems that the Plex rpm install is the culprit for setting the $PLEX_HOME incorrectly. I just upgraded to PMS v0.9.10.1 and it reset my $PLEX_HOME to null.
Sorry, iSh0w - still getting that same error even on latest PMS version for Linux.
Yeah, those paths are correct, but as I said, I just updated PMS tonight and it cleared the $PLEX_HOME environment variable out. It is the stated directories in Plex documentation and is correct for my install as well, so you should be safe with those.
Yeah, both SQLite versions (server and packaged) are 3.6.20 - so not sure where the disconnect is between the server version and the packaged one.