Lock for Plex Google Chrome App

https://twitter.com/lockforplex/status/663283582832480256

Did you get my syntax error post? 

Looks like it was just a missing close bracket on the first line.  Still didn't run the batch for some reason though.

https://twitter.com/lockforplex/status/663283582832480256

:( no luck....

Do these warnings have anything to do with it?  2014-09-01 10:02:07,525 (282c) :  WARNING (runtime:1059) - Generating a callback path for a function with no route:

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

2014-09-01 10:01:32,323 (2e04) :  INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)
2014-09-01 10:01:32,323 (2e04) :  DEBUG (core:359) - Using the elevated policy
2014-09-01 10:01:32,325 (2e04) :  DEBUG (core:448) - Starting runtime component.
2014-09-01 10:01:32,326 (2e04) :  DEBUG (core:448) - Starting caching component.
2014-09-01 10:01:32,326 (2e04) :  DEBUG (core:448) - Starting data component.
2014-09-01 10:01:32,326 (2e04) :  DEBUG (core:448) - Starting networking component.
2014-09-01 10:01:32,328 (2e04) :  DEBUG (networking:288) - Loaded HTTP cookies
2014-09-01 10:01:32,329 (2e04) :  DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-09-01 10:01:32,331 (2e04) :  DEBUG (core:448) - Starting localization component.
2014-09-01 10:01:32,331 (2e04) :  INFO (localization:408) - Setting the default locale to en-us
2014-09-01 10:01:32,331 (2e04) :  DEBUG (core:448) - Starting messaging component.
2014-09-01 10:01:32,332 (2e04) :  DEBUG (core:448) - Starting debugging component.
2014-09-01 10:01:32,332 (2e04) :  DEBUG (core:448) - Starting services component.
2014-09-01 10:01:32,332 (2e04) :  DEBUG (core:448) - Starting myplex component.
2014-09-01 10:01:32,332 (29b4) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.lockunlock'
2014-09-01 10:01:32,332 (2e04) :  DEBUG (core:448) - Starting notifications component.
2014-09-01 10:01:32,487 (2e04) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.lockunlock in namespace 'metadata'
2014-09-01 10:01:32,494 (2e04) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-09-01 10:01:32,634 (2384) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-09-01 10:01:32,634 (2e04) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-09-01 10:01:32,635 (2e04) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-09-01 10:01:32,635 (2e04) :  DEBUG (core:150) - Finished starting framework core
2014-09-01 10:01:32,635 (2384) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2014-09-01 10:01:32,637 (2e04) :  DEBUG (core:558) - Loading plug-in code
2014-09-01 10:01:32,637 (32a0) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-09-01 10:01:32,647 (32a0) :  DEBUG (core:536) - Machine identifier is f763994b0c644c0df1377f47ee1112dd1b928277
2014-09-01 10:01:32,648 (32a0) :  DEBUG (core:537) - Server version is 0.9.9.14.531-7eef8c6
2014-09-01 10:01:32,671 (2e04) :  DEBUG (core:564) - Finished loading plug-in code
2014-09-01 10:01:32,673 (2e04) :  DEBUG (runtime:640) - Adding a prefix handler for 'Lock' ('/video/lock')
2014-09-01 10:01:32,677 (2e04) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-09-01 10:01:32,681 (2e04) :  DEBUG (core:519) - Attribute 'platformVersion' set to '6.1 (Build 7601)'
2014-09-01 10:01:32,681 (2e04) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Platform: Windows Version: 6.1 (Build 7601)
2014-09-01 10:01:32,683 (2e04) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~PMS Server: 0.9.9.14.531-7eef8c6
2014-09-01 10:01:32,683 (2e04) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Plex Media Server at C:\Users eedlephoenix\AppData\Local\Plex Media Server
2014-09-01 10:01:32,683 (2e04) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Plug-in bundles are located in C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-ins
2014-09-01 10:01:32,683 (2e04) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Plug-in support files are located in C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-in Support
2014-09-01 10:01:32,684 (2e04) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Lock Bundle path is C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-ins\Lock.bundle
2014-09-01 10:01:32,684 (2e04) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~This is the basepath 0:C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-insLock.bundle\Contents\Resources\lock_support\lock.bat
2014-09-01 10:01:32,684 (2e04) :  INFO (core:609) - Started plug-in
2014-09-01 10:01:32,684 (2e04) :  DEBUG (socketinterface:160) - Starting socket server
2014-09-01 10:01:32,686 (2e04) :  DEBUG (runtime:1111) - Created a thread named 'start'
2014-09-01 10:01:32,687 (2e04) :  INFO (socketinterface:184) - Socket server started on port 62461
2014-09-01 10:01:32,687 (2e04) :  INFO (pipeinterface:25) - Entering run loop
2014-09-01 10:01:32,687 (2e04) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2014-09-01 10:01:32,688 (2e04) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2014-09-01 10:01:33,023 (2384) :  DEBUG (services:362) - Loaded services
2014-09-01 10:01:33,028 (2e04) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 448 bytes
2014-09-01 10:01:33,028 (2fa8) :  DEBUG (services:438) - No shared code to load
2014-09-01 10:01:44,359 (2208) :  DEBUG (runtime:717) - Handling request GET /video/lock
2014-09-01 10:01:44,361 (2208) :  DEBUG (runtime:814) - Found route matching /video/lock
2014-09-01 10:01:44,361 (2208) :  WARNING (runtime:1059) - Generating a callback path for a function with no route:
2014-09-01 10:01:44,362 (2208) :  DEBUG (base:125) - Checking if com.plexapp.plugins.lockunlock is broken
2014-09-01 10:01:44,364 (2208) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sb2NrdW5sb2NrczEwCmlkZW50aWZpZXJyMAo_'
2014-09-01 10:01:44,375 (2208) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:01:44,375 (2208) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1055 bytes
2014-09-01 10:01:45,855 (2ca4) :  DEBUG (runtime:717) - Handling request GET /video/lock
2014-09-01 10:01:45,857 (2ca4) :  DEBUG (runtime:814) - Found route matching /video/lock
2014-09-01 10:01:45,858 (2ca4) :  WARNING (runtime:1059) - Generating a callback path for a function with no route:
2014-09-01 10:01:45,858 (2ca4) :  DEBUG (base:125) - Checking if com.plexapp.plugins.lockunlock is broken
2014-09-01 10:01:45,859 (2ca4) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sb2NrdW5sb2NrczEwCmlkZW50aWZpZXJyMAo_'
2014-09-01 10:01:45,871 (2ca4) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:01:45,871 (2ca4) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1055 bytes
2014-09-01 10:01:45,940 (2538) :  DEBUG (runtime:717) - Handling request GET /video/lock/:/function/LaunchApplication?function_args=Y2VyZWFsMQoxCmRpY3QKMgpzNgpMb2NrZWRzNgpzdGF0dXN1MTE1CkM6XFVzZXJzXG5lZWRsZXBob2VuaXhcQXBwRGF0YVxMb2NhbFxQbGV4IE1lZGlhIFNlcnZlclxQbHVnLWluc0xvY2suYnVuZGxlXENvbnRlbnRzXFJlc291cmNlc1xsb2NrX3N1cHBvcnRcbG9jay5iYXRzNApwYXRocjAK
2014-09-01 10:01:45,957 (2538) :  DEBUG (runtime:814) - Found route matching /video/lock/:/function/LaunchApplication
2014-09-01 10:01:45,959 (2538) :  DEBUG (runtime:143) - Calling function 'LaunchApplication'
2014-09-01 10:01:45,959 (2538) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Locking
2014-09-01 10:01:46,005 (2538) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Locked
2014-09-01 10:01:46,006 (2538) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:01:46,006 (2538) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 368 bytes
2014-09-01 10:02:01,953 (2594) :  DEBUG (runtime:717) - Handling request GET /video/lock
2014-09-01 10:02:01,954 (2594) :  DEBUG (runtime:814) - Found route matching /video/lock
2014-09-01 10:02:01,956 (2594) :  WARNING (runtime:1059) - Generating a callback path for a function with no route:
2014-09-01 10:02:01,957 (2594) :  DEBUG (base:125) - Checking if com.plexapp.plugins.lockunlock is broken
2014-09-01 10:02:01,957 (2594) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sb2NrdW5sb2NrczEwCmlkZW50aWZpZXJyMAo_'
2014-09-01 10:02:01,969 (2594) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:02:01,970 (2594) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1055 bytes
2014-09-01 10:02:02,953 (2740) :  DEBUG (runtime:717) - Handling request GET /video/lock
2014-09-01 10:02:02,956 (2740) :  DEBUG (runtime:814) - Found route matching /video/lock
2014-09-01 10:02:02,956 (2740) :  WARNING (runtime:1059) - Generating a callback path for a function with no route:
2014-09-01 10:02:02,957 (2740) :  DEBUG (base:125) - Checking if com.plexapp.plugins.lockunlock is broken
2014-09-01 10:02:02,959 (2740) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sb2NrdW5sb2NrczEwCmlkZW50aWZpZXJyMAo_'
2014-09-01 10:02:02,970 (2740) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:02:02,970 (2740) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1055 bytes
2014-09-01 10:02:03,003 (2fcc) :  DEBUG (runtime:717) - Handling request GET /video/lock/:/function/LaunchApplication?function_args=Y2VyZWFsMQoxCmRpY3QKMgpzNgpMb2NrZWRzNgpzdGF0dXN1MTE1CkM6XFVzZXJzXG5lZWRsZXBob2VuaXhcQXBwRGF0YVxMb2NhbFxQbGV4IE1lZGlhIFNlcnZlclxQbHVnLWluc0xvY2suYnVuZGxlXENvbnRlbnRzXFJlc291cmNlc1xsb2NrX3N1cHBvcnRcbG9jay5iYXRzNApwYXRocjAK
2014-09-01 10:02:03,005 (2fcc) :  DEBUG (runtime:814) - Found route matching /video/lock/:/function/LaunchApplication
2014-09-01 10:02:03,006 (2fcc) :  DEBUG (runtime:143) - Calling function 'LaunchApplication'
2014-09-01 10:02:03,006 (2fcc) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Locking
2014-09-01 10:02:03,061 (2fcc) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Locked
2014-09-01 10:02:03,063 (2fcc) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:02:03,063 (2fcc) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 368 bytes
2014-09-01 10:02:07,522 (282c) :  DEBUG (runtime:717) - Handling request GET /video/lock
2014-09-01 10:02:07,523 (282c) :  DEBUG (runtime:814) - Found route matching /video/lock
2014-09-01 10:02:07,525 (282c) :  WARNING (runtime:1059) - Generating a callback path for a function with no route:
2014-09-01 10:02:07,526 (282c) :  DEBUG (base:125) - Checking if com.plexapp.plugins.lockunlock is broken
2014-09-01 10:02:07,526 (282c) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sb2NrdW5sb2NrczEwCmlkZW50aWZpZXJyMAo_'
2014-09-01 10:02:07,538 (282c) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:02:07,539 (282c) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1055 bytes
2014-09-01 10:02:07,681 (322c) :  DEBUG (runtime:717) - Handling request GET /video/lock/:/function/LaunchApplication?function_args=Y2VyZWFsMQoxCmRpY3QKMgpzNgpMb2NrZWRzNgpzdGF0dXN1MTE1CkM6XFVzZXJzXG5lZWRsZXBob2VuaXhcQXBwRGF0YVxMb2NhbFxQbGV4IE1lZGlhIFNlcnZlclxQbHVnLWluc0xvY2suYnVuZGxlXENvbnRlbnRzXFJlc291cmNlc1xsb2NrX3N1cHBvcnRcbG9jay5iYXRzNApwYXRocjAK
2014-09-01 10:02:07,683 (322c) :  DEBUG (runtime:814) - Found route matching /video/lock/:/function/LaunchApplication
2014-09-01 10:02:07,684 (322c) :  DEBUG (runtime:143) - Calling function 'LaunchApplication'
2014-09-01 10:02:07,684 (322c) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Locking
2014-09-01 10:02:07,733 (322c) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Locked
2014-09-01 10:02:07,736 (322c) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:02:07,736 (322c) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 368 bytes

