@lockforplex
@iSh0w I’ll take a look as soon as I can. I’ve seen the Python file, but as you instructed I didn’t touch it just in case. I’ll take a look soon as I can, but my kid had. A sleepover so it might be a bit.
Would you prefer I update first so you can have a log?
OK tried what you suggested and a couple different things including the full path and the "%LOCALAPPDATA%\Plex Media Server\" path. No dice.
Here are the logs...
Here’s the variants I tried - Note: I commented out and added back in all the variants once the tests were done (they were not in the file during the tests):
#BASEPATHLOCK = os.path.expanduser("~/AppData/Local/Plex Media Server/Plug-ins/Lock.bundle/Contents/Resources/lock_support/lock.bat")
#BASEPATHUNLOCK = os.path.expanduser("~/AppData/Local/Plex Media Server/Plug-ins/Lock.bundle/Contents/Resources/lock_support/unlock.bat")
BASEPATHLOCK = (Core.storage.join_path(Core.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name+"/Lock.bundle/Contents/Resources/lock_support/lock.bat"))).replace(" “,”\ “)
BASEPATHUNLOCK = (Core.storage.join_path(Core.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name+”/Lock.bundle/Contents/Resources/lock_support/unlock.bat"))).replace(" “,”\ “)
#BASEPATHLOCK = (Core.storage.join_path(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.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name+"/Lock.bundle/Contents/Resources/lock_support/unlock.bat")))
These last two obviously will not work now that I checked up on expanduser D’OH!
#BASEPATHLOCK = os.path.expanduser(“C:\Users
eedlephoenix\AppData\Local\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\lock.bat”)
#BASEPATHUNLOCK = os.path.expanduser(“C:\Users
eedlephoenix\AppData\Local\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\unlock.bat”)
#BASEPATHLOCK = os.path.expanduser("%LOCALAPPDATA%\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\lock.bat")
#BASEPATHUNLOCK = os.path.expanduser("%LOCALAPPDATA%\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\unlock.bat")
https://twitter.com/lockforplex/status/663283582832480256
FYi for:
BASEPATHLOCK = os.path.expanduser("~\AppData\Local\Plex Media Server/Plug-ins/Lock.bundle/Contents/Resources/lock_support/lock.bat")
I added:
Log.Info('~~~~~~~LockforPlexLog~~~~~~~~~~This is the basepath 0:' + BASEPATHLOCK)
result:
2014-09-01 09:21:13,983 (1f18) : INFO (logkit:16) - ~~~~~~~LockforPlexLog~~~~~~~~~~This is the basepath 0:C:\Users eedlephoenix/AppData/Local/Plex Media Server/Plug-ins/Lock.bundle/Contents/Resources/lock_support/lock.bat
Seems kind of fishy
Tried all the variants with no success. The new batch file still works though.
Do you need to use open when using os.system? Just a shot in the dark.
https://twitter.com/lockforplex/status/663283582832480256
You got me :P no idea
ok so this is all the variants I've tried at this point none of which seem to run the batch file:
https://twitter.com/lockforplex/status/663283582832480256
https://twitter.com/lockforplex/status/663283582832480256
FYI using sublime. You should try it out its quite good, we have been using it at work for ages.
Hmmm....