diff --git a/data/interfaces/default/css/plexpy.css b/data/interfaces/default/css/plexpy.css index 79fd6d92..55e1e72e 100644 --- a/data/interfaces/default/css/plexpy.css +++ b/data/interfaces/default/css/plexpy.css @@ -2122,6 +2122,18 @@ a:hover .item-children-poster { top: 5px; left: 12px; } +#menu_link_show_advanced_settings.active { + color: #fff; + background-color: #cc7b19; +} +.advanced-setting { + display: none; +} +div.checkbox.advanced-setting, +div.form-group.advanced-setting { + border-left: 1px solid #e5a00d; + padding-left: 10px; +} .user-info-wrapper { } .user-info-poster-face { diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index 0a2d2b9d..8a3fabdc 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -26,11 +26,16 @@ Settings
+ % if config['show_advanced_settings'] == 1: + + % else: + + % endif % if config['check_github']: % endif - +
@@ -43,19 +48,16 @@
  • General
  • Homepage
  • Web Interface
  • -
  • Access Control
  • Plex Media Server
  • -
  • Plex.tv Account
  • -
  • Activity Monitoring
  • Notifications
  • -
  • Notification Agents
  • -
  • Extra Settings
  • +
  • Import & Backups
  • Tautulli Remote Android App beta
  • +
    % if common.VERSION_NUMBER: @@ -78,6 +80,7 @@
    +
    @@ -102,24 +105,39 @@

    Set your preferred time format. Click here to see the parameter list.

    -
    +

    Change the "Play by day of week" graph to start on Monday. Default is start on Sunday.

    -
    +

    Group successive play history by the same user as a single entry in the tables and watch statistics.

    -
    +

    Include current activity in the history tables. Statistics will not be counted until the stream has ended.

    + +
    +

    History Logging

    +
    + +
    + +
    +
    + +
    + +
    +

    The interval (in seconds) an item must be in a playing state before logging it. 0 to disable.

    +
    @@ -168,7 +186,7 @@

    Update Tautulli automatically if an update is available.

    -
    +
    @@ -331,7 +349,13 @@

    Note: Web interface changes require a restart.

    -
    +
    + +

    Launch browser pointed to Tautulli on startup.

    +
    +
    @@ -359,34 +383,27 @@

    The base URL of the web server. Used for reverse proxies.

    -
    +

    Respect the X-Forwarded-Proto header. Used for reverse proxies with SSL.

    -
    -
    - -

    Launch browser pointed to Tautulli on startup.

    -
    -
    +

    Enable HTTPS for web server for encrypted communication.

    -
    +

    Check to have Tautulli create a self-signed SSL certificate. Uncheck if you want to use your own certificate.

    -
    +
    @@ -395,7 +412,7 @@

    The domain names used to access Tautulli, separated by commas (,).

    -
    +
    @@ -405,7 +422,7 @@

    The IP addresses used to access Tautulli, separated by commas (,).

    -
    +
    @@ -414,7 +431,7 @@

    The location of the SSL certificate.

    -
    +
    @@ -423,7 +440,7 @@

    The location of the SSL certificate chain.

    -
    +
    @@ -433,11 +450,6 @@

    The location of the SSL key.

    -

    - -
    - -

    Authentication

    @@ -463,15 +475,7 @@

    Password for web server authentication. Leave empty to disable.

    -
    - - -

    Store a hashed password in the config file.
    Warning: Your password cannot be recovered if forgotten!

    -
    - +
    -
    +
    + + +

    Store a hashed password in the config file.
    Warning: Your password cannot be recovered if forgotten!

    +
    + +
    @@ -500,18 +513,18 @@

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

    -
    +

    API

    -
    +

    Allow remote applications to interface with Tautulli.

    -
    +
    @@ -621,7 +634,7 @@

    If you have secure connections enabled on your Plex Server, communicate with it securely.

    -
    +
    % if config['pms_is_cloud']:
    -
    +
    @@ -655,11 +668,7 @@ -
    -

    Plex Logs

    -
    - -
    +
    @@ -674,11 +683,6 @@

    - - -
    -
    -

    Plex.tv Authentication

    @@ -699,11 +703,7 @@

    Token for Plex.tv authentication.

    -
    -

    Friends List

    -
    - -
    +
    @@ -713,18 +713,14 @@

    The interval (in hours) Tautulli will request an updated friends list from Plex.tv. Minimum 1, maximum 24, default 12.

    -
    +

    Refresh the users list when Tautulli starts.

    -
    -

    Libraries List

    -
    - -
    +
    @@ -734,7 +730,7 @@

    The interval (in hours) Tautulli will request an updated libraries list from your Plex Media Server. Minimum 1, maximum 24, default 12.

    -
    +
    @@ -745,25 +741,23 @@
    -
    +
    -

    History Logging

    +

    Notification Agents

    -
    - -
    -
    - -
    - -
    -

    The interval (in seconds) an item must be in a playing state before logging it. 0 to disable.

    +

    + Add a new notification agent, or configure an existing notification agent by clicking the settings icon on the right. +

    +
    +
    +
    Loading notification agents...
    +
    -

    Buffer Warnings

    +

    Current Activity Notifications

    Note: Buffer warnings only work on certain Plex clients. Android and Plex Web do not report buffer events accurately or at all.

    @@ -787,17 +781,6 @@

    The value (in seconds) Tautulli should wait before triggering the next buffer warning. 0 to always trigger.

    - -

    - -
    - -
    - -
    -

    Current Activity Notifications

    -
    -
    -
    - -
    -

    Notification Agents

    -
    - -

    - Add a new notification agent, or configure an existing notification agent by clicking the settings icon on the right. -

    -
    -
    -
    Loading notification agents...
    -
    -
    - -
    -
    -
    +

    Extra Settings

    -
    +

    Enable if you want Tautulli to calculate the total file size for TV Shows/Seasons and Artists/Albums on the media info tables.

    -
    +
    @@ -941,7 +907,7 @@ Note: Only logs from the time this setting is enabled will be masked. Do not post your logs publically without masking sensitive information!

    -
    +
    @@ -950,7 +916,7 @@ Note: Video preview thumbnails (BIF) are not cached.

    -
    +
    @@ -959,7 +925,7 @@

    Backlink protection via anonymizer service, must end in "?".

    -
    +

    Attempt to fix history logging by flushing out all of the temporary sessions in the database.
    @@ -975,11 +941,11 @@

    % if plexpy.INSTALL_TYPE == 'git': -
    +

    Git Settings

    -
    +
    @@ -1002,7 +968,7 @@

    The git tracking remote and branch (default "origin/master"). Select to switch the git branch (requires restart).

    -
    +
    @@ -1658,6 +1624,15 @@ $(document).ready(function() { } } + function advancedSettings() { + var advanced_button = $('#menu_link_show_advanced_settings'); + if (advanced_button.hasClass('active')) { + $('.advanced-setting').show(); + } else { + $('.advanced-setting').hide(); + } + } + $('.save-button').click(function() { preSaveChecks(function () { saveSettings() }); }); @@ -1697,6 +1672,22 @@ $(document).ready(function() { window.location.href = 'restart'; }); + $('#menu_link_show_advanced_settings').click(function() { + $(this).toggleClass('active'); + if ($(this).hasClass('active')) { + $(this).html(' Hide Advanced'); + $('#show_advanced_settings').val(1); + } else { + $(this).html(' Show Advanced'); + $('#show_advanced_settings').val(0); + } + if (document.location.hash == '#tab_tabs-extra_settings') { + $('.nav-settings a[href=#tabs-help_info]').tab('show'); + } + advancedSettings() + }); + + advancedSettings(); getConfigurationTable(); getSchedulerTable(); getNotifiersTable(); diff --git a/plexpy/config.py b/plexpy/config.py index 9d7b72b2..251042ac 100644 --- a/plexpy/config.py +++ b/plexpy/config.py @@ -480,6 +480,7 @@ _CONFIG_DEFINITIONS = { 'REFRESH_USERS_ON_STARTUP': (int, 'Monitoring', 1), 'REMOTE_ACCESS_PING_THRESHOLD': (int, 'Advanced', 3), 'SESSION_DB_WRITE_ATTEMPTS': (int, 'Advanced', 5), + 'SHOW_ADVANCED_SETTINGS': (int, 'General', 0), 'SLACK_ENABLED': (int, 'Slack', 0), 'SLACK_HOOK': (str, 'Slack', ''), 'SLACK_CHANNEL': (str, 'Slack', ''), diff --git a/plexpy/webserve.py b/plexpy/webserve.py index dfdefe8d..76158fe7 100644 --- a/plexpy/webserve.py +++ b/plexpy/webserve.py @@ -2612,7 +2612,8 @@ class WebInterface(object): "tv_watched_percent": plexpy.CONFIG.TV_WATCHED_PERCENT, "music_watched_percent": plexpy.CONFIG.MUSIC_WATCHED_PERCENT, "themoviedb_lookup": checked(plexpy.CONFIG.THEMOVIEDB_LOOKUP), - "tvmaze_lookup": checked(plexpy.CONFIG.TVMAZE_LOOKUP) + "tvmaze_lookup": checked(plexpy.CONFIG.TVMAZE_LOOKUP), + "show_advanced_settings": plexpy.CONFIG.SHOW_ADVANCED_SETTINGS } return serve_template(templatename="settings.html", title="Settings", config=config, kwargs=kwargs)