https://twitter.com/lockforplex/status/663283582832480256

Just noticed there was a backslash missing before lock.bundle, updated it, still not working :(  I'm sure its something silly. :P

BASEPATHLOCK = Core.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name)+"\Lock.bundle\Contents\Resources\lock_support\lock.bat"
BASEPATHUNLOCK = Core.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name)+"\Lock.bundle\Contents\Resources\lock_support\unlock.bat"

Weird... Now the logging is not working:

2014-09-01 10:17:41,138 (24e0) :  DEBUG (runtime:717) - Handling request GET /video/lock
2014-09-01 10:17:41,140 (24e0) :  DEBUG (runtime:814) - Found route matching /video/lock
2014-09-01 10:17:41,140 (24e0) :  WARNING (runtime:1059) - Generating a callback path for a function with no route:
2014-09-01 10:17:41,141 (24e0) :  DEBUG (base:125) - Checking if com.plexapp.plugins.lockunlock is broken
2014-09-01 10:17:41,142 (24e0) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sb2NrdW5sb2NrczEwCmlkZW50aWZpZXJyMAo_'
2014-09-01 10:17:41,154 (24e0) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:17:41,154 (24e0) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1062 bytes
2014-09-01 10:17:42,358 (2e64) :  DEBUG (runtime:717) - Handling request GET /video/lock
2014-09-01 10:17:42,361 (2e64) :  DEBUG (runtime:814) - Found route matching /video/lock
2014-09-01 10:17:42,362 (2e64) :  WARNING (runtime:1059) - Generating a callback path for a function with no route:
2014-09-01 10:17:42,365 (2e64) :  DEBUG (base:125) - Checking if com.plexapp.plugins.lockunlock is broken
2014-09-01 10:17:42,367 (2e64) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sb2NrdW5sb2NrczEwCmlkZW50aWZpZXJyMAo_'
2014-09-01 10:17:42,384 (2e64) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:17:42,384 (2e64) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1062 bytes
2014-09-01 10:17:42,415 (25ec) :  DEBUG (runtime:717) - Handling request GET /video/lock/:/function/LaunchApplication?function_args=Y2VyZWFsMQoxCmRpY3QKMgpzNgpMb2NrZWRzNgpzdGF0dXN1MTE2CkM6XFVzZXJzXG5lZWRsZXBob2VuaXhcQXBwRGF0YVxMb2NhbFxQbGV4IE1lZGlhIFNlcnZlclxQbHVnLWluc1xMb2NrLmJ1bmRsZVxDb250ZW50c1xSZXNvdXJjZXNcbG9ja19zdXBwb3J0XGxvY2suYmF0czQKcGF0aHIwCg__
2014-09-01 10:17:42,417 (25ec) :  DEBUG (runtime:814) - Found route matching /video/lock/:/function/LaunchApplication
2014-09-01 10:17:42,417 (25ec) :  DEBUG (runtime:143) - Calling function 'LaunchApplication'
2014-09-01 10:17:42,417 (25ec) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Locking
2014-09-01 10:17:42,463 (25ec) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Locked
2014-09-01 10:17:42,466 (25ec) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:17:42,466 (25ec) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 368 bytes

