diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index 36690fd4..a5d1f29e 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -522,7 +522,7 @@ available_notification_agents = sorted(notifiers.available_notification_agents() -

Allow shared users to login to PlexPy using their Plex.tv account.

+

Allow shared users to login to PlexPy using their Plex.tv account. Individual user access needs to be enabled from Users > Edit Mode.

diff --git a/plexpy/__init__.py b/plexpy/__init__.py index d6c446bd..b82818a3 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -447,7 +447,7 @@ def dbcheck(): 'user_id INTEGER DEFAULT NULL UNIQUE, username TEXT NOT NULL, friendly_name TEXT, ' 'thumb TEXT, custom_avatar_url TEXT, email TEXT, is_home_user INTEGER DEFAULT NULL, ' 'is_allow_sync INTEGER DEFAULT NULL, is_restricted INTEGER DEFAULT NULL, do_notify INTEGER DEFAULT 1, ' - 'keep_history INTEGER DEFAULT 1, deleted_user INTEGER DEFAULT 0, allow_guest INTEGER DEFAULT 1, ' + 'keep_history INTEGER DEFAULT 1, deleted_user INTEGER DEFAULT 0, allow_guest INTEGER DEFAULT 0, ' 'user_token TEXT, server_token TEXT)' ) @@ -749,7 +749,7 @@ def dbcheck(): except sqlite3.OperationalError: logger.debug(u"Altering database. Updating database table users.") c_db.execute( - 'ALTER TABLE users ADD COLUMN allow_guest INTEGER DEFAULT 1' + 'ALTER TABLE users ADD COLUMN allow_guest INTEGER DEFAULT 0' ) c_db.execute( 'ALTER TABLE users ADD COLUMN user_token TEXT' diff --git a/plexpy/users.py b/plexpy/users.py index aaa813d4..acac14ba 100644 --- a/plexpy/users.py +++ b/plexpy/users.py @@ -45,7 +45,7 @@ def user_login(username=None, password=None): not user_details['deleted_user'] and user_details['allow_guest']: # The user is in the database, so try to retrieve a new server token. - # If a server token is returned, then the user is a vaild friend + # If a server token is returned, then the user is a valid friend plex_tv = plextv.PlexTV(token=user_token) server_token = plex_tv.get_server_token() if server_token: