# Lock for Plex Google Chrome App

**URL:** https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917
**Category:** Apps & Creations
**Tags:** other-third-party
**Created:** [August 26, 2014, 8:44am UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917 "2014-08-26T08:44:09Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 26, 2014, 8:44am UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/1 "2014-08-26T08:44:09Z")

</div>

https://www.youtube.com/watch?v=nSQ59fn6Qfw

---

<div class="post-metadata">

### Author: ![NaDs](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nads/32/5421_2.png) [@NaDs](https://forums.plex.tv/u/NaDs)
#### Post date: [August 26, 2014, 9:29am UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/2 "2014-08-26T09:29:27Z")

</div>

This is brilliant :)

[https://forums.plex.tv/topic/46225-very-popular-parental-controls/](https://forums.plex.tv/topic/46225-very-popular-parental-controls/) - im sure 724 people will be happy from this thread

I have tested and it works on my platforms

Windows 8

Plex web

Plex iOS iphone/ipad

Samsung Plex app ( reports a error but still locks/unlocks folders - need to exit app and restart to take effect)

Attached are some screenshots of it working via the plex iOS app

![post-117256-0-78300500-1409044547.png|333x500](upload://jT5D1QZ41ZKV7u0mOFWbu29SKFb.png)&nbsp;&nbsp;&nbsp;&nbsp; ![post-117256-0-47197500-1409044550.png|333x500](upload://bbaB33H0r9aLlD6lTUfj9lx8eW2.png)

![post-117256-0-22372600-1409044950.png|333x500](upload://7DTV54rcEvf4qjKOjqBTJDqL5kv.png)&nbsp;&nbsp;&nbsp;&nbsp; ![post-117256-0-66132100-1409044552.png|333x500](upload://brEBWURGFzRQnjzNXdVmvfPmLzG.png)

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Where to add password in plex web to unlock sections

![post-117256-0-24083900-1409045350.jpg|414x500](upload://lL04k98i0UJuTz2AU7tEjP5dzZf.jpg)

---

<div class="post-metadata">

### Author: ![dean\_za](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dean\_za](https://forums.plex.tv/u/dean_za)
#### Post date: [August 26, 2014, 9:52am UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/3 "2014-08-26T09:52:29Z")

</div>

Great , when do you expect to support Linux / FreeBSD ?&nbsp;

Dean

---

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 26, 2014, 10:13am UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/4 "2014-08-26T10:13:36Z")

</div>

[https://twitter.com/lockforplex/status/663283582832480256](https://twitter.com/lockforplex/status/663283582832480256)

---

<div class="post-metadata">

### Author: ![jluce50](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jluce50/32/11518_2.png) [@jluce50](https://forums.plex.tv/u/jluce50)
#### Post date: [August 26, 2014, 2:40pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/5 "2014-08-26T14:40:16Z")

</div>

I'm getting "This channel is not responding" when clicking on "Lock". I have moved my Plex Media Server folder to a different location, but I edited the .bat files to point to the new location. Still, I suspect that may have something to do with it. Is it possible to use this with a non-default Plex Media Server folder location?

---

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 26, 2014, 2:44pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/6 "2014-08-26T14:44:58Z")

</div>

[https://twitter.com/lockforplex/status/663283582832480256](https://twitter.com/lockforplex/status/663283582832480256)

---

<div class="post-metadata">

### Author: ![jluce50](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jluce50/32/11518_2.png) [@jluce50](https://forums.plex.tv/u/jluce50)
#### Post date: [August 26, 2014, 3:27pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/7 "2014-08-26T15:27:32Z")

</div>

> At this time only the default location will work.
> 
> Since your looking under the hood, look at the "\_\_init\_\_.py" file in Lock.bundle\>contents\>code and change the paths for BASEPATHLOCK and BASEPATHUNLOCK, you should be good to go ; )

Okay, I made the change and I get the "Section Successfully Locked" message with no prompt to run the bat file. The section doesn't appear to be locked, so I'm not getting any errors but it still isn't working. Oh well, thanks for help anyway!

---

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 26, 2014, 3:29pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/8 "2014-08-26T15:29:54Z")

</div>

[https://twitter.com/lockforplex/status/663283582832480256](https://twitter.com/lockforplex/status/663283582832480256)

---

<div class="post-metadata">

### Author: ![jluce50](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jluce50/32/11518_2.png) [@jluce50](https://forums.plex.tv/u/jluce50)
#### Post date: [August 26, 2014, 3:49pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/9 "2014-08-26T15:49:55Z")

</div>

> Are the lock.sql and unlock.sql files in the same folder as the .bat files? along with sqlite3?!  
>   
> Anyway, let me know if you need more help!  
>   
>   
> Sent from my iPhone using Tapatalk

Yep, they're all in there. I'm going to try disabling UAC and see if that helps...

Edit: Nope, disabling UAC didn't help. Can I just run the bat file directly?

---

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 26, 2014, 3:53pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/10 "2014-08-26T15:53:40Z")

</div>

[https://twitter.com/lockforplex/status/663283582832480256](https://twitter.com/lockforplex/status/663283582832480256)

---

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 26, 2014, 4:06pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/11 "2014-08-26T16:06:13Z")

</div>

[https://twitter.com/lockforplex/status/663283582832480256](https://twitter.com/lockforplex/status/663283582832480256)

---

<div class="post-metadata">

### Author: ![jluce50](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jluce50/32/11518_2.png) [@jluce50](https://forums.plex.tv/u/jluce50)
#### Post date: [August 26, 2014, 4:16pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/12 "2014-08-26T16:16:36Z")

</div>

> Double click the lock.bat file and check if the section locks/hides!?  
> Then try to double click the unlock.bat  
>   
> Only other thing I can think of if the above does not work is the database path in the .bat file is incorrect letmekno  
>   
>   
> Sent from my iPhone using Tapatalk

Database path was correct. Double-clicking on the bat file actually caused the section I was trying to lock to disappear completely (probably something I did). Luckily I was able to restore from the automated backup and everything is back to normal.

---

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 26, 2014, 4:19pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/13 "2014-08-26T16:19:37Z")

</div>

[https://twitter.com/lockforplex/status/663283582832480256](https://twitter.com/lockforplex/status/663283582832480256)

---

<div class="post-metadata">

### Author: ![calvo.family](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/calvo.family/32/5556_2.png) [@calvo.family](https://forums.plex.tv/u/calvo.family)
#### Post date: [August 26, 2014, 4:27pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/14 "2014-08-26T16:27:20Z")

</div>

This&nbsp;plugin generator actually removes data from the sqllite db and stores the data in a file in the generated plugin.

I prefer an approach where I leave most of the data in the sqllite db.&nbsp;This approach that does not remove data,&nbsp;but filters the data:

To Setup:

create table private\_sections (id int);

alter table library\_sections add column IsPublic bool default 1;

To enable:

alter table library\_sections rename to real\_library\_sections;

create view library\_sections as select \* from real\_library\_sections where IsPublic=1;

To Hide:

update real\_library\_sections set IsPublic=0 where id in ( select id from private\_sections);

update metadata\_items set added\_at='null' where id in (select id from private\_sections);

To Unhide:

update real\_library\_sections set IsPublic=1 where id in (select id from private\_sections)

To uninstall:

drop view library\_sections;

alter table real\_library\_sections rename to library\_sections;

---

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 26, 2014, 4:46pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/15 "2014-08-26T16:46:50Z")

</div>

[https://twitter.com/lockforplex/status/663283582832480256](https://twitter.com/lockforplex/status/663283582832480256)

---

<div class="post-metadata">

### Author: ![jackandjohn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jackandjohn/32/500_2.png) [@jackandjohn](https://forums.plex.tv/u/jackandjohn)
#### Post date: [August 27, 2014, 3:20am UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/16 "2014-08-27T03:20:15Z")

</div>

One suggestion, take it or leave it:

Once it's unlocked, only unlock for X hours, then automatically relock.

No parent can remember to re-lock it every time, and exactly the kinds of situations where something else is the priority are the same situations where the kids are up first the next morning.

---

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 27, 2014, 9:25pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/17 "2014-08-27T21:25:23Z")

</div>

[https://twitter.com/lockforplex/status/663283582832480256](https://twitter.com/lockforplex/status/663283582832480256)

---

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 28, 2014, 5:53pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/18 "2014-08-28T17:53:06Z")

</div>

[https://twitter.com/lockforplex/status/663283582832480256](https://twitter.com/lockforplex/status/663283582832480256)

---

<div class="post-metadata">

### Author: ![L0ck\_for\_Plex](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/l0ck_for_plex/32/9793_2.png) [@L0ck\_for\_Plex](https://forums.plex.tv/u/L0ck_for_Plex)
#### Post date: [August 31, 2014, 5:49am UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/19 "2014-08-31T05:49:27Z")

</div>

[https://twitter.com/lockforplex/status/663283582832480256](https://twitter.com/lockforplex/status/663283582832480256)

---

<div class="post-metadata">

### Author: ![Needlephoenix](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/needlephoenix/32/11241_2.png) [@Needlephoenix](https://forums.plex.tv/u/Needlephoenix)
#### Post date: [August 31, 2014, 8:02pm UTC](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917/20 "2014-08-31T20:02:14Z")

</div>

Let me start by saying thank you for your hard work!

I just tried this out on Windows 7. &nbsp;The .BAT files seem to work perfectly locking and unlocking the section. However when I use the channel I get the success notification, but the section does not lock or unlock. &nbsp;This using the IOS app and the web client.

One note, I do not get the windows security popup as written in step 3 of your instructions. &nbsp;I also do not have UAC on.

I manually ran the batch files and sqlite3.exe to check off the windows 7 dialog that did not appear, but this didn't change anything.

Any ideas?

[Next page](https://forums.plex.tv/t/lock-for-plex-google-chrome-app/74917.md?page=2)
