From 6554136a8f975daa8acc1e5fa66464a2ec0bbad0 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sun, 29 Apr 2018 00:11:47 -0700 Subject: [PATCH] Add Cloudinary image hosting option --- data/interfaces/default/settings.html | 51 +++++++++++++++++-- plexpy/__init__.py | 9 +++- plexpy/config.py | 3 ++ plexpy/datafactory.py | 52 ++++++++++++++------ plexpy/helpers.py | 32 ++++++++++-- plexpy/newsletters.py | 12 ++--- plexpy/notification_handler.py | 71 +++++++++++++++++++-------- plexpy/webserve.py | 3 ++ 8 files changed, 183 insertions(+), 50 deletions(-) diff --git a/data/interfaces/default/settings.html b/data/interfaces/default/settings.html index 541594ca..aeb24c66 100644 --- a/data/interfaces/default/settings.html +++ b/data/interfaces/default/settings.html @@ -955,7 +955,10 @@

Enable to host newsletters on your own domain. This will generate a link to an HTML page where you can view the newsletter.

-

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

+

+ Note: The ${http_root}newsletter endpoint on your domain must be publicly accessible from the internet.
+ Note: Newsletter images will be self-hosted regardless of the Image Hosting setting below.
+

Warning: Public Tautulli domain not set under Web Interface.

@@ -970,6 +973,7 @@ @@ -977,6 +981,7 @@

Select where to host Plex images for notifications and newsletters.

+

Warning: Imgur uploads are rate-limited and newsletters may exceed the limit.

@@ -994,6 +999,41 @@

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.

+
+
+ +
+
+ +
+
+

+ Enter your Cloudinary Cloud Name. +

+
+
+ +
+
+ +
+
+

+ Enter your Cloudinary API Key. +

+
+
+ +
+
+ +
+
+

+ Enter your Cloudinary API Secret. +

+
+