From f958de2de646116fca7b1cd5d76e9ade899a289a Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 25 Dec 2019 11:41:53 -0800 Subject: [PATCH] Move 3rd Party API settings to new tab --- data/interfaces/default/settings.html | 110 +++++++++++++++----------- plexpy/notifiers.py | 12 +-- 2 files changed, 72 insertions(+), 50 deletions(-) diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index 3695f215..08e805e7 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -56,6 +56,7 @@
  • Notifications & Newsletters
  • Notification Agents
  • Newsletter Agents
  • +
  • 3rd Party APIs
  • Import & Backups
  • Tautulli Remote Android App beta
  • @@ -1063,12 +1064,60 @@

    Enter the full path to where newsletter files will be saved.

    +

    + + + +
    +
    -

    3rd Party APIs

    +

    Notification Agents

    +

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

    +

    + Please see the Notification Agents Guide for instructions on setting up each notification agent. +

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

    Newsletter Agents

    +
    + +

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

    +

    + Warning: The Image Hosting setting must be enabled for images to display on the newsletter. +

    +
    +
    +
    Loading newsletter agents...
    +
    +
    + +
    + +
    + +
    +

    Image Hosting

    +
    + +

    Image hosting is used to provide posters and artwork for some notification agents and newsletters.

    +
    - +
    @@ -1108,7 +1157,7 @@

    Note: The ${http_root}image endpoint on your domain must be publicly accessible from the internet.

    -

    Warning: Public Tautulli domain not set under Web Interface.

    +

    Warning: Public Tautulli domain not set under Web Interface.

    @@ -1151,6 +1200,13 @@

    + +
    +

    Metadata Lookups

    +
    + +

    Metadata lookups are used to provide additional metadata for notifications when available.

    +
    +
    +

    Geolocation Database

    +
    + +

    TThe GeoLite2 database is used to geolocate IP addresses.

    +
    @@ -1195,7 +1257,7 @@

    - The GeoLite2 database is used to geolocate IP addresses. Database last updated never. + GeoLite2 Database last updated never.

    @@ -1203,46 +1265,6 @@
    -
    - -
    -

    Notification Agents

    -
    - -

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

    -

    - Please see the Notification Agents Guide for instructions on setting up each notification agent. -

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

    Newsletter Agents

    -
    - -

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

    -

    - Warning: The Image Hosting setting must be enabled for images to display on the newsletter. -

    -
    -
    -
    Loading newsletter agents...
    -
    -
    - -
    -
    diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index c7d61379..ce095db4 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -1264,7 +1264,7 @@ class DISCORD(Notifier): 'value': self.config['incl_card'], 'name': 'discord_incl_card', 'description': 'Include an info card with a poster and metadata with the notifications.
    ' - 'Note: Image Hosting ' 'must be enabled under the notifications settings tab.', 'input_type': 'checkbox' @@ -1639,7 +1639,7 @@ class FACEBOOK(Notifier): 'value': self.config['incl_card'], 'name': 'facebook_incl_card', 'description': 'Include an info card with a poster and metadata with the notifications.
    ' - 'Note: Image Hosting ' 'must be enabled under the notifications settings tab.', 'input_type': 'checkbox' @@ -1962,7 +1962,7 @@ class HIPCHAT(Notifier): 'value': self.config['incl_card'], 'name': 'hipchat_incl_card', 'description': 'Include an info card with a poster and metadata with the notifications.
    ' - 'Note: Image Hosting ' 'must be enabled under the notifications settings tab.
    ' 'Note: This will change the notification type to HTML and emoticons will no longer work.', @@ -2184,7 +2184,7 @@ class JOIN(Notifier): 'value': self.config['incl_poster'], 'name': 'join_incl_poster', 'description': 'Include a poster with the notifications.
    ' - 'Note: Image Hosting ' 'must be enabled under the notifications settings tab.', 'input_type': 'checkbox' @@ -3348,7 +3348,7 @@ class SLACK(Notifier): 'value': self.config['incl_card'], 'name': 'slack_incl_card', 'description': 'Include an info card with a poster and metadata with the notifications.
    ' - 'Note: Image Hosting ' 'must be enabled under the notifications settings tab.', 'input_type': 'checkbox' @@ -3593,7 +3593,7 @@ class TWITTER(Notifier): 'value': self.config['incl_poster'], 'name': 'twitter_incl_poster', 'description': 'Include a poster with the notifications.
    ' - 'Note: Image Hosting ' 'must be enabled under the notifications settings tab.', 'input_type': 'checkbox'