Nuff said
I do not see an unlock icon on plex channel page.
I do not see an unlock icon on plex channel page.
Just to add, Some people might not know about unlocking in the search field
Just to add, Some people might not know about unlocking in the search field
No that makes sense thank you
Well, you could select any number of section(s) in the lock generator page!
Steps you can follow:
> Unlock all sections using the lock channel
> Go to the lock plugin generator page (http://iSh0w.github.io)
> Select as many sections as you'd like to lock!!!
Unless I'm unable to understand what your requesting!
As far as unlocking from PlexWeb check this post out
Thank you I was being dumb. I thought you could only click one section. Does that mean say you have pictures and music locked and you unlock music. While listening to music others can go through your pictures? Since it is just a lock / unlock and not by section.
Yes, pretty much, you got the concept right :)
Sent from my iPhone using Tapatalk
Is there anyway to keep the other sections you have locked while your in one of the sections?
Not at the moment! :/
The idea is not bad though, maybe this is something that will be available in the future based on the response the channel gets, as of now, just couple of ppl. using it.
Also, the entire channel would require redesign/new concept and methodology of locking/unlocking would need to change!
I wouldn't hold my breath!
Sent from my iPhone using Tapatalk
well, thank you so much for the work you did. It is a great plugin. and much appreciated
Sorry for being dummy, usin win7 and Firerox
So my steps where:
i create a library "home videos" and want to lock it
I go to the plugin generator page and select the "home videos" library to lock
i typed the password twice.
I unzipped the plugin to the Plex folder.
I close the server and re-opened it.
I searched for the Lock channel and added it to my list
i opened the plex app from samsung smarthub. i see the locked channel and the "home videos" setion too, witch is still not locked.
Do i have to delete the library from my list to make it dissapear from the app main page and use the channel?
When i tried to enter the password in the plex app and it did not open it.
I never got the security popup.
So what i am doing wrong?
i opened the plex app from samsung smarthub. i see the locked channel and the "home videos" setion too, witch is still not locked.Do i have to delete the library from my list to make it dissapear from the app main page and use the channel?
When i tried to enter the password in the plex app and it did not open it.
I never got the security popup.
So what i am doing wrong?
i opened the plex app from samsung smarthub. i see the locked channel and the "home videos" setion too, witch is still not locked
This is correct as it has not been locked yet
Do i have to delete the library from my list to make it dissapear from the app main page and use the channel?
No
When i tried to enter the password in the plex app and it did not open it.
Enter the plex Samsung app and click on the lock plugin, enter password
once password has been entered restart plex Samsung app and see if "home videos" is not in list anymore
When i try to enter the password in samsung app, no keyboard will pop up. Just tree yellow dots at the clock up left will flash, as plex is waiting something. and i get no security warning when i click on the lock icon in PMS.
Hi. This plugin is not working for me. My app data is located on a different drive than my C:/users folder. It is in E:/Plex Media Server. I have tried changing some of the parameters as suggested in the discussions above. I changed the .bat files from %APPLOCALDATA% to my E:/ drive and that only works if I click on the files themselves in the directory. I have changed the _init_.py file to the following:
BASEPATHLOCK = os.path.expanduser("E:\Plex/Media/Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\lock.bat")
BASEPATHUNLOCK = os.path.expanduser("E:\Plex/Media/Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\unlock.bat")
And still nothing is happening. I have a channel for Lock for Plex and clicking it briefly shows a command window which quickly disappears, but the graphic shows Success. Going back to the home screen, the library that should be locked is not locked, nor is it in PHT.
__init__.py:
import os
PREFIX = "/video/lock"
PASSWORD = "*********"
BASEPATHLOCK = os.path.expanduser("E:\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\lock.bat")
BASEPATHUNLOCK = os.path.expanduser("E:\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support\unlock.bat")
DEV_MODE = False
NAME = 'Lock'
ART = 'art-default.jpg'
ICON = 'icon-default.png'
LOCK_ICON = 'lock.png'
UNLOCK_ICON = 'unlock.png'
SUCCESS_ICON = 'success.png'
ERROR_ICON = 'error.png'
def Start():
HTTP.CacheTime = 0
ObjectContainer.art = R(ART)
DirectoryObject.thumb = R(ICON)
Plugin.AddViewGroup("Details", viewMode="InfoList", mediaType="items")
ObjectContainer.view_group = 'Details'
Logger('Platform: ' + Platform.OS +' Version: '+Platform.OSVersion, force=True)
Logger('PMS Server: ' + Platform.ServerVersion, force=True)
Logger('Plex Media Server at ' + Core.app_support_path, force=True)
Logger('Plug-in bundles are located in ' + Core.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name), force=True)
Logger('Plug-in support files are located in ' + Core.storage.join_path(Core.app_support_path, Core.config.plugin_support_dir_name), force=True)
Logger('Lock Bundle path is ' + Core.storage.join_path(Core.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name), 'Lock.bundle'), force=True)
Logger('BASEPATHLOCK: ' + BASEPATHLOCK, force=True)
Logger('BASEPATHUNLOCK: ' + BASEPATHUNLOCK, force=True)
@handler(PREFIX, NAME, ICON, ART)
@route(PREFIX + '/mainmenu')
def MainMenu():
oc = ObjectContainer(no_cache=True)
oc.add(DirectoryObject(key=Callback(Lock, path=BASEPATHLOCK, task='Locked', query=""), title="Lock", thumb=R(LOCK_ICON)))
oc.add(InputDirectoryObject(key=Callback(Lock, path=BASEPATHUNLOCK, task='Unlocked'), title="Unlock", thumb=R(UNLOCK_ICON), prompt="Enter your password"))
return oc
@route(PREFIX + '/lock')
def Lock(query, path, task):
oc = ObjectContainer(title2="Lock", no_cache=True)
if task == 'Unlocked':
if query == PASSWORD:
Logger('Password correct about to launch unlock', force=True)
os.startfile(path)
Logger('Launched unlock', force=True)
oc.add(PopupDirectoryObject(key=Callback(MainMenu), title="Unlocked", duration=3, summary="Section(s) successfully unlocked!", thumb=R(SUCCESS_ICON)))
return oc
else:
Logger('Password Incorrect, someone is trying to get in!', force=True)
oc.add(PopupDirectoryObject(key=Callback(MainMenu), title="Incorrect Password", duration=3, summary="Try Again!", thumb=R(ERROR_ICON)))
return oc
elif task == 'Locked':
Logger('Locking', force=True)
os.startfile(path)
Logger('Locked', force=True)
oc.add(PopupDirectoryObject(key=Callback(MainMenu), title="Locked", duration=3, summary="Section(s) successfuly locked!", thumb=R(SUCCESS_ICON)))
return oc
@route(PREFIX + '/logger')
def Logger(message, force=False):
if DEV_MODE:
force = True
if force:
Log.Debug('======LOCK======'+message)
else:
pass
lock.bat:
cd /
cd E:\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support
sqlite3 "E:\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db" < lock.sql
exit
unlock.bat:
cd /
cd E:\Plex Media Server\Plug-ins\Lock.bundle\Contents\Resources\lock_support
sqlite3 "E:\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db" < unlock.sql
exit
com.plexapp.plugins.lockunlock.log (10.8 KB)
It looks ok to me, btw unsure of the norms of the forum but I think it would be better to either post code in the code parenthesis or attach as a file, personally does not matter to me [emoji6]
If it briefly shows a command window which quickly disappears the code is correct and the bat file is being called by the channel. So I don't think the path is the problem in your case, good job on changing them correctly.
If you wish to debug yourself, try this, right click on the bat files, open in any text editor(like edit plus) and delete the last line "exit", then right click and open the unlock.sql and lock.sql files and delete the last line ".quit"
What that will do is prevent the command window from disappearing briefly and you'd be able to see what error, if any is happening in the command window.
If no command window pops up, we can check the paths again ;)
/iSh0w
Sent from my iPhone using Tapatalk
Yeah, sorry about all that code in the last post. I was not allowed to upload .bat and .py files. Next time I should use the parentheses instead. :D
I downloaded the last update that you posted and followed your advice, deleted the exit at the end of the bat files (and the sql files are now gone) but nothing is happening any differently than before. Not sure what the next step is other than failure which kind of sucks. I'm looking forward to getting this to work.