https://twitter.com/lockforplex/status/663283582832480256

Here is the new log.

Got to leave for a while to take my kids to a party, but I will be back at 1:30pm EST.  Thank you so much for all the time you are spending, its much appreciated.  I just wish I knew python:

2014-09-01 10:21:31,296 (1d84) :  INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)
2014-09-01 10:21:31,296 (1d84) :  DEBUG (core:359) - Using the elevated policy
2014-09-01 10:21:31,296 (1d84) :  DEBUG (core:448) - Starting runtime component.
2014-09-01 10:21:31,299 (1d84) :  DEBUG (core:448) - Starting caching component.
2014-09-01 10:21:31,299 (1d84) :  DEBUG (core:448) - Starting data component.
2014-09-01 10:21:31,301 (1d84) :  DEBUG (core:448) - Starting networking component.
2014-09-01 10:21:31,302 (1d84) :  DEBUG (networking:288) - Loaded HTTP cookies
2014-09-01 10:21:31,303 (1d84) :  DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-09-01 10:21:31,303 (1d84) :  DEBUG (core:448) - Starting localization component.
2014-09-01 10:21:31,305 (1d84) :  INFO (localization:408) - Setting the default locale to en-us
2014-09-01 10:21:31,305 (1d84) :  DEBUG (core:448) - Starting messaging component.
2014-09-01 10:21:31,305 (1d84) :  DEBUG (core:448) - Starting debugging component.
2014-09-01 10:21:31,305 (1d84) :  DEBUG (core:448) - Starting services component.
2014-09-01 10:21:31,306 (1d84) :  DEBUG (core:448) - Starting myplex component.
2014-09-01 10:21:31,306 (21e8) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.lockunlock'
2014-09-01 10:21:31,306 (1d84) :  DEBUG (core:448) - Starting notifications component.
2014-09-01 10:21:31,448 (1d84) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.lockunlock in namespace 'metadata'
2014-09-01 10:21:31,454 (1d84) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-09-01 10:21:31,483 (e2c) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-09-01 10:21:31,483 (1d84) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-09-01 10:21:31,486 (1d84) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-09-01 10:21:31,486 (1d84) :  DEBUG (core:150) - Finished starting framework core
2014-09-01 10:21:31,486 (e2c) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2014-09-01 10:21:31,487 (1a70) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-09-01 10:21:31,487 (1d84) :  DEBUG (core:558) - Loading plug-in code
2014-09-01 10:21:31,494 (1a70) :  DEBUG (core:536) - Machine identifier is f763994b0c644c0df1377f47ee1112dd1b928277
2014-09-01 10:21:31,494 (1a70) :  DEBUG (core:537) - Server version is 0.9.9.14.531-7eef8c6
2014-09-01 10:21:31,520 (1d84) :  DEBUG (core:564) - Finished loading plug-in code
2014-09-01 10:21:31,522 (1d84) :  DEBUG (runtime:640) - Adding a prefix handler for 'Lock' ('/video/lock')
2014-09-01 10:21:31,526 (1d84) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-09-01 10:21:31,529 (1d84) :  DEBUG (core:519) - Attribute 'platformVersion' set to '6.1 (Build 7601)'
2014-09-01 10:21:31,529 (1d84) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Platform: Windows Version: 6.1 (Build 7601)
2014-09-01 10:21:31,529 (1d84) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~PMS Server: 0.9.9.14.531-7eef8c6
2014-09-01 10:21:31,529 (1d84) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Plex Media Server at C:\Users eedlephoenix\AppData\Local\Plex Media Server
2014-09-01 10:21:31,530 (1d84) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Plug-in bundles are located in C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-ins
2014-09-01 10:21:31,530 (1d84) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Plug-in support files are located in C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-in Support
2014-09-01 10:21:31,530 (1d84) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Lock Bundle path is C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-ins\Lock.bundle
2014-09-01 10:21:31,530 (1d84) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~BASEPATHLOCK is: C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\lock.bat
2014-09-01 10:21:31,532 (1d84) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~BASEPATHUNLOCK is: C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\unlock.bat
2014-09-01 10:21:31,532 (1d84) :  INFO (core:609) - Started plug-in
2014-09-01 10:21:31,532 (1d84) :  DEBUG (socketinterface:160) - Starting socket server
2014-09-01 10:21:31,535 (1d84) :  DEBUG (runtime:1111) - Created a thread named 'start'
2014-09-01 10:21:31,535 (1d84) :  INFO (socketinterface:184) - Socket server started on port 64782
2014-09-01 10:21:31,536 (1d84) :  INFO (pipeinterface:25) - Entering run loop
2014-09-01 10:21:31,536 (1d84) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2014-09-01 10:21:31,538 (1d84) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2014-09-01 10:21:31,714 (e2c) :  DEBUG (services:362) - Loaded services
2014-09-01 10:21:31,719 (1d84) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 448 bytes
2014-09-01 10:21:31,723 (780) :  DEBUG (services:438) - No shared code to load
2014-09-01 10:21:31,773 (2904) :  DEBUG (runtime:717) - Handling request GET /video/lock
2014-09-01 10:21:31,775 (2904) :  DEBUG (runtime:814) - Found route matching /video/lock
2014-09-01 10:21:31,776 (2904) :  WARNING (runtime:1059) - Generating a callback path for a function with no route:
2014-09-01 10:21:31,776 (2904) :  DEBUG (base:125) - Checking if com.plexapp.plugins.lockunlock is broken
2014-09-01 10:21:31,778 (2904) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sb2NrdW5sb2NrczEwCmlkZW50aWZpZXJyMAo_'
2014-09-01 10:21:31,789 (2904) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:21:31,789 (2904) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1062 bytes
2014-09-01 10:21:33,405 (2e9c) :  DEBUG (runtime:717) - Handling request GET /video/lock
2014-09-01 10:21:33,407 (2e9c) :  DEBUG (runtime:814) - Found route matching /video/lock
2014-09-01 10:21:33,407 (2e9c) :  WARNING (runtime:1059) - Generating a callback path for a function with no route:
2014-09-01 10:21:33,410 (2e9c) :  DEBUG (base:125) - Checking if com.plexapp.plugins.lockunlock is broken
2014-09-01 10:21:33,411 (2e9c) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sb2NrdW5sb2NrczEwCmlkZW50aWZpZXJyMAo_'
2014-09-01 10:21:33,421 (2e9c) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:21:33,421 (2e9c) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1062 bytes
2014-09-01 10:21:33,433 (1d74) :  DEBUG (runtime:717) - Handling request GET /video/lock/:/function/LaunchApplication?function_args=Y2VyZWFsMQoxCmRpY3QKMgpzNgpMb2NrZWRzNgpzdGF0dXN1MTE2CkM6XFVzZXJzXG5lZWRsZXBob2VuaXhcQXBwRGF0YVxMb2NhbFxQbGV4IE1lZGlhIFNlcnZlclxQbHVnLWluc1xMb2NrLmJ1bmRsZVxDb250ZW50c1xSZXNvdXJjZXNcbG9ja19zdXBwb3J0XGxvY2suYmF0czQKcGF0aHIwCg__
2014-09-01 10:21:33,450 (1d74) :  DEBUG (runtime:814) - Found route matching /video/lock/:/function/LaunchApplication
2014-09-01 10:21:33,450 (1d74) :  DEBUG (runtime:143) - Calling function 'LaunchApplication'
2014-09-01 10:21:33,450 (1d74) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Locking
2014-09-01 10:21:33,509 (1d74) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~Locked
2014-09-01 10:21:33,512 (1d74) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-09-01 10:21:33,512 (1d74) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 368 bytes

https://twitter.com/lockforplex/status/663283582832480256

ok weird batch file stopped working at some point.  I really have to go, but I will regenerate the plugin and try the last few options again to see if they work once I verify the batch is working again.

https://twitter.com/lockforplex/status/663283582832480256

Couple unused users from shares. I can remove them. I’m the only one who uses it though.

So got the batch files working again, removed the extra users and tried the last 4 variations again with no success.  I did notice though that in my plexweb there was no unlock option ever showing unlike on the app.

Hey,

Have fun! don't know where I'll be but based on the log if you can try, now or later

Paste this explorer, eg:- open my computer and in the bar on the top paste:

C:\Users
eedlephoenix\AppData\Local\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\lock.bat

and then try

C:\Users
eedlephoenix\AppData\Local\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\unlock.bat

what happens?

Extract from the log you just shared

2014-09-01 10:21:31,530 (1d84) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~BASEPATHLOCK is:
C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\lock.bat
2014-09-01 10:21:31,532 (1d84) :  INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~BASEPATHUNLOCK is:
C:\Users eedlephoenix\AppData\Local\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\unlock.bat

Works from explorer as well.

https://twitter.com/lockforplex/status/663283582832480256

Is there a way for me to remove all the logic and just test a static string version of the lock on channel load?  I can use the unlock.bat to unlock it.  Might be easier to test it that way.  I tried forcing the matter, but I'm seriously changing the if statement.

https://twitter.com/lockforplex/status/663283582832480256

ok so I made it run onload and went crazy on variants. Got it to work with: os.startfile(path) however its not ideal.  So going to try with subprocess